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.BuilderaddAllExpand(java.util.List<java.lang.String> elements)Add all elements to `expand` list.PriceUpdateParams.BuilderaddExpand(java.lang.String element)Add an element to `expand` list.PriceUpdateParamsbuild()Finalize and obtain parameter instance from this builder.PriceUpdateParams.BuilderputAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)Add all map key/value pairs to `extraParams` map.PriceUpdateParams.BuilderputAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)Add all map key/value pairs to `metadata` map.PriceUpdateParams.BuilderputExtraParam(java.lang.String key, java.lang.Object value)Add a key/value pair to `extraParams` map.PriceUpdateParams.BuilderputMetadata(java.lang.String key, java.lang.String value)Add a key/value pair to `metadata` map.PriceUpdateParams.BuildersetActive(java.lang.Boolean active)Whether the price can be used for new purchases.PriceUpdateParams.BuildersetLookupKey(EmptyParam lookupKey)A lookup key used to retrieve prices dynamically from a static string.PriceUpdateParams.BuildersetLookupKey(java.lang.String lookupKey)A lookup key used to retrieve prices dynamically from a static string.PriceUpdateParams.BuildersetMetadata(EmptyParam metadata)Set of key-value pairs that you can attach to an object.PriceUpdateParams.BuildersetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.PriceUpdateParams.BuildersetNickname(EmptyParam nickname)A brief description of the price, hidden from customers.PriceUpdateParams.BuildersetNickname(java.lang.String nickname)A brief description of the price, hidden from customers.PriceUpdateParams.BuildersetRecurring(EmptyParam recurring)The recurring components of a price such asintervalandusage_type.PriceUpdateParams.BuildersetRecurring(PriceUpdateParams.Recurring recurring)The recurring components of a price such asintervalandusage_type.PriceUpdateParams.BuildersetTaxBehavior(PriceUpdateParams.TaxBehavior taxBehavior)Specifies whether the price is considered inclusive of taxes or exclusive of taxes.PriceUpdateParams.BuildersetTransferLookupKey(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.expandfor 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.expandfor 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.extraParamsfor 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.extraParamsfor the field documentation.
-
setLookupKey
public PriceUpdateParams.Builder setLookupKey(java.lang.String lookupKey)
A lookup key used to retrieve prices dynamically from a static string.
-
setLookupKey
public PriceUpdateParams.Builder setLookupKey(EmptyParam lookupKey)
A lookup key used to retrieve prices dynamically from a static string.
-
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.metadatafor 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.metadatafor 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 asintervalandusage_type.
-
setRecurring
public PriceUpdateParams.Builder setRecurring(EmptyParam recurring)
The recurring components of a price such asintervalandusage_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 eitherinclusiveorexclusive, 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.
-
-