File tree 5 files changed +14
-1
lines changed
5 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+ # [ 3.13.1] - 16-08-2022
6
+
7
+ ### Added
8
+
9
+ - Added ` address ` param in direct debit payments method which is needed for specific coutries
10
+
5
11
# [ 3.13.0] - 26-06-2022
6
12
7
13
### Added
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 1
1
{
2
2
"name" : " @inplayer-org/inplayer.js" ,
3
- "version" : " 3.13.0 " ,
3
+ "version" : " 3.13.1 " ,
4
4
"author" : " InPlayer" ,
5
5
"license" : " MIT" ,
6
6
"description" : " A Javascript SDK for Inplayer's RESTful API" ,
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