Package com.adyen.model.balanceplatform
Class TransactionRuleEntityKey
- java.lang.Object
-
- com.adyen.model.balanceplatform.TransactionRuleEntityKey
-
public class TransactionRuleEntityKey extends Object
TransactionRuleEntityKey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransactionRuleEntityKey.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ENTITY_REFERENCEstatic StringSERIALIZED_NAME_ENTITY_TYPE
-
Constructor Summary
Constructors Constructor Description TransactionRuleEntityKey()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionRuleEntityKeyentityReference(String entityReference)TransactionRuleEntityKeyentityType(String entityType)booleanequals(Object o)static TransactionRuleEntityKeyfromJson(String jsonString)Create an instance of TransactionRuleEntityKey given an JSON stringStringgetEntityReference()The unique identifier of the resource.StringgetEntityType()The type of resource.inthashCode()voidsetEntityReference(String entityReference)voidsetEntityType(String entityType)StringtoJson()Convert an instance of TransactionRuleEntityKey to an JSON stringStringtoString()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
-
-
-
Field Detail
-
SERIALIZED_NAME_ENTITY_REFERENCE
public static final String SERIALIZED_NAME_ENTITY_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENTITY_TYPE
public static final String SERIALIZED_NAME_ENTITY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
entityReference
public TransactionRuleEntityKey entityReference(String entityReference)
-
getEntityReference
public String getEntityReference()
The unique identifier of the resource.- Returns:
- entityReference
-
setEntityReference
public void setEntityReference(String entityReference)
-
entityType
public TransactionRuleEntityKey entityType(String entityType)
-
getEntityType
public String getEntityType()
The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**.- Returns:
- entityType
-
setEntityType
public void setEntityType(String entityType)
-
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 TransactionRuleEntityKey
-
fromJson
public static TransactionRuleEntityKey fromJson(String jsonString) throws IOException
Create an instance of TransactionRuleEntityKey given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionRuleEntityKey
- Throws:
IOException- if the JSON string is invalid with respect to TransactionRuleEntityKey
-
toJson
public String toJson()
Convert an instance of TransactionRuleEntityKey to an JSON string- Returns:
- JSON string
-
-