@hmcts/ccpay-web-component 5.0.1-beta154 → 5.0.1-beta157

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.
@@ -1015,7 +1015,7 @@ var WebComponentHttpClient = /** @class */ (function () {
1015
1015
  * @param {?} row
1016
1016
  * @return {?}
1017
1017
  */
1018
- function (row) { return row.startsWith('XSRF-TOKEN'); })).split('=')[1] !== undefined) {
1018
+ function (row) { return row.startsWith('XSRF-TOKEN'); })) !== undefined) {
1019
1019
  headers['CSRF-Token'] = document.cookie.split(';').find((/**
1020
1020
  * @param {?} row
1021
1021
  * @return {?}
@@ -2071,7 +2071,7 @@ var RefundsService = /** @class */ (function () {
2071
2071
  * @param {?} row
2072
2072
  * @return {?}
2073
2073
  */
2074
- function (row) { return row.startsWith('XSRF-TOKEN'); })).split('=')[1] !== undefined) {
2074
+ function (row) { return row.startsWith('XSRF-TOKEN'); })) !== undefined) {
2075
2075
  headers['CSRF-Token'] = document.cookie.split(';').find((/**
2076
2076
  * @param {?} row
2077
2077
  * @return {?}
@@ -10770,11 +10770,12 @@ var IserviceRequestCardPayment = /** @class */ (function () {
10770
10770
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10771
10771
  */
10772
10772
  var IserviceRequestPbaPayment = /** @class */ (function () {
10773
- function IserviceRequestPbaPayment(account_number, amount, customer_reference) {
10773
+ function IserviceRequestPbaPayment(account_number, amount, customer_reference, orgName) {
10774
10774
  this.account_number = account_number;
10775
10775
  this.amount = amount;
10776
10776
  this.currency = 'GBP';
10777
10777
  this.customer_reference = customer_reference;
10778
+ this.organisation_name = orgName;
10778
10779
  }
10779
10780
  return IserviceRequestPbaPayment;
10780
10781
  }());
@@ -10800,6 +10801,7 @@ var PbaPaymentComponent = /** @class */ (function () {
10800
10801
  this.isPBADropdownSelected = false;
10801
10802
  this.isContinueButtondisabled = true;
10802
10803
  this.isPBAAccountPaymentSuccess = false;
10804
+ this.orgName = '';
10803
10805
  }
10804
10806
  /**
10805
10807
  * @return {?}
@@ -10819,6 +10821,7 @@ var PbaPaymentComponent = /** @class */ (function () {
10819
10821
  */
10820
10822
  function (result) {
10821
10823
  _this.isGetPBAAccountSucceed = true;
10824
+ _this.orgName = result.organisationEntityResponse.name;
10822
10825
  _this.pbaAccountList = result.organisationEntityResponse.paymentAccount;
10823
10826
  }), (/**
10824
10827
  * @param {?} error
@@ -10866,7 +10869,7 @@ var PbaPaymentComponent = /** @class */ (function () {
10866
10869
  this.isPBAAccountPaymentSuccess = false;
10867
10870
  if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
10868
10871
  /** @type {?} */
10869
- var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef);
10872
+ var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
10870
10873
  this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
10871
10874
  .subscribe((/**
10872
10875
  * @param {?} r