Class Card.SpendingControls

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

public static class Card.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<Card.SpendingControls.SpendingLimit> getSpendingLimits()
      Limit spending with amount-based rules that apply across any cards this card replaced (i.e., its replacement_for card and that card's replacement_for card, up the chain).
    • getSpendingLimitsCurrency

      public String getSpendingLimitsCurrency()
      Currency of the amounts within spending_limits. Always the same as the currency of the card.
    • 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<Card.SpendingControls.SpendingLimit> spendingLimits)
      Limit spending with amount-based rules that apply across any cards this card replaced (i.e., its replacement_for card and that card's replacement_for card, up the chain).
    • setSpendingLimitsCurrency

      public void setSpendingLimitsCurrency(String spendingLimitsCurrency)
      Currency of the amounts within spending_limits. Always the same as the currency of the card.
    • 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