@hmcts/ccpay-web-component 5.0.2-beta111 → 5.0.2-beta114

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.
@@ -4910,16 +4910,21 @@ var CaseTransactionsComponent = /** @class */ (function () {
4910
4910
  * @return {?}
4911
4911
  */
4912
4912
  function (payment) {
4913
- if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
4914
- payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
4915
- this.isIssueRefunfBtnEnable = true;
4916
- }
4917
- if (this.isIssueRefunfBtnEnable) {
4918
- return true;
4913
+ if (payment !== null && payment !== undefined) {
4914
+ return payment.issue_refund && payment.refund_enable;
4919
4915
  }
4920
4916
  else {
4921
4917
  return false;
4922
4918
  }
4919
+ // if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
4920
+ // payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
4921
+ // this.isIssueRefunfBtnEnable = true;
4922
+ // }
4923
+ // if (this.isIssueRefunfBtnEnable) {
4924
+ // return true;
4925
+ // } else {
4926
+ // return false;
4927
+ // };
4923
4928
  };
4924
4929
  /**
4925
4930
  * @return {?}
@@ -10905,7 +10910,7 @@ var ServiceRequestComponent = /** @class */ (function () {
10905
10910
  }
10906
10911
  else if (this.paymentType === 'fp') {
10907
10912
  this.isFullyRefund = true;
10908
- this.paymentGroup = paymentgrp;
10913
+ this.paymentGroupList = paymentgrp;
10909
10914
  this.viewStatus = 'issuerefund';
10910
10915
  this.viewCompStatus = "";
10911
10916
  this.isRefundRemission = true;