Package com.adyen.model.checkout
Class CheckoutForwardRequest
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutForwardRequest
-
public class CheckoutForwardRequest extends Object
CheckoutForwardRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_BASE_URLstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_MERCHANT_REFERENCEstatic StringJSON_PROPERTY_OPTIONSstatic StringJSON_PROPERTY_PAYMENT_METHODstatic StringJSON_PROPERTY_REQUESTstatic StringJSON_PROPERTY_SHOPPER_REFERENCEstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_ID
-
Constructor Summary
Constructors Constructor Description CheckoutForwardRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutForwardRequestamount(Amount amount)amountCheckoutForwardRequestbaseUrl(String baseUrl)The base URL of the third party API, where Adyen will send the request to forward the payment details.booleanequals(Object o)Return true if this CheckoutForwardRequest object is equal to o.static CheckoutForwardRequestfromJson(String jsonString)Create an instance of CheckoutForwardRequest given an JSON stringAmountgetAmount()Get amountStringgetBaseUrl()The base URL of the third party API, where Adyen will send the request to forward the payment details.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetMerchantAccount()Your merchant account.StringgetMerchantReference()Merchant defined payment reference.CheckoutForwardRequestOptionsgetOptions()Get optionsCheckoutForwardRequestCardgetPaymentMethod()Get paymentMethodCheckoutOutgoingForwardRequestgetRequest()Get requestStringgetShopperReference()Your reference to uniquely identify this shopper, for example user ID or account ID.StringgetStoredPaymentMethodId()The unique identifier of the token that you want to forward to the third party.inthashCode()CheckoutForwardRequestincludeNullValues(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.CheckoutForwardRequestmerchantAccount(String merchantAccount)Your merchant account.CheckoutForwardRequestmerchantReference(String merchantReference)Merchant defined payment reference.CheckoutForwardRequestoptions(CheckoutForwardRequestOptions options)optionsCheckoutForwardRequestpaymentMethod(CheckoutForwardRequestCard paymentMethod)paymentMethodCheckoutForwardRequestrequest(CheckoutOutgoingForwardRequest request)requestvoidsetAmount(Amount amount)amountvoidsetBaseUrl(String baseUrl)The base URL of the third party API, where Adyen will send the request to forward the payment details.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantAccount(String merchantAccount)Your merchant account.voidsetMerchantReference(String merchantReference)Merchant defined payment reference.voidsetOptions(CheckoutForwardRequestOptions options)optionsvoidsetPaymentMethod(CheckoutForwardRequestCard paymentMethod)paymentMethodvoidsetRequest(CheckoutOutgoingForwardRequest request)requestvoidsetShopperReference(String shopperReference)Your reference to uniquely identify this shopper, for example user ID or account ID.voidsetStoredPaymentMethodId(String storedPaymentMethodId)The unique identifier of the token that you want to forward to the third party.CheckoutForwardRequestshopperReference(String shopperReference)Your reference to uniquely identify this shopper, for example user ID or account ID.CheckoutForwardRequeststoredPaymentMethodId(String storedPaymentMethodId)The unique identifier of the token that you want to forward to the third party.StringtoJson()Convert an instance of CheckoutForwardRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BASE_URL
public static final String JSON_PROPERTY_BASE_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_REFERENCE
public static final String JSON_PROPERTY_MERCHANT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPTIONS
public static final String JSON_PROPERTY_OPTIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_METHOD
public static final String JSON_PROPERTY_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUEST
public static final String JSON_PROPERTY_REQUEST
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_REFERENCE
- 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
-
amount
public CheckoutForwardRequest amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
CheckoutForwardRequestinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
baseUrl
public CheckoutForwardRequest baseUrl(String baseUrl)
The base URL of the third party API, where Adyen will send the request to forward the payment details.- Parameters:
baseUrl- The base URL of the third party API, where Adyen will send the request to forward the payment details.- Returns:
- the current
CheckoutForwardRequestinstance, allowing for method chaining
-
getBaseUrl
public String getBaseUrl()
The base URL of the third party API, where Adyen will send the request to forward the payment details.- Returns:
- baseUrl The base URL of the third party API, where Adyen will send the request to forward the payment details.
-
setBaseUrl
public void setBaseUrl(String baseUrl)
The base URL of the third party API, where Adyen will send the request to forward the payment details.- Parameters:
baseUrl- The base URL of the third party API, where Adyen will send the request to forward the payment details.
-
merchantAccount
public CheckoutForwardRequest merchantAccount(String merchantAccount)
Your merchant account.- Parameters:
merchantAccount- Your merchant account.- Returns:
- the current
CheckoutForwardRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
Your merchant account.- Returns:
- merchantAccount Your merchant account.
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
Your merchant account.- Parameters:
merchantAccount- Your merchant account.
-
merchantReference
public CheckoutForwardRequest merchantReference(String merchantReference)
Merchant defined payment reference.- Parameters:
merchantReference- Merchant defined payment reference.- Returns:
- the current
CheckoutForwardRequestinstance, 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.
-
options
public CheckoutForwardRequest options(CheckoutForwardRequestOptions options)
options- Parameters:
options-- Returns:
- the current
CheckoutForwardRequestinstance, allowing for method chaining
-
getOptions
public CheckoutForwardRequestOptions getOptions()
Get options- Returns:
- options
-
setOptions
public void setOptions(CheckoutForwardRequestOptions options)
options- Parameters:
options-
-
paymentMethod
public CheckoutForwardRequest paymentMethod(CheckoutForwardRequestCard paymentMethod)
paymentMethod- Parameters:
paymentMethod-- Returns:
- the current
CheckoutForwardRequestinstance, allowing for method chaining
-
getPaymentMethod
public CheckoutForwardRequestCard getPaymentMethod()
Get paymentMethod- Returns:
- paymentMethod
-
setPaymentMethod
public void setPaymentMethod(CheckoutForwardRequestCard paymentMethod)
paymentMethod- Parameters:
paymentMethod-
-
request
public CheckoutForwardRequest request(CheckoutOutgoingForwardRequest request)
request- Parameters:
request-- Returns:
- the current
CheckoutForwardRequestinstance, allowing for method chaining
-
getRequest
public CheckoutOutgoingForwardRequest getRequest()
Get request- Returns:
- request
-
setRequest
public void setRequest(CheckoutOutgoingForwardRequest request)
request- Parameters:
request-
-
shopperReference
public CheckoutForwardRequest shopperReference(String shopperReference)
Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.- Parameters:
shopperReference- Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.- Returns:
- the current
CheckoutForwardRequestinstance, allowing for method chaining
-
getShopperReference
public String getShopperReference()
Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.- Returns:
- shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
-
setShopperReference
public void setShopperReference(String shopperReference)
Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.- Parameters:
shopperReference- Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
-
storedPaymentMethodId
public CheckoutForwardRequest storedPaymentMethodId(String storedPaymentMethodId)
The unique identifier of the token that you want to forward to the third party. This is the `storedPaymentMethodId` you received in the webhook after you created the token.- Parameters:
storedPaymentMethodId- The unique identifier of the token that you want to forward to the third party. This is the `storedPaymentMethodId` you received in the webhook after you created the token.- Returns:
- the current
CheckoutForwardRequestinstance, allowing for method chaining
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
The unique identifier of the token that you want to forward to the third party. This is the `storedPaymentMethodId` you received in the webhook after you created the token.- Returns:
- storedPaymentMethodId The unique identifier of the token that you want to forward to the third party. This is the `storedPaymentMethodId` you received in the webhook after you created the token.
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
The unique identifier of the token that you want to forward to the third party. This is the `storedPaymentMethodId` you received in the webhook after you created the token.- Parameters:
storedPaymentMethodId- The unique identifier of the token that you want to forward to the third party. This is the `storedPaymentMethodId` you received in the webhook after you created the token.
-
includeNullValues
public CheckoutForwardRequest 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 CheckoutForwardRequest 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 CheckoutForwardRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CheckoutForwardRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutForwardRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CheckoutForwardRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CheckoutForwardRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-