Routes typed webhook events to handler callbacks.
Dispatches based on webhook_type + webhook_code pairs, casting
raw JSON maps to typed event structs before calling your handler.
Supported events
Transactions
SYNC_UPDATES_AVAILABLE→on_transactions_sync/1INITIAL_UPDATE→on_transactions_initial_update/1HISTORICAL_UPDATE→on_transactions_historical_update/1DEFAULT_UPDATE→on_transactions_default_update/1(legacy)
Items
ERROR→on_item_error/1PENDING_EXPIRATION→on_item_pending_expiration/1USER_PERMISSION_REVOKED→on_item_permission_revoked/1NEW_ACCOUNTS_AVAILABLE→on_item_new_accounts/1
Auth
AUTOMATICALLY_VERIFIED→on_auth_automatically_verified/1VERIFICATION_EXPIRED→on_auth_verification_expired/1
Transfers
TRANSFER_EVENTS_UPDATE→on_transfer_events_update/1
Payment Initiation
PAYMENT_STATUS_UPDATE→on_payment_status_update/1
Identity Verification
STATUS_UPDATED→on_identity_verification_status_updated/1RETRIED→on_identity_verification_retried/1
Income
INCOME_VERIFICATION→on_income_verification/1
Investments
DEFAULT_UPDATE→on_investments_default_update/1
Liabilities
DEFAULT_UPDATE→on_liabilities_default_update/1
Assets
PRODUCT_READY→on_assets_product_ready/1ERROR→on_assets_error/1
Beacon
USER_REVIEW_STATUS_UPDATED→on_beacon_user_review_status_updated/1
Signal
DEFAULT_UPDATE→on_signal_default_update/1
Statements
READY→on_statements_ready/1
Summary
Functions
Dispatches a raw webhook event map to the appropriate handler callback.
Functions
@spec dispatch(map(), module() | function(), PlaidEx.Config.t()) :: :ok | {:error, term()}
Dispatches a raw webhook event map to the appropriate handler callback.
The handler module must implement PlaidEx.Webhooks.Handler.