@zeniai/client-epic-state 5.2.22-betaMM2 → 5.2.22-betaMM3

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.
@@ -185,6 +185,7 @@ export interface JEOneTimeAccrualPayload {
185
185
  reversal_policy?: string | null;
186
186
  reversal_transaction_id?: ID | null;
187
187
  reversal_trigger?: string | null;
188
+ reversed_by_user?: UserPayload | null;
188
189
  transaction_id?: ID | null;
189
190
  transaction_integration_id?: ID | null;
190
191
  }
@@ -546,6 +546,7 @@ function toJEOneTimeAccrual(payload) {
546
546
  transactionIntegrationId: payload.transaction_integration_id ?? undefined,
547
547
  reversalTransactionId: payload.reversal_transaction_id ?? undefined,
548
548
  createdBy: toJEOneTimeAccrualCreator(payload.created_by_user),
549
+ reversedBy: toJEOneTimeAccrualCreator(payload.reversed_by_user),
549
550
  };
550
551
  }
551
552
  // The accrual wire format carries a currency CODE but no symbol, so the symbol has to be derived.
@@ -260,6 +260,7 @@ export interface JEOneTimeAccrualState {
260
260
  profileSnapshot?: JEOneTimeAccrualProfileSnapshot;
261
261
  reversalTransactionId?: ID;
262
262
  reversalTrigger?: OneTimeAccrualReversalTriggerType;
263
+ reversedBy?: JEOneTimeAccrualCreator;
263
264
  transactionId?: ID;
264
265
  transactionIntegrationId?: ID;
265
266
  }
@@ -535,6 +535,7 @@ export function toJEOneTimeAccrual(payload) {
535
535
  transactionIntegrationId: payload.transaction_integration_id ?? undefined,
536
536
  reversalTransactionId: payload.reversal_transaction_id ?? undefined,
537
537
  createdBy: toJEOneTimeAccrualCreator(payload.created_by_user),
538
+ reversedBy: toJEOneTimeAccrualCreator(payload.reversed_by_user),
538
539
  };
539
540
  }
540
541
  // The accrual wire format carries a currency CODE but no symbol, so the symbol has to be derived.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.2.22-betaMM2",
3
+ "version": "5.2.22-betaMM3",
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
  "module": "lib/esm/index.js",