Struct stripe::CreateCustomerBalanceTransaction
source · pub struct CreateCustomerBalanceTransaction<'a> {
pub amount: i64,
pub currency: Currency,
pub description: Option<&'a str>,
pub metadata: Option<Metadata>,
}Expand description
The parameters that can be used when creating or updating a CustomerBalanceTransaction.
Fields§
§amount: i64The integer amount in cents to apply to the customer’s credit balance.
currency: CurrencyThree-letter ISO currency code, in lowercase.
Must be a supported currency. Specifies the invoice_credit_balance that this transaction will apply to. If the customer’s currency is not set, it will be updated to this value.
description: Option<&'a str>An arbitrary string attached to the object. Often useful for displaying to users.
metadata: Option<Metadata>Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
Implementations§
Trait Implementations§
source§impl<'a> Clone for CreateCustomerBalanceTransaction<'a>
impl<'a> Clone for CreateCustomerBalanceTransaction<'a>
source§fn clone(&self) -> CreateCustomerBalanceTransaction<'a>
fn clone(&self) -> CreateCustomerBalanceTransaction<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more