Skip to content

Commit

Permalink
Adds PayOutPaymentRef to BankWire
Browse files Browse the repository at this point in the history
  • Loading branch information
alexxmattei committed Dec 15, 2024
1 parent 4d9772f commit 357bac5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/models/PayOutPaymentDetailsBankWire.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ var PayOutPaymentDetailsBankWire = PayOutPaymentDetails.extend({
*/
BankWireRef: null,

/**
* Payment reference provided for the payout.
*/
PayoutPaymentRef: null,

/**
* The new parameter "PayoutModeRequested" can take the following values: "STANDARD", "INSTANT_PAYMENT", "INSTANT_PAYMENT_ONLY"
*/
Expand Down
6 changes: 6 additions & 0 deletions typings/base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ export namespace base {
Message: string;
}

interface PayoutPaymentRefData {
ReasonType: string;

ReferenceId: string;
}

interface WithResponse<T> {
status: number;

Expand Down
6 changes: 6 additions & 0 deletions typings/models/payOut.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { base } from "../base";
export namespace payOut {
import MoneyData = money.MoneyData;
import FallbackReasonData = base.FallbackReasonData;
import PayoutPaymentRefData = base.PayoutPaymentRefData;

type PayoutModeRequestedType = "STANDARD" | "INSTANT_PAYMENT" | "INSTANT_PAYMENT_ONLY";

Expand All @@ -27,6 +28,11 @@ export namespace payOut {
* A custom reference you wish to appear on the user’s bank statement (your Client Name is already shown). This reference can contain max 12 characters
*/
BankWireRef: string;

/**
* Payment reference provided for the payout.
*/
PayoutPaymentRef: PayoutPaymentRefData
}

interface CreatePayOut {
Expand Down

0 comments on commit 357bac5

Please sign in to comment.