Class RelayedAuthorisationResponse
- java.lang.Object
-
- com.adyen.model.relayedauthorizationwebhooks.RelayedAuthorisationResponse
-
public class RelayedAuthorisationResponse extends Object
RelayedAuthorisationResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTHORISATION_DECISIONstatic StringJSON_PROPERTY_METADATAstatic StringJSON_PROPERTY_REFERENCE
-
Constructor Summary
Constructors Constructor Description RelayedAuthorisationResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RelayedAuthorisationResponseauthorisationDecision(AuthorisationDecisionResponse authorisationDecision)authorisationDecisionbooleanequals(Object o)Return true if this RelayedAuthorisationResponse object is equal to o.static RelayedAuthorisationResponsefromJson(String jsonString)Create an instance of RelayedAuthorisationResponse given an JSON stringAuthorisationDecisionResponsegetAuthorisationDecision()Get authorisationDecisionMap<String,String>getMetadata()Object that contains key-value pairs that you can use in your reporting or other business process.StringgetReference()Reference of the payment.inthashCode()RelayedAuthorisationResponsemetadata(Map<String,String> metadata)Object that contains key-value pairs that you can use in your reporting or other business process.RelayedAuthorisationResponseputMetadataItem(String key, String metadataItem)RelayedAuthorisationResponsereference(String reference)Reference of the payment.voidsetAuthorisationDecision(AuthorisationDecisionResponse authorisationDecision)authorisationDecisionvoidsetMetadata(Map<String,String> metadata)Object that contains key-value pairs that you can use in your reporting or other business process.voidsetReference(String reference)Reference of the payment.StringtoJson()Convert an instance of RelayedAuthorisationResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AUTHORISATION_DECISION
public static final String JSON_PROPERTY_AUTHORISATION_DECISION
- See Also:
- Constant Field Values
-
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
-
authorisationDecision
public RelayedAuthorisationResponse authorisationDecision(AuthorisationDecisionResponse authorisationDecision)
authorisationDecision- Parameters:
authorisationDecision-- Returns:
- the current
RelayedAuthorisationResponseinstance, allowing for method chaining
-
getAuthorisationDecision
public AuthorisationDecisionResponse getAuthorisationDecision()
Get authorisationDecision- Returns:
- authorisationDecision
-
setAuthorisationDecision
public void setAuthorisationDecision(AuthorisationDecisionResponse authorisationDecision)
authorisationDecision- Parameters:
authorisationDecision-
-
metadata
public RelayedAuthorisationResponse metadata(Map<String,String> metadata)
Object that contains key-value pairs that you can use in your reporting or other business process.- Parameters:
metadata- Object that contains key-value pairs that you can use in your reporting or other business process.- Returns:
- the current
RelayedAuthorisationResponseinstance, allowing for method chaining
-
putMetadataItem
public RelayedAuthorisationResponse putMetadataItem(String key, String metadataItem)
-
getMetadata
public Map<String,String> getMetadata()
Object that contains key-value pairs that you can use in your reporting or other business process.- Returns:
- metadata Object that contains key-value pairs that you can use in your reporting or other business process.
-
setMetadata
public void setMetadata(Map<String,String> metadata)
Object that contains key-value pairs that you can use in your reporting or other business process.- Parameters:
metadata- Object that contains key-value pairs that you can use in your reporting or other business process.
-
reference
public RelayedAuthorisationResponse reference(String reference)
Reference of the payment.- Parameters:
reference- Reference of the payment.- Returns:
- the current
RelayedAuthorisationResponseinstance, allowing for method chaining
-
getReference
public String getReference()
Reference of the payment.- Returns:
- reference Reference of the payment.
-
setReference
public void setReference(String reference)
Reference of the payment.- Parameters:
reference- Reference of the payment.
-
equals
public boolean equals(Object o)
Return true if this RelayedAuthorisationResponse object is equal to o.
-
fromJson
public static RelayedAuthorisationResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of RelayedAuthorisationResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RelayedAuthorisationResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to RelayedAuthorisationResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of RelayedAuthorisationResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-