Package com.adyen.model.transferwebhooks
Class TransactionRuleReference
- java.lang.Object
-
- com.adyen.model.transferwebhooks.TransactionRuleReference
-
public class TransactionRuleReference extends Object
TransactionRuleReference
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransactionRuleReference.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_REFERENCE
-
Constructor Summary
Constructors Constructor Description TransactionRuleReference()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionRuleReferencedescription(String description)booleanequals(Object o)static TransactionRuleReferencefromJson(String jsonString)Create an instance of TransactionRuleReference given an JSON stringStringgetDescription()The description of the resource.StringgetId()The unique identifier of the resource.StringgetReference()The reference for the resource.inthashCode()TransactionRuleReferenceid(String id)TransactionRuleReferencereference(String reference)voidsetDescription(String description)voidsetId(String id)voidsetReference(String reference)StringtoJson()Convert an instance of TransactionRuleReference to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public TransactionRuleReference description(String description)
-
getDescription
public String getDescription()
The description of the resource.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
id
public TransactionRuleReference id(String id)
-
getId
public String getId()
The unique identifier of the resource.- Returns:
- id
-
setId
public void setId(String id)
-
reference
public TransactionRuleReference reference(String reference)
-
getReference
public String getReference()
The reference for the resource.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to TransactionRuleReference
-
fromJson
public static TransactionRuleReference fromJson(String jsonString) throws IOException
Create an instance of TransactionRuleReference given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionRuleReference
- Throws:
IOException- if the JSON string is invalid with respect to TransactionRuleReference
-
toJson
public String toJson()
Convert an instance of TransactionRuleReference to an JSON string- Returns:
- JSON string
-
-