ClearBank.Webhook.Events.FxTradeSettled (ClearBank v1.0.0)

Copy Markdown View Source

Fired when an FX trade settles (funds move between accounts).

Summary

Functions

from_payload(payload)

@spec from_payload(map()) :: %ClearBank.Webhook.Events.FxTradeSettled{
  buy_account_id: term(),
  buy_amount: term(),
  sell_account_id: term(),
  sell_amount: term(),
  timestamp: term(),
  trade_id: term()
}