Package com.adyen.model.balanceplatform
Class Target
- java.lang.Object
-
- com.adyen.model.balanceplatform.Target
-
public class Target extends Object
Target
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTarget.TypeEnumThe resource for which you want to receive notifications.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description Target()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this Target object is equal to o.static TargetfromJson(String jsonString)Create an instance of Target given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()The unique identifier of the `target.type`.Target.TypeEnumgetType()The resource for which you want to receive notifications.inthashCode()Targetid(String id)The unique identifier of the `target.type`.TargetincludeNullValues(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.voidsetId(String id)The unique identifier of the `target.type`.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetType(Target.TypeEnum type)The resource for which you want to receive notifications.StringtoJson()Convert an instance of Target to an JSON stringStringtoString()Targettype(Target.TypeEnum type)The resource for which you want to receive notifications.
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public Target id(String id)
The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account- Parameters:
id- The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account- Returns:
- the current
Targetinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account- Returns:
- id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account
-
setId
public void setId(String id)
The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account- Parameters:
id- The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account
-
type
public Target type(Target.TypeEnum type)
The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account.- Parameters:
type- The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account.- Returns:
- the current
Targetinstance, allowing for method chaining
-
getType
public Target.TypeEnum getType()
The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account.- Returns:
- type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account.
-
setType
public void setType(Target.TypeEnum type)
The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account.- Parameters:
type- The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account.
-
includeNullValues
public Target 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 Target 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 Target fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Target given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Target
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Target
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Target to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-