pub struct TaxTransaction {Show 14 fields
pub created: i64,
pub currency: String,
pub customer: Option<String>,
pub customer_details: TaxProductResourceCustomerDetails,
pub id: String,
pub line_items: Option<TaxProductResourceTaxTransactionLineItemList>,
pub livemode: bool,
pub metadata: Option<Value>,
pub object: String,
pub reference: String,
pub reversal: Option<Value>,
pub shipping_cost: Option<Value>,
pub tax_date: i64,
pub type_: String,
}Expand description
A Tax Transaction records the tax collected from or refunded to your customer.
Related guide: Calculate tax in your custom payment flow
Fields§
§created: i64Time at which the object was created. Measured in seconds since the Unix epoch.
currency: StringThree-letter ISO currency code, in lowercase. Must be a supported currency.
customer: Option<String>The ID of an existing Customer used for the resource.
customer_details: TaxProductResourceCustomerDetails§id: StringUnique identifier for the transaction.
line_items: Option<TaxProductResourceTaxTransactionLineItemList>The tax collected or refunded, by line item.
livemode: boolHas the value true if the object exists in live mode or the value false if the object exists in test mode.
metadata: Option<Value>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.
object: StringString representing the object’s type. Objects of the same type share the same value.
reference: StringA custom unique identifier, such as ‘myOrder_123’.
reversal: Option<Value>If type=reversal, contains information about what was reversed.
shipping_cost: Option<Value>The shipping cost details for the transaction.
tax_date: i64Timestamp of date at which the tax rules and rates in effect applies for the calculation.
type_: StringIf reversal, this transaction reverses an earlier transaction.
Trait Implementations§
Source§impl Clone for TaxTransaction
impl Clone for TaxTransaction
Source§fn clone(&self) -> TaxTransaction
fn clone(&self) -> TaxTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more