Skip to content

Commit

Permalink
Add method to get a single refund
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximiliano Gabriel Monge committed May 23, 2016
1 parent d966c97 commit d2f8579
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,20 @@ public function getPayment($id)
return Payment::fromArray($response);
}

/**
* @see https://developer.gocardless.com/pro/#refunds-get-a-single-refund
*
* @param $id
*
* @return Refund
*/
public function getRefund($id)
{
$response = $this->get(self::REFUNDS, [], $id);

return Refund::fromArray($response);
}

/**
* @see https://developer.gocardless.com/pro/#payments-list-payments
*
Expand Down

0 comments on commit d2f8579

Please sign in to comment.