@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.
- package/bundles/hmcts-ccpay-web-component.umd.js +11 -6
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +12 -8
- package/esm5/lib/components/case-transactions/case-transactions.component.js +12 -8
- package/fesm2015/hmcts-ccpay-web-component.js +11 -6
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +11 -6
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -4910,16 +4910,21 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4910
4910
|
* @return {?}
|
|
4911
4911
|
*/
|
|
4912
4912
|
function (payment) {
|
|
4913
|
-
if (
|
|
4914
|
-
payment.
|
|
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 {?}
|