pub struct CreateTaxCalculationShippingCost {
pub amount: Option<i64>,
pub shipping_rate: Option<String>,
pub tax_behavior: Option<CreateTaxCalculationShippingCostTaxBehavior>,
pub tax_code: Option<String>,
}Expand description
Shipping cost details to be used for the calculation.
Fields§
§amount: Option<i64>A positive integer in the smallest currency unit representing the shipping charge.
If tax_behavior=inclusive, then this amount includes taxes.
Otherwise, taxes are calculated on top of this amount.
shipping_rate: Option<String>If provided, the shipping rate’s amount, tax_code and tax_behavior are used.
If you provide a shipping rate, then you cannot pass the amount, tax_code, or tax_behavior parameters.
tax_behavior: Option<CreateTaxCalculationShippingCostTaxBehavior>Specifies whether the amount includes taxes.
If tax_behavior=inclusive, then the amount includes taxes.
Defaults to exclusive.
tax_code: Option<String>The tax code used to calculate tax on shipping. If not provided, the default shipping tax code from your Tax Settings is used.
Implementations§
Trait Implementations§
Source§impl Clone for CreateTaxCalculationShippingCost
impl Clone for CreateTaxCalculationShippingCost
Source§fn clone(&self) -> CreateTaxCalculationShippingCost
fn clone(&self) -> CreateTaxCalculationShippingCost
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 moreAuto Trait Implementations§
impl Freeze for CreateTaxCalculationShippingCost
impl RefUnwindSafe for CreateTaxCalculationShippingCost
impl Send for CreateTaxCalculationShippingCost
impl Sync for CreateTaxCalculationShippingCost
impl Unpin for CreateTaxCalculationShippingCost
impl UnwindSafe for CreateTaxCalculationShippingCost
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