@hmcts/ccpay-web-component 5.0.2-beta112 → 5.0.2-beta113

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 {?}