@zeniai/client-epic-state 4.19.64 → 4.19.65

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.
@@ -31,7 +31,7 @@ export interface ChargeCardRepayment {
31
31
  export interface ChargeCardRepaymentState {
32
32
  chargeCardRepaymentByID: Record<ID, ChargeCardRepayment>;
33
33
  }
34
- export declare const toChargeCardRepaymentStatusCodeType: (v: string) => "PendingReview" | "Pending" | "Sent" | "Clear" | "Rejected" | "Returned";
34
+ export declare const toChargeCardRepaymentStatusCodeType: (v: string) => "PendingReview" | "Pending" | "Sent" | "Clearing" | "Rejected" | "Returned";
35
35
  export type ChargeCardRepaymentStatusCodeType = ReturnType<typeof toChargeCardRepaymentStatusCodeType>;
36
36
  export declare const toChargeCardRepaymentType: (v: string) => "scheduled" | "onDemand" | undefined;
37
37
  export type ChargeCardRepaymentType = ReturnType<typeof toChargeCardRepaymentType>;
@@ -6,7 +6,7 @@ const ALL_CHARGE_CARD_REPAYMENT_STATUS_CODE = [
6
6
  'PendingReview',
7
7
  'Pending',
8
8
  'Sent',
9
- 'Clear',
9
+ 'Clearing',
10
10
  'Rejected',
11
11
  'Returned',
12
12
  ];
@@ -3,7 +3,7 @@ const ALL_CHARGE_CARD_REPAYMENT_STATUS_CODE = [
3
3
  'PendingReview',
4
4
  'Pending',
5
5
  'Sent',
6
- 'Clear',
6
+ 'Clearing',
7
7
  'Rejected',
8
8
  'Returned',
9
9
  ];
@@ -68,6 +68,7 @@ export const initialCreditAccountRepayment = {
68
68
  nextRepaymentDueDate: dateNow(),
69
69
  remainingAmountDue: { amount: 0, currencyCode: 'USD', currencySymbol: '$' },
70
70
  initiatedRepaymentDate: undefined,
71
+ paymentMethod: undefined,
71
72
  };
72
73
  const ALL_CHARGE_CARD_SORT_KEYS = [
73
74
  'owner',
@@ -340,6 +340,7 @@ const toCreditAccountRepayment = (payload) => ({
340
340
  initiatedRepaymentDate: payload.initiated_repayment_date != null
341
341
  ? date(payload.initiated_repayment_date)
342
342
  : undefined,
343
+ paymentMethod: payload.payment_method ?? undefined,
343
344
  providerCreditAccountId: payload.provider_credit_account_id,
344
345
  remainingAmountDue: toAmount(payload.remaining_amount_due, payload.currency_code, payload.currency_symbol),
345
346
  remainingAmountOverdue: toAmount(payload.remaining_amount_overdue, payload.currency_code, payload.currency_symbol),
@@ -12,7 +12,7 @@ export function getPaymentStatusDisplayText(status) {
12
12
  PendingReview: 'In Progress',
13
13
  Pending: 'In Progress',
14
14
  Sent: 'Complete',
15
- Clear: 'Complete',
15
+ Clearing: 'In Progress',
16
16
  Rejected: 'Failed',
17
17
  Returned: 'Failed',
18
18
  };