@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
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
4
|
*/
|
|
5
5
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
6
|
-
function IResubmitRefundRequest(refund_reason, amount) {
|
|
6
|
+
function IResubmitRefundRequest(refund_reason, amount, contact_details) {
|
|
7
7
|
this.refund_reason = refund_reason;
|
|
8
8
|
this.amount = amount;
|
|
9
|
+
this.contact_details = contact_details;
|
|
9
10
|
}
|
|
10
11
|
return IResubmitRefundRequest;
|
|
11
12
|
}());
|
|
@@ -15,5 +16,7 @@ if (false) {
|
|
|
15
16
|
IResubmitRefundRequest.prototype.refund_reason;
|
|
16
17
|
/** @type {?} */
|
|
17
18
|
IResubmitRefundRequest.prototype.amount;
|
|
19
|
+
/** @type {?} */
|
|
20
|
+
IResubmitRefundRequest.prototype.contact_details;
|
|
18
21
|
}
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSVJlc3VibWl0UmVmdW5kUmVxdWVzdC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9jY3BheS13ZWItY29tcG9uZW50LyIsInNvdXJjZXMiOlsibGliL2ludGVyZmFjZXMvSVJlc3VibWl0UmVmdW5kUmVxdWVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQ0E7SUFLSSxnQ0FBWSxhQUFzQixFQUFFLE1BQWMsRUFBQyxlQUFtQjtRQUNwRSxJQUFJLENBQUMsYUFBYSxHQUFFLGFBQWEsQ0FBQztRQUNsQyxJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztRQUNyQixJQUFJLENBQUMsZUFBZSxHQUFHLGVBQWUsQ0FBQztJQUN6QyxDQUFDO0lBQ0gsNkJBQUM7QUFBRCxDQUFDLEFBVkgsSUFVRzs7OztJQVRELCtDQUFzQjs7SUFDdEIsd0NBQWU7O0lBQ2YsaURBQXNDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSVJlZnVuZENvbnRhY3REZXRhaWxzIH0gZnJvbSBcIi4vSVJlZnVuZENvbnRhY3REZXRhaWxzXCI7XG5leHBvcnQgY2xhc3MgSVJlc3VibWl0UmVmdW5kUmVxdWVzdCB7XG4gIHJlZnVuZF9yZWFzb246IHN0cmluZztcbiAgYW1vdW50OiBudW1iZXI7XG4gIGNvbnRhY3RfZGV0YWlsczogSVJlZnVuZENvbnRhY3REZXRhaWxzXG4gIFxuICAgIGNvbnN0cnVjdG9yKHJlZnVuZF9yZWFzb24gOiBzdHJpbmcsIGFtb3VudDogbnVtYmVyLGNvbnRhY3RfZGV0YWlsczphbnkpIHtcbiAgICAgIHRoaXMucmVmdW5kX3JlYXNvbj0gcmVmdW5kX3JlYXNvbjtcbiAgICAgIHRoaXMuYW1vdW50ID0gYW1vdW50O1xuICAgICAgdGhpcy5jb250YWN0X2RldGFpbHMgPSBjb250YWN0X2RldGFpbHM7XG4gICAgfSBcbiAgfVxuICAiXX0=
|
|
@@ -3,20 +3,29 @@
|
|
|
3
3
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
4
|
*/
|
|
5
5
|
var PostRefundRetroRemission = /** @class */ (function () {
|
|
6
|
-
function PostRefundRetroRemission(payment_reference, refund_reason,
|
|
6
|
+
function PostRefundRetroRemission(ccd_case_number, payment_reference, refund_reason, refund_amount, fees, contact_details) {
|
|
7
|
+
this.ccd_case_number = ccd_case_number;
|
|
7
8
|
this.payment_reference = payment_reference;
|
|
8
9
|
this.refund_reason = refund_reason;
|
|
9
|
-
this.
|
|
10
|
+
this.refund_amount = refund_amount;
|
|
11
|
+
this.fees = fees;
|
|
12
|
+
this.contact_details = contact_details;
|
|
10
13
|
}
|
|
11
14
|
return PostRefundRetroRemission;
|
|
12
15
|
}());
|
|
13
16
|
export { PostRefundRetroRemission };
|
|
14
17
|
if (false) {
|
|
18
|
+
/** @type {?} */
|
|
19
|
+
PostRefundRetroRemission.prototype.ccd_case_number;
|
|
15
20
|
/** @type {?} */
|
|
16
21
|
PostRefundRetroRemission.prototype.payment_reference;
|
|
17
22
|
/** @type {?} */
|
|
18
23
|
PostRefundRetroRemission.prototype.refund_reason;
|
|
19
24
|
/** @type {?} */
|
|
25
|
+
PostRefundRetroRemission.prototype.refund_amount;
|
|
26
|
+
/** @type {?} */
|
|
27
|
+
PostRefundRetroRemission.prototype.fees;
|
|
28
|
+
/** @type {?} */
|
|
20
29
|
PostRefundRetroRemission.prototype.contact_details;
|
|
21
30
|
}
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9zdFJlZnVuZFJldHJvUmVtaXNzaW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL2NjcGF5LXdlYi1jb21wb25lbnQvIiwic291cmNlcyI6WyJsaWIvaW50ZXJmYWNlcy9Qb3N0UmVmdW5kUmV0cm9SZW1pc3Npb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUdBO0lBUUksa0NBQVksZUFBdUIsRUFBRSxpQkFBMEIsRUFBRSxhQUFzQixFQUFFLGFBQWtCLEVBQUUsSUFBVyxFQUFDLGVBQW1CO1FBQzdJLElBQUksQ0FBQyxlQUFlLEdBQUcsZUFBZSxDQUFDO1FBQ3RDLElBQUksQ0FBQyxpQkFBaUIsR0FBRSxpQkFBaUIsQ0FBQztRQUMxQyxJQUFJLENBQUMsYUFBYSxHQUFHLGFBQWEsQ0FBQztRQUNwQyxJQUFJLENBQUMsYUFBYSxHQUFHLGFBQWEsQ0FBQztRQUNuQyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztRQUNoQixJQUFJLENBQUMsZUFBZSxHQUFHLGVBQWUsQ0FBQztJQUN2QyxDQUFDO0lBQ0wsK0JBQUM7QUFBRCxDQUFDLEFBaEJELElBZ0JDOzs7O0lBZkMsbURBQXdCOztJQUN4QixxREFBMEI7O0lBQzFCLGlEQUFzQjs7SUFDdEIsaURBQW1COztJQUNuQix3Q0FBWTs7SUFDWixtREFBc0MiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJRmVlIH0gZnJvbSBcIi4vSUZlZVwiO1xuaW1wb3J0IHsgSVJlZnVuZENvbnRhY3REZXRhaWxzIH0gZnJvbSBcIi4vSVJlZnVuZENvbnRhY3REZXRhaWxzXCI7XG5cbmV4cG9ydCBjbGFzcyBQb3N0UmVmdW5kUmV0cm9SZW1pc3Npb24ge1xuICBjY2RfY2FzZV9udW1iZXI6IHN0cmluZztcbiAgcGF5bWVudF9yZWZlcmVuY2U6IHN0cmluZztcbiAgcmVmdW5kX3JlYXNvbjogc3RyaW5nO1xuICByZWZ1bmRfYW1vdW50OiBhbnk7XG4gIGZlZXM6IGFueVtdO1xuICBjb250YWN0X2RldGFpbHM6IElSZWZ1bmRDb250YWN0RGV0YWlsc1xuICBcbiAgICBjb25zdHJ1Y3RvcihjY2RfY2FzZV9udW1iZXI6IHN0cmluZywgcGF5bWVudF9yZWZlcmVuY2UgOiBzdHJpbmcsIHJlZnVuZF9yZWFzb24gOiBzdHJpbmcsIHJlZnVuZF9hbW91bnQ6IGFueSwgZmVlczogYW55W10sY29udGFjdF9kZXRhaWxzOmFueSkge1xuXHQgIHRoaXMuY2NkX2Nhc2VfbnVtYmVyID0gY2NkX2Nhc2VfbnVtYmVyO1xuICAgIHRoaXMucGF5bWVudF9yZWZlcmVuY2U9IHBheW1lbnRfcmVmZXJlbmNlO1xuICAgIHRoaXMucmVmdW5kX3JlYXNvbiA9IHJlZnVuZF9yZWFzb247XG5cdCAgdGhpcy5yZWZ1bmRfYW1vdW50ID0gcmVmdW5kX2Ftb3VudDtcblx0ICB0aGlzLmZlZXMgPSBmZWVzO1xuICAgIHRoaXMuY29udGFjdF9kZXRhaWxzID0gY29udGFjdF9kZXRhaWxzO1xuICAgIH0gXG59Il19
|
|
@@ -3166,9 +3166,14 @@ class CaseTransactionsComponent {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
3168
3168
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
this.
|
|
3169
|
+
if (this.paymentLibComponent.SERVICEREQUEST !== undefined) {
|
|
3170
|
+
this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
|
|
3171
|
+
if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
|
|
3172
|
+
this.serviceRequestValue = 'true';
|
|
3173
|
+
}
|
|
3174
|
+
else {
|
|
3175
|
+
this.serviceRequestValue = 'false';
|
|
3176
|
+
}
|
|
3172
3177
|
}
|
|
3173
3178
|
else {
|
|
3174
3179
|
this.serviceRequestValue = 'false';
|
|
@@ -6270,14 +6275,20 @@ class AddRetroRemissionRequest {
|
|
|
6270
6275
|
*/
|
|
6271
6276
|
class PostRefundRetroRemission {
|
|
6272
6277
|
/**
|
|
6278
|
+
* @param {?} ccd_case_number
|
|
6273
6279
|
* @param {?} payment_reference
|
|
6274
6280
|
* @param {?} refund_reason
|
|
6275
|
-
* @param {?}
|
|
6281
|
+
* @param {?} refund_amount
|
|
6282
|
+
* @param {?} fees
|
|
6283
|
+
* @param {?} contact_details
|
|
6276
6284
|
*/
|
|
6277
|
-
constructor(payment_reference, refund_reason,
|
|
6285
|
+
constructor(ccd_case_number, payment_reference, refund_reason, refund_amount, fees, contact_details) {
|
|
6286
|
+
this.ccd_case_number = ccd_case_number;
|
|
6278
6287
|
this.payment_reference = payment_reference;
|
|
6279
6288
|
this.refund_reason = refund_reason;
|
|
6280
|
-
this.
|
|
6289
|
+
this.refund_amount = refund_amount;
|
|
6290
|
+
this.fees = fees;
|
|
6291
|
+
this.contact_details = contact_details;
|
|
6281
6292
|
}
|
|
6282
6293
|
}
|
|
6283
6294
|
|
|
@@ -7203,7 +7214,7 @@ class AddRemissionComponent {
|
|
|
7203
7214
|
*/
|
|
7204
7215
|
value => value.selected === true));
|
|
7205
7216
|
/** @type {?} */
|
|
7206
|
-
const requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason, this.contactDetailsObj);
|
|
7217
|
+
const requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
|
|
7207
7218
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
7208
7219
|
* @param {?} response
|
|
7209
7220
|
* @return {?}
|
|
@@ -8419,10 +8430,12 @@ class IResubmitRefundRequest {
|
|
|
8419
8430
|
/**
|
|
8420
8431
|
* @param {?} refund_reason
|
|
8421
8432
|
* @param {?} amount
|
|
8433
|
+
* @param {?} contact_details
|
|
8422
8434
|
*/
|
|
8423
|
-
constructor(refund_reason, amount) {
|
|
8435
|
+
constructor(refund_reason, amount, contact_details) {
|
|
8424
8436
|
this.refund_reason = refund_reason;
|
|
8425
8437
|
this.amount = amount;
|
|
8438
|
+
this.contact_details = contact_details;
|
|
8426
8439
|
}
|
|
8427
8440
|
}
|
|
8428
8441
|
|
|
@@ -8765,11 +8778,12 @@ class RefundStatusComponent {
|
|
|
8765
8778
|
* @return {?}
|
|
8766
8779
|
*/
|
|
8767
8780
|
gotoReviewRefundConfirmationPage() {
|
|
8768
|
-
if (this.oldRefundReason === this.refundlist.reason) {
|
|
8769
|
-
|
|
8770
|
-
}
|
|
8781
|
+
// if (this.oldRefundReason === this.refundlist.reason) {
|
|
8782
|
+
// this.refundCode = '';
|
|
8783
|
+
// }
|
|
8784
|
+
this.refundCode = this.refundlist.reason;
|
|
8771
8785
|
/** @type {?} */
|
|
8772
|
-
const resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
8786
|
+
const resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount, this.refundlist.contact_details);
|
|
8773
8787
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe((/**
|
|
8774
8788
|
* @param {?} response
|
|
8775
8789
|
* @return {?}
|