Package com.adyen.model.checkout
Class CreateCheckoutSessionRequest
- java.lang.Object
-
- com.adyen.model.checkout.CreateCheckoutSessionRequest
-
public class CreateCheckoutSessionRequest extends Object
CreateCheckoutSessionRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateCheckoutSessionRequest.ChannelEnumThe platform where a payment transaction takes place.static classCreateCheckoutSessionRequest.RecurringProcessingModelEnumDefines a recurring payment type.static classCreateCheckoutSessionRequest.ShopperInteractionEnumSpecifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CreateCheckoutSessionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCheckoutSessionRequestaccountInfo(AccountInfo accountInfo)CreateCheckoutSessionRequestaddAllowedPaymentMethodsItem(String allowedPaymentMethodsItem)CreateCheckoutSessionRequestaddBlockedPaymentMethodsItem(String blockedPaymentMethodsItem)CreateCheckoutSessionRequestadditionalAmount(Amount additionalAmount)CreateCheckoutSessionRequestadditionalData(Map<String,String> additionalData)CreateCheckoutSessionRequestaddLineItemsItem(LineItem lineItemsItem)CreateCheckoutSessionRequestaddSplitsItem(Split splitsItem)CreateCheckoutSessionRequestallowedPaymentMethods(List<String> allowedPaymentMethods)CreateCheckoutSessionRequestamount(Amount amount)CreateCheckoutSessionRequestapplicationInfo(ApplicationInfo applicationInfo)CreateCheckoutSessionRequestauthenticationData(AuthenticationData authenticationData)CreateCheckoutSessionRequestbillingAddress(Address billingAddress)CreateCheckoutSessionRequestblockedPaymentMethods(List<String> blockedPaymentMethods)CreateCheckoutSessionRequestcaptureDelayHours(Integer captureDelayHours)CreateCheckoutSessionRequestchannel(CreateCheckoutSessionRequest.ChannelEnum channel)CreateCheckoutSessionRequestcompany(Company company)CreateCheckoutSessionRequestcountryCode(String countryCode)CreateCheckoutSessionRequestdateOfBirth(String dateOfBirth)CreateCheckoutSessionRequestdeliverAt(Date deliverAt)CreateCheckoutSessionRequestdeliveryAddress(Address deliveryAddress)CreateCheckoutSessionRequestenableOneClick(Boolean enableOneClick)CreateCheckoutSessionRequestenablePayOut(Boolean enablePayOut)CreateCheckoutSessionRequestenableRecurring(Boolean enableRecurring)booleanequals(Object o)CreateCheckoutSessionRequestexpiresAt(String expiresAt)AccountInfogetAccountInfo()Get accountInfoAmountgetAdditionalAmount()Get additionalAmountMap<String,String>getAdditionalData()This field contains additional data, which may be required for a particular payment request.List<String>getAllowedPaymentMethods()List of payment methods to be presented to the shopper.AmountgetAmount()Get amountApplicationInfogetApplicationInfo()Get applicationInfoAuthenticationDatagetAuthenticationData()Get authenticationDataAddressgetBillingAddress()Get billingAddressList<String>getBlockedPaymentMethods()List of payment methods to be hidden from the shopper.IntegergetCaptureDelayHours()The delay between the authorisation and scheduled auto-capture, specified in hours.CreateCheckoutSessionRequest.ChannelEnumgetChannel()The platform where a payment transaction takes place.CompanygetCompany()Get companyStringgetCountryCode()The shopper's two-letter country code.StringgetDateOfBirth()The shopper's date of birth.DategetDeliverAt()The date and time when the purchased goods should be delivered.AddressgetDeliveryAddress()Get deliveryAddressBooleangetEnableOneClick()When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments.BooleangetEnablePayOut()When true and `shopperReference` is provided, the payment details will be tokenized for payouts.BooleangetEnableRecurring()When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.StringgetExpiresAt()The date the session expires in ISO8601 format.List<LineItem>getLineItems()Price and product information about the purchased items, to be included on the invoice sent to the shopper.MandategetMandate()Get mandateStringgetMcc()The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment.StringgetMerchantAccount()The merchant account identifier, with which you want to process the transaction.StringgetMerchantOrderReference()This reference allows linking multiple transactions to each other for reporting purposes (i.e.Map<String,String>getMetadata()Metadata consists of entries, each of which includes a key and a value.ThreeDSecureDatagetMpiData()Get mpiDataStringgetRecurringExpiry()Date after which no further authorisations shall be performed.StringgetRecurringFrequency()Minimum number of days between authorisations.CreateCheckoutSessionRequest.RecurringProcessingModelEnumgetRecurringProcessingModel()Defines a recurring payment type.StringgetRedirectFromIssuerMethod()Specifies the redirect method (GET or POST) when redirecting back from the issuer.StringgetRedirectToIssuerMethod()Specifies the redirect method (GET or POST) when redirecting to the issuer.StringgetReference()The reference to uniquely identify a payment.StringgetReturnUrl()The URL to return to when a redirect payment is completed.RiskDatagetRiskData()Get riskDataStringgetShopperEmail()The shopper's email address.CreateCheckoutSessionRequest.ShopperInteractionEnumgetShopperInteraction()Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.StringgetShopperIP()The shopper's IP address.StringgetShopperLocale()The combination of a language code and a country code to specify the language to be used in the payment.NamegetShopperName()Get shopperNameStringgetShopperReference()Your reference to uniquely identify this shopper, for example user ID or account ID.StringgetShopperStatement()The text to be shown on the shopper's bank statement.StringgetSocialSecurityNumber()The shopper's social security number.BooleangetSplitCardFundingSources()Boolean value indicating whether the card payment method should be split into separate debit and credit options.List<Split>getSplits()An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).BooleangetStorePaymentMethod()When this is set to **true** and the `shopperReference` is provided, the payment details will be stored.StringgetTelephoneNumber()The shopper's telephone number.BooleangetThreeDSAuthenticationOnly()If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.BooleangetTrustedShopper()Set to true if the payment should be routed to a trusted MID.inthashCode()CreateCheckoutSessionRequestlineItems(List<LineItem> lineItems)CreateCheckoutSessionRequestmandate(Mandate mandate)CreateCheckoutSessionRequestmcc(String mcc)CreateCheckoutSessionRequestmerchantAccount(String merchantAccount)CreateCheckoutSessionRequestmerchantOrderReference(String merchantOrderReference)CreateCheckoutSessionRequestmetadata(Map<String,String> metadata)CreateCheckoutSessionRequestmpiData(ThreeDSecureData mpiData)CreateCheckoutSessionRequestputAdditionalDataItem(String key, String additionalDataItem)CreateCheckoutSessionRequestputMetadataItem(String key, String metadataItem)CreateCheckoutSessionRequestrecurringExpiry(String recurringExpiry)CreateCheckoutSessionRequestrecurringFrequency(String recurringFrequency)CreateCheckoutSessionRequestrecurringProcessingModel(CreateCheckoutSessionRequest.RecurringProcessingModelEnum recurringProcessingModel)CreateCheckoutSessionRequestredirectFromIssuerMethod(String redirectFromIssuerMethod)CreateCheckoutSessionRequestredirectToIssuerMethod(String redirectToIssuerMethod)CreateCheckoutSessionRequestreference(String reference)CreateCheckoutSessionRequestreturnUrl(String returnUrl)CreateCheckoutSessionRequestriskData(RiskData riskData)voidsetAccountInfo(AccountInfo accountInfo)voidsetAdditionalAmount(Amount additionalAmount)voidsetAdditionalData(Map<String,String> additionalData)voidsetAllowedPaymentMethods(List<String> allowedPaymentMethods)voidsetAmount(Amount amount)voidsetApplicationInfo(ApplicationInfo applicationInfo)voidsetAuthenticationData(AuthenticationData authenticationData)voidsetBillingAddress(Address billingAddress)voidsetBlockedPaymentMethods(List<String> blockedPaymentMethods)voidsetCaptureDelayHours(Integer captureDelayHours)voidsetChannel(CreateCheckoutSessionRequest.ChannelEnum channel)voidsetCompany(Company company)voidsetCountryCode(String countryCode)voidsetDateOfBirth(String dateOfBirth)voidsetDeliverAt(Date deliverAt)voidsetDeliveryAddress(Address deliveryAddress)voidsetEnableOneClick(Boolean enableOneClick)voidsetEnablePayOut(Boolean enablePayOut)voidsetEnableRecurring(Boolean enableRecurring)voidsetExpiresAt(String expiresAt)voidsetLineItems(List<LineItem> lineItems)voidsetMandate(Mandate mandate)voidsetMcc(String mcc)voidsetMerchantAccount(String merchantAccount)voidsetMerchantOrderReference(String merchantOrderReference)voidsetMetadata(Map<String,String> metadata)voidsetMpiData(ThreeDSecureData mpiData)voidsetRecurringExpiry(String recurringExpiry)voidsetRecurringFrequency(String recurringFrequency)voidsetRecurringProcessingModel(CreateCheckoutSessionRequest.RecurringProcessingModelEnum recurringProcessingModel)voidsetRedirectFromIssuerMethod(String redirectFromIssuerMethod)voidsetRedirectToIssuerMethod(String redirectToIssuerMethod)voidsetReference(String reference)voidsetReturnUrl(String returnUrl)voidsetRiskData(RiskData riskData)voidsetShopperEmail(String shopperEmail)voidsetShopperInteraction(CreateCheckoutSessionRequest.ShopperInteractionEnum shopperInteraction)voidsetShopperIP(String shopperIP)voidsetShopperLocale(String shopperLocale)voidsetShopperName(Name shopperName)voidsetShopperReference(String shopperReference)voidsetShopperStatement(String shopperStatement)voidsetSocialSecurityNumber(String socialSecurityNumber)voidsetSplitCardFundingSources(Boolean splitCardFundingSources)voidsetSplits(List<Split> splits)voidsetStorePaymentMethod(Boolean storePaymentMethod)voidsetTelephoneNumber(String telephoneNumber)voidsetThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)voidsetTrustedShopper(Boolean trustedShopper)CreateCheckoutSessionRequestshopperEmail(String shopperEmail)CreateCheckoutSessionRequestshopperInteraction(CreateCheckoutSessionRequest.ShopperInteractionEnum shopperInteraction)CreateCheckoutSessionRequestshopperIP(String shopperIP)CreateCheckoutSessionRequestshopperLocale(String shopperLocale)CreateCheckoutSessionRequestshopperName(Name shopperName)CreateCheckoutSessionRequestshopperReference(String shopperReference)CreateCheckoutSessionRequestshopperStatement(String shopperStatement)CreateCheckoutSessionRequestsocialSecurityNumber(String socialSecurityNumber)CreateCheckoutSessionRequestsplitCardFundingSources(Boolean splitCardFundingSources)CreateCheckoutSessionRequestsplits(List<Split> splits)CreateCheckoutSessionRequeststorePaymentMethod(Boolean storePaymentMethod)CreateCheckoutSessionRequesttelephoneNumber(String telephoneNumber)CreateCheckoutSessionRequestthreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)StringtoString()CreateCheckoutSessionRequesttrustedShopper(Boolean trustedShopper)
-
-
-
Field Detail
-
SERIALIZED_NAME_ACCOUNT_INFO
public static final String SERIALIZED_NAME_ACCOUNT_INFO
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDITIONAL_AMOUNT
public static final String SERIALIZED_NAME_ADDITIONAL_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDITIONAL_DATA
public static final String SERIALIZED_NAME_ADDITIONAL_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALLOWED_PAYMENT_METHODS
public static final String SERIALIZED_NAME_ALLOWED_PAYMENT_METHODS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLICATION_INFO
public static final String SERIALIZED_NAME_APPLICATION_INFO
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BILLING_ADDRESS
public static final String SERIALIZED_NAME_BILLING_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BLOCKED_PAYMENT_METHODS
public static final String SERIALIZED_NAME_BLOCKED_PAYMENT_METHODS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CAPTURE_DELAY_HOURS
public static final String SERIALIZED_NAME_CAPTURE_DELAY_HOURS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CHANNEL
public static final String SERIALIZED_NAME_CHANNEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMPANY
public static final String SERIALIZED_NAME_COMPANY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATE_OF_BIRTH
public static final String SERIALIZED_NAME_DATE_OF_BIRTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELIVERY_ADDRESS
public static final String SERIALIZED_NAME_DELIVERY_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLE_ONE_CLICK
public static final String SERIALIZED_NAME_ENABLE_ONE_CLICK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLE_PAY_OUT
public static final String SERIALIZED_NAME_ENABLE_PAY_OUT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLE_RECURRING
public static final String SERIALIZED_NAME_ENABLE_RECURRING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRES_AT
public static final String SERIALIZED_NAME_EXPIRES_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINE_ITEMS
public static final String SERIALIZED_NAME_LINE_ITEMS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MANDATE
public static final String SERIALIZED_NAME_MANDATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MCC
public static final String SERIALIZED_NAME_MCC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ORDER_REFERENCE
public static final String SERIALIZED_NAME_MERCHANT_ORDER_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METADATA
public static final String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MPI_DATA
public static final String SERIALIZED_NAME_MPI_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_EXPIRY
public static final String SERIALIZED_NAME_RECURRING_EXPIRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_FREQUENCY
public static final String SERIALIZED_NAME_RECURRING_FREQUENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_PROCESSING_MODEL
public static final String SERIALIZED_NAME_RECURRING_PROCESSING_MODEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REDIRECT_FROM_ISSUER_METHOD
public static final String SERIALIZED_NAME_REDIRECT_FROM_ISSUER_METHOD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REDIRECT_TO_ISSUER_METHOD
public static final String SERIALIZED_NAME_REDIRECT_TO_ISSUER_METHOD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RETURN_URL
public static final String SERIALIZED_NAME_RETURN_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RISK_DATA
public static final String SERIALIZED_NAME_RISK_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_EMAIL
public static final String SERIALIZED_NAME_SHOPPER_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_I_P
public static final String SERIALIZED_NAME_SHOPPER_I_P
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_INTERACTION
public static final String SERIALIZED_NAME_SHOPPER_INTERACTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_LOCALE
public static final String SERIALIZED_NAME_SHOPPER_LOCALE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_NAME
public static final String SERIALIZED_NAME_SHOPPER_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_REFERENCE
public static final String SERIALIZED_NAME_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_STATEMENT
public static final String SERIALIZED_NAME_SHOPPER_STATEMENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOCIAL_SECURITY_NUMBER
public static final String SERIALIZED_NAME_SOCIAL_SECURITY_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SPLIT_CARD_FUNDING_SOURCES
public static final String SERIALIZED_NAME_SPLIT_CARD_FUNDING_SOURCES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SPLITS
public static final String SERIALIZED_NAME_SPLITS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORE_PAYMENT_METHOD
public static final String SERIALIZED_NAME_STORE_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TELEPHONE_NUMBER
public static final String SERIALIZED_NAME_TELEPHONE_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_THREE_D_S_AUTHENTICATION_ONLY
public static final String SERIALIZED_NAME_THREE_D_S_AUTHENTICATION_ONLY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRUSTED_SHOPPER
public static final String SERIALIZED_NAME_TRUSTED_SHOPPER
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountInfo
public CreateCheckoutSessionRequest accountInfo(AccountInfo accountInfo)
-
getAccountInfo
public AccountInfo getAccountInfo()
Get accountInfo- Returns:
- accountInfo
-
setAccountInfo
public void setAccountInfo(AccountInfo accountInfo)
-
additionalAmount
public CreateCheckoutSessionRequest additionalAmount(Amount additionalAmount)
-
getAdditionalAmount
public Amount getAdditionalAmount()
Get additionalAmount- Returns:
- additionalAmount
-
setAdditionalAmount
public void setAdditionalAmount(Amount additionalAmount)
-
additionalData
public CreateCheckoutSessionRequest additionalData(Map<String,String> additionalData)
-
putAdditionalDataItem
public CreateCheckoutSessionRequest putAdditionalDataItem(String key, String additionalDataItem)
-
getAdditionalData
public Map<String,String> getAdditionalData()
This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value.- Returns:
- additionalData
-
allowedPaymentMethods
public CreateCheckoutSessionRequest allowedPaymentMethods(List<String> allowedPaymentMethods)
-
addAllowedPaymentMethodsItem
public CreateCheckoutSessionRequest addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem)
-
getAllowedPaymentMethods
public List<String> getAllowedPaymentMethods()
List of payment methods to be presented to the shopper. To refer to payment methods, use their `paymentMethod.type`from [Payment methods overview](https://docs.adyen.com/payment-methods). Example: `\"allowedPaymentMethods\":[\"ideal\",\"giropay\"]`- Returns:
- allowedPaymentMethods
-
amount
public CreateCheckoutSessionRequest amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
applicationInfo
public CreateCheckoutSessionRequest applicationInfo(ApplicationInfo applicationInfo)
-
getApplicationInfo
public ApplicationInfo getApplicationInfo()
Get applicationInfo- Returns:
- applicationInfo
-
setApplicationInfo
public void setApplicationInfo(ApplicationInfo applicationInfo)
-
authenticationData
public CreateCheckoutSessionRequest authenticationData(AuthenticationData authenticationData)
-
getAuthenticationData
public AuthenticationData getAuthenticationData()
Get authenticationData- Returns:
- authenticationData
-
setAuthenticationData
public void setAuthenticationData(AuthenticationData authenticationData)
-
billingAddress
public CreateCheckoutSessionRequest billingAddress(Address billingAddress)
-
getBillingAddress
public Address getBillingAddress()
Get billingAddress- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(Address billingAddress)
-
blockedPaymentMethods
public CreateCheckoutSessionRequest blockedPaymentMethods(List<String> blockedPaymentMethods)
-
addBlockedPaymentMethodsItem
public CreateCheckoutSessionRequest addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem)
-
getBlockedPaymentMethods
public List<String> getBlockedPaymentMethods()
List of payment methods to be hidden from the shopper. To refer to payment methods, use their `paymentMethod.type`from [Payment methods overview](https://docs.adyen.com/payment-methods). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]`- Returns:
- blockedPaymentMethods
-
captureDelayHours
public CreateCheckoutSessionRequest captureDelayHours(Integer captureDelayHours)
-
getCaptureDelayHours
public Integer getCaptureDelayHours()
The delay between the authorisation and scheduled auto-capture, specified in hours.- Returns:
- captureDelayHours
-
setCaptureDelayHours
public void setCaptureDelayHours(Integer captureDelayHours)
-
channel
public CreateCheckoutSessionRequest channel(CreateCheckoutSessionRequest.ChannelEnum channel)
-
getChannel
public CreateCheckoutSessionRequest.ChannelEnum getChannel()
The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web- Returns:
- channel
-
setChannel
public void setChannel(CreateCheckoutSessionRequest.ChannelEnum channel)
-
company
public CreateCheckoutSessionRequest company(Company company)
-
getCompany
public Company getCompany()
Get company- Returns:
- company
-
setCompany
public void setCompany(Company company)
-
countryCode
public CreateCheckoutSessionRequest countryCode(String countryCode)
-
getCountryCode
public String getCountryCode()
The shopper's two-letter country code.- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
-
dateOfBirth
public CreateCheckoutSessionRequest dateOfBirth(String dateOfBirth)
-
getDateOfBirth
public String getDateOfBirth()
The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD- Returns:
- dateOfBirth
-
setDateOfBirth
public void setDateOfBirth(String dateOfBirth)
-
deliverAt
public CreateCheckoutSessionRequest deliverAt(Date deliverAt)
-
getDeliverAt
public Date getDeliverAt()
The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.- Returns:
- deliverAt
-
setDeliverAt
public void setDeliverAt(Date deliverAt)
-
deliveryAddress
public CreateCheckoutSessionRequest deliveryAddress(Address deliveryAddress)
-
getDeliveryAddress
public Address getDeliveryAddress()
Get deliveryAddress- Returns:
- deliveryAddress
-
setDeliveryAddress
public void setDeliveryAddress(Address deliveryAddress)
-
enableOneClick
public CreateCheckoutSessionRequest enableOneClick(Boolean enableOneClick)
-
getEnableOneClick
public Boolean getEnableOneClick()
When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments.- Returns:
- enableOneClick
-
setEnableOneClick
public void setEnableOneClick(Boolean enableOneClick)
-
enablePayOut
public CreateCheckoutSessionRequest enablePayOut(Boolean enablePayOut)
-
getEnablePayOut
public Boolean getEnablePayOut()
When true and `shopperReference` is provided, the payment details will be tokenized for payouts.- Returns:
- enablePayOut
-
setEnablePayOut
public void setEnablePayOut(Boolean enablePayOut)
-
enableRecurring
public CreateCheckoutSessionRequest enableRecurring(Boolean enableRecurring)
-
getEnableRecurring
public Boolean getEnableRecurring()
When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.- Returns:
- enableRecurring
-
setEnableRecurring
public void setEnableRecurring(Boolean enableRecurring)
-
expiresAt
public CreateCheckoutSessionRequest expiresAt(String expiresAt)
-
getExpiresAt
public String getExpiresAt()
The date the session expires in ISO8601 format. When not specified, it defaults to 1h after creation.- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(String expiresAt)
-
lineItems
public CreateCheckoutSessionRequest lineItems(List<LineItem> lineItems)
-
addLineItemsItem
public CreateCheckoutSessionRequest addLineItemsItem(LineItem lineItemsItem)
-
getLineItems
public List<LineItem> getLineItems()
Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip.- Returns:
- lineItems
-
mandate
public CreateCheckoutSessionRequest mandate(Mandate mandate)
-
getMandate
public Mandate getMandate()
Get mandate- Returns:
- mandate
-
setMandate
public void setMandate(Mandate mandate)
-
mcc
public CreateCheckoutSessionRequest mcc(String mcc)
-
getMcc
public String getMcc()
The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant.- Returns:
- mcc
-
setMcc
public void setMcc(String mcc)
-
merchantAccount
public CreateCheckoutSessionRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier, with which you want to process the transaction.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
merchantOrderReference
public CreateCheckoutSessionRequest merchantOrderReference(String merchantOrderReference)
-
getMerchantOrderReference
public String getMerchantOrderReference()
This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`.- Returns:
- merchantOrderReference
-
setMerchantOrderReference
public void setMerchantOrderReference(String merchantOrderReference)
-
metadata
public CreateCheckoutSessionRequest metadata(Map<String,String> metadata)
-
putMetadataItem
public CreateCheckoutSessionRequest putMetadataItem(String key, String metadataItem)
-
getMetadata
public Map<String,String> getMetadata()
Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request.* Maximum 20 characters per key. * Maximum 80 characters per value.- Returns:
- metadata
-
mpiData
public CreateCheckoutSessionRequest mpiData(ThreeDSecureData mpiData)
-
getMpiData
public ThreeDSecureData getMpiData()
Get mpiData- Returns:
- mpiData
-
setMpiData
public void setMpiData(ThreeDSecureData mpiData)
-
recurringExpiry
public CreateCheckoutSessionRequest recurringExpiry(String recurringExpiry)
-
getRecurringExpiry
public String getRecurringExpiry()
Date after which no further authorisations shall be performed. Only for 3D Secure 2.- Returns:
- recurringExpiry
-
setRecurringExpiry
public void setRecurringExpiry(String recurringExpiry)
-
recurringFrequency
public CreateCheckoutSessionRequest recurringFrequency(String recurringFrequency)
-
getRecurringFrequency
public String getRecurringFrequency()
Minimum number of days between authorisations. Only for 3D Secure 2.- Returns:
- recurringFrequency
-
setRecurringFrequency
public void setRecurringFrequency(String recurringFrequency)
-
recurringProcessingModel
public CreateCheckoutSessionRequest recurringProcessingModel(CreateCheckoutSessionRequest.RecurringProcessingModelEnum recurringProcessingModel)
-
getRecurringProcessingModel
public CreateCheckoutSessionRequest.RecurringProcessingModelEnum getRecurringProcessingModel()
Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount.- Returns:
- recurringProcessingModel
-
setRecurringProcessingModel
public void setRecurringProcessingModel(CreateCheckoutSessionRequest.RecurringProcessingModelEnum recurringProcessingModel)
-
redirectFromIssuerMethod
public CreateCheckoutSessionRequest redirectFromIssuerMethod(String redirectFromIssuerMethod)
-
getRedirectFromIssuerMethod
public String getRedirectFromIssuerMethod()
Specifies the redirect method (GET or POST) when redirecting back from the issuer.- Returns:
- redirectFromIssuerMethod
-
setRedirectFromIssuerMethod
public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod)
-
redirectToIssuerMethod
public CreateCheckoutSessionRequest redirectToIssuerMethod(String redirectToIssuerMethod)
-
getRedirectToIssuerMethod
public String getRedirectToIssuerMethod()
Specifies the redirect method (GET or POST) when redirecting to the issuer.- Returns:
- redirectToIssuerMethod
-
setRedirectToIssuerMethod
public void setRedirectToIssuerMethod(String redirectToIssuerMethod)
-
reference
public CreateCheckoutSessionRequest reference(String reference)
-
getReference
public String getReference()
The reference to uniquely identify a payment.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
returnUrl
public CreateCheckoutSessionRequest returnUrl(String returnUrl)
-
getReturnUrl
public String getReturnUrl()
The URL to return to when a redirect payment is completed.- Returns:
- returnUrl
-
setReturnUrl
public void setReturnUrl(String returnUrl)
-
riskData
public CreateCheckoutSessionRequest riskData(RiskData riskData)
-
getRiskData
public RiskData getRiskData()
Get riskData- Returns:
- riskData
-
setRiskData
public void setRiskData(RiskData riskData)
-
shopperEmail
public CreateCheckoutSessionRequest shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper's email address.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
-
shopperIP
public CreateCheckoutSessionRequest shopperIP(String shopperIP)
-
getShopperIP
public String getShopperIP()
The shopper's IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new).- Returns:
- shopperIP
-
setShopperIP
public void setShopperIP(String shopperIP)
-
shopperInteraction
public CreateCheckoutSessionRequest shopperInteraction(CreateCheckoutSessionRequest.ShopperInteractionEnum shopperInteraction)
-
getShopperInteraction
public CreateCheckoutSessionRequest.ShopperInteractionEnum getShopperInteraction()
Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal.- Returns:
- shopperInteraction
-
setShopperInteraction
public void setShopperInteraction(CreateCheckoutSessionRequest.ShopperInteractionEnum shopperInteraction)
-
shopperLocale
public CreateCheckoutSessionRequest shopperLocale(String shopperLocale)
-
getShopperLocale
public String getShopperLocale()
The combination of a language code and a country code to specify the language to be used in the payment.- Returns:
- shopperLocale
-
setShopperLocale
public void setShopperLocale(String shopperLocale)
-
shopperName
public CreateCheckoutSessionRequest shopperName(Name shopperName)
-
getShopperName
public Name getShopperName()
Get shopperName- Returns:
- shopperName
-
setShopperName
public void setShopperName(Name shopperName)
-
shopperReference
public CreateCheckoutSessionRequest shopperReference(String shopperReference)
-
getShopperReference
public String getShopperReference()
Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
-
shopperStatement
public CreateCheckoutSessionRequest shopperStatement(String shopperStatement)
-
getShopperStatement
public String getShopperStatement()
The text to be shown on the shopper's bank statement. To enable this field, contact our [Support Team](https://support.adyen.com/hc/en-us/requests/new). We recommend sending a maximum of 22 characters, otherwise banks might truncate the string.- Returns:
- shopperStatement
-
setShopperStatement
public void setShopperStatement(String shopperStatement)
-
socialSecurityNumber
public CreateCheckoutSessionRequest socialSecurityNumber(String socialSecurityNumber)
-
getSocialSecurityNumber
public String getSocialSecurityNumber()
The shopper's social security number.- Returns:
- socialSecurityNumber
-
setSocialSecurityNumber
public void setSocialSecurityNumber(String socialSecurityNumber)
-
splitCardFundingSources
public CreateCheckoutSessionRequest splitCardFundingSources(Boolean splitCardFundingSources)
-
getSplitCardFundingSources
public Boolean getSplitCardFundingSources()
Boolean value indicating whether the card payment method should be split into separate debit and credit options.- Returns:
- splitCardFundingSources
-
setSplitCardFundingSources
public void setSplitCardFundingSources(Boolean splitCardFundingSources)
-
splits
public CreateCheckoutSessionRequest splits(List<Split> splits)
-
addSplitsItem
public CreateCheckoutSessionRequest addSplitsItem(Split splitsItem)
-
getSplits
public List<Split> getSplits()
An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).- Returns:
- splits
-
storePaymentMethod
public CreateCheckoutSessionRequest storePaymentMethod(Boolean storePaymentMethod)
-
getStorePaymentMethod
public Boolean getStorePaymentMethod()
When this is set to **true** and the `shopperReference` is provided, the payment details will be stored.- Returns:
- storePaymentMethod
-
setStorePaymentMethod
public void setStorePaymentMethod(Boolean storePaymentMethod)
-
telephoneNumber
public CreateCheckoutSessionRequest telephoneNumber(String telephoneNumber)
-
getTelephoneNumber
public String getTelephoneNumber()
The shopper's telephone number.- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
-
threeDSAuthenticationOnly
public CreateCheckoutSessionRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)
-
getThreeDSAuthenticationOnly
public Boolean getThreeDSAuthenticationOnly()
If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.- Returns:
- threeDSAuthenticationOnly
-
setThreeDSAuthenticationOnly
public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)
-
trustedShopper
public CreateCheckoutSessionRequest trustedShopper(Boolean trustedShopper)
-
getTrustedShopper
public Boolean getTrustedShopper()
Set to true if the payment should be routed to a trusted MID.- Returns:
- trustedShopper
-
setTrustedShopper
public void setTrustedShopper(Boolean trustedShopper)
-
-