@@ -21,7 +21,7 @@ <h1 class="brand" style="padding: 10px 16px 10px; height: 20px; line-height: 20p
21
21
< li class ="divider-vertical "> </ li >
22
22
< li >
23
23
< p class ="navbar-text ">
24
- API Docs for Version: < b > 2.10 .0</ b >
24
+ API Docs for Version: < b > 2.11 .0</ b >
25
25
</ p >
26
26
</ li >
27
27
</ div >
@@ -516,18 +516,24 @@ <h1>src/Models/Payment.js <small>File</small></h1>
516
516
* assetId: {string},
517
517
* accessFeeId: {string},
518
518
* voucherCode: {string},
519
+ * brandingId?: number
519
520
* }
520
521
* @example
521
522
* InPlayer.Payment
522
- * .directDebitCharge({ assetId, accessFeeId, voucherCode })
523
+ * .directDebitCharge({ assetId, accessFeeId, voucherCode, brandingId })
523
524
* .then(data => console.log(data));
524
525
* @return {Object} Contains the data - {
525
526
* code: '200',
526
527
* message: "Submitted for payment",
527
528
* }
528
529
*
529
530
*/
530
- async directDebitCharge({ assetId: item_id, accessFeeId: access_fee_id, voucherCode: voucher_code = '' }) {
531
+ async directDebitCharge({
532
+ assetId: item_id,
533
+ accessFeeId: access_fee_id,
534
+ voucherCode: voucher_code = '',
535
+ brandingId: branding_id,
536
+ }) {
531
537
if (!this.Account.isAuthenticated()) {
532
538
errorResponse(401, {
533
539
code: 401,
@@ -543,7 +549,13 @@ <h1>src/Models/Payment.js <small>File</small></h1>
543
549
Authorization: `Bearer ${this.Account.getToken().token}`,
544
550
'Content-Type': 'application/x-www-form-urlencoded'
545
551
},
546
- body: params({ item_id, access_fee_id, voucher_code, payment_method: 'Direct Debit' }),
552
+ body: params({
553
+ item_id,
554
+ access_fee_id,
555
+ voucher_code,
556
+ payment_method: 'Direct Debit',
557
+ branding_id
558
+ }),
547
559
}
548
560
);
549
561
@@ -560,10 +572,11 @@ <h1>src/Models/Payment.js <small>File</small></h1>
560
572
* assetId: {string},
561
573
* accessFeeId: {string},
562
574
* voucherCode: {string},
575
+ * brandingId?: number
563
576
* }
564
577
* @example
565
578
* InPlayer.Payment
566
- * .directDebitSubscribe({ assetId, accessFeeId, voucherCode })
579
+ * .directDebitSubscribe({ assetId, accessFeeId, voucherCode, brandingId })
567
580
* .then(data => console.log(data));
568
581
* @return {Object} Contains the data - {
569
582
* code: '200',
@@ -572,7 +585,12 @@ <h1>src/Models/Payment.js <small>File</small></h1>
572
585
* }
573
586
*/
574
587
575
- async directDebitSubscribe({ assetId: item_id, accessFeeId: access_fee_id, voucherCode: voucher_code = '' }) {
588
+ async directDebitSubscribe({
589
+ assetId: item_id,
590
+ accessFeeId: access_fee_id,
591
+ voucherCode: voucher_code = '',
592
+ brandingId: branding_id
593
+ }) {
576
594
if (!this.Account.isAuthenticated()) {
577
595
errorResponse(401, {
578
596
code: 401,
@@ -588,7 +606,13 @@ <h1>src/Models/Payment.js <small>File</small></h1>
588
606
Authorization: `Bearer ${this.Account.getToken().token}`,
589
607
'Content-Type': 'application/x-www-form-urlencoded'
590
608
},
591
- body: params({ item_id, access_fee_id, voucher_code, payment_method: 'Direct Debit' }),
609
+ body: params({
610
+ item_id,
611
+ access_fee_id,
612
+ voucher_code,
613
+ payment_method: 'Direct Debit',
614
+ branding_id
615
+ }),
592
616
}
593
617
);
594
618
0 commit comments