Package com.stripe.model.issuing
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Card.SpendingControls.SpendingLimit
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description SpendingControls()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getAllowedCategories()
Array of strings containing categories of authorizations to allow.java.util.List<java.lang.String>
getBlockedCategories()
Array of strings containing categories of authorizations to decline.java.util.List<Card.SpendingControls.SpendingLimit>
getSpendingLimits()
Limit spending with amount-based rules that apply across any cards this card replaced (i.e., itsreplacement_for
card and that card'sreplacement_for
card, up the chain).java.lang.String
getSpendingLimitsCurrency()
Currency of the amounts withinspending_limits
.int
hashCode()
void
setAllowedCategories(java.util.List<java.lang.String> allowedCategories)
Array of strings containing categories of authorizations to allow.void
setBlockedCategories(java.util.List<java.lang.String> blockedCategories)
Array of strings containing categories of authorizations to decline.void
setSpendingLimits(java.util.List<Card.SpendingControls.SpendingLimit> spendingLimits)
Limit spending with amount-based rules that apply across any cards this card replaced (i.e., itsreplacement_for
card and that card'sreplacement_for
card, up the chain).void
setSpendingLimitsCurrency(java.lang.String spendingLimitsCurrency)
Currency of the amounts withinspending_limits
.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getAllowedCategories
public java.util.List<java.lang.String> getAllowedCategories()
Array of strings containing categories of authorizations to allow. All other categories will be blocked. Cannot be set withblocked_categories
.
-
getBlockedCategories
public java.util.List<java.lang.String> getBlockedCategories()
Array of strings containing categories of authorizations to decline. All other categories will be allowed. Cannot be set withallowed_categories
.
-
getSpendingLimits
public java.util.List<Card.SpendingControls.SpendingLimit> getSpendingLimits()
Limit spending with amount-based rules that apply across any cards this card replaced (i.e., itsreplacement_for
card and that card'sreplacement_for
card, up the chain).
-
getSpendingLimitsCurrency
public java.lang.String getSpendingLimitsCurrency()
Currency of the amounts withinspending_limits
. Always the same as the currency of the card.
-
setAllowedCategories
public void setAllowedCategories(java.util.List<java.lang.String> allowedCategories)
Array of strings containing categories of authorizations to allow. All other categories will be blocked. Cannot be set withblocked_categories
.
-
setBlockedCategories
public void setBlockedCategories(java.util.List<java.lang.String> blockedCategories)
Array of strings containing categories of authorizations to decline. All other categories will be allowed. Cannot be set withallowed_categories
.
-
setSpendingLimits
public void setSpendingLimits(java.util.List<Card.SpendingControls.SpendingLimit> spendingLimits)
Limit spending with amount-based rules that apply across any cards this card replaced (i.e., itsreplacement_for
card and that card'sreplacement_for
card, up the chain).
-
setSpendingLimitsCurrency
public void setSpendingLimitsCurrency(java.lang.String spendingLimitsCurrency)
Currency of the amounts withinspending_limits
. Always the same as the currency of the card.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-