@hmcts/ccpay-web-component 4.0.0-beta538 → 4.0.0-beta541

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.
@@ -1886,7 +1886,9 @@ var ProcessRefundComponent = /** @class */ (function () {
1886
1886
  * @return {?}
1887
1887
  */
1888
1888
  function (data) { return _this.navigationpage = data; }));
1889
- if (this.navigationpage === 'casetransactions') ;
1889
+ if (this.navigationpage === 'casetransactions') {
1890
+ window.location.href = '/refund-list?takePayment=false&refundlist=true';
1891
+ }
1890
1892
  else {
1891
1893
  this.paymentLibComponent.viewName = 'refund-list';
1892
1894
  }
@@ -1898,7 +1900,12 @@ var ProcessRefundComponent = /** @class */ (function () {
1898
1900
  * @return {?}
1899
1901
  */
1900
1902
  function () {
1901
- this.loadRefundListPage();
1903
+ if (this.paymentLibComponent.API_ROOT === 'api/payment-history') {
1904
+ window.location.href = '/refund-list?takePayment=false&refundlist=true';
1905
+ }
1906
+ else {
1907
+ this.loadRefundListPage();
1908
+ }
1902
1909
  };
1903
1910
  // loadCaseTransactionPage() {
1904
1911
  // this.paymentLibComponent.isRefundStatusView = false;
@@ -2855,7 +2862,7 @@ var CaseTransactionsComponent = /** @class */ (function () {
2855
2862
  _this.setDefaults();
2856
2863
  }));
2857
2864
  }
2858
- this.checkForExceptionRecord();
2865
+ this.checkForExceptionRecord(Event);
2859
2866
  if (this.OrderslistService.getisFromServiceRequestPages() !== null) {
2860
2867
  this.OrderslistService.getisFromServiceRequestPages().subscribe((/**
2861
2868
  * @param {?} data
@@ -2893,13 +2900,16 @@ var CaseTransactionsComponent = /** @class */ (function () {
2893
2900
  //return "-";
2894
2901
  };
2895
2902
  /**
2903
+ * @param {?} event
2896
2904
  * @return {?}
2897
2905
  */
2898
2906
  CaseTransactionsComponent.prototype.checkForExceptionRecord = /**
2907
+ * @param {?} event
2899
2908
  * @return {?}
2900
2909
  */
2901
- function () {
2910
+ function (event) {
2902
2911
  var _this = this;
2912
+ event.preventDefault();
2903
2913
  if (this.paymentGroups.length === 0 && (this.selectedOption.toLocaleLowerCase() === 'ccdorexception' || this.selectedOption.toLocaleLowerCase() === 'rc')) {
2904
2914
  this.bulkScaningPaymentService.getBSPaymentsByCCD(this.ccdCaseNumber).subscribe((/**
2905
2915
  * @param {?} recordData