Store method ID for payouts (#4752)

* Store method ID for payouts

* Fixes
This commit is contained in:
aecsocket
2025-11-10 08:41:06 -08:00
committed by GitHub
parent 9706f1597b
commit 98b4970680
6 changed files with 95 additions and 52 deletions

View File

@@ -18,8 +18,17 @@ pub struct Payout {
#[serde(with = "rust_decimal::serde::float_option")]
pub fee: Option<Decimal>,
pub method: Option<PayoutMethodType>,
/// the address this payout was sent to: ex: email, paypal email, venmo handle
/// Platform-dependent identifier for the submethod.
///
/// See [`crate::routes::v3::payouts::TransactionItem::Withdrawal::method_id`].
pub method_id: Option<String>,
/// Address this payout was sent to: ex: email, paypal email, venmo handle.
pub method_address: Option<String>,
/// Platform-provided opaque identifier for the transaction linked to this payout.
///
/// - Tremendous: reward ID
/// - Mural: payout request UUID
/// - PayPal/Venmo: transaction ID
pub platform_id: Option<String>,
}
@@ -33,6 +42,7 @@ impl Payout {
amount: data.amount,
fee: data.fee,
method: data.method,
method_id: data.method_id,
method_address: data.method_address,
platform_id: data.platform_id,
}