Skip to content

Commit

Permalink
Adds PaymentRef to PayOut BankWire
Browse files Browse the repository at this point in the history
  • Loading branch information
alexxmattei committed Dec 11, 2024
1 parent 6c9b625 commit dd306fa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MangoPay/PayOutPaymentDetailsBankWire.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ class PayOutPaymentDetailsBankWire extends Libraries\Dto implements PayOutPaymen
*/
public $BankWireRef;

/**
* The PaymentRef must be sent on payouts that are reimbursing bank wire pay-ins and pay-ins to virtual IBANs,
* @var PayOutPaymentRef
*/
public $PaymentRef;

/**
* The parameter "PayoutModeRequested" can take 3 different values : "STANDARD", "INSTANT_PAYMENT", "INSTANT_PAYMENT_ONLY"
*
Expand Down
25 changes: 25 additions & 0 deletions MangoPay/PayOutPaymentRef.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace MangoPay;

class PayOutPaymentRef extends Libraries\Dto
{
/**
* ReasonType (PAYIN_REFUND)
* @var string
*/
public $ReasonType;

/**
* @var string
*/
public $referenceId;
}

/**
* Reason for PayOut
*/
class PayoutReasonType
{
const PayInRefund = 'PAYIN_REFUND';
}

0 comments on commit dd306fa

Please sign in to comment.