Package com.adyen.model.balanceplatform
Class TransactionRulesResponse
- java.lang.Object
-
- com.adyen.model.balanceplatform.TransactionRulesResponse
-
public class TransactionRulesResponse extends Object
TransactionRulesResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransactionRulesResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_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)static TransactionRulesResponsefromJson(String jsonString)Create an instance of TransactionRulesResponse given an JSON stringList<TransactionRule>getTransactionRules()List of transaction rules.inthashCode()voidsetTransactionRules(List<TransactionRule> transactionRules)StringtoJson()Convert an instance of TransactionRulesResponse to an JSON stringStringtoString()TransactionRulesResponsetransactionRules(List<TransactionRule> transactionRules)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
transactionRules
public TransactionRulesResponse transactionRules(List<TransactionRule> transactionRules)
-
addTransactionRulesItem
public TransactionRulesResponse addTransactionRulesItem(TransactionRule transactionRulesItem)
-
getTransactionRules
public List<TransactionRule> getTransactionRules()
List of transaction rules.- Returns:
- transactionRules
-
setTransactionRules
public void setTransactionRules(List<TransactionRule> transactionRules)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException- Throws:
IOException
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON ObjectstrictValidation- reject (new) fields missing from the specifications- Throws:
IOException- if the JSON Object is invalid with respect to TransactionRulesResponse
-
fromJson
public static TransactionRulesResponse fromJson(String jsonString) throws IOException
Create an instance of TransactionRulesResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionRulesResponse
- Throws:
IOException- if the JSON string is invalid with respect to TransactionRulesResponse
-
toJson
public String toJson()
Convert an instance of TransactionRulesResponse to an JSON string- Returns:
- JSON string
-
-