OptionalcustomerId?: stringOptionalcustomerRedemptionWalletIds?: string[]Optionalids?: string[]OptionalincludeStatus?: booleanDefaults to false - when true, fetches status from Girasol API
Optionalpage?: numberDefaults to 1
OptionalpageSize?: numberDefaults to 10
Synchronizes balances between a Girasol card account and its associated wallet.
This method retrieves the current balance from both the Girasol card account and the associated customer redemption wallet, calculates the difference, and optionally adjusts the balances to match.
The external ID of the Girasol card account to synchronize
A Promise that resolves to a Result containing:
Success case: Object with synchronization details:
girasolBalance: Current balance in the Girasol card account (in USD)walletBalance: Current balance in the associated customer redemption wallet (in MOVEUSD)calculatedDelta: Difference between wallet and Girasol balances (walletBalance - girasolBalance)balanceAdjustedFlag: true if balances were adjusted, false if they were already in sync or in simulation modetransactionId: Girasol transaction ID if an adjustment was made, 0 if simulation mode or no adjustment needednewGirasolBalance: Updated Girasol balance after adjustment, or current balance if no adjustment was madeadjustmentAmount: Absolute amount that was adjusted, or 0 if no adjustment was neededadjustmentType: Type of adjustment made: "CASH_IN" (added funds to Girasol), "CASH_OUT" (removed funds from Girasol), or "NONE" if no adjustment was neededError cases:
ACCOUNT_NOT_FOUND: The specified account doesn't exist or balance is unavailableWALLET_NOT_FOUND: The associated customer redemption wallet doesn't exist or balance retrieval failedBALANCE_ADJUSTMENT_ERROR: Failed to perform the balance adjustment via Girasol APIUnfreezes an account by its ID via GirasolClient and updates the local DB status from 'FREEZED' to "ACTIVE".
Freezes an account by its ID via GirasolClient and updates the local DB status to 'FREEZED'.