@colijnit/transaction 254.1.22 → 254.1.23

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.
@@ -33,8 +33,8 @@
33
33
  function Version() {
34
34
  this.name = "@colijnit/transaction";
35
35
  this.description = "Colijn IT transaction package";
36
- this.symVer = "254.1.22";
37
- this.publishDate = "12-7-2024 13:09:49";
36
+ this.symVer = "254.1.23";
37
+ this.publishDate = "12-7-2024 16:48:19";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -32630,6 +32630,7 @@
32630
32630
  this.paymentFailed = new rxjs.Subject();
32631
32631
  this.pollingForStatusStarted = new rxjs.Subject();
32632
32632
  this.pollingForStatusEnded = new rxjs.Subject();
32633
+ this.doNotFetchAmountToPayForRemaining = false;
32633
32634
  this._paymentStatusPollIntervalMs = 5000;
32634
32635
  this._paymentStatusMaxPollInterval = 60;
32635
32636
  this._paymentStatusPollIntervalCount = 0;
@@ -32742,15 +32743,19 @@
32742
32743
  if (info) {
32743
32744
  this.amountToPay = info.depositRemainderAmount;
32744
32745
  }
32745
- return [3 /*break*/, 4];
32746
- case 2: return [4 /*yield*/, this._paymentConnectorService.getRegisteredPaymentInfo(this.transactionUuid)];
32747
- case 3:
32746
+ return [3 /*break*/, 5];
32747
+ case 2:
32748
+ if (!!this.doNotFetchAmountToPayForRemaining) return [3 /*break*/, 3];
32749
+ this.amountToPay = this.amount;
32750
+ return [3 /*break*/, 5];
32751
+ case 3: return [4 /*yield*/, this._paymentConnectorService.getRegisteredPaymentInfo(this.transactionUuid)];
32752
+ case 4:
32748
32753
  info = _a.sent();
32749
32754
  if (info) {
32750
32755
  this.amountToPay = this.amount - info.totalAmount;
32751
32756
  }
32752
- _a.label = 4;
32753
- case 4: return [2 /*return*/];
32757
+ _a.label = 5;
32758
+ case 5: return [2 /*return*/];
32754
32759
  }
32755
32760
  });
32756
32761
  });
@@ -40550,7 +40555,7 @@
40550
40555
  request.transactionUuid = _this.transactionUuid;
40551
40556
  _this._paymentConnectorService.calculateAmountToPayWithLineSelection(request).then(function (data) {
40552
40557
  _this.transactionService.remainingAmount = data ? data.amountToPay : 0;
40553
- _this.remainingAmountChange.next(data ? data.amountSelected : 0);
40558
+ _this.remainingAmountChange.next(data ? data.amountToPay : 0);
40554
40559
  });
40555
40560
  }
40556
40561
  }));