@hmcts/ccpay-web-component 6.0.0-beta21 → 6.0.0-beta24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-ccpay-web-component.umd.js +13 -4
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +6 -2
- package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +6 -2
- package/esm2015/lib/services/refunds/refunds.service.js +6 -2
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +6 -2
- package/esm5/lib/components/pba-payment/pba-payment.component.js +6 -2
- package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +5 -2
- package/esm5/lib/services/refunds/refunds.service.js +6 -2
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +6 -2
- package/fesm2015/hmcts-ccpay-web-component.js +16 -4
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +15 -4
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/lib/components/pba-payment/pba-payment.component.d.ts +1 -0
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1008,7 +1008,10 @@
|
|
|
1008
1008
|
}));
|
|
1009
1009
|
}
|
|
1010
1010
|
headers['X-Requested-With'] = 'XMLHttpRequest';
|
|
1011
|
-
if (csrfToken === null)
|
|
1011
|
+
if (csrfToken.content === null && document.cookie.split(';').find(( /**
|
|
1012
|
+
* @param {?} row
|
|
1013
|
+
* @return {?}
|
|
1014
|
+
*/function (row) { return row.startsWith('XSRF-TOKEN'); })) !== undefined) {
|
|
1012
1015
|
headers['CSRF-Token'] = document.cookie.split(';').find(( /**
|
|
1013
1016
|
* @param {?} row
|
|
1014
1017
|
* @return {?}
|
|
@@ -2023,7 +2026,10 @@
|
|
|
2023
2026
|
}));
|
|
2024
2027
|
}
|
|
2025
2028
|
headers['X-Requested-With'] = 'XMLHttpRequest';
|
|
2026
|
-
if (csrfToken.content === null)
|
|
2029
|
+
if (csrfToken.content === null && document.cookie.split(';').find(( /**
|
|
2030
|
+
* @param {?} row
|
|
2031
|
+
* @return {?}
|
|
2032
|
+
*/function (row) { return row.startsWith('XSRF-TOKEN'); })) !== undefined) {
|
|
2027
2033
|
headers['CSRF-Token'] = document.cookie.split(';').find(( /**
|
|
2028
2034
|
* @param {?} row
|
|
2029
2035
|
* @return {?}
|
|
@@ -9374,11 +9380,12 @@
|
|
|
9374
9380
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9375
9381
|
*/
|
|
9376
9382
|
var IserviceRequestPbaPayment = /** @class */ (function () {
|
|
9377
|
-
function IserviceRequestPbaPayment(account_number, amount, customer_reference) {
|
|
9383
|
+
function IserviceRequestPbaPayment(account_number, amount, customer_reference, orgName) {
|
|
9378
9384
|
this.account_number = account_number;
|
|
9379
9385
|
this.amount = amount;
|
|
9380
9386
|
this.currency = 'GBP';
|
|
9381
9387
|
this.customer_reference = customer_reference;
|
|
9388
|
+
this.organisation_name = orgName;
|
|
9382
9389
|
}
|
|
9383
9390
|
return IserviceRequestPbaPayment;
|
|
9384
9391
|
}());
|
|
@@ -9404,6 +9411,7 @@
|
|
|
9404
9411
|
this.isPBADropdownSelected = false;
|
|
9405
9412
|
this.isContinueButtondisabled = true;
|
|
9406
9413
|
this.isPBAAccountPaymentSuccess = false;
|
|
9414
|
+
this.orgName = '';
|
|
9407
9415
|
}
|
|
9408
9416
|
/**
|
|
9409
9417
|
* @return {?}
|
|
@@ -9422,6 +9430,7 @@
|
|
|
9422
9430
|
* @return {?}
|
|
9423
9431
|
*/function (result) {
|
|
9424
9432
|
_this.isGetPBAAccountSucceed = true;
|
|
9433
|
+
_this.orgName = result.organisationEntityResponse.name;
|
|
9425
9434
|
_this.pbaAccountList = result.organisationEntityResponse.paymentAccount;
|
|
9426
9435
|
}), ( /**
|
|
9427
9436
|
* @param {?} error
|
|
@@ -9468,7 +9477,7 @@
|
|
|
9468
9477
|
this.isPBAAccountPaymentSuccess = false;
|
|
9469
9478
|
if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
|
|
9470
9479
|
/** @type {?} */
|
|
9471
|
-
var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef);
|
|
9480
|
+
var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
|
|
9472
9481
|
this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
|
|
9473
9482
|
.subscribe(( /**
|
|
9474
9483
|
* @param {?} r
|