Package com.stripe.param
Class TaxRateUpdateParams.Builder
- java.lang.Object
-
- com.stripe.param.TaxRateUpdateParams.Builder
-
- Enclosing class:
- TaxRateUpdateParams
public static class TaxRateUpdateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaxRateUpdateParams.BuilderaddAllExpand(java.util.List<java.lang.String> elements)Add all elements to `expand` list.TaxRateUpdateParams.BuilderaddExpand(java.lang.String element)Add an element to `expand` list.TaxRateUpdateParamsbuild()Finalize and obtain parameter instance from this builder.TaxRateUpdateParams.BuilderputAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)Add all map key/value pairs to `extraParams` map.TaxRateUpdateParams.BuilderputAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)Add all map key/value pairs to `metadata` map.TaxRateUpdateParams.BuilderputExtraParam(java.lang.String key, java.lang.Object value)Add a key/value pair to `extraParams` map.TaxRateUpdateParams.BuilderputMetadata(java.lang.String key, java.lang.String value)Add a key/value pair to `metadata` map.TaxRateUpdateParams.BuildersetActive(java.lang.Boolean active)Flag determining whether the tax rate is active or inactive (archived).TaxRateUpdateParams.BuildersetCountry(EmptyParam country)Two-letter country code (ISO 3166-1 alpha-2).TaxRateUpdateParams.BuildersetCountry(java.lang.String country)Two-letter country code (ISO 3166-1 alpha-2).TaxRateUpdateParams.BuildersetDescription(EmptyParam description)An arbitrary string attached to the tax rate for your internal use only.TaxRateUpdateParams.BuildersetDescription(java.lang.String description)An arbitrary string attached to the tax rate for your internal use only.TaxRateUpdateParams.BuildersetDisplayName(EmptyParam displayName)The display name of the tax rate, which will be shown to users.TaxRateUpdateParams.BuildersetDisplayName(java.lang.String displayName)The display name of the tax rate, which will be shown to users.TaxRateUpdateParams.BuildersetJurisdiction(EmptyParam jurisdiction)The jurisdiction for the tax rate.TaxRateUpdateParams.BuildersetJurisdiction(java.lang.String jurisdiction)The jurisdiction for the tax rate.TaxRateUpdateParams.BuildersetMetadata(EmptyParam metadata)Set of key-value pairs that you can attach to an object.TaxRateUpdateParams.BuildersetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.TaxRateUpdateParams.BuildersetState(EmptyParam state)ISO 3166-2 subdivision code, without country prefix.TaxRateUpdateParams.BuildersetState(java.lang.String state)ISO 3166-2 subdivision code, without country prefix.TaxRateUpdateParams.BuildersetTaxType(TaxRateUpdateParams.TaxType taxType)The high-level tax type, such asvatorsales_tax.
-
-
-
Method Detail
-
build
public TaxRateUpdateParams build()
Finalize and obtain parameter instance from this builder.
-
setActive
public TaxRateUpdateParams.Builder setActive(java.lang.Boolean active)
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
public TaxRateUpdateParams.Builder setCountry(java.lang.String country)
Two-letter country code (ISO 3166-1 alpha-2).
-
setCountry
public TaxRateUpdateParams.Builder setCountry(EmptyParam country)
Two-letter country code (ISO 3166-1 alpha-2).
-
setDescription
public TaxRateUpdateParams.Builder setDescription(java.lang.String description)
An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
-
setDescription
public TaxRateUpdateParams.Builder setDescription(EmptyParam description)
An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
-
setDisplayName
public TaxRateUpdateParams.Builder setDisplayName(java.lang.String displayName)
The display name of the tax rate, which will be shown to users.
-
setDisplayName
public TaxRateUpdateParams.Builder setDisplayName(EmptyParam displayName)
The display name of the tax rate, which will be shown to users.
-
addExpand
public TaxRateUpdateParams.Builder addExpand(java.lang.String element)
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.expandfor the field documentation.
-
addAllExpand
public TaxRateUpdateParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
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.expandfor the field documentation.
-
putExtraParam
public TaxRateUpdateParams.Builder putExtraParam(java.lang.String key, java.lang.Object value)
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.extraParamsfor the field documentation.
-
putAllExtraParam
public TaxRateUpdateParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
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.extraParamsfor the field documentation.
-
setJurisdiction
public TaxRateUpdateParams.Builder setJurisdiction(java.lang.String jurisdiction)
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
public TaxRateUpdateParams.Builder setJurisdiction(EmptyParam jurisdiction)
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
public TaxRateUpdateParams.Builder putMetadata(java.lang.String key, java.lang.String value)
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.metadatafor the field documentation.
-
putAllMetadata
public TaxRateUpdateParams.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
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.metadatafor the field documentation.
-
setMetadata
public TaxRateUpdateParams.Builder setMetadata(EmptyParam metadata)
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
public TaxRateUpdateParams.Builder setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
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
public TaxRateUpdateParams.Builder setState(java.lang.String state)
ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States.
-
setState
public TaxRateUpdateParams.Builder setState(EmptyParam state)
ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States.
-
setTaxType
public TaxRateUpdateParams.Builder setTaxType(TaxRateUpdateParams.TaxType taxType)
The high-level tax type, such asvatorsales_tax.
-
-