Package com.stripe.param.issuing
Class CardholderUpdateParams.SpendingControls.Builder
java.lang.Object
com.stripe.param.issuing.CardholderUpdateParams.SpendingControls.Builder
- Enclosing class:
- CardholderUpdateParams.SpendingControls
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `allowedCategories` list.addAllAllowedMerchantCountry(List<String> elements) Add all elements to `allowedMerchantCountries` list.Add all elements to `blockedCategories` list.addAllBlockedMerchantCountry(List<String> elements) Add all elements to `blockedMerchantCountries` list.Add an element to `allowedCategories` list.addAllowedMerchantCountry(String element) Add an element to `allowedMerchantCountries` list.Add all elements to `spendingLimits` list.Add an element to `blockedCategories` list.addBlockedMerchantCountry(String element) Add an element to `blockedMerchantCountries` list.Add an element to `spendingLimits` list.build()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setSpendingLimitsCurrency(EmptyParam spendingLimitsCurrency) Currency of amounts withinspending_limits.setSpendingLimitsCurrency(String spendingLimitsCurrency) Currency of amounts withinspending_limits.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addAllowedCategory
public CardholderUpdateParams.SpendingControls.Builder addAllowedCategory(CardholderUpdateParams.SpendingControls.AllowedCategory element) Add an element to `allowedCategories` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCardholderUpdateParams.SpendingControls.allowedCategoriesfor the field documentation. -
addAllAllowedCategory
public CardholderUpdateParams.SpendingControls.Builder addAllAllowedCategory(List<CardholderUpdateParams.SpendingControls.AllowedCategory> elements) Add all elements to `allowedCategories` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCardholderUpdateParams.SpendingControls.allowedCategoriesfor the field documentation. -
addAllowedMerchantCountry
Add an element to `allowedMerchantCountries` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCardholderUpdateParams.SpendingControls.allowedMerchantCountriesfor the field documentation. -
addAllAllowedMerchantCountry
public CardholderUpdateParams.SpendingControls.Builder addAllAllowedMerchantCountry(List<String> elements) Add all elements to `allowedMerchantCountries` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCardholderUpdateParams.SpendingControls.allowedMerchantCountriesfor the field documentation. -
addBlockedCategory
public CardholderUpdateParams.SpendingControls.Builder addBlockedCategory(CardholderUpdateParams.SpendingControls.BlockedCategory element) Add an element to `blockedCategories` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCardholderUpdateParams.SpendingControls.blockedCategoriesfor the field documentation. -
addAllBlockedCategory
public CardholderUpdateParams.SpendingControls.Builder addAllBlockedCategory(List<CardholderUpdateParams.SpendingControls.BlockedCategory> elements) Add all elements to `blockedCategories` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCardholderUpdateParams.SpendingControls.blockedCategoriesfor the field documentation. -
addBlockedMerchantCountry
Add an element to `blockedMerchantCountries` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCardholderUpdateParams.SpendingControls.blockedMerchantCountriesfor the field documentation. -
addAllBlockedMerchantCountry
public CardholderUpdateParams.SpendingControls.Builder addAllBlockedMerchantCountry(List<String> elements) Add all elements to `blockedMerchantCountries` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCardholderUpdateParams.SpendingControls.blockedMerchantCountriesfor 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. SeeCardholderUpdateParams.SpendingControls.extraParamsfor 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. SeeCardholderUpdateParams.SpendingControls.extraParamsfor the field documentation. -
addSpendingLimit
public CardholderUpdateParams.SpendingControls.Builder addSpendingLimit(CardholderUpdateParams.SpendingControls.SpendingLimit element) Add an element to `spendingLimits` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCardholderUpdateParams.SpendingControls.spendingLimitsfor the field documentation. -
addAllSpendingLimit
public CardholderUpdateParams.SpendingControls.Builder addAllSpendingLimit(List<CardholderUpdateParams.SpendingControls.SpendingLimit> elements) Add all elements to `spendingLimits` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCardholderUpdateParams.SpendingControls.spendingLimitsfor the field documentation. -
setSpendingLimitsCurrency
public CardholderUpdateParams.SpendingControls.Builder setSpendingLimitsCurrency(String spendingLimitsCurrency) Currency of amounts withinspending_limits. Defaults to your merchant country's currency. -
setSpendingLimitsCurrency
public CardholderUpdateParams.SpendingControls.Builder setSpendingLimitsCurrency(EmptyParam spendingLimitsCurrency) Currency of amounts withinspending_limits. Defaults to your merchant country's currency.
-