Package com.adyen.model.checkout
Class CheckoutForwardResponse
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutForwardResponse
-
public class CheckoutForwardResponse extends Object
CheckoutForwardResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_REFERENCEstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_RESPONSEstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_ID
-
Constructor Summary
Constructors Constructor Description CheckoutForwardResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this CheckoutForwardResponse object is equal to o.static CheckoutForwardResponsefromJson(String jsonString)Create an instance of CheckoutForwardResponse given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetMerchantReference()Merchant defined payment reference.StringgetPspReference()Adyen's 16-character reference associated with the transaction/request.CheckoutForwardResponseFromUrlgetResponse()Get responseStringgetStoredPaymentMethodId()The unique identifier of the token.inthashCode()CheckoutForwardResponseincludeNullValues(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.CheckoutForwardResponsemerchantReference(String merchantReference)Merchant defined payment reference.CheckoutForwardResponsepspReference(String pspReference)Adyen's 16-character reference associated with the transaction/request.CheckoutForwardResponseresponse(CheckoutForwardResponseFromUrl response)responsevoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantReference(String merchantReference)Merchant defined payment reference.voidsetPspReference(String pspReference)Adyen's 16-character reference associated with the transaction/request.voidsetResponse(CheckoutForwardResponseFromUrl response)responsevoidsetStoredPaymentMethodId(String storedPaymentMethodId)The unique identifier of the token.CheckoutForwardResponsestoredPaymentMethodId(String storedPaymentMethodId)The unique identifier of the token.StringtoJson()Convert an instance of CheckoutForwardResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_REFERENCE
public static final String JSON_PROPERTY_MERCHANT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESPONSE
public static final String JSON_PROPERTY_RESPONSE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantReference
public CheckoutForwardResponse merchantReference(String merchantReference)
Merchant defined payment reference.- Parameters:
merchantReference- Merchant defined payment reference.- Returns:
- the current
CheckoutForwardResponseinstance, allowing for method chaining
-
getMerchantReference
public String getMerchantReference()
Merchant defined payment reference.- Returns:
- merchantReference Merchant defined payment reference.
-
setMerchantReference
public void setMerchantReference(String merchantReference)
Merchant defined payment reference.- Parameters:
merchantReference- Merchant defined payment reference.
-
pspReference
public CheckoutForwardResponse pspReference(String pspReference)
Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request.- Parameters:
pspReference- Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request.- Returns:
- the current
CheckoutForwardResponseinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request.- Returns:
- pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request.
-
setPspReference
public void setPspReference(String pspReference)
Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request.- Parameters:
pspReference- Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request.
-
response
public CheckoutForwardResponse response(CheckoutForwardResponseFromUrl response)
response- Parameters:
response-- Returns:
- the current
CheckoutForwardResponseinstance, allowing for method chaining
-
getResponse
public CheckoutForwardResponseFromUrl getResponse()
Get response- Returns:
- response
-
setResponse
public void setResponse(CheckoutForwardResponseFromUrl response)
response- Parameters:
response-
-
storedPaymentMethodId
public CheckoutForwardResponse storedPaymentMethodId(String storedPaymentMethodId)
The unique identifier of the token.- Parameters:
storedPaymentMethodId- The unique identifier of the token.- Returns:
- the current
CheckoutForwardResponseinstance, allowing for method chaining
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
The unique identifier of the token.- Returns:
- storedPaymentMethodId The unique identifier of the token.
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
The unique identifier of the token.- Parameters:
storedPaymentMethodId- The unique identifier of the token.
-
includeNullValues
public CheckoutForwardResponse 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 CheckoutForwardResponse 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 CheckoutForwardResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CheckoutForwardResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutForwardResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CheckoutForwardResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CheckoutForwardResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-