Skip to content

Commit

Permalink
Fix issue MAG-5 due to APi uris changes (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbouchotoyst authored Nov 19, 2018
1 parent 37b6a04 commit 29d5768
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Api/OystApiClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
*/
class OystApiClientFactory
{
// 7.1.0
// 7.3.0
private static $version = array(
'major' => '7',
'minor' => '1',
'minor' => '3',
'patch' => '0',
);

Expand Down
1 change: 1 addition & 0 deletions src/Api/OystOrderApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public function refunds($orderId, OystPrice $price = null)
{
$data = array(
'id' => $orderId,
'status' => AbstractOrderState::REFUNDED,
);

if (!is_null($price)) {
Expand Down
10 changes: 8 additions & 2 deletions src/Config/description_order.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
}
},
"Refunds": {
"httpMethod": "POST",
"uri": "orders/{id}/refunds",
"httpMethod": "PATCH",
"uri": "orders/{id}",
"summary": "Refund a payment",
"parameters": {
"id": {
Expand All @@ -71,6 +71,12 @@
"description": "The order id",
"required": true
},
"status": {
"location": "json",
"type": "string",
"description": "New order status",
"required": true
},
"amount": {
"type": "object",
"location": "json",
Expand Down

0 comments on commit 29d5768

Please sign in to comment.