pub struct CreateTaxCalculationCustomerDetails {
pub address: Option<CreateTaxCalculationCustomerDetailsAddress>,
pub address_source: Option<CreateTaxCalculationCustomerDetailsAddressSource>,
pub ip_address: Option<String>,
pub tax_ids: Option<Vec<CreateTaxCalculationCustomerDetailsTaxIds>>,
pub taxability_override: Option<CreateTaxCalculationCustomerDetailsTaxabilityOverride>,
}Expand description
Details about the customer, including address and tax IDs.
Fields§
§address: Option<CreateTaxCalculationCustomerDetailsAddress>The customer’s postal address (for example, home or business location).
address_source: Option<CreateTaxCalculationCustomerDetailsAddressSource>The type of customer address provided.
ip_address: Option<String>The customer’s IP address (IPv4 or IPv6).
tax_ids: Option<Vec<CreateTaxCalculationCustomerDetailsTaxIds>>The customer’s tax IDs. Stripe Tax might consider a transaction with applicable tax IDs to be B2B, which might affect the tax calculation result. Stripe Tax doesn’t validate tax IDs for correctness.
taxability_override: Option<CreateTaxCalculationCustomerDetailsTaxabilityOverride>Overrides the tax calculation result to allow you to not collect tax from your customer.
Use this if you’ve manually checked your customer’s tax exemptions.
Prefer providing the customer’s tax_ids where possible, which automatically determines whether reverse_charge applies.
Implementations§
Trait Implementations§
Source§impl Clone for CreateTaxCalculationCustomerDetails
impl Clone for CreateTaxCalculationCustomerDetails
Source§fn clone(&self) -> CreateTaxCalculationCustomerDetails
fn clone(&self) -> CreateTaxCalculationCustomerDetails
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 CreateTaxCalculationCustomerDetails
impl RefUnwindSafe for CreateTaxCalculationCustomerDetails
impl Send for CreateTaxCalculationCustomerDetails
impl Sync for CreateTaxCalculationCustomerDetails
impl Unpin for CreateTaxCalculationCustomerDetails
impl UnwindSafe for CreateTaxCalculationCustomerDetails
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