Skip to content

Commit

Permalink
Merge pull request #23 from JaavierR/master
Browse files Browse the repository at this point in the history
fix: change http methods of two order methods
  • Loading branch information
pactode committed Dec 2, 2021
2 parents 589ca07 + 47bb931 commit 2c292e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/REST/Actions/ManagesOrders.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function deleteOrder($orderId): void

public function closeOrder($orderId): OrderResource
{
$response = $this->get("orders/{$orderId}/close.json");
$response = $this->post("orders/{$orderId}/close.json");

return new OrderResource($response['order'], $this);
}
Expand All @@ -66,7 +66,7 @@ public function openOrder($orderId): OrderResource

public function cancelOrder($orderId): OrderResource
{
$response = $this->get("orders/{$orderId}/cancel.json");
$response = $this->post("orders/{$orderId}/cancel.json");

return new OrderResource($response['order'], $this);
}
Expand Down

0 comments on commit 2c292e4

Please sign in to comment.