Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 76f325f

Browse files
committed
Changed parameter for order edit method.
1 parent 6586f51 commit 76f325f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Api/Orders.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ public function show($orderId)
3636
/**
3737
* Edits and saves an order using the specified entity id within the body.
3838
*
39-
* @param array $body
39+
* @param array $entity
4040
* @return array
4141
*/
42-
public function edit($body = [])
42+
public function edit($entity = [])
4343
{
44-
return $this->post('/orders', $body);
44+
return $this->post('/orders', [
45+
'entity' => $entity
46+
]);
4547
}
4648
}

0 commit comments

Comments
 (0)