Package com.stripe.param.tax
Class CalculationCreateParams.CustomerDetails.Builder
java.lang.Object
com.stripe.param.tax.CalculationCreateParams.CustomerDetails.Builder
- Enclosing class:
- CalculationCreateParams.CustomerDetails
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `taxIds` list.Add an element to `taxIds` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.The customer's postal address (for example, home or business location).The type of customer address provided.setIpAddress
(String ipAddress) The customer's IP address (IPv4 or IPv6).setTaxabilityOverride
(CalculationCreateParams.CustomerDetails.TaxabilityOverride taxabilityOverride) Overrides the tax calculation result to allow you to not collect tax from your customer.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAddress
public CalculationCreateParams.CustomerDetails.Builder setAddress(CalculationCreateParams.CustomerDetails.Address address) The customer's postal address (for example, home or business location). -
setAddressSource
public CalculationCreateParams.CustomerDetails.Builder setAddressSource(CalculationCreateParams.CustomerDetails.AddressSource addressSource) The type of customer address provided. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeCalculationCreateParams.CustomerDetails.extraParams
for the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeCalculationCreateParams.CustomerDetails.extraParams
for the field documentation. -
setIpAddress
The customer's IP address (IPv4 or IPv6). -
addTaxId
public CalculationCreateParams.CustomerDetails.Builder addTaxId(CalculationCreateParams.CustomerDetails.TaxId element) Add an element to `taxIds` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCalculationCreateParams.CustomerDetails.taxIds
for the field documentation. -
addAllTaxId
public CalculationCreateParams.CustomerDetails.Builder addAllTaxId(List<CalculationCreateParams.CustomerDetails.TaxId> elements) Add all elements to `taxIds` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCalculationCreateParams.CustomerDetails.taxIds
for the field documentation. -
setTaxabilityOverride
public CalculationCreateParams.CustomerDetails.Builder setTaxabilityOverride(CalculationCreateParams.CustomerDetails.TaxabilityOverride taxabilityOverride) 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'stax_ids
where possible, which automatically determines whetherreverse_charge
applies.
-