Package com.stripe.param
Class PriceUpdateParams.Builder
- java.lang.Object
-
- com.stripe.param.PriceUpdateParams.Builder
-
- Enclosing class:
- PriceUpdateParams
public static class PriceUpdateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriceUpdateParams.Builder
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.PriceUpdateParams.Builder
addExpand(java.lang.String element)
Add an element to `expand` list.PriceUpdateParams
build()
Finalize and obtain parameter instance from this builder.PriceUpdateParams.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.PriceUpdateParams.Builder
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.PriceUpdateParams.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.PriceUpdateParams.Builder
putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map.PriceUpdateParams.Builder
setActive(java.lang.Boolean active)
Whether the price can be used for new purchases.PriceUpdateParams.Builder
setLookupKey(EmptyParam lookupKey)
A lookup key used to retrieve prices dynamically from a static string.PriceUpdateParams.Builder
setLookupKey(java.lang.String lookupKey)
A lookup key used to retrieve prices dynamically from a static string.PriceUpdateParams.Builder
setMetadata(EmptyParam metadata)
Set of key-value pairs that you can attach to an object.PriceUpdateParams.Builder
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.PriceUpdateParams.Builder
setNickname(EmptyParam nickname)
A brief description of the price, hidden from customers.PriceUpdateParams.Builder
setNickname(java.lang.String nickname)
A brief description of the price, hidden from customers.PriceUpdateParams.Builder
setRecurring(EmptyParam recurring)
The recurring components of a price such asinterval
andusage_type
.PriceUpdateParams.Builder
setRecurring(PriceUpdateParams.Recurring recurring)
The recurring components of a price such asinterval
andusage_type
.PriceUpdateParams.Builder
setTaxBehavior(PriceUpdateParams.TaxBehavior taxBehavior)
Specifies whether the price is considered inclusive of taxes or exclusive of taxes.PriceUpdateParams.Builder
setTransferLookupKey(java.lang.Boolean transferLookupKey)
If set to true, will atomically remove the lookup key from the existing price, and assign it to this price.
-
-
-
Method Detail
-
build
public PriceUpdateParams build()
Finalize and obtain parameter instance from this builder.
-
setActive
public PriceUpdateParams.Builder setActive(java.lang.Boolean active)
Whether the price can be used for new purchases. Defaults totrue
.
-
addExpand
public PriceUpdateParams.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. SeePriceUpdateParams.expand
for the field documentation.
-
addAllExpand
public PriceUpdateParams.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. SeePriceUpdateParams.expand
for the field documentation.
-
putExtraParam
public PriceUpdateParams.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. SeePriceUpdateParams.extraParams
for the field documentation.
-
putAllExtraParam
public PriceUpdateParams.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. SeePriceUpdateParams.extraParams
for the field documentation.
-
setLookupKey
public PriceUpdateParams.Builder setLookupKey(java.lang.String lookupKey)
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
-
setLookupKey
public PriceUpdateParams.Builder setLookupKey(EmptyParam lookupKey)
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
-
putMetadata
public PriceUpdateParams.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. SeePriceUpdateParams.metadata
for the field documentation.
-
putAllMetadata
public PriceUpdateParams.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. SeePriceUpdateParams.metadata
for the field documentation.
-
setMetadata
public PriceUpdateParams.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 PriceUpdateParams.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
.
-
setNickname
public PriceUpdateParams.Builder setNickname(java.lang.String nickname)
A brief description of the price, hidden from customers.
-
setNickname
public PriceUpdateParams.Builder setNickname(EmptyParam nickname)
A brief description of the price, hidden from customers.
-
setRecurring
public PriceUpdateParams.Builder setRecurring(PriceUpdateParams.Recurring recurring)
The recurring components of a price such asinterval
andusage_type
.
-
setRecurring
public PriceUpdateParams.Builder setRecurring(EmptyParam recurring)
The recurring components of a price such asinterval
andusage_type
.
-
setTaxBehavior
public PriceUpdateParams.Builder setTaxBehavior(PriceUpdateParams.TaxBehavior taxBehavior)
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
public PriceUpdateParams.Builder setTransferLookupKey(java.lang.Boolean transferLookupKey)
If set to true, will atomically remove the lookup key from the existing price, and assign it to this price.
-
-