Package com.stripe.param.issuing
Class CardUpdateParams.Builder
java.lang.Object
com.stripe.param.issuing.CardUpdateParams.Builder
- Enclosing class:
- CardUpdateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setCancellationReason
(CardUpdateParams.CancellationReason cancellationReason) Reason why thestatus
of this card iscanceled
.setMetadata
(EmptyParam metadata) Set of key-value pairs that you can attach to an object.setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.setPersonalizationDesign
(EmptyParam personalizationDesign) setPersonalizationDesign
(String personalizationDesign) The desired new PIN for this card.setShipping
(CardUpdateParams.Shipping shipping) Updated shipping information for the card.setSpendingControls
(CardUpdateParams.SpendingControls spendingControls) Rules that control spending for this card.setStatus
(CardUpdateParams.Status status) Dictates whether authorizations can be approved on this card.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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
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
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
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
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
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
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
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
. -
setPersonalizationDesign
-
setPersonalizationDesign
-
setPin
The desired new PIN for this card. -
setShipping
Updated shipping information for the card. -
setSpendingControls
public CardUpdateParams.Builder setSpendingControls(CardUpdateParams.SpendingControls spendingControls) Rules that control spending for this card. Refer to our documentation for more details. -
setStatus
Dictates whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults toinactive
. If this card is being canceled because it was lost or stolen, this information should be provided ascancellation_reason
.
-