@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.
Files changed (24) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +31 -57
  2. package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
  3. package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
  4. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
  5. package/esm2015/lib/components/add-remission/add-remission.component.js +9 -19
  6. package/esm2015/lib/components/payment-view/payment-view.component.js +6 -4
  7. package/esm2015/lib/components/process-refund/process-refund.component.js +7 -17
  8. package/esm2015/lib/components/refund-status/refund-status.component.js +8 -18
  9. package/esm2015/lib/components/service-request/service-request.component.js +6 -4
  10. package/esm5/lib/components/add-remission/add-remission.component.js +9 -19
  11. package/esm5/lib/components/payment-view/payment-view.component.js +6 -4
  12. package/esm5/lib/components/process-refund/process-refund.component.js +7 -17
  13. package/esm5/lib/components/refund-status/refund-status.component.js +8 -18
  14. package/esm5/lib/components/service-request/service-request.component.js +6 -4
  15. package/fesm2015/hmcts-ccpay-web-component.js +31 -57
  16. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  17. package/fesm5/hmcts-ccpay-web-component.js +31 -57
  18. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  19. package/lib/components/add-remission/add-remission.component.d.ts +1 -1
  20. package/lib/components/payment-view/payment-view.component.d.ts +1 -1
  21. package/lib/components/process-refund/process-refund.component.d.ts +1 -1
  22. package/lib/components/refund-status/refund-status.component.d.ts +1 -1
  23. package/lib/components/service-request/service-request.component.d.ts +1 -1
  24. package/package.json +1 -1
@@ -2104,7 +2104,7 @@ var PaymentViewComponent = /** @class */ (function () {
2104
2104
  function (obj) {
2105
2105
  this.contactDetailsObj = obj;
2106
2106
  this.notificationPreview = false;
2107
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentGroup.payments[0]);
2107
+ this.getTemplateInstructionType(this.paymentGroup.payments[0]);
2108
2108
  this.viewCompStatus = 'overpaymentcheckandanswer';
2109
2109
  };
2110
2110
  /**
@@ -2157,9 +2157,11 @@ var PaymentViewComponent = /** @class */ (function () {
2157
2157
  */
2158
2158
  function (payment) {
2159
2159
  if (payment == undefined || payment == null) {
2160
- return 'Template';
2160
+ this.templateInstructionType = 'Template';
2161
+ }
2162
+ else {
2163
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
2161
2164
  }
2162
- return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
2163
2165
  };
2164
2166
  /**
2165
2167
  * @return {?}
@@ -2539,7 +2541,7 @@ var ProcessRefundComponent = /** @class */ (function () {
2539
2541
  _this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
2540
2542
  _this.isCPODown = true;
2541
2543
  }));
2542
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentObj, this.refundlistsource.payment_reference);
2544
+ this.getTemplateInstructionType(this.paymentObj, this.refundlistsource.payment_reference);
2543
2545
  };
2544
2546
  /**
2545
2547
  * @param {?} code
@@ -2937,34 +2939,24 @@ var ProcessRefundComponent = /** @class */ (function () {
2937
2939
  function (payment, paymentReference) {
2938
2940
  var _this = this;
2939
2941
  if (payment == undefined || payment == null || payment.reference != paymentReference) {
2940
- console.log('payment reference: ' + paymentReference);
2941
2942
  this.paymentViewService.getPaymentDetails(paymentReference).subscribe((/**
2942
2943
  * @param {?} payment
2943
2944
  * @return {?}
2944
2945
  */
2945
2946
  function (payment) {
2946
- console.log('Retreived payment: ' + JSON.stringify(payment));
2947
2947
  _this.paymentObj = payment;
2948
2948
  _this.paymentObj.reference = paymentReference;
2949
- console.log('Retreived payment Obj inside: ' + JSON.stringify(_this.paymentObj));
2949
+ _this.templateInstructionType = _this.notificationService.getNotificationInstructionType(_this.paymentObj.channel, _this.paymentObj.method);
2950
2950
  }), (/**
2951
2951
  * @param {?} error
2952
2952
  * @return {?}
2953
2953
  */
2954
- function (error) { }));
2955
- console.log('Retrieved Payment Object: ' + JSON.stringify(this.paymentObj));
2956
- if (this.paymentObj == undefined || this.paymentObj == null || this.paymentObj.reference != paymentReference) {
2957
- console.log('if condition');
2958
- return 'Template';
2959
- }
2960
- else {
2961
- console.log('else condition');
2962
- return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
2963
- }
2954
+ function (error) {
2955
+ _this.templateInstructionType = 'Template';
2956
+ }));
2964
2957
  }
2965
2958
  else {
2966
- console.log('Retrieved Payment Object main outside: ' + JSON.stringify(this.paymentObj));
2967
- return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
2959
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
2968
2960
  }
2969
2961
  };
2970
2962
  /**
@@ -8839,13 +8831,13 @@ var AddRemissionComponent = /** @class */ (function () {
8839
8831
  this.viewCompStatus = '';
8840
8832
  this.notificationPreview = false;
8841
8833
  if (type == 'checkaddRefundpage') {
8842
- this.templateInstructionType = this.getTemplateInstructionType(this.remessionPayment.reference, this.remessionPayment);
8834
+ this.getTemplateInstructionType(this.remessionPayment.reference, this.remessionPayment);
8843
8835
  }
8844
8836
  else if (type == 'checkissuerefundpage') {
8845
- this.templateInstructionType = this.getTemplateInstructionType(this.payment.reference, this.payment);
8837
+ this.getTemplateInstructionType(this.payment.reference, this.payment);
8846
8838
  }
8847
8839
  else if (type == 'addrefundcheckandanswer') {
8848
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentReference, this.paymentObj);
8840
+ this.getTemplateInstructionType(this.paymentReference, this.paymentObj);
8849
8841
  }
8850
8842
  this.viewStatus = type;
8851
8843
  };
@@ -9150,34 +9142,24 @@ var AddRemissionComponent = /** @class */ (function () {
9150
9142
  function (paymentReference, payment) {
9151
9143
  var _this = this;
9152
9144
  if (payment == undefined || payment == null || payment.reference != paymentReference) {
9153
- console.log('payment reference: ' + paymentReference);
9154
9145
  this.paymentViewService.getPaymentDetails(paymentReference).subscribe((/**
9155
9146
  * @param {?} payment
9156
9147
  * @return {?}
9157
9148
  */
9158
9149
  function (payment) {
9159
- console.log('Retreived payment: ' + JSON.stringify(payment));
9160
9150
  _this.paymentObj = payment;
9161
9151
  _this.paymentObj.reference = paymentReference;
9162
- console.log('Retreived payment Obj inside: ' + JSON.stringify(_this.paymentObj));
9152
+ _this.templateInstructionType = _this.notificationService.getNotificationInstructionType(_this.paymentObj.channel, _this.paymentObj.method);
9163
9153
  }), (/**
9164
9154
  * @param {?} error
9165
9155
  * @return {?}
9166
9156
  */
9167
- function (error) { }));
9168
- console.log('Retrieved Payment Object: ' + JSON.stringify(this.paymentObj));
9169
- if (this.paymentObj == undefined || this.paymentObj == null || this.paymentObj.reference != paymentReference) {
9170
- console.log('if condition');
9171
- return 'Template';
9172
- }
9173
- else {
9174
- console.log('else condition');
9175
- return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
9176
- }
9157
+ function (error) {
9158
+ _this.templateInstructionType = 'Template';
9159
+ }));
9177
9160
  }
9178
9161
  else {
9179
- console.log('Retrieved Payment Object main outside: ' + JSON.stringify(this.paymentObj));
9180
- return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
9162
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
9181
9163
  }
9182
9164
  };
9183
9165
  AddRemissionComponent.decorators = [
@@ -10511,7 +10493,7 @@ var RefundStatusComponent = /** @class */ (function () {
10511
10493
  function () {
10512
10494
  var _this = this;
10513
10495
  this.viewName = 'reviewandsubmitview';
10514
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentObj, this.refundlist.payment_reference);
10496
+ this.getTemplateInstructionType(this.paymentObj, this.refundlist.payment_reference);
10515
10497
  this.oldRefundReason = this.refundlist.reason;
10516
10498
  this.changedAmount = this.refundlist.amount;
10517
10499
  this.refundreason = this.refundStatusHistories.filter((/**
@@ -10749,7 +10731,7 @@ var RefundStatusComponent = /** @class */ (function () {
10749
10731
  */
10750
10732
  function (obj) {
10751
10733
  this.addressDetails = obj;
10752
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentObj, this.refundlist.payment_reference);
10734
+ this.getTemplateInstructionType(this.paymentObj, this.refundlist.payment_reference);
10753
10735
  this.notificationPreview = false;
10754
10736
  this.viewName = 'revieweditdetailsconfirmationpage';
10755
10737
  };
@@ -10895,34 +10877,24 @@ var RefundStatusComponent = /** @class */ (function () {
10895
10877
  function (payment, paymentReference) {
10896
10878
  var _this = this;
10897
10879
  if (payment == undefined || payment == null || payment.reference != paymentReference) {
10898
- console.log('payment reference: ' + paymentReference);
10899
10880
  this.paymentViewService.getPaymentDetails(paymentReference).subscribe((/**
10900
10881
  * @param {?} payment
10901
10882
  * @return {?}
10902
10883
  */
10903
10884
  function (payment) {
10904
- console.log('Retreived payment: ' + JSON.stringify(payment));
10905
10885
  _this.paymentObj = payment;
10906
10886
  _this.paymentObj.reference = paymentReference;
10907
- console.log('Retreived payment Obj inside: ' + JSON.stringify(_this.paymentObj));
10887
+ _this.templateInstructionType = _this.notificationService.getNotificationInstructionType(_this.paymentObj.channel, _this.paymentObj.method);
10908
10888
  }), (/**
10909
10889
  * @param {?} error
10910
10890
  * @return {?}
10911
10891
  */
10912
- function (error) { }));
10913
- console.log('Retrieved Payment Object: ' + JSON.stringify(this.paymentObj));
10914
- if (this.paymentObj == undefined || this.paymentObj == null || this.paymentObj.reference != paymentReference) {
10915
- console.log('if condition');
10916
- return 'Template';
10917
- }
10918
- else {
10919
- console.log('else condition');
10920
- return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
10921
- }
10892
+ function (error) {
10893
+ _this.templateInstructionType = 'Template';
10894
+ }));
10922
10895
  }
10923
10896
  else {
10924
- console.log('Retrieved Payment Object main outside: ' + JSON.stringify(this.paymentObj));
10925
- return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
10897
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
10926
10898
  }
10927
10899
  };
10928
10900
  /**
@@ -11462,7 +11434,7 @@ var ServiceRequestComponent = /** @class */ (function () {
11462
11434
  this.contactDetailsObj = obj;
11463
11435
  this.viewStatus = '';
11464
11436
  this.viewCompStatus = 'overpaymentcheckandanswer';
11465
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentGroupList.payments[0]);
11437
+ this.getTemplateInstructionType(this.paymentGroupList.payments[0]);
11466
11438
  this.notificationPreview = false;
11467
11439
  };
11468
11440
  /**
@@ -11565,9 +11537,11 @@ var ServiceRequestComponent = /** @class */ (function () {
11565
11537
  */
11566
11538
  function (payment) {
11567
11539
  if (payment == undefined || payment == null) {
11568
- return 'Template';
11540
+ this.templateInstructionType = 'Template';
11541
+ }
11542
+ else {
11543
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
11569
11544
  }
11570
- return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
11571
11545
  };
11572
11546
  /**
11573
11547
  * @return {?}