pub struct CustomerCashBalanceTransaction {Show 15 fields
pub adjusted_for_overdraft: Option<CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraft>,
pub applied_to_payment: Option<CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransaction>,
pub created: i64,
pub currency: String,
pub customer: Value,
pub ending_balance: i64,
pub funded: Option<CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction>,
pub id: String,
pub livemode: bool,
pub net_amount: i64,
pub object: String,
pub refunded_from_payment: Option<CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransaction>,
pub transferred_to_balance: Option<CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalance>,
pub type_: String,
pub unapplied_from_payment: Option<CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransaction>,
}
Expand description
Customers with certain payments enabled have a cash balance, representing funds that were paid by the customer to a merchant, but have not yet been allocated to a payment. Cash Balance Transactions represent when funds are moved into or out of this balance. This includes funding by the customer, allocation to payments, and refunds to the customer.
Fields§
§adjusted_for_overdraft: Option<CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraft>
§applied_to_payment: Option<CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransaction>
§created: i64
Time at which the object was created. Measured in seconds since the Unix epoch.
currency: String
Three-letter ISO currency code, in lowercase. Must be a supported currency.
customer: Value
The customer whose available cash balance changed as a result of this transaction.
ending_balance: i64
The total available cash balance for the specified currency after this transaction was applied. Represented in the smallest currency unit.
funded: Option<CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction>
§id: String
Unique identifier for the object.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
net_amount: i64
The amount by which the cash balance changed, represented in the smallest currency unit. A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance.
object: String
String representing the object’s type. Objects of the same type share the same value.
refunded_from_payment: Option<CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransaction>
§transferred_to_balance: Option<CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalance>
§type_: String
The type of the cash balance transaction. New types may be added in future. See Customer Balance to learn more about these types.
unapplied_from_payment: Option<CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransaction>
Trait Implementations§
Source§impl Clone for CustomerCashBalanceTransaction
impl Clone for CustomerCashBalanceTransaction
Source§fn clone(&self) -> CustomerCashBalanceTransaction
fn clone(&self) -> CustomerCashBalanceTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more