Package com.stripe.param
Class TaxRateUpdateParams.Builder
java.lang.Object
com.stripe.param.TaxRateUpdateParams.Builder
- Enclosing class:
- TaxRateUpdateParams
-
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
(EmptyParam country) Two-letter country code (ISO 3166-1 alpha-2).setCountry
(String country) Two-letter country code (ISO 3166-1 alpha-2).setDescription
(EmptyParam description) An arbitrary string attached to the tax rate for your internal use only.setDescription
(String description) An arbitrary string attached to the tax rate for your internal use only.setDisplayName
(EmptyParam displayName) The display name of the tax rate, which will be shown to users.setDisplayName
(String displayName) The display name of the tax rate, which will be shown to users.setJurisdiction
(EmptyParam jurisdiction) The jurisdiction for the tax rate.setJurisdiction
(String jurisdiction) The jurisdiction for the tax rate.setMetadata
(EmptyParam metadata) Set of key-value pairs that you can attach to an object.setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.setState
(EmptyParam state) ISO 3166-2 subdivision code, without country prefix.ISO 3166-2 subdivision code, without country prefix.setTaxType
(TaxRateUpdateParams.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). -
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. -
setDescription
An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers. -
setDisplayName
The display name of the tax rate, which will be shown to users. -
setDisplayName
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. SeeTaxRateUpdateParams.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. SeeTaxRateUpdateParams.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. SeeTaxRateUpdateParams.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. SeeTaxRateUpdateParams.extraParams
for the field documentation. -
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. -
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. SeeTaxRateUpdateParams.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. SeeTaxRateUpdateParams.metadata
for the field documentation. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
setState
ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States. -
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
.
-