pub struct TaxProductResourceTaxTransactionShippingCost {
pub amount: i64,
pub amount_tax: i64,
pub shipping_rate: Option<String>,
pub tax_behavior: TaxProductResourceTaxTransactionShippingCostTaxBehavior,
pub tax_breakdown: Option<Vec<TaxProductResourceLineItemTaxBreakdown>>,
pub tax_code: String,
}Fields§
§amount: i64The shipping amount in the smallest currency unit.
If tax_behavior=inclusive, then this amount includes taxes.
Otherwise, taxes were calculated on top of this amount.
amount_tax: i64The amount of tax calculated for shipping, in the smallest currency unit.
shipping_rate: Option<String>The ID of an existing ShippingRate.
tax_behavior: TaxProductResourceTaxTransactionShippingCostTaxBehaviorSpecifies whether the amount includes taxes.
If tax_behavior=inclusive, then the amount includes taxes.
tax_breakdown: Option<Vec<TaxProductResourceLineItemTaxBreakdown>>Detailed account of taxes relevant to shipping cost. (It is not populated for the transaction resource object and will be removed in the next API version.).
tax_code: StringThe tax code ID used for shipping.
Trait Implementations§
Source§impl Clone for TaxProductResourceTaxTransactionShippingCost
impl Clone for TaxProductResourceTaxTransactionShippingCost
Source§fn clone(&self) -> TaxProductResourceTaxTransactionShippingCost
fn clone(&self) -> TaxProductResourceTaxTransactionShippingCost
Returns a duplicate 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 moreSource§impl FromValueOpt for TaxProductResourceTaxTransactionShippingCost
impl FromValueOpt for TaxProductResourceTaxTransactionShippingCost
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for TaxProductResourceTaxTransactionShippingCost
impl RefUnwindSafe for TaxProductResourceTaxTransactionShippingCost
impl Send for TaxProductResourceTaxTransactionShippingCost
impl Sync for TaxProductResourceTaxTransactionShippingCost
impl Unpin for TaxProductResourceTaxTransactionShippingCost
impl UnwindSafe for TaxProductResourceTaxTransactionShippingCost
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more