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.BuilderaddAllExpand(java.util.List<java.lang.String> elements)Add all elements to `expand` list.CardUpdateParams.BuilderaddExpand(java.lang.String element)Add an element to `expand` list.CardUpdateParamsbuild()Finalize and obtain parameter instance from this builder.CardUpdateParams.BuilderputAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)Add all map key/value pairs to `extraParams` map.CardUpdateParams.BuilderputAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)Add all map key/value pairs to `metadata` map.CardUpdateParams.BuilderputExtraParam(java.lang.String key, java.lang.Object value)Add a key/value pair to `extraParams` map.CardUpdateParams.BuilderputMetadata(java.lang.String key, java.lang.String value)Add a key/value pair to `metadata` map.CardUpdateParams.BuildersetCancellationReason(CardUpdateParams.CancellationReason cancellationReason)Reason why thestatusof this card iscanceled.CardUpdateParams.BuildersetMetadata(EmptyParam metadata)Set of key-value pairs that you can attach to an object.CardUpdateParams.BuildersetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.CardUpdateParams.BuildersetSpendingControls(CardUpdateParams.SpendingControls spendingControls)Rules that control spending for this card.CardUpdateParams.BuildersetStatus(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 thestatusof 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.expandfor 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.expandfor 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.extraParamsfor 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.extraParamsfor 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.metadatafor 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.metadatafor 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.
-
-