Package com.adyen.model.payment
Class ThreeDS2ResultRequest
- java.lang.Object
-
- com.adyen.model.payment.ThreeDS2ResultRequest
-
public class ThreeDS2ResultRequest extends Object
ThreeDS2ResultRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_PSP_REFERENCE
-
Constructor Summary
Constructors Constructor Description ThreeDS2ResultRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this ThreeDS2ResultRequest object is equal to o.static ThreeDS2ResultRequestfromJson(String jsonString)Create an instance of ThreeDS2ResultRequest given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetMerchantAccount()The merchant account identifier, with which you want to process the transaction.StringgetPspReference()The pspReference returned in the /authorise call.inthashCode()ThreeDS2ResultRequestincludeNullValues(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.ThreeDS2ResultRequestmerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.ThreeDS2ResultRequestpspReference(String pspReference)The pspReference returned in the /authorise call.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.voidsetPspReference(String pspReference)The pspReference returned in the /authorise call.StringtoJson()Convert an instance of ThreeDS2ResultRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public ThreeDS2ResultRequest merchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount- The merchant account identifier, with which you want to process the transaction.- Returns:
- the current
ThreeDS2ResultRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier, with which you want to process the transaction.- Returns:
- merchantAccount The merchant account identifier, with which you want to process the transaction.
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount- The merchant account identifier, with which you want to process the transaction.
-
pspReference
public ThreeDS2ResultRequest pspReference(String pspReference)
The pspReference returned in the /authorise call.- Parameters:
pspReference- The pspReference returned in the /authorise call.- Returns:
- the current
ThreeDS2ResultRequestinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
The pspReference returned in the /authorise call.- Returns:
- pspReference The pspReference returned in the /authorise call.
-
setPspReference
public void setPspReference(String pspReference)
The pspReference returned in the /authorise call.- Parameters:
pspReference- The pspReference returned in the /authorise call.
-
includeNullValues
public ThreeDS2ResultRequest 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 ThreeDS2ResultRequest 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 ThreeDS2ResultRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ThreeDS2ResultRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ThreeDS2ResultRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ThreeDS2ResultRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ThreeDS2ResultRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-