Skip to content

Commit

Permalink
feat: add releaseRemainingAuthorization method
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Samofal authored Nov 8, 2024
1 parent 3927b82 commit 5eb7a5b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Api/Klarna.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,17 @@ public function updateCustomerAddress(string $order, array $body): array
{
return $this->patchRequest("/ordermanagement/v1/orders/$order/customer-details", $body);
}

/**
* @see https://docs.klarna.com/api/ordermanagement/#operation/releaseRemainingAuthorization
*
* @param string $order
*
* @return array
* @throws KlarnaException
*/
public function releaseRemainingAuthorization(string $order): array
{
return $this->postRequest("/ordermanagement/v1/orders/$order/release-remaining-authorization", []);
}
}

0 comments on commit 5eb7a5b

Please sign in to comment.