@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
@@ -1706,7 +1706,7 @@ class PaymentViewComponent {
1706
1706
  getContactDetails(obj) {
1707
1707
  this.contactDetailsObj = obj;
1708
1708
  this.notificationPreview = false;
1709
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentGroup.payments[0]);
1709
+ this.getTemplateInstructionType(this.paymentGroup.payments[0]);
1710
1710
  this.viewCompStatus = 'overpaymentcheckandanswer';
1711
1711
  }
1712
1712
  /**
@@ -1744,9 +1744,11 @@ class PaymentViewComponent {
1744
1744
  */
1745
1745
  getTemplateInstructionType(payment) {
1746
1746
  if (payment == undefined || payment == null) {
1747
- return 'Template';
1747
+ this.templateInstructionType = 'Template';
1748
+ }
1749
+ else {
1750
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
1748
1751
  }
1749
- return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
1750
1752
  }
1751
1753
  /**
1752
1754
  * @return {?}
@@ -2080,7 +2082,7 @@ class ProcessRefundComponent {
2080
2082
  this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
2081
2083
  this.isCPODown = true;
2082
2084
  }));
2083
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentObj, this.refundlistsource.payment_reference);
2085
+ this.getTemplateInstructionType(this.paymentObj, this.refundlistsource.payment_reference);
2084
2086
  }
2085
2087
  /**
2086
2088
  * @param {?} code
@@ -2431,34 +2433,24 @@ class ProcessRefundComponent {
2431
2433
  */
2432
2434
  getTemplateInstructionType(payment, paymentReference) {
2433
2435
  if (payment == undefined || payment == null || payment.reference != paymentReference) {
2434
- console.log('payment reference: ' + paymentReference);
2435
2436
  this.paymentViewService.getPaymentDetails(paymentReference).subscribe((/**
2436
2437
  * @param {?} payment
2437
2438
  * @return {?}
2438
2439
  */
2439
2440
  payment => {
2440
- console.log('Retreived payment: ' + JSON.stringify(payment));
2441
2441
  this.paymentObj = payment;
2442
2442
  this.paymentObj.reference = paymentReference;
2443
- console.log('Retreived payment Obj inside: ' + JSON.stringify(this.paymentObj));
2443
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
2444
2444
  }), (/**
2445
2445
  * @param {?} error
2446
2446
  * @return {?}
2447
2447
  */
2448
- (error) => { }));
2449
- console.log('Retrieved Payment Object: ' + JSON.stringify(this.paymentObj));
2450
- if (this.paymentObj == undefined || this.paymentObj == null || this.paymentObj.reference != paymentReference) {
2451
- console.log('if condition');
2452
- return 'Template';
2453
- }
2454
- else {
2455
- console.log('else condition');
2456
- return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
2457
- }
2448
+ (error) => {
2449
+ this.templateInstructionType = 'Template';
2450
+ }));
2458
2451
  }
2459
2452
  else {
2460
- console.log('Retrieved Payment Object main outside: ' + JSON.stringify(this.paymentObj));
2461
- return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
2453
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
2462
2454
  }
2463
2455
  }
2464
2456
  /**
@@ -7728,13 +7720,13 @@ class AddRemissionComponent {
7728
7720
  this.viewCompStatus = '';
7729
7721
  this.notificationPreview = false;
7730
7722
  if (type == 'checkaddRefundpage') {
7731
- this.templateInstructionType = this.getTemplateInstructionType(this.remessionPayment.reference, this.remessionPayment);
7723
+ this.getTemplateInstructionType(this.remessionPayment.reference, this.remessionPayment);
7732
7724
  }
7733
7725
  else if (type == 'checkissuerefundpage') {
7734
- this.templateInstructionType = this.getTemplateInstructionType(this.payment.reference, this.payment);
7726
+ this.getTemplateInstructionType(this.payment.reference, this.payment);
7735
7727
  }
7736
7728
  else if (type == 'addrefundcheckandanswer') {
7737
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentReference, this.paymentObj);
7729
+ this.getTemplateInstructionType(this.paymentReference, this.paymentObj);
7738
7730
  }
7739
7731
  this.viewStatus = type;
7740
7732
  }
@@ -7994,34 +7986,24 @@ class AddRemissionComponent {
7994
7986
  */
7995
7987
  getTemplateInstructionType(paymentReference, payment) {
7996
7988
  if (payment == undefined || payment == null || payment.reference != paymentReference) {
7997
- console.log('payment reference: ' + paymentReference);
7998
7989
  this.paymentViewService.getPaymentDetails(paymentReference).subscribe((/**
7999
7990
  * @param {?} payment
8000
7991
  * @return {?}
8001
7992
  */
8002
7993
  payment => {
8003
- console.log('Retreived payment: ' + JSON.stringify(payment));
8004
7994
  this.paymentObj = payment;
8005
7995
  this.paymentObj.reference = paymentReference;
8006
- console.log('Retreived payment Obj inside: ' + JSON.stringify(this.paymentObj));
7996
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
8007
7997
  }), (/**
8008
7998
  * @param {?} error
8009
7999
  * @return {?}
8010
8000
  */
8011
- (error) => { }));
8012
- console.log('Retrieved Payment Object: ' + JSON.stringify(this.paymentObj));
8013
- if (this.paymentObj == undefined || this.paymentObj == null || this.paymentObj.reference != paymentReference) {
8014
- console.log('if condition');
8015
- return 'Template';
8016
- }
8017
- else {
8018
- console.log('else condition');
8019
- return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
8020
- }
8001
+ (error) => {
8002
+ this.templateInstructionType = 'Template';
8003
+ }));
8021
8004
  }
8022
8005
  else {
8023
- console.log('Retrieved Payment Object main outside: ' + JSON.stringify(this.paymentObj));
8024
- return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
8006
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
8025
8007
  }
8026
8008
  }
8027
8009
  }
@@ -9190,7 +9172,7 @@ class RefundStatusComponent {
9190
9172
  */
9191
9173
  gotoReviewAndReSubmitPage() {
9192
9174
  this.viewName = 'reviewandsubmitview';
9193
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentObj, this.refundlist.payment_reference);
9175
+ this.getTemplateInstructionType(this.paymentObj, this.refundlist.payment_reference);
9194
9176
  this.oldRefundReason = this.refundlist.reason;
9195
9177
  this.changedAmount = this.refundlist.amount;
9196
9178
  this.refundreason = this.refundStatusHistories.filter((/**
@@ -9384,7 +9366,7 @@ class RefundStatusComponent {
9384
9366
  */
9385
9367
  getContactDetails(obj) {
9386
9368
  this.addressDetails = obj;
9387
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentObj, this.refundlist.payment_reference);
9369
+ this.getTemplateInstructionType(this.paymentObj, this.refundlist.payment_reference);
9388
9370
  this.notificationPreview = false;
9389
9371
  this.viewName = 'revieweditdetailsconfirmationpage';
9390
9372
  }
@@ -9498,34 +9480,24 @@ class RefundStatusComponent {
9498
9480
  */
9499
9481
  getTemplateInstructionType(payment, paymentReference) {
9500
9482
  if (payment == undefined || payment == null || payment.reference != paymentReference) {
9501
- console.log('payment reference: ' + paymentReference);
9502
9483
  this.paymentViewService.getPaymentDetails(paymentReference).subscribe((/**
9503
9484
  * @param {?} payment
9504
9485
  * @return {?}
9505
9486
  */
9506
9487
  payment => {
9507
- console.log('Retreived payment: ' + JSON.stringify(payment));
9508
9488
  this.paymentObj = payment;
9509
9489
  this.paymentObj.reference = paymentReference;
9510
- console.log('Retreived payment Obj inside: ' + JSON.stringify(this.paymentObj));
9490
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
9511
9491
  }), (/**
9512
9492
  * @param {?} error
9513
9493
  * @return {?}
9514
9494
  */
9515
- (error) => { }));
9516
- console.log('Retrieved Payment Object: ' + JSON.stringify(this.paymentObj));
9517
- if (this.paymentObj == undefined || this.paymentObj == null || this.paymentObj.reference != paymentReference) {
9518
- console.log('if condition');
9519
- return 'Template';
9520
- }
9521
- else {
9522
- console.log('else condition');
9523
- return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
9524
- }
9495
+ (error) => {
9496
+ this.templateInstructionType = 'Template';
9497
+ }));
9525
9498
  }
9526
9499
  else {
9527
- console.log('Retrieved Payment Object main outside: ' + JSON.stringify(this.paymentObj));
9528
- return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
9500
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
9529
9501
  }
9530
9502
  }
9531
9503
  /**
@@ -9983,7 +9955,7 @@ class ServiceRequestComponent {
9983
9955
  this.contactDetailsObj = obj;
9984
9956
  this.viewStatus = '';
9985
9957
  this.viewCompStatus = 'overpaymentcheckandanswer';
9986
- this.templateInstructionType = this.getTemplateInstructionType(this.paymentGroupList.payments[0]);
9958
+ this.getTemplateInstructionType(this.paymentGroupList.payments[0]);
9987
9959
  this.notificationPreview = false;
9988
9960
  }
9989
9961
  /**
@@ -10067,9 +10039,11 @@ class ServiceRequestComponent {
10067
10039
  */
10068
10040
  getTemplateInstructionType(payment) {
10069
10041
  if (payment == undefined || payment == null) {
10070
- return 'Template';
10042
+ this.templateInstructionType = 'Template';
10043
+ }
10044
+ else {
10045
+ this.templateInstructionType = this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
10071
10046
  }
10072
- return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
10073
10047
  }
10074
10048
  /**
10075
10049
  * @return {?}