Class Cardholder.SpendingControls

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.issuing.Cardholder.SpendingControls
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Cardholder

public static class Cardholder.SpendingControls extends StripeObject
  • Constructor Details

    • SpendingControls

      public SpendingControls()
  • Method Details

    • getAllowedCategories

      public List<String> getAllowedCategories()
      Array of strings containing categories of authorizations to allow. All other categories will be blocked. Cannot be set with blocked_categories.
    • getAllowedMerchantCountries

      public List<String> 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 with blocked_merchant_countries. Provide an empty value to unset this control.
    • getBlockedCategories

      public List<String> getBlockedCategories()
      Array of strings containing categories of authorizations to decline. All other categories will be allowed. Cannot be set with allowed_categories.
    • getBlockedMerchantCountries

      public List<String> 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 with allowed_merchant_countries. Provide an empty value to unset this control.
    • getSpendingLimits

      public List<Cardholder.SpendingControls.SpendingLimit> getSpendingLimits()
      Limit spending with amount-based rules that apply across this cardholder's cards.
    • getSpendingLimitsCurrency

      public String getSpendingLimitsCurrency()
      Currency of the amounts within spending_limits.
    • setAllowedCategories

      public void setAllowedCategories(List<String> allowedCategories)
      Array of strings containing categories of authorizations to allow. All other categories will be blocked. Cannot be set with blocked_categories.
    • setAllowedMerchantCountries

      public void setAllowedMerchantCountries(List<String> allowedMerchantCountries)
      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 with blocked_merchant_countries. Provide an empty value to unset this control.
    • setBlockedCategories

      public void setBlockedCategories(List<String> blockedCategories)
      Array of strings containing categories of authorizations to decline. All other categories will be allowed. Cannot be set with allowed_categories.
    • setBlockedMerchantCountries

      public void setBlockedMerchantCountries(List<String> blockedMerchantCountries)
      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 with allowed_merchant_countries. Provide an empty value to unset this control.
    • setSpendingLimits

      public void setSpendingLimits(List<Cardholder.SpendingControls.SpendingLimit> spendingLimits)
      Limit spending with amount-based rules that apply across this cardholder's cards.
    • setSpendingLimitsCurrency

      public void setSpendingLimitsCurrency(String spendingLimitsCurrency)
      Currency of the amounts within spending_limits.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object