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

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.
@@ -10592,11 +10592,12 @@
10592
10592
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10593
10593
  */
10594
10594
  var IserviceRequestPbaPayment = /** @class */ (function () {
10595
- function IserviceRequestPbaPayment(account_number, amount, customer_reference) {
10595
+ function IserviceRequestPbaPayment(account_number, amount, customer_reference, orgName) {
10596
10596
  this.account_number = account_number;
10597
10597
  this.amount = amount;
10598
10598
  this.currency = 'GBP';
10599
10599
  this.customer_reference = customer_reference;
10600
+ this.organisation_name = orgName;
10600
10601
  }
10601
10602
  return IserviceRequestPbaPayment;
10602
10603
  }());
@@ -10622,6 +10623,7 @@
10622
10623
  this.isPBADropdownSelected = false;
10623
10624
  this.isContinueButtondisabled = true;
10624
10625
  this.isPBAAccountPaymentSuccess = false;
10626
+ this.orgName = '';
10625
10627
  }
10626
10628
  /**
10627
10629
  * @return {?}
@@ -10640,6 +10642,7 @@
10640
10642
  * @return {?}
10641
10643
  */function (result) {
10642
10644
  _this.isGetPBAAccountSucceed = true;
10645
+ _this.orgName = result.organisationEntityResponse.name;
10643
10646
  _this.pbaAccountList = result.organisationEntityResponse.paymentAccount;
10644
10647
  }), ( /**
10645
10648
  * @param {?} error
@@ -10686,7 +10689,7 @@
10686
10689
  this.isPBAAccountPaymentSuccess = false;
10687
10690
  if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
10688
10691
  /** @type {?} */
10689
- var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef);
10692
+ var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
10690
10693
  this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
10691
10694
  .subscribe(( /**
10692
10695
  * @param {?} r