Package com.stripe.param
Class TaxRateCreateParams.Builder
java.lang.Object
com.stripe.param.TaxRateCreateParams.Builder
- Enclosing class:
- TaxRateCreateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.Flag determining whether the tax rate is active or inactive (archived).setCountry
(String country) Two-letter country code (ISO 3166-1 alpha-2).setDescription
(String description) An arbitrary string attached to the tax rate for your internal use only.setDisplayName
(String displayName) Required. The display name of the tax rate, which will be shown to users.setInclusive
(Boolean inclusive) Required. This specifies if the tax rate is inclusive or exclusive.setJurisdiction
(String jurisdiction) The jurisdiction for the tax rate.setPercentage
(BigDecimal percentage) Required. This represents the tax rate percent out of 100.ISO 3166-2 subdivision code, without country prefix.setTaxType
(TaxRateCreateParams.TaxType taxType) The high-level tax type, such asvat
orsales_tax
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setActive
Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. -
setCountry
Two-letter country code (ISO 3166-1 alpha-2). -
setDescription
An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers. -
setDisplayName
Required. The display name of the tax rate, which will be shown to users. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeTaxRateCreateParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeTaxRateCreateParams.expand
for the field documentation. -
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. SeeTaxRateCreateParams.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. SeeTaxRateCreateParams.extraParams
for the field documentation. -
setInclusive
Required. This specifies if the tax rate is inclusive or exclusive. -
setJurisdiction
The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeTaxRateCreateParams.metadata
for the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeTaxRateCreateParams.metadata
for the field documentation. -
setPercentage
Required. This represents the tax rate percent out of 100. -
setState
ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States. -
setTaxType
The high-level tax type, such asvat
orsales_tax
.
-