pub struct TaxTransaction {Show 15 fields
pub created: Timestamp,
pub currency: Currency,
pub customer: Option<String>,
pub customer_details: TaxProductResourceCustomerDetails,
pub id: TaxTransactionId,
pub line_items: Option<List<TaxTransactionLineItem>>,
pub livemode: bool,
pub metadata: Option<HashMap<String, String>>,
pub posted_at: Timestamp,
pub reference: String,
pub reversal: Option<TaxProductResourceTaxTransactionResourceReversal>,
pub ship_from_details: Option<TaxProductResourceShipFromDetails>,
pub shipping_cost: Option<TaxProductResourceTaxTransactionShippingCost>,
pub tax_date: Timestamp,
pub type_: TaxTransactionType,
}
Expand description
A Tax Transaction records the tax collected from or refunded to your customer.
Related guide: Calculate tax in your custom payment flow.
For more details see <https://stripe.com/docs/api/tax/transactions/object>.
Fields§
§created: Timestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
currency: Currency
Three-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: TaxTransactionId
Unique identifier for the transaction.
line_items: Option<List<TaxTransactionLineItem>>
The tax collected or refunded, by line item.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
metadata: Option<HashMap<String, String>>
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.
posted_at: Timestamp
The Unix timestamp representing when the tax liability is assumed or reduced.
reference: String
A custom unique identifier, such as ‘myOrder_123’.
reversal: Option<TaxProductResourceTaxTransactionResourceReversal>
If type=reversal
, contains information about what was reversed.
ship_from_details: Option<TaxProductResourceShipFromDetails>
The details of the ship from location, such as the address.
shipping_cost: Option<TaxProductResourceTaxTransactionShippingCost>
The shipping cost details for the transaction.
tax_date: Timestamp
Timestamp of date at which the tax rules and rates in effect applies for the calculation.
type_: TaxTransactionType
If 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