pub struct CreateCheckoutSessionAutomaticTax {
pub enabled: bool,
pub liability: Option<CreateCheckoutSessionAutomaticTaxLiability>,
}Expand description
Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
Fields§
§enabled: boolSet to true to calculate tax automatically using the customer’s location.
Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
liability: Option<CreateCheckoutSessionAutomaticTaxLiability>The account that’s liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionAutomaticTax
impl Clone for CreateCheckoutSessionAutomaticTax
Source§fn clone(&self) -> CreateCheckoutSessionAutomaticTax
fn clone(&self) -> CreateCheckoutSessionAutomaticTax
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for CreateCheckoutSessionAutomaticTax
impl StructuralPartialEq for CreateCheckoutSessionAutomaticTax
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionAutomaticTax
impl RefUnwindSafe for CreateCheckoutSessionAutomaticTax
impl Send for CreateCheckoutSessionAutomaticTax
impl Sync for CreateCheckoutSessionAutomaticTax
impl Unpin for CreateCheckoutSessionAutomaticTax
impl UnsafeUnpin for CreateCheckoutSessionAutomaticTax
impl UnwindSafe for CreateCheckoutSessionAutomaticTax
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