monzo_webhook/metadata/
money_transfer.rs

1struct_with_extra! {
2    /// A move of money between pots or accounts
3    MoneyTransfer,
4    external_id: String,
5    move_money_transfer_id: String,
6    pot_account_id: String,
7    pot_id: String,
8    transaction_description_localised: String,
9    transaction_locale_country: String,
10    trigger: String,
11    user_id: String,
12    /// Only present on a pot withdrawal
13    money_transfer_id: Option<String>,
14    /// Only present on a pot withdrawal
15    pot_withdrawal_id: Option<String>,
16    /// Only present on a pot deposit
17    pot_deposit_id: Option<String>,
18    #[serde(flatten)]
19    hold_decision: Option<super::shared_metadata::HoldDecision>,
20    #[serde(flatten)]
21    ledger_details: super::ledger::LedgerDetails,
22}