@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
|
@@ -3762,9 +3762,14 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3762
3762
|
}
|
|
3763
3763
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
3764
3764
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
this.
|
|
3765
|
+
if (this.paymentLibComponent.SERVICEREQUEST !== undefined) {
|
|
3766
|
+
this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
|
|
3767
|
+
if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
|
|
3768
|
+
this.serviceRequestValue = 'true';
|
|
3769
|
+
}
|
|
3770
|
+
else {
|
|
3771
|
+
this.serviceRequestValue = 'false';
|
|
3772
|
+
}
|
|
3768
3773
|
}
|
|
3769
3774
|
else {
|
|
3770
3775
|
this.serviceRequestValue = 'false';
|
|
@@ -7206,10 +7211,13 @@ var AddRetroRemissionRequest = /** @class */ (function () {
|
|
|
7206
7211
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7207
7212
|
*/
|
|
7208
7213
|
var PostRefundRetroRemission = /** @class */ (function () {
|
|
7209
|
-
function PostRefundRetroRemission(payment_reference, refund_reason,
|
|
7214
|
+
function PostRefundRetroRemission(ccd_case_number, payment_reference, refund_reason, refund_amount, fees, contact_details) {
|
|
7215
|
+
this.ccd_case_number = ccd_case_number;
|
|
7210
7216
|
this.payment_reference = payment_reference;
|
|
7211
7217
|
this.refund_reason = refund_reason;
|
|
7212
|
-
this.
|
|
7218
|
+
this.refund_amount = refund_amount;
|
|
7219
|
+
this.fees = fees;
|
|
7220
|
+
this.contact_details = contact_details;
|
|
7213
7221
|
}
|
|
7214
7222
|
return PostRefundRetroRemission;
|
|
7215
7223
|
}());
|
|
@@ -8227,7 +8235,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8227
8235
|
*/
|
|
8228
8236
|
function (value) { return value.selected === true; }));
|
|
8229
8237
|
/** @type {?} */
|
|
8230
|
-
var requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason, this.contactDetailsObj);
|
|
8238
|
+
var requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
|
|
8231
8239
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
8232
8240
|
* @param {?} response
|
|
8233
8241
|
* @return {?}
|
|
@@ -9675,9 +9683,10 @@ var IPutNotificationRequest = /** @class */ (function () {
|
|
|
9675
9683
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9676
9684
|
*/
|
|
9677
9685
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
9678
|
-
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9686
|
+
function IResubmitRefundRequest(refund_reason, amount, contact_details) {
|
|
9679
9687
|
this.refund_reason = refund_reason;
|
|
9680
9688
|
this.amount = amount;
|
|
9689
|
+
this.contact_details = contact_details;
|
|
9681
9690
|
}
|
|
9682
9691
|
return IResubmitRefundRequest;
|
|
9683
9692
|
}());
|
|
@@ -10080,11 +10089,12 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10080
10089
|
*/
|
|
10081
10090
|
function () {
|
|
10082
10091
|
var _this = this;
|
|
10083
|
-
if (this.oldRefundReason === this.refundlist.reason) {
|
|
10084
|
-
|
|
10085
|
-
}
|
|
10092
|
+
// if (this.oldRefundReason === this.refundlist.reason) {
|
|
10093
|
+
// this.refundCode = '';
|
|
10094
|
+
// }
|
|
10095
|
+
this.refundCode = this.refundlist.reason;
|
|
10086
10096
|
/** @type {?} */
|
|
10087
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
10097
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount, this.refundlist.contact_details);
|
|
10088
10098
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe((/**
|
|
10089
10099
|
* @param {?} response
|
|
10090
10100
|
* @return {?}
|