-
Notifications
You must be signed in to change notification settings - Fork 45
Added post endpoint for updating an order. #73
Conversation
Thanks, @zkimffm! What are your thoughts on removing the parent-level e.g. Magento::api('orders')->edit([
'entity_id' => '12345',
'extension_attributes' => [
'amasty_order_attributes' => [
'delivery_date' => '2021-09-07'
]
]
// so on so forth..
]); |
Hi! @ahinkle So according to the magento documentation, it looks like the |
Hey @zkimffm , Right :) I'm saying what if we automatically provide it would change the method to something like this: public function edit($entity = [])
{
return $this->post('/orders', [
'entity => $entity',
]);
} then, you don't have to provide Magento::api('orders')->edit([
'entity_id' => '12345',
'extension_attributes' => [
'amasty_order_attributes' => [
'delivery_date' => '2021-09-07'
]
]
// so on so forth..
]); Thoughts there, or would expect to write that out each time? |
Ah! @ahinkle I understand what you mean now. Okay, that sounds good. I will make the change! Thanks. |
Thanks, @zkimffm! |
Added a post endpoint to update an order.
Example usage:
...api('orders')->edit($body);