Skip to content

Commit b6e73f4

Browse files
committed
Add cancel alias for refunds
1 parent 293bac9 commit b6e73f4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Mollie/API/Resource/Payments/Refunds.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,17 @@ protected function getResourceObject ()
4646
{
4747
return new Mollie_API_Object_Payment_Refund;
4848
}
49+
50+
/**
51+
* Cancel the given Refund. This is just an alias of the 'delete' method.
52+
*
53+
* @param string $refund_id
54+
*
55+
* @return Mollie_API_Object_Payment_Refund
56+
* @throws Mollie_API_Exception
57+
*/
58+
public function cancel ($refund_id)
59+
{
60+
return $this->delete($refund_id);
61+
}
4962
}

0 commit comments

Comments
 (0)