File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -573,6 +573,7 @@ export interface DefaultCreditCardData {
573
573
export interface DirectDebitMandateData {
574
574
name : string ;
575
575
iban : string ;
576
+ address ?: string ;
576
577
}
577
578
578
579
export interface DirectDebitChargeData {
Original file line number Diff line number Diff line change @@ -638,6 +638,7 @@ class Payment extends BaseExtend {
638
638
* @async
639
639
* @param {string } name The customer's bank full name
640
640
* @param {string } iban The customer's bank IBAN number
641
+ * @param {string } address The customer's address used for specific countries
641
642
* @example
642
643
* InPlayer.Payment
643
644
* .createDirectDebitMandate({
@@ -673,13 +674,16 @@ class Payment extends BaseExtend {
673
674
async createDirectDebitMandate ( {
674
675
name,
675
676
iban,
677
+ address,
676
678
} : {
677
679
name : string ;
678
680
iban : string ;
681
+ address ?: string ;
679
682
} ) : Promise < AxiosResponse < CreateDirectDebitResponse > > {
680
683
const body = {
681
684
name,
682
685
iban,
686
+ ...( address && { address } ) ,
683
687
} ;
684
688
685
689
const tokenObject = await this . request . getToken ( ) ;
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ export interface ConfirmDonationPaymentRequestBody {
129
129
export interface CreateDirectDebitMandateData {
130
130
name : string ;
131
131
iban : string ;
132
+ address ?: string ;
132
133
}
133
134
134
135
export interface DirectDebitData {
@@ -193,6 +194,7 @@ export interface CreateDirectDebitResponse {
193
194
export interface DirectDebitMandateData {
194
195
name : string ;
195
196
iban : string ;
197
+ address ?: string ;
196
198
}
197
199
198
200
export interface PurchaseDetails {
You can’t perform that action at this time.
0 commit comments