@hmcts/ccpay-web-component 5.0.1-beta41 → 5.0.1-beta45

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.
@@ -2009,8 +2009,9 @@ var ProcessRefundComponent = /** @class */ (function () {
2009
2009
  * @return {?}
2010
2010
  */
2011
2011
  function () {
2012
- if (!this.paymentLibComponent.TAKEPAYMENT) {
2013
- window.location.href = '/refund-list?takePayment=false&refundlist=true';
2012
+ if (typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') {
2013
+ //window.location.href='/refund-list?takePayment=false&refundlist=true';
2014
+ this.paymentLibComponent.viewName = 'refund-list';
2014
2015
  }
2015
2016
  else {
2016
2017
  this.OrderslistService.setnavigationPage('casetransactions');
@@ -2028,8 +2029,9 @@ var ProcessRefundComponent = /** @class */ (function () {
2028
2029
  * @return {?}
2029
2030
  */
2030
2031
  function () {
2031
- if (!this.paymentLibComponent.TAKEPAYMENT) {
2032
- window.location.href = '/refund-list?takePayment=false&refundlist=true';
2032
+ if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
2033
+ // window.location.href='/refund-list?takePayment=false&refundlist=true';
2034
+ this.paymentLibComponent.viewName = 'refund-list';
2033
2035
  }
2034
2036
  else {
2035
2037
  this.loadRefundListPage();
@@ -8796,6 +8798,7 @@ var ServiceRequestComponent = /** @class */ (function () {
8796
8798
  */
8797
8799
  function (payment) {
8798
8800
  if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
8801
+ _this.paymentLibComponent.paymentReference = payment.reference;
8799
8802
  _this.isPBA = true;
8800
8803
  }
8801
8804
  }));
@@ -8822,7 +8825,8 @@ var ServiceRequestComponent = /** @class */ (function () {
8822
8825
  if (this.chkForAddRemission(fee.code)) {
8823
8826
  this.feeId = fee;
8824
8827
  this.viewStatus = 'addremission';
8825
- this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
8828
+ this.payment = this.orderDetail[0].payments[0];
8829
+ this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe((/**
8826
8830
  * @param {?} paymentGroup
8827
8831
  * @return {?}
8828
8832
  */