Package com.stripe.model.issuing
Class Cardholder.SpendingControls
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.issuing.Cardholder.SpendingControls
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Cardholder
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Array of strings containing categories of authorizations to allow.Array of strings containing representing countries from which authorizations will be allowed.Array of strings containing categories of authorizations to decline.Array of strings containing representing countries from which authorizations will be declined.Limit spending with amount-based rules that apply across this cardholder's cards.Currency of the amounts withinspending_limits
.int
hashCode()
void
setAllowedCategories
(List<String> allowedCategories) Array of strings containing categories of authorizations to allow.void
setAllowedMerchantCountries
(List<String> allowedMerchantCountries) Array of strings containing representing countries from which authorizations will be allowed.void
setBlockedCategories
(List<String> blockedCategories) Array of strings containing categories of authorizations to decline.void
setBlockedMerchantCountries
(List<String> blockedMerchantCountries) Array of strings containing representing countries from which authorizations will be declined.void
setSpendingLimits
(List<Cardholder.SpendingControls.SpendingLimit> spendingLimits) Limit spending with amount-based rules that apply across this cardholder's cards.void
setSpendingLimitsCurrency
(String spendingLimitsCurrency) Currency of the amounts withinspending_limits
.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
SpendingControls
public SpendingControls()
-
-
Method Details
-
getAllowedCategories
Array of strings containing categories of authorizations to allow. All other categories will be blocked. Cannot be set withblocked_categories
. -
getAllowedMerchantCountries
Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g.US
). Cannot be set withblocked_merchant_countries
. Provide an empty value to unset this control. -
getBlockedCategories
Array of strings containing categories of authorizations to decline. All other categories will be allowed. Cannot be set withallowed_categories
. -
getBlockedMerchantCountries
Array of strings containing representing countries from which authorizations will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g.US
). Cannot be set withallowed_merchant_countries
. Provide an empty value to unset this control. -
getSpendingLimits
Limit spending with amount-based rules that apply across this cardholder's cards. -
getSpendingLimitsCurrency
Currency of the amounts withinspending_limits
. -
setAllowedCategories
Array of strings containing categories of authorizations to allow. All other categories will be blocked. Cannot be set withblocked_categories
. -
setAllowedMerchantCountries
Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g.US
). Cannot be set withblocked_merchant_countries
. Provide an empty value to unset this control. -
setBlockedCategories
Array of strings containing categories of authorizations to decline. All other categories will be allowed. Cannot be set withallowed_categories
. -
setBlockedMerchantCountries
Array of strings containing representing countries from which authorizations will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g.US
). Cannot be set withallowed_merchant_countries
. Provide an empty value to unset this control. -
setSpendingLimits
Limit spending with amount-based rules that apply across this cardholder's cards. -
setSpendingLimitsCurrency
Currency of the amounts withinspending_limits
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-