Package com.adyen.model.transferwebhooks
Class RelayedAuthorisationData
- java.lang.Object
-
- com.adyen.model.transferwebhooks.RelayedAuthorisationData
-
public class RelayedAuthorisationData extends Object
RelayedAuthorisationData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelayedAuthorisationData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_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)static RelayedAuthorisationDatafromJson(String jsonString)Create an instance of RelayedAuthorisationData given an JSON stringMap<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()RelayedAuthorisationDatametadata(Map<String,String> metadata)RelayedAuthorisationDataputMetadataItem(String key, String metadataItem)RelayedAuthorisationDatareference(String reference)voidsetMetadata(Map<String,String> metadata)voidsetReference(String reference)StringtoJson()Convert an instance of RelayedAuthorisationData 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_METADATA
public static final String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
metadata
public RelayedAuthorisationData metadata(Map<String,String> metadata)
-
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
-
reference
public RelayedAuthorisationData reference(String reference)
-
getReference
public String getReference()
Your reference for the relayed authorisation data.- 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 RelayedAuthorisationData
-
fromJson
public static RelayedAuthorisationData fromJson(String jsonString) throws IOException
Create an instance of RelayedAuthorisationData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RelayedAuthorisationData
- Throws:
IOException- if the JSON string is invalid with respect to RelayedAuthorisationData
-
toJson
public String toJson()
Convert an instance of RelayedAuthorisationData to an JSON string- Returns:
- JSON string
-
-