@hmcts/ccpay-web-component 5.0.7-beta44 → 5.0.7-beta45

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.
@@ -2943,14 +2943,18 @@ var ProcessRefundComponent = /** @class */ (function () {
2943
2943
  */
2944
2944
  function (payment) {
2945
2945
  _this.paymentObj = payment;
2946
- return _this.notificationService.getNotificationInstructionType(_this.paymentObj.channel, _this.paymentObj.method);
2946
+ _this.paymentObj.reference = paymentReference;
2947
2947
  }), (/**
2948
2948
  * @param {?} error
2949
2949
  * @return {?}
2950
2950
  */
2951
- function (error) {
2951
+ function (error) { }));
2952
+ if (this.paymentObj != undefined && this.paymentObj != null && this.paymentObj.reference == paymentReference) {
2953
+ return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
2954
+ }
2955
+ else {
2952
2956
  return 'Template';
2953
- }));
2957
+ }
2954
2958
  }
2955
2959
  else {
2956
2960
  return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
@@ -9138,23 +9142,25 @@ var AddRemissionComponent = /** @class */ (function () {
9138
9142
  */
9139
9143
  function (paymentReference, payment) {
9140
9144
  var _this = this;
9141
- console.log('Hitting payment app');
9142
- if (payment == undefined || payment == null || (paymentReference != undefined && paymentReference != null && payment.reference != paymentReference)) {
9145
+ if (payment == undefined || payment == null || payment.reference != paymentReference) {
9143
9146
  this.paymentViewService.getPaymentDetails(paymentReference).subscribe((/**
9144
9147
  * @param {?} payment
9145
9148
  * @return {?}
9146
9149
  */
9147
9150
  function (payment) {
9148
- console.log('Payment Object received: ' + JSON.stringify(payment));
9149
9151
  _this.paymentObj = payment;
9150
- return _this.notificationService.getNotificationInstructionType(_this.paymentObj.channel, _this.paymentObj.method);
9152
+ _this.paymentObj.reference = paymentReference;
9151
9153
  }), (/**
9152
9154
  * @param {?} error
9153
9155
  * @return {?}
9154
9156
  */
9155
- function (error) {
9157
+ function (error) { }));
9158
+ if (this.paymentObj != undefined && this.paymentObj != null && this.paymentObj.reference == paymentReference) {
9159
+ return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
9160
+ }
9161
+ else {
9156
9162
  return 'Template';
9157
- }));
9163
+ }
9158
9164
  }
9159
9165
  else {
9160
9166
  return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);
@@ -10881,14 +10887,18 @@ var RefundStatusComponent = /** @class */ (function () {
10881
10887
  */
10882
10888
  function (payment) {
10883
10889
  _this.paymentObj = payment;
10884
- return _this.notificationService.getNotificationInstructionType(_this.paymentObj.channel, _this.paymentObj.method);
10890
+ _this.paymentObj.reference = paymentReference;
10885
10891
  }), (/**
10886
10892
  * @param {?} error
10887
10893
  * @return {?}
10888
10894
  */
10889
- function (error) {
10895
+ function (error) { }));
10896
+ if (this.paymentObj != undefined && this.paymentObj != null && this.paymentObj.reference == paymentReference) {
10897
+ return this.notificationService.getNotificationInstructionType(this.paymentObj.channel, this.paymentObj.method);
10898
+ }
10899
+ else {
10890
10900
  return 'Template';
10891
- }));
10901
+ }
10892
10902
  }
10893
10903
  else {
10894
10904
  return this.notificationService.getNotificationInstructionType(payment.channel, payment.method);