Package com.adyen.model.transfers
Class RelayedAuthorisationData
- java.lang.Object
-
- com.adyen.model.transfers.RelayedAuthorisationData
-
public class RelayedAuthorisationData extends Object
RelayedAuthorisationData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_METADATAstatic StringJSON_PROPERTY_REFERENCE
-
Constructor Summary
Constructors Constructor Description RelayedAuthorisationData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this RelayedAuthorisationData object is equal to o.static RelayedAuthorisationDatafromJson(String jsonString)Create an instance of RelayedAuthorisationData given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.Map<String,String>getMetadata()Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`.StringgetReference()Your reference for the relayed authorisation data.inthashCode()RelayedAuthorisationDataincludeNullValues(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.RelayedAuthorisationDatametadata(Map<String,String> metadata)Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`.RelayedAuthorisationDataputMetadataItem(String key, String metadataItem)RelayedAuthorisationDatareference(String reference)Your reference for the relayed authorisation data.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMetadata(Map<String,String> metadata)Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`.voidsetReference(String reference)Your reference for the relayed authorisation data.StringtoJson()Convert an instance of RelayedAuthorisationData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_METADATA
public static final String JSON_PROPERTY_METADATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
metadata
public RelayedAuthorisationData metadata(Map<String,String> metadata)
Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`.- Parameters:
metadata- Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`.- Returns:
- the current
RelayedAuthorisationDatainstance, allowing for method chaining
-
putMetadataItem
public RelayedAuthorisationData putMetadataItem(String key, String metadataItem)
-
getMetadata
public Map<String,String> getMetadata()
Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`.- Returns:
- metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`.
-
setMetadata
public void setMetadata(Map<String,String> metadata)
Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`.- Parameters:
metadata- Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`.
-
reference
public RelayedAuthorisationData reference(String reference)
Your reference for the relayed authorisation data.- Parameters:
reference- Your reference for the relayed authorisation data.- Returns:
- the current
RelayedAuthorisationDatainstance, allowing for method chaining
-
getReference
public String getReference()
Your reference for the relayed authorisation data.- Returns:
- reference Your reference for the relayed authorisation data.
-
setReference
public void setReference(String reference)
Your reference for the relayed authorisation data.- Parameters:
reference- Your reference for the relayed authorisation data.
-
includeNullValues
public RelayedAuthorisationData 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 RelayedAuthorisationData 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 RelayedAuthorisationData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of RelayedAuthorisationData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RelayedAuthorisationData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to RelayedAuthorisationData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of RelayedAuthorisationData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-