Package com.adyen.model.checkout
Class CreateCheckoutSessionResponse
- java.lang.Object
-
- com.adyen.model.checkout.CreateCheckoutSessionResponse
-
public class CreateCheckoutSessionResponse extends Object
CreateCheckoutSessionResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateCheckoutSessionResponse.ChannelEnumThe platform where a payment transaction takes place.static classCreateCheckoutSessionResponse.RecurringProcessingModelEnumDefines a recurring payment type.static classCreateCheckoutSessionResponse.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 CreateCheckoutSessionResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCheckoutSessionResponseaccountInfo(AccountInfo accountInfo)CreateCheckoutSessionResponseaddAllowedPaymentMethodsItem(String allowedPaymentMethodsItem)CreateCheckoutSessionResponseaddBlockedPaymentMethodsItem(String blockedPaymentMethodsItem)CreateCheckoutSessionResponseadditionalAmount(Amount additionalAmount)CreateCheckoutSessionResponseadditionalData(Map<String,String> additionalData)CreateCheckoutSessionResponseaddLineItemsItem(LineItem lineItemsItem)CreateCheckoutSessionResponseaddSplitsItem(Split splitsItem)CreateCheckoutSessionResponseallowedPaymentMethods(List<String> allowedPaymentMethods)CreateCheckoutSessionResponseamount(Amount amount)CreateCheckoutSessionResponseapplicationInfo(ApplicationInfo applicationInfo)CreateCheckoutSessionResponseauthenticationData(AuthenticationData authenticationData)CreateCheckoutSessionResponsebillingAddress(Address billingAddress)CreateCheckoutSessionResponseblockedPaymentMethods(List<String> blockedPaymentMethods)CreateCheckoutSessionResponsecaptureDelayHours(Integer captureDelayHours)CreateCheckoutSessionResponsechannel(CreateCheckoutSessionResponse.ChannelEnum channel)CreateCheckoutSessionResponsecompany(Company company)CreateCheckoutSessionResponsecountryCode(String countryCode)CreateCheckoutSessionResponsedateOfBirth(String dateOfBirth)CreateCheckoutSessionResponsedeliveryAddress(Address deliveryAddress)CreateCheckoutSessionResponseenableOneClick(Boolean enableOneClick)CreateCheckoutSessionResponseenablePayOut(Boolean enablePayOut)CreateCheckoutSessionResponseenableRecurring(Boolean enableRecurring)booleanequals(Object o)CreateCheckoutSessionResponseexpiresAt(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.CreateCheckoutSessionResponse.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.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.StringgetId()A unique identifier of the session.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.CreateCheckoutSessionResponse.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 riskDataStringgetSessionData()Get sessionDataStringgetShopperEmail()The shopper's email address.CreateCheckoutSessionResponse.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()CreateCheckoutSessionResponselineItems(List<LineItem> lineItems)CreateCheckoutSessionResponsemandate(Mandate mandate)CreateCheckoutSessionResponsemcc(String mcc)CreateCheckoutSessionResponsemerchantAccount(String merchantAccount)CreateCheckoutSessionResponsemerchantOrderReference(String merchantOrderReference)CreateCheckoutSessionResponsemetadata(Map<String,String> metadata)CreateCheckoutSessionResponsempiData(ThreeDSecureData mpiData)CreateCheckoutSessionResponseputAdditionalDataItem(String key, String additionalDataItem)CreateCheckoutSessionResponseputMetadataItem(String key, String metadataItem)CreateCheckoutSessionResponserecurringExpiry(String recurringExpiry)CreateCheckoutSessionResponserecurringFrequency(String recurringFrequency)CreateCheckoutSessionResponserecurringProcessingModel(CreateCheckoutSessionResponse.RecurringProcessingModelEnum recurringProcessingModel)CreateCheckoutSessionResponseredirectFromIssuerMethod(String redirectFromIssuerMethod)CreateCheckoutSessionResponseredirectToIssuerMethod(String redirectToIssuerMethod)CreateCheckoutSessionResponsereference(String reference)CreateCheckoutSessionResponsereturnUrl(String returnUrl)CreateCheckoutSessionResponseriskData(RiskData riskData)CreateCheckoutSessionResponsesessionData(String sessionData)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(CreateCheckoutSessionResponse.ChannelEnum channel)voidsetCompany(Company company)voidsetCountryCode(String countryCode)voidsetDateOfBirth(String dateOfBirth)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(CreateCheckoutSessionResponse.RecurringProcessingModelEnum recurringProcessingModel)voidsetRedirectFromIssuerMethod(String redirectFromIssuerMethod)voidsetRedirectToIssuerMethod(String redirectToIssuerMethod)voidsetReference(String reference)voidsetReturnUrl(String returnUrl)voidsetRiskData(RiskData riskData)voidsetSessionData(String sessionData)voidsetShopperEmail(String shopperEmail)voidsetShopperInteraction(CreateCheckoutSessionResponse.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)CreateCheckoutSessionResponseshopperEmail(String shopperEmail)CreateCheckoutSessionResponseshopperInteraction(CreateCheckoutSessionResponse.ShopperInteractionEnum shopperInteraction)CreateCheckoutSessionResponseshopperIP(String shopperIP)CreateCheckoutSessionResponseshopperLocale(String shopperLocale)CreateCheckoutSessionResponseshopperName(Name shopperName)CreateCheckoutSessionResponseshopperReference(String shopperReference)CreateCheckoutSessionResponseshopperStatement(String shopperStatement)CreateCheckoutSessionResponsesocialSecurityNumber(String socialSecurityNumber)CreateCheckoutSessionResponsesplitCardFundingSources(Boolean splitCardFundingSources)CreateCheckoutSessionResponsesplits(List<Split> splits)CreateCheckoutSessionResponsestorePaymentMethod(Boolean storePaymentMethod)CreateCheckoutSessionResponsetelephoneNumber(String telephoneNumber)CreateCheckoutSessionResponsethreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)StringtoString()CreateCheckoutSessionResponsetrustedShopper(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_ID
public static final String SERIALIZED_NAME_ID
- 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_SESSION_DATA
public static final String SERIALIZED_NAME_SESSION_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 CreateCheckoutSessionResponse accountInfo(AccountInfo accountInfo)
-
getAccountInfo
public AccountInfo getAccountInfo()
Get accountInfo- Returns:
- accountInfo
-
setAccountInfo
public void setAccountInfo(AccountInfo accountInfo)
-
additionalAmount
public CreateCheckoutSessionResponse additionalAmount(Amount additionalAmount)
-
getAdditionalAmount
public Amount getAdditionalAmount()
Get additionalAmount- Returns:
- additionalAmount
-
setAdditionalAmount
public void setAdditionalAmount(Amount additionalAmount)
-
additionalData
public CreateCheckoutSessionResponse additionalData(Map<String,String> additionalData)
-
putAdditionalDataItem
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse allowedPaymentMethods(List<String> allowedPaymentMethods)
-
addAllowedPaymentMethodsItem
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
applicationInfo
public CreateCheckoutSessionResponse applicationInfo(ApplicationInfo applicationInfo)
-
getApplicationInfo
public ApplicationInfo getApplicationInfo()
Get applicationInfo- Returns:
- applicationInfo
-
setApplicationInfo
public void setApplicationInfo(ApplicationInfo applicationInfo)
-
authenticationData
public CreateCheckoutSessionResponse authenticationData(AuthenticationData authenticationData)
-
getAuthenticationData
public AuthenticationData getAuthenticationData()
Get authenticationData- Returns:
- authenticationData
-
setAuthenticationData
public void setAuthenticationData(AuthenticationData authenticationData)
-
billingAddress
public CreateCheckoutSessionResponse billingAddress(Address billingAddress)
-
getBillingAddress
public Address getBillingAddress()
Get billingAddress- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(Address billingAddress)
-
blockedPaymentMethods
public CreateCheckoutSessionResponse blockedPaymentMethods(List<String> blockedPaymentMethods)
-
addBlockedPaymentMethodsItem
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse channel(CreateCheckoutSessionResponse.ChannelEnum channel)
-
getChannel
public CreateCheckoutSessionResponse.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(CreateCheckoutSessionResponse.ChannelEnum channel)
-
company
public CreateCheckoutSessionResponse company(Company company)
-
getCompany
public Company getCompany()
Get company- Returns:
- company
-
setCompany
public void setCompany(Company company)
-
countryCode
public CreateCheckoutSessionResponse countryCode(String countryCode)
-
getCountryCode
public String getCountryCode()
The shopper's two-letter country code.- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
-
dateOfBirth
public CreateCheckoutSessionResponse 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)
-
deliveryAddress
public CreateCheckoutSessionResponse deliveryAddress(Address deliveryAddress)
-
getDeliveryAddress
public Address getDeliveryAddress()
Get deliveryAddress- Returns:
- deliveryAddress
-
setDeliveryAddress
public void setDeliveryAddress(Address deliveryAddress)
-
enableOneClick
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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)
-
getId
public String getId()
A unique identifier of the session.- Returns:
- id
-
lineItems
public CreateCheckoutSessionResponse lineItems(List<LineItem> lineItems)
-
addLineItemsItem
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse mandate(Mandate mandate)
-
getMandate
public Mandate getMandate()
Get mandate- Returns:
- mandate
-
setMandate
public void setMandate(Mandate mandate)
-
mcc
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse metadata(Map<String,String> metadata)
-
putMetadataItem
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse mpiData(ThreeDSecureData mpiData)
-
getMpiData
public ThreeDSecureData getMpiData()
Get mpiData- Returns:
- mpiData
-
setMpiData
public void setMpiData(ThreeDSecureData mpiData)
-
recurringExpiry
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse recurringProcessingModel(CreateCheckoutSessionResponse.RecurringProcessingModelEnum recurringProcessingModel)
-
getRecurringProcessingModel
public CreateCheckoutSessionResponse.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(CreateCheckoutSessionResponse.RecurringProcessingModelEnum recurringProcessingModel)
-
redirectFromIssuerMethod
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse reference(String reference)
-
getReference
public String getReference()
The reference to uniquely identify a payment.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
returnUrl
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse riskData(RiskData riskData)
-
getRiskData
public RiskData getRiskData()
Get riskData- Returns:
- riskData
-
setRiskData
public void setRiskData(RiskData riskData)
-
sessionData
public CreateCheckoutSessionResponse sessionData(String sessionData)
-
getSessionData
public String getSessionData()
Get sessionData- Returns:
- sessionData
-
setSessionData
public void setSessionData(String sessionData)
-
shopperEmail
public CreateCheckoutSessionResponse shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper's email address.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
-
shopperIP
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse shopperInteraction(CreateCheckoutSessionResponse.ShopperInteractionEnum shopperInteraction)
-
getShopperInteraction
public CreateCheckoutSessionResponse.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(CreateCheckoutSessionResponse.ShopperInteractionEnum shopperInteraction)
-
shopperLocale
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse shopperName(Name shopperName)
-
getShopperName
public Name getShopperName()
Get shopperName- Returns:
- shopperName
-
setShopperName
public void setShopperName(Name shopperName)
-
shopperReference
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse socialSecurityNumber(String socialSecurityNumber)
-
getSocialSecurityNumber
public String getSocialSecurityNumber()
The shopper's social security number.- Returns:
- socialSecurityNumber
-
setSocialSecurityNumber
public void setSocialSecurityNumber(String socialSecurityNumber)
-
splitCardFundingSources
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse splits(List<Split> splits)
-
addSplitsItem
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse telephoneNumber(String telephoneNumber)
-
getTelephoneNumber
public String getTelephoneNumber()
The shopper's telephone number.- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
-
threeDSAuthenticationOnly
public CreateCheckoutSessionResponse 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 CreateCheckoutSessionResponse 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)
-
-