Package com.adyen.model.transferwebhooks
Class TransactionRuleSource
- java.lang.Object
-
- com.adyen.model.transferwebhooks.TransactionRuleSource
-
public class TransactionRuleSource extends Object
TransactionRuleSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransactionRuleSource.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description TransactionRuleSource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TransactionRuleSourcefromJson(String jsonString)Create an instance of TransactionRuleSource given an JSON stringStringgetId()ID of the resource, when applicable.StringgetType()Indicates the type of resource for which the transaction rule is defined.inthashCode()TransactionRuleSourceid(String id)voidsetId(String id)voidsetType(String type)StringtoJson()Convert an instance of TransactionRuleSource to an JSON stringStringtoString()TransactionRuleSourcetype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public TransactionRuleSource id(String id)
-
getId
public String getId()
ID of the resource, when applicable.- Returns:
- id
-
setId
public void setId(String id)
-
type
public TransactionRuleSource type(String type)
-
getType
public String getType()
Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen.- Returns:
- type
-
setType
public void setType(String type)
-
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 TransactionRuleSource
-
fromJson
public static TransactionRuleSource fromJson(String jsonString) throws IOException
Create an instance of TransactionRuleSource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionRuleSource
- Throws:
IOException- if the JSON string is invalid with respect to TransactionRuleSource
-
toJson
public String toJson()
Convert an instance of TransactionRuleSource to an JSON string- Returns:
- JSON string
-
-