Package com.stripe.param
Class CustomerBalanceTransactionCollectionCreateParams.Builder
- java.lang.Object
-
- com.stripe.param.CustomerBalanceTransactionCollectionCreateParams.Builder
-
- Enclosing class:
- CustomerBalanceTransactionCollectionCreateParams
public static class CustomerBalanceTransactionCollectionCreateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomerBalanceTransactionCollectionCreateParams.Builder
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.CustomerBalanceTransactionCollectionCreateParams.Builder
addExpand(java.lang.String element)
Add an element to `expand` list.CustomerBalanceTransactionCollectionCreateParams
build()
Finalize and obtain parameter instance from this builder.CustomerBalanceTransactionCollectionCreateParams.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.CustomerBalanceTransactionCollectionCreateParams.Builder
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.CustomerBalanceTransactionCollectionCreateParams.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.CustomerBalanceTransactionCollectionCreateParams.Builder
putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map.CustomerBalanceTransactionCollectionCreateParams.Builder
setAmount(java.lang.Long amount)
The integer amount in %s to apply to the customer's credit balance.CustomerBalanceTransactionCollectionCreateParams.Builder
setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase.CustomerBalanceTransactionCollectionCreateParams.Builder
setDescription(java.lang.String description)
An arbitrary string attached to the object.CustomerBalanceTransactionCollectionCreateParams.Builder
setMetadata(EmptyParam metadata)
Set of key-value pairs that you can attach to an object.CustomerBalanceTransactionCollectionCreateParams.Builder
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
-
-
-
Method Detail
-
build
public CustomerBalanceTransactionCollectionCreateParams build()
Finalize and obtain parameter instance from this builder.
-
setAmount
public CustomerBalanceTransactionCollectionCreateParams.Builder setAmount(java.lang.Long amount)
The integer amount in %s to apply to the customer's credit balance.
-
setCurrency
public CustomerBalanceTransactionCollectionCreateParams.Builder setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency. If the customer'scurrency
is set, this value must match it. If the customer'scurrency
is not set, it will be updated to this value.
-
setDescription
public CustomerBalanceTransactionCollectionCreateParams.Builder setDescription(java.lang.String description)
An arbitrary string attached to the object. Often useful for displaying to users.
-
addExpand
public CustomerBalanceTransactionCollectionCreateParams.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. SeeCustomerBalanceTransactionCollectionCreateParams.expand
for the field documentation.
-
addAllExpand
public CustomerBalanceTransactionCollectionCreateParams.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. SeeCustomerBalanceTransactionCollectionCreateParams.expand
for the field documentation.
-
putExtraParam
public CustomerBalanceTransactionCollectionCreateParams.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. SeeCustomerBalanceTransactionCollectionCreateParams.extraParams
for the field documentation.
-
putAllExtraParam
public CustomerBalanceTransactionCollectionCreateParams.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. SeeCustomerBalanceTransactionCollectionCreateParams.extraParams
for the field documentation.
-
putMetadata
public CustomerBalanceTransactionCollectionCreateParams.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. SeeCustomerBalanceTransactionCollectionCreateParams.metadata
for the field documentation.
-
putAllMetadata
public CustomerBalanceTransactionCollectionCreateParams.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. SeeCustomerBalanceTransactionCollectionCreateParams.metadata
for the field documentation.
-
setMetadata
public CustomerBalanceTransactionCollectionCreateParams.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 CustomerBalanceTransactionCollectionCreateParams.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
.
-
-