@hmcts/ccpay-web-component 5.0.1-beta11 → 5.0.1-beta17
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 +14 -25
- 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 +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +2 -20
- package/esm2015/lib/components/table/table.component.js +13 -4
- package/esm2015/lib/services/shared/error-handler.service.js +7 -2
- package/esm5/lib/components/case-transactions/case-transactions.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +2 -21
- package/esm5/lib/components/table/table.component.js +12 -4
- package/esm5/lib/services/shared/error-handler.service.js +7 -2
- package/fesm2015/hmcts-ccpay-web-component.js +15 -27
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +14 -28
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/table/table.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -215,7 +215,12 @@
|
|
|
215
215
|
errorMessage = JSON.parse(JSON.stringify(err.error)).error;
|
|
216
216
|
}
|
|
217
217
|
else {
|
|
218
|
-
|
|
218
|
+
if (typeof err.error === 'string' && err.error !== undefined) {
|
|
219
|
+
errorMessage = err.error;
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
errorMessage = JSON.parse(err.error).error;
|
|
223
|
+
}
|
|
219
224
|
}
|
|
220
225
|
}
|
|
221
226
|
else {
|
|
@@ -2836,7 +2841,7 @@
|
|
|
2836
2841
|
* @param {?} response
|
|
2837
2842
|
* @return {?}
|
|
2838
2843
|
*/function (response) {
|
|
2839
|
-
_this.cpoDetails = JSON.parse(response).
|
|
2844
|
+
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2840
2845
|
}), ( /**
|
|
2841
2846
|
* @param {?} error
|
|
2842
2847
|
* @return {?}
|
|
@@ -2867,7 +2872,7 @@
|
|
|
2867
2872
|
* @param {?} response
|
|
2868
2873
|
* @return {?}
|
|
2869
2874
|
*/function (response) {
|
|
2870
|
-
_this.cpoDetails = JSON.parse(response).
|
|
2875
|
+
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2871
2876
|
}), ( /**
|
|
2872
2877
|
* @param {?} error
|
|
2873
2878
|
* @return {?}
|
|
@@ -7769,10 +7774,11 @@
|
|
|
7769
7774
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7770
7775
|
*/
|
|
7771
7776
|
var TableComponent = /** @class */ (function () {
|
|
7772
|
-
function TableComponent(paymentLibComponent, cdRef, OrderslistService$$1) {
|
|
7777
|
+
function TableComponent(paymentLibComponent, cdRef, OrderslistService$$1, _router) {
|
|
7773
7778
|
this.paymentLibComponent = paymentLibComponent;
|
|
7774
7779
|
this.cdRef = cdRef;
|
|
7775
7780
|
this.OrderslistService = OrderslistService$$1;
|
|
7781
|
+
this._router = _router;
|
|
7776
7782
|
// displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
|
|
7777
7783
|
this.displayedColumns = ['ccd_case_number', 'refund_reference', 'user_full_name', 'date_created', 'date_updated', 'Action'];
|
|
7778
7784
|
}
|
|
@@ -7903,7 +7909,7 @@
|
|
|
7903
7909
|
* @return {?}
|
|
7904
7910
|
*/
|
|
7905
7911
|
function (ccdCaseNumber, refundData) {
|
|
7906
|
-
|
|
7912
|
+
this._router.navigateByUrl("/cases/case-details/:" + ccdCaseNumber);
|
|
7907
7913
|
};
|
|
7908
7914
|
TableComponent.decorators = [
|
|
7909
7915
|
{ type: i0.Component, args: [{
|
|
@@ -7917,7 +7923,8 @@
|
|
|
7917
7923
|
return [
|
|
7918
7924
|
{ type: PaymentLibComponent },
|
|
7919
7925
|
{ type: i0.ChangeDetectorRef },
|
|
7920
|
-
{ type: OrderslistService }
|
|
7926
|
+
{ type: OrderslistService },
|
|
7927
|
+
{ type: router.Router }
|
|
7921
7928
|
];
|
|
7922
7929
|
};
|
|
7923
7930
|
TableComponent.propDecorators = {
|
|
@@ -7946,8 +7953,6 @@
|
|
|
7946
7953
|
* @fileoverview added by tsickle
|
|
7947
7954
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7948
7955
|
*/
|
|
7949
|
-
/** @type {?} */
|
|
7950
|
-
var BS_ENABLE_FLAG$4 = 'bulk-scan-enabling-fe';
|
|
7951
7956
|
var RefundStatusComponent = /** @class */ (function () {
|
|
7952
7957
|
// allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
7953
7958
|
function RefundStatusComponent(formBuilder, refundService, paymentLibComponent, paymentViewService, router$$1, OrderslistService$$1) {
|
|
@@ -8109,26 +8114,10 @@
|
|
|
8109
8114
|
* @return {?}
|
|
8110
8115
|
*/
|
|
8111
8116
|
function () {
|
|
8112
|
-
var _this = this;
|
|
8113
8117
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
8114
8118
|
//this.paymentLibComponent.TAKEPAYMENT = true;
|
|
8115
8119
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8116
|
-
this.
|
|
8117
|
-
* @param {?} features
|
|
8118
|
-
* @return {?}
|
|
8119
|
-
*/function (features) {
|
|
8120
|
-
/** @type {?} */
|
|
8121
|
-
var result = JSON.parse(features).filter(( /**
|
|
8122
|
-
* @param {?} feature
|
|
8123
|
-
* @return {?}
|
|
8124
|
-
*/function (feature) { return feature.uid === BS_ENABLE_FLAG$4; }));
|
|
8125
|
-
_this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
8126
|
-
}), ( /**
|
|
8127
|
-
* @param {?} err
|
|
8128
|
-
* @return {?}
|
|
8129
|
-
*/function (err) {
|
|
8130
|
-
_this.paymentLibComponent.ISBSENABLE = false;
|
|
8131
|
-
}));
|
|
8120
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
8132
8121
|
/** @type {?} */
|
|
8133
8122
|
var partUrl = "selectedOption=" + this.paymentLibComponent.SELECTED_OPTION;
|
|
8134
8123
|
partUrl += this.bsPaymentDcnNumber ? "&dcn=" + this.bsPaymentDcnNumber : '';
|