@@ -58,7 +58,7 @@ class Payment extends BaseExtend {
58
58
*/
59
59
async getPaymentMethods ( ) : Promise <
60
60
AxiosResponse < Array < MerchantPaymentMethod > >
61
- > {
61
+ > {
62
62
const tokenObject = await this . request . getToken ( ) ;
63
63
64
64
return this . request . authenticatedGet ( API . getPaymentMethods , {
@@ -226,7 +226,7 @@ class Payment extends BaseExtend {
226
226
* ```
227
227
*/
228
228
async createDonationPayment (
229
- data : CreateDonationPaymentData
229
+ data : CreateDonationPaymentData ,
230
230
) : Promise < AxiosResponse < CreateDonationPaymentData > > {
231
231
const body : CreateDonationPaymentRequestBody = {
232
232
number : data . number ,
@@ -254,7 +254,7 @@ class Payment extends BaseExtend {
254
254
Authorization : `Bearer ${ tokenObject . token } ` ,
255
255
'Content-Type' : 'application/x-www-form-urlencoded' ,
256
256
} ,
257
- }
257
+ } ,
258
258
) ;
259
259
}
260
260
@@ -280,7 +280,7 @@ class Payment extends BaseExtend {
280
280
* ```
281
281
*/
282
282
async confirmPayment (
283
- paymentIntentId : string
283
+ paymentIntentId : string ,
284
284
) : Promise < AxiosResponse < CommonResponse > > {
285
285
if ( ! paymentIntentId ) {
286
286
const response : CustomErrorResponse = {
@@ -375,7 +375,7 @@ class Payment extends BaseExtend {
375
375
Authorization : `Bearer ${ tokenObject . token } ` ,
376
376
'Content-Type' : 'application/x-www-form-urlencoded' ,
377
377
} ,
378
- }
378
+ } ,
379
379
) ;
380
380
}
381
381
@@ -496,7 +496,7 @@ class Payment extends BaseExtend {
496
496
async getPurchaseHistory (
497
497
status = 'active' ,
498
498
page = 0 ,
499
- limit = 5
499
+ limit = 5 ,
500
500
) : Promise < AxiosResponse < GetPurchaseHistoryResponse > > {
501
501
const tokenObject = await this . request . getToken ( ) ;
502
502
@@ -506,7 +506,7 @@ class Payment extends BaseExtend {
506
506
headers : {
507
507
Authorization : `Bearer ${ tokenObject . token } ` ,
508
508
} ,
509
- }
509
+ } ,
510
510
) ;
511
511
}
512
512
@@ -572,8 +572,8 @@ class Payment extends BaseExtend {
572
572
const tokenObject = await this . request . getToken ( ) ;
573
573
574
574
return this . request . authenticatedGet ( API . getBillingReceipt ( trxToken ) , {
575
+ responseType : 'blob' ,
575
576
headers : {
576
- responseType : 'blob' ,
577
577
Authorization : `Bearer ${ tokenObject . token } ` ,
578
578
} ,
579
579
} ) ;
@@ -672,7 +672,7 @@ class Payment extends BaseExtend {
672
672
Authorization : `Bearer ${ tokenObject . token } ` ,
673
673
'Content-Type' : 'application/x-www-form-urlencoded' ,
674
674
} ,
675
- }
675
+ } ,
676
676
) ;
677
677
}
678
678
@@ -703,7 +703,7 @@ class Payment extends BaseExtend {
703
703
*/
704
704
async getDirectDebitMandate ( ) : Promise <
705
705
AxiosResponse < DirectDebitMandateResponse >
706
- > {
706
+ > {
707
707
const tokenObject = await this . request . getToken ( ) ;
708
708
709
709
return this . request . authenticatedGet ( API . getDirectDebitMandate , {
@@ -777,7 +777,7 @@ class Payment extends BaseExtend {
777
777
Authorization : `Bearer ${ tokenObject . token } ` ,
778
778
'Content-Type' : 'application/x-www-form-urlencoded' ,
779
779
} ,
780
- }
780
+ } ,
781
781
) ;
782
782
}
783
783
@@ -839,7 +839,7 @@ class Payment extends BaseExtend {
839
839
Authorization : `Bearer ${ tokenObject . token } ` ,
840
840
'Content-Type' : 'application/x-www-form-urlencoded' ,
841
841
} ,
842
- }
842
+ } ,
843
843
) ;
844
844
}
845
845
@@ -979,7 +979,7 @@ class Payment extends BaseExtend {
979
979
Authorization : `Bearer ${ tokenObject . token } ` ,
980
980
'Content-Type' : 'application/x-www-form-urlencoded' ,
981
981
} ,
982
- }
982
+ } ,
983
983
) ;
984
984
}
985
985
@@ -1121,7 +1121,7 @@ class Payment extends BaseExtend {
1121
1121
Authorization : `Bearer ${ tokenObject . token } ` ,
1122
1122
'Content-Type' : 'application/x-www-form-urlencoded' ,
1123
1123
} ,
1124
- }
1124
+ } ,
1125
1125
) ;
1126
1126
}
1127
1127
@@ -1183,7 +1183,7 @@ class Payment extends BaseExtend {
1183
1183
Authorization : `Bearer ${ tokenObject . token } ` ,
1184
1184
'Content-Type' : 'application/x-www-form-urlencoded' ,
1185
1185
} ,
1186
- }
1186
+ } ,
1187
1187
) ;
1188
1188
}
1189
1189
@@ -1249,7 +1249,7 @@ class Payment extends BaseExtend {
1249
1249
Authorization : `Bearer ${ tokenObject . token } ` ,
1250
1250
'Content-Type' : 'application/x-www-form-urlencoded' ,
1251
1251
} ,
1252
- }
1252
+ } ,
1253
1253
) ;
1254
1254
}
1255
1255
}
0 commit comments