Skip to content

Commit

Permalink
Accept 'body' as parameter in addShippingInfoToCapture method
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Samofal committed Jan 31, 2022
1 parent 1d83289 commit d96cdea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Api/Klarna.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,15 @@ public function getOrderCaptures(string $order): array
*
* @param string $order
* @param string $capture
* @param array $body
*
* @return array
* @throws KlarnaException
* @throws KlarnaInvalidConfig
*/
public function addShippingInfoToCapture(string $order, string $capture): array
public function addShippingInfoToCapture(string $order, string $capture, array $body): array
{
return $this->postRequest("/ordermanagement/v1/orders/$order/captures/$capture/shipping-info", []);
return $this->postRequest("/ordermanagement/v1/orders/$order/captures/$capture/shipping-info", $body);
}

/**
Expand Down

0 comments on commit d96cdea

Please sign in to comment.