Package com.adyen.model.balanceplatform
Class BrandVariantsRestriction
- java.lang.Object
-
- com.adyen.model.balanceplatform.BrandVariantsRestriction
-
public class BrandVariantsRestriction extends Object
BrandVariantsRestriction
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_OPERATIONstatic StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description BrandVariantsRestriction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BrandVariantsRestrictionaddValueItem(String valueItem)booleanequals(Object o)Return true if this BrandVariantsRestriction object is equal to o.static BrandVariantsRestrictionfromJson(String jsonString)Create an instance of BrandVariantsRestriction given an JSON stringStringgetOperation()Defines how the condition must be evaluated.List<String>getValue()List of card brand variants.inthashCode()BrandVariantsRestrictionoperation(String operation)voidsetOperation(String operation)Defines how the condition must be evaluated.voidsetValue(List<String> value)List of card brand variants.StringtoJson()Convert an instance of BrandVariantsRestriction to an JSON stringStringtoString()BrandVariantsRestrictionvalue(List<String> value)
-
-
-
Field Detail
-
JSON_PROPERTY_OPERATION
public static final String JSON_PROPERTY_OPERATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE
public static final String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
operation
public BrandVariantsRestriction operation(String operation)
-
getOperation
public String getOperation()
Defines how the condition must be evaluated.- Returns:
- operation
-
setOperation
public void setOperation(String operation)
Defines how the condition must be evaluated.- Parameters:
operation-
-
value
public BrandVariantsRestriction value(List<String> value)
-
addValueItem
public BrandVariantsRestriction addValueItem(String valueItem)
-
getValue
public List<String> getValue()
List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**.- Returns:
- value
-
setValue
public void setValue(List<String> value)
List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**.- Parameters:
value-
-
equals
public boolean equals(Object o)
Return true if this BrandVariantsRestriction object is equal to o.
-
fromJson
public static BrandVariantsRestriction fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BrandVariantsRestriction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BrandVariantsRestriction
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BrandVariantsRestriction
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BrandVariantsRestriction to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-