Package com.stripe.param.issuing
Class CardUpdateParams.Builder
- java.lang.Object
-
- com.stripe.param.issuing.CardUpdateParams.Builder
-
- Enclosing class:
- CardUpdateParams
public static class CardUpdateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CardUpdateParams.Builder
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.CardUpdateParams.Builder
addExpand(java.lang.String element)
Add an element to `expand` list.CardUpdateParams
build()
Finalize and obtain parameter instance from this builder.CardUpdateParams.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.CardUpdateParams.Builder
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.CardUpdateParams.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.CardUpdateParams.Builder
putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map.CardUpdateParams.Builder
setCancellationReason(CardUpdateParams.CancellationReason cancellationReason)
Reason why thestatus
of this card iscanceled
.CardUpdateParams.Builder
setMetadata(EmptyParam metadata)
Set of key-value pairs that you can attach to an object.CardUpdateParams.Builder
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.CardUpdateParams.Builder
setSpendingControls(CardUpdateParams.SpendingControls spendingControls)
Rules that control spending for this card.CardUpdateParams.Builder
setStatus(CardUpdateParams.Status status)
Dictates whether authorizations can be approved on this card.
-
-
-
Method Detail
-
build
public CardUpdateParams build()
Finalize and obtain parameter instance from this builder.
-
setCancellationReason
public CardUpdateParams.Builder setCancellationReason(CardUpdateParams.CancellationReason cancellationReason)
Reason why thestatus
of this card iscanceled
.
-
addExpand
public CardUpdateParams.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. SeeCardUpdateParams.expand
for the field documentation.
-
addAllExpand
public CardUpdateParams.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. SeeCardUpdateParams.expand
for the field documentation.
-
putExtraParam
public CardUpdateParams.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. SeeCardUpdateParams.extraParams
for the field documentation.
-
putAllExtraParam
public CardUpdateParams.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. SeeCardUpdateParams.extraParams
for the field documentation.
-
putMetadata
public CardUpdateParams.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. SeeCardUpdateParams.metadata
for the field documentation.
-
putAllMetadata
public CardUpdateParams.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. SeeCardUpdateParams.metadata
for the field documentation.
-
setMetadata
public CardUpdateParams.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 CardUpdateParams.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
.
-
setSpendingControls
public CardUpdateParams.Builder setSpendingControls(CardUpdateParams.SpendingControls spendingControls)
Rules that control spending for this card. Refer to our documentation for more details.
-
setStatus
public CardUpdateParams.Builder setStatus(CardUpdateParams.Status status)
Dictates whether authorizations can be approved on this card. If this card is being canceled because it was lost or stolen, this information should be provided ascancellation_reason
.
-
-