Package com.stripe.param
Class PriceUpdateParams.Builder
java.lang.Object
com.stripe.param.PriceUpdateParams.Builder
- Enclosing class:
- PriceUpdateParams
-
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.Add all map key/value pairs to `currencyOptions` map.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.putCurrencyOption
(String key, PriceUpdateParams.CurrencyOption value) Add a key/value pair to `currencyOptions` 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.Whether the price can be used for new purchases.setCurrencyOptions
(EmptyParam currencyOptions) Prices defined in each available currency option.setCurrencyOptions
(Map<String, PriceUpdateParams.CurrencyOption> currencyOptions) Prices defined in each available currency option.setLookupKey
(EmptyParam lookupKey) A lookup key used to retrieve prices dynamically from a static string.setLookupKey
(String lookupKey) A lookup key used to retrieve prices dynamically from a static string.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.setNickname
(EmptyParam nickname) A brief description of the price, hidden from customers.setNickname
(String nickname) A brief description of the price, hidden from customers.setTaxBehavior
(PriceUpdateParams.TaxBehavior taxBehavior) Only required if a default tax behavior was not provided in the Stripe Tax settings.setTransferLookupKey
(Boolean transferLookupKey) If set to true, will atomically remove the lookup key from the existing price, and assign it to this price.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setActive
Whether the price can be used for new purchases. Defaults totrue
. -
putCurrencyOption
public PriceUpdateParams.Builder putCurrencyOption(String key, PriceUpdateParams.CurrencyOption value) Add a key/value pair to `currencyOptions` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePriceUpdateParams.currencyOptions
for the field documentation. -
putAllCurrencyOption
public PriceUpdateParams.Builder putAllCurrencyOption(Map<String, PriceUpdateParams.CurrencyOption> map) Add all map key/value pairs to `currencyOptions` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePriceUpdateParams.currencyOptions
for the field documentation. -
setCurrencyOptions
Prices defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency. -
setCurrencyOptions
public PriceUpdateParams.Builder setCurrencyOptions(Map<String, PriceUpdateParams.CurrencyOption> currencyOptions) Prices defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency. -
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. SeePriceUpdateParams.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. SeePriceUpdateParams.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. SeePriceUpdateParams.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. SeePriceUpdateParams.extraParams
for the field documentation. -
setLookupKey
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters. -
setLookupKey
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters. -
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. SeePriceUpdateParams.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. SeePriceUpdateParams.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
. -
setNickname
A brief description of the price, hidden from customers. -
setNickname
A brief description of the price, hidden from customers. -
setTaxBehavior
Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One ofinclusive
,exclusive
, orunspecified
. Once specified as eitherinclusive
orexclusive
, it cannot be changed. -
setTransferLookupKey
If set to true, will atomically remove the lookup key from the existing price, and assign it to this price.
-