@hmcts/ccpay-web-component 5.0.1-beta161 → 5.0.1-beta164
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 +21 -11
- 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/add-remission/add-remission.component.js +2 -2
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +9 -4
- package/esm2015/lib/components/refund-status/refund-status.component.js +6 -5
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +16 -4
- package/esm5/lib/components/add-remission/add-remission.component.js +2 -2
- package/esm5/lib/components/case-transactions/case-transactions.component.js +9 -4
- package/esm5/lib/components/refund-status/refund-status.component.js +6 -5
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +12 -3
- package/fesm2015/hmcts-ccpay-web-component.js +26 -12
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +21 -11
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/lib/interfaces/IResubmitRefundRequest.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +4 -1
- package/package.json +1 -1
|
@@ -3753,9 +3753,14 @@
|
|
|
3753
3753
|
}
|
|
3754
3754
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
3755
3755
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
this.
|
|
3756
|
+
if (this.paymentLibComponent.SERVICEREQUEST !== undefined) {
|
|
3757
|
+
this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
|
|
3758
|
+
if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
|
|
3759
|
+
this.serviceRequestValue = 'true';
|
|
3760
|
+
}
|
|
3761
|
+
else {
|
|
3762
|
+
this.serviceRequestValue = 'false';
|
|
3763
|
+
}
|
|
3759
3764
|
}
|
|
3760
3765
|
else {
|
|
3761
3766
|
this.serviceRequestValue = 'false';
|
|
@@ -7105,10 +7110,13 @@
|
|
|
7105
7110
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7106
7111
|
*/
|
|
7107
7112
|
var PostRefundRetroRemission = /** @class */ (function () {
|
|
7108
|
-
function PostRefundRetroRemission(payment_reference, refund_reason,
|
|
7113
|
+
function PostRefundRetroRemission(ccd_case_number, payment_reference, refund_reason, refund_amount, fees, contact_details) {
|
|
7114
|
+
this.ccd_case_number = ccd_case_number;
|
|
7109
7115
|
this.payment_reference = payment_reference;
|
|
7110
7116
|
this.refund_reason = refund_reason;
|
|
7111
|
-
this.
|
|
7117
|
+
this.refund_amount = refund_amount;
|
|
7118
|
+
this.fees = fees;
|
|
7119
|
+
this.contact_details = contact_details;
|
|
7112
7120
|
}
|
|
7113
7121
|
return PostRefundRetroRemission;
|
|
7114
7122
|
}());
|
|
@@ -8092,7 +8100,7 @@
|
|
|
8092
8100
|
* @return {?}
|
|
8093
8101
|
*/function (value) { return value.selected === true; }));
|
|
8094
8102
|
/** @type {?} */
|
|
8095
|
-
var requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason, this.contactDetailsObj);
|
|
8103
|
+
var requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
|
|
8096
8104
|
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
8097
8105
|
* @param {?} response
|
|
8098
8106
|
* @return {?}
|
|
@@ -9533,9 +9541,10 @@
|
|
|
9533
9541
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9534
9542
|
*/
|
|
9535
9543
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
9536
|
-
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9544
|
+
function IResubmitRefundRequest(refund_reason, amount, contact_details) {
|
|
9537
9545
|
this.refund_reason = refund_reason;
|
|
9538
9546
|
this.amount = amount;
|
|
9547
|
+
this.contact_details = contact_details;
|
|
9539
9548
|
}
|
|
9540
9549
|
return IResubmitRefundRequest;
|
|
9541
9550
|
}());
|
|
@@ -9923,11 +9932,12 @@
|
|
|
9923
9932
|
*/
|
|
9924
9933
|
function () {
|
|
9925
9934
|
var _this = this;
|
|
9926
|
-
if (this.oldRefundReason === this.refundlist.reason) {
|
|
9927
|
-
|
|
9928
|
-
}
|
|
9935
|
+
// if (this.oldRefundReason === this.refundlist.reason) {
|
|
9936
|
+
// this.refundCode = '';
|
|
9937
|
+
// }
|
|
9938
|
+
this.refundCode = this.refundlist.reason;
|
|
9929
9939
|
/** @type {?} */
|
|
9930
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
9940
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount, this.refundlist.contact_details);
|
|
9931
9941
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe(( /**
|
|
9932
9942
|
* @param {?} response
|
|
9933
9943
|
* @return {?}
|