* @copyright Mollie B.V. * @link https://www.mollie.com * * @method Mollie_API_Object_Payment_Refund[]|Mollie_API_Object_List all($offset = 0, $limit = 0) * @method Mollie_API_Object_Payment_Refund get($resource_id) */ class Mollie_API_Resource_Payments_Refunds extends Mollie_API_Resource_Base { /** * @var string */ private $payment_id; /** * @return Mollie_API_Object_Method */ protected function getResourceObject () { return new Mollie_API_Object_Payment_Refund; } /** * @return string */ protected function getResourceName () { return "payments/" . urlencode($this->payment_id) . "/refunds"; } /** * Set the resource to use a certain payment. Use this method before performing a get() or all() call. * * @param Mollie_API_Object_Payment $payment * @return self */ public function with(Mollie_API_Object_Payment $payment) { $this->payment_id = $payment->id; return $this; } }