@hmcts/ccpay-web-component 5.0.7-beta47 → 5.0.7-beta48
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 +31 -57
- 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 +9 -19
- package/esm2015/lib/components/payment-view/payment-view.component.js +6 -4
- package/esm2015/lib/components/process-refund/process-refund.component.js +7 -17
- package/esm2015/lib/components/refund-status/refund-status.component.js +8 -18
- package/esm2015/lib/components/service-request/service-request.component.js +6 -4
- package/esm5/lib/components/add-remission/add-remission.component.js +9 -19
- package/esm5/lib/components/payment-view/payment-view.component.js +6 -4
- package/esm5/lib/components/process-refund/process-refund.component.js +7 -17
- package/esm5/lib/components/refund-status/refund-status.component.js +8 -18
- package/esm5/lib/components/service-request/service-request.component.js +6 -4
- package/fesm2015/hmcts-ccpay-web-component.js +31 -57
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +31 -57
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +1 -1
- package/lib/components/payment-view/payment-view.component.d.ts +1 -1
- package/lib/components/process-refund/process-refund.component.d.ts +1 -1
- package/lib/components/refund-status/refund-status.component.d.ts +1 -1
- package/lib/components/service-request/service-request.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2109,7 +2109,7 @@
|
|
|
2109
2109
|
function (obj) {
|
|
2110
2110
|
this.contactDetailsObj = obj;
|
|
2111
2111
|
this.notificationPreview = false;
|
|
2112
|
-
this.
|
|
2112
|
+
this.getTemplateInstructionType(this.paymentGroup.payments[0]);
|
|
2113
2113
|
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
2114
2114
|
};
|
|
2115
2115
|
/**
|
|
@@ -2162,9 +2162,11 @@
|
|
|
2162
2162
|
*/
|
|
2163
2163
|
function (payment) {
|
|
2164
2164
|
if (payment == undefined || payment == null) {
|
|
2165
|
-
|
|
2165
|
+
this.templateInstructionType = 'Template';
|
|
2166
|
+
}
|
|
2167
|
+
else {
|
|
2168
|
+
this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
|
|
2166
2169
|
}
|
|
2167
|
-
return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
|
|
2168
2170
|
};
|
|
2169
2171
|
/**
|
|
2170
2172
|
* @return {?}
|
|
@@ -2540,7 +2542,7 @@
|
|
|
2540
2542
|
_this.errorMessage = ( /** @type {?} */(error.replace(/"/g, "")));
|
|
2541
2543
|
_this.isCPODown = true;
|
|
2542
2544
|
}));
|
|
2543
|
-
this.
|
|
2545
|
+
this.getTemplateInstructionType(this.paymentObj, this.refundlistsource.payment_reference);
|
|
2544
2546
|
};
|
|
2545
2547
|
/**
|
|
2546
2548
|
* @param {?} code
|
|
@@ -2933,32 +2935,22 @@
|
|
|
2933
2935
|
function (payment, paymentReference) {
|
|
2934
2936
|
var _this = this;
|
|
2935
2937
|
if (payment == undefined || payment == null || payment.reference != paymentReference) {
|
|
2936
|
-
console.log('payment reference: ' + paymentReference);
|
|
2937
2938
|
this.paymentViewService.getPaymentDetails(paymentReference).subscribe(( /**
|
|
2938
2939
|
* @param {?} payment
|
|
2939
2940
|
* @return {?}
|
|
2940
2941
|
*/function (payment) {
|
|
2941
|
-
console.log('Retreived payment: ' + JSON.stringify(payment));
|
|
2942
2942
|
_this.paymentObj = payment;
|
|
2943
2943
|
_this.paymentObj.reference = paymentReference;
|
|
2944
|
-
|
|
2944
|
+
_this.templateInstructionType = _this.notificationService.getNotificationInstructionType(_this.paymentObj.channel, _this.paymentObj.method);
|
|
2945
2945
|
}), ( /**
|
|
2946
2946
|
* @param {?} error
|
|
2947
2947
|
* @return {?}
|
|
2948
|
-
*/function (error) {
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
console.log('if condition');
|
|
2952
|
-
return 'Template';
|
|
2953
|
-
}
|
|
2954
|
-
else {
|
|
2955
|
-
console.log('else condition');
|
|
2956
|
-
return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
|
|
2957
|
-
}
|
|
2948
|
+
*/function (error) {
|
|
2949
|
+
_this.templateInstructionType = 'Template';
|
|
2950
|
+
}));
|
|
2958
2951
|
}
|
|
2959
2952
|
else {
|
|
2960
|
-
|
|
2961
|
-
return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
|
|
2953
|
+
this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
|
|
2962
2954
|
}
|
|
2963
2955
|
};
|
|
2964
2956
|
/**
|
|
@@ -8694,13 +8686,13 @@
|
|
|
8694
8686
|
this.viewCompStatus = '';
|
|
8695
8687
|
this.notificationPreview = false;
|
|
8696
8688
|
if (type == 'checkaddRefundpage') {
|
|
8697
|
-
this.
|
|
8689
|
+
this.getTemplateInstructionType(this.remessionPayment.reference, this.remessionPayment);
|
|
8698
8690
|
}
|
|
8699
8691
|
else if (type == 'checkissuerefundpage') {
|
|
8700
|
-
this.
|
|
8692
|
+
this.getTemplateInstructionType(this.payment.reference, this.payment);
|
|
8701
8693
|
}
|
|
8702
8694
|
else if (type == 'addrefundcheckandanswer') {
|
|
8703
|
-
this.
|
|
8695
|
+
this.getTemplateInstructionType(this.paymentReference, this.paymentObj);
|
|
8704
8696
|
}
|
|
8705
8697
|
this.viewStatus = type;
|
|
8706
8698
|
};
|
|
@@ -8999,32 +8991,22 @@
|
|
|
8999
8991
|
function (paymentReference, payment) {
|
|
9000
8992
|
var _this = this;
|
|
9001
8993
|
if (payment == undefined || payment == null || payment.reference != paymentReference) {
|
|
9002
|
-
console.log('payment reference: ' + paymentReference);
|
|
9003
8994
|
this.paymentViewService.getPaymentDetails(paymentReference).subscribe(( /**
|
|
9004
8995
|
* @param {?} payment
|
|
9005
8996
|
* @return {?}
|
|
9006
8997
|
*/function (payment) {
|
|
9007
|
-
console.log('Retreived payment: ' + JSON.stringify(payment));
|
|
9008
8998
|
_this.paymentObj = payment;
|
|
9009
8999
|
_this.paymentObj.reference = paymentReference;
|
|
9010
|
-
|
|
9000
|
+
_this.templateInstructionType = _this.notificationService.getNotificationInstructionType(_this.paymentObj.channel, _this.paymentObj.method);
|
|
9011
9001
|
}), ( /**
|
|
9012
9002
|
* @param {?} error
|
|
9013
9003
|
* @return {?}
|
|
9014
|
-
*/function (error) {
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
console.log('if condition');
|
|
9018
|
-
return 'Template';
|
|
9019
|
-
}
|
|
9020
|
-
else {
|
|
9021
|
-
console.log('else condition');
|
|
9022
|
-
return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
|
|
9023
|
-
}
|
|
9004
|
+
*/function (error) {
|
|
9005
|
+
_this.templateInstructionType = 'Template';
|
|
9006
|
+
}));
|
|
9024
9007
|
}
|
|
9025
9008
|
else {
|
|
9026
|
-
|
|
9027
|
-
return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
|
|
9009
|
+
this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
|
|
9028
9010
|
}
|
|
9029
9011
|
};
|
|
9030
9012
|
AddRemissionComponent.decorators = [
|
|
@@ -10342,7 +10324,7 @@
|
|
|
10342
10324
|
function () {
|
|
10343
10325
|
var _this = this;
|
|
10344
10326
|
this.viewName = 'reviewandsubmitview';
|
|
10345
|
-
this.
|
|
10327
|
+
this.getTemplateInstructionType(this.paymentObj, this.refundlist.payment_reference);
|
|
10346
10328
|
this.oldRefundReason = this.refundlist.reason;
|
|
10347
10329
|
this.changedAmount = this.refundlist.amount;
|
|
10348
10330
|
this.refundreason = this.refundStatusHistories.filter(( /**
|
|
@@ -10575,7 +10557,7 @@
|
|
|
10575
10557
|
*/
|
|
10576
10558
|
function (obj) {
|
|
10577
10559
|
this.addressDetails = obj;
|
|
10578
|
-
this.
|
|
10560
|
+
this.getTemplateInstructionType(this.paymentObj, this.refundlist.payment_reference);
|
|
10579
10561
|
this.notificationPreview = false;
|
|
10580
10562
|
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
10581
10563
|
};
|
|
@@ -10717,32 +10699,22 @@
|
|
|
10717
10699
|
function (payment, paymentReference) {
|
|
10718
10700
|
var _this = this;
|
|
10719
10701
|
if (payment == undefined || payment == null || payment.reference != paymentReference) {
|
|
10720
|
-
console.log('payment reference: ' + paymentReference);
|
|
10721
10702
|
this.paymentViewService.getPaymentDetails(paymentReference).subscribe(( /**
|
|
10722
10703
|
* @param {?} payment
|
|
10723
10704
|
* @return {?}
|
|
10724
10705
|
*/function (payment) {
|
|
10725
|
-
console.log('Retreived payment: ' + JSON.stringify(payment));
|
|
10726
10706
|
_this.paymentObj = payment;
|
|
10727
10707
|
_this.paymentObj.reference = paymentReference;
|
|
10728
|
-
|
|
10708
|
+
_this.templateInstructionType = _this.notificationService.getNotificationInstructionType(_this.paymentObj.channel, _this.paymentObj.method);
|
|
10729
10709
|
}), ( /**
|
|
10730
10710
|
* @param {?} error
|
|
10731
10711
|
* @return {?}
|
|
10732
|
-
*/function (error) {
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
console.log('if condition');
|
|
10736
|
-
return 'Template';
|
|
10737
|
-
}
|
|
10738
|
-
else {
|
|
10739
|
-
console.log('else condition');
|
|
10740
|
-
return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
|
|
10741
|
-
}
|
|
10712
|
+
*/function (error) {
|
|
10713
|
+
_this.templateInstructionType = 'Template';
|
|
10714
|
+
}));
|
|
10742
10715
|
}
|
|
10743
10716
|
else {
|
|
10744
|
-
|
|
10745
|
-
return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
|
|
10717
|
+
this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
|
|
10746
10718
|
}
|
|
10747
10719
|
};
|
|
10748
10720
|
/**
|
|
@@ -11263,7 +11235,7 @@
|
|
|
11263
11235
|
this.contactDetailsObj = obj;
|
|
11264
11236
|
this.viewStatus = '';
|
|
11265
11237
|
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
11266
|
-
this.
|
|
11238
|
+
this.getTemplateInstructionType(this.paymentGroupList.payments[0]);
|
|
11267
11239
|
this.notificationPreview = false;
|
|
11268
11240
|
};
|
|
11269
11241
|
/**
|
|
@@ -11363,9 +11335,11 @@
|
|
|
11363
11335
|
*/
|
|
11364
11336
|
function (payment) {
|
|
11365
11337
|
if (payment == undefined || payment == null) {
|
|
11366
|
-
|
|
11338
|
+
this.templateInstructionType = 'Template';
|
|
11339
|
+
}
|
|
11340
|
+
else {
|
|
11341
|
+
this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
|
|
11367
11342
|
}
|
|
11368
|
-
return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
|
|
11369
11343
|
};
|
|
11370
11344
|
/**
|
|
11371
11345
|
* @return {?}
|