Package com.stripe.param.checkout
Class SessionCreateParams.AutomaticTax.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.AutomaticTax.Builder
- Enclosing class:
- SessionCreateParams.AutomaticTax
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()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.setAddressCollectionPrecision(SessionCreateParams.AutomaticTax.AddressCollectionPrecision addressCollectionPrecision) Controls how much address information Checkout collects when automatic_tax is enabled.setEnabled(Boolean enabled) Required. Set totrueto calculate tax automatically using the customer's location.The account that's liable for tax.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAddressCollectionPrecision
public SessionCreateParams.AutomaticTax.Builder setAddressCollectionPrecision(SessionCreateParams.AutomaticTax.AddressCollectionPrecision addressCollectionPrecision) Controls how much address information Checkout collects when automatic_tax is enabled.Defaults to
full, which collects the address fields needed for the most accurate tax calculation. Set tominimalto collect only the fields required for tax in the buyer's country, accepting potentially less precise tax calculation in exchange for a streamlined form.Only honored when
automatic_tax.enabledistrue,billing_address_collectionisauto, the resolved tax address source is the session billing address, andui_modeisform. -
setEnabled
Required. Set totrueto calculate tax automatically using the customer's location.Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
-
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. SeeSessionCreateParams.AutomaticTax.extraParamsfor 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. SeeSessionCreateParams.AutomaticTax.extraParamsfor the field documentation. -
setLiability
public SessionCreateParams.AutomaticTax.Builder setLiability(SessionCreateParams.AutomaticTax.Liability liability) 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.
-