@zeniai/client-epic-state 4.13.98 → 4.13.99

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.
@@ -258,9 +258,14 @@ exports.showBillPayPromoPage = showBillPayPromoPage;
258
258
  const getActualPaymentDate = (billPayInfo) => {
259
259
  const billPaymentDate = billPayInfo.paymentDate;
260
260
  const billScheduledDate = billPayInfo.scheduledDate;
261
- return billScheduledDate != null && billScheduledDate.isAfter(billPaymentDate)
262
- ? billScheduledDate
263
- : billPaymentDate;
261
+ const isRefundInitiated = billPayInfo.isRefundInitiated;
262
+ const isRefundComplete = billPayInfo.isRefundComplete;
263
+ const refundInitiationTime = billPayInfo.refundInitiationTime;
264
+ return isRefundInitiated === true && isRefundComplete === false
265
+ ? refundInitiationTime
266
+ : billScheduledDate != null && billScheduledDate.isAfter(billPaymentDate)
267
+ ? billScheduledDate
268
+ : billPaymentDate;
264
269
  };
265
270
  exports.getActualPaymentDate = getActualPaymentDate;
266
271
  function isVerifiedStatusCode(statusCode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.13.98",
3
+ "version": "4.13.99",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",