@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.
@@ -988,7 +988,11 @@ var WebComponentHttpClient = /** @class */ (function () {
988
988
  }));
989
989
  }
990
990
  headers['X-Requested-With'] = 'XMLHttpRequest';
991
- if (csrfToken === null) {
991
+ if (csrfToken.content === null && document.cookie.split(';').find((/**
992
+ * @param {?} row
993
+ * @return {?}
994
+ */
995
+ function (row) { return row.startsWith('XSRF-TOKEN'); })) !== undefined) {
992
996
  headers['CSRF-Token'] = document.cookie.split(';').find((/**
993
997
  * @param {?} row
994
998
  * @return {?}
@@ -2013,7 +2017,11 @@ var RefundsService = /** @class */ (function () {
2013
2017
  }));
2014
2018
  }
2015
2019
  headers['X-Requested-With'] = 'XMLHttpRequest';
2016
- if (csrfToken.content === null) {
2020
+ if (csrfToken.content === null && document.cookie.split(';').find((/**
2021
+ * @param {?} row
2022
+ * @return {?}
2023
+ */
2024
+ function (row) { return row.startsWith('XSRF-TOKEN'); })) !== undefined) {
2017
2025
  headers['CSRF-Token'] = document.cookie.split(';').find((/**
2018
2026
  * @param {?} row
2019
2027
  * @return {?}
@@ -9522,11 +9530,12 @@ var IserviceRequestCardPayment = /** @class */ (function () {
9522
9530
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9523
9531
  */
9524
9532
  var IserviceRequestPbaPayment = /** @class */ (function () {
9525
- function IserviceRequestPbaPayment(account_number, amount, customer_reference) {
9533
+ function IserviceRequestPbaPayment(account_number, amount, customer_reference, orgName) {
9526
9534
  this.account_number = account_number;
9527
9535
  this.amount = amount;
9528
9536
  this.currency = 'GBP';
9529
9537
  this.customer_reference = customer_reference;
9538
+ this.organisation_name = orgName;
9530
9539
  }
9531
9540
  return IserviceRequestPbaPayment;
9532
9541
  }());
@@ -9552,6 +9561,7 @@ var PbaPaymentComponent = /** @class */ (function () {
9552
9561
  this.isPBADropdownSelected = false;
9553
9562
  this.isContinueButtondisabled = true;
9554
9563
  this.isPBAAccountPaymentSuccess = false;
9564
+ this.orgName = '';
9555
9565
  }
9556
9566
  /**
9557
9567
  * @return {?}
@@ -9571,6 +9581,7 @@ var PbaPaymentComponent = /** @class */ (function () {
9571
9581
  */
9572
9582
  function (result) {
9573
9583
  _this.isGetPBAAccountSucceed = true;
9584
+ _this.orgName = result.organisationEntityResponse.name;
9574
9585
  _this.pbaAccountList = result.organisationEntityResponse.paymentAccount;
9575
9586
  }), (/**
9576
9587
  * @param {?} error
@@ -9618,7 +9629,7 @@ var PbaPaymentComponent = /** @class */ (function () {
9618
9629
  this.isPBAAccountPaymentSuccess = false;
9619
9630
  if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
9620
9631
  /** @type {?} */
9621
- var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef);
9632
+ var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
9622
9633
  this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
9623
9634
  .subscribe((/**
9624
9635
  * @param {?} r