Package com.adyen.model.balanceplatform
Class TransactionRulesResponse
- java.lang.Object
-
- com.adyen.model.balanceplatform.TransactionRulesResponse
-
public class TransactionRulesResponse extends Object
TransactionRulesResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_TRANSACTION_RULES
-
Constructor Summary
Constructors Constructor Description TransactionRulesResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionRulesResponseaddTransactionRulesItem(TransactionRule transactionRulesItem)booleanequals(Object o)Return true if this TransactionRulesResponse object is equal to o.static TransactionRulesResponsefromJson(String jsonString)Create an instance of TransactionRulesResponse given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<TransactionRule>getTransactionRules()List of transaction rules.inthashCode()TransactionRulesResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetTransactionRules(List<TransactionRule> transactionRules)List of transaction rules.StringtoJson()Convert an instance of TransactionRulesResponse to an JSON stringStringtoString()TransactionRulesResponsetransactionRules(List<TransactionRule> transactionRules)List of transaction rules.
-
-
-
Field Detail
-
JSON_PROPERTY_TRANSACTION_RULES
public static final String JSON_PROPERTY_TRANSACTION_RULES
- See Also:
- Constant Field Values
-
-
Method Detail
-
transactionRules
public TransactionRulesResponse transactionRules(List<TransactionRule> transactionRules)
List of transaction rules.- Parameters:
transactionRules- List of transaction rules.- Returns:
- the current
TransactionRulesResponseinstance, allowing for method chaining
-
addTransactionRulesItem
public TransactionRulesResponse addTransactionRulesItem(TransactionRule transactionRulesItem)
-
getTransactionRules
public List<TransactionRule> getTransactionRules()
List of transaction rules.- Returns:
- transactionRules List of transaction rules.
-
setTransactionRules
public void setTransactionRules(List<TransactionRule> transactionRules)
List of transaction rules.- Parameters:
transactionRules- List of transaction rules.
-
includeNullValues
public TransactionRulesResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this TransactionRulesResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static TransactionRulesResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransactionRulesResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionRulesResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransactionRulesResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransactionRulesResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-