Class AbstractPaymentRequest<T extends AbstractPaymentRequest<T>>

    • Constructor Detail

      • AbstractPaymentRequest

        public AbstractPaymentRequest()
    • Method Detail

      • setBrowserInfoData

        public T setBrowserInfoData​(String userAgent,
                                    String acceptHeader)
        Set browser data
        Parameters:
        userAgent - http header
        acceptHeader - http header
        Returns:
        browser data
      • getOrCreateAdditionalData

        public Map<String,​String> getOrCreateAdditionalData()
        get additionalData map Create the map if doesn't exists
        Returns:
        additional data
      • getAmount

        public Amount getAmount()
        the amount to charge
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
      • reference

        public T reference​(String reference)
      • getReference

        public String getReference()
        the reference assigned to the payment
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
      • billingAddress

        public T billingAddress​(Address billingAddress)
      • getBillingAddress

        public Address getBillingAddress()
        the address where to send the invoice
        Returns:
        billingAddress
      • setBillingAddress

        public void setBillingAddress​(Address billingAddress)
      • shopperIP

        public T shopperIP​(String shopperIP)
      • getShopperIP

        public String getShopperIP()
        the IP address of the shopper
        Returns:
        shopperIP
      • setShopperIP

        public void setShopperIP​(String shopperIP)
      • merchantAccount

        public T merchantAccount​(String merchantAccount)
      • getMerchantAccount

        public String getMerchantAccount()
        the merchant account which will be used to process the payment
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
      • browserInfo

        public T browserInfo​(BrowserInfo browserInfo)
      • getBrowserInfo

        public BrowserInfo getBrowserInfo()
        the browser info data
        Returns:
        browserInfo
      • setBrowserInfo

        public void setBrowserInfo​(BrowserInfo browserInfo)
      • shopperEmail

        public T shopperEmail​(String shopperEmail)
      • getShopperEmail

        public String getShopperEmail()
        the email address of the shopper / customer
        Returns:
        shopperEmail
      • setShopperEmail

        public void setShopperEmail​(String shopperEmail)
      • shopperReference

        public T shopperReference​(String shopperReference)
      • getShopperReference

        public String getShopperReference()
        a reference used to uniquely identify the shopper (e.g. user ID or account ID)
        Returns:
        shopperReference
      • setShopperReference

        public void setShopperReference​(String shopperReference)
      • recurring

        public T recurring​(Recurring recurring)
      • getRecurring

        public Recurring getRecurring()
        the recurring properties of the payment
        Returns:
        recurring
      • setRecurring

        public void setRecurring​(Recurring recurring)
      • shopperStatement

        public T shopperStatement​(String shopperStatement)
      • getShopperStatement

        public String getShopperStatement()
        the text to appear on the shopper's statement
        Returns:
        shopperStatement
      • setShopperStatement

        public void setShopperStatement​(String shopperStatement)
      • fraudOffset

        public T fraudOffset​(Integer fraudOffset)
      • getFraudOffset

        public Integer getFraudOffset()
        the offset that is added to the normal fraud score (positive or negative)
        Returns:
        fraudOffset
      • setFraudOffset

        public void setFraudOffset​(Integer fraudOffset)
      • sessionId

        public T sessionId​(String sessionId)
      • getFundingSource

        public AbstractPaymentRequest.FundingSourceEnum getFundingSource()
        How to process a combo card (for some Brazilian cards only). Allowed values: * debit * credit
        Returns:
        fundingSource
      • getSessionId

        public String getSessionId()
        Get sessionId
        Returns:
        sessionId
      • setSessionId

        public void setSessionId​(String sessionId)
      • additionalAmount

        public T additionalAmount​(Amount additionalAmount)
      • getAdditionalAmount

        public Amount getAdditionalAmount()
        the portion of the \"amount\" which is additional/surcharged. Required to be in the same currency as the amount.
        Returns:
        additionalAmount
      • setAdditionalAmount

        public void setAdditionalAmount​(Amount additionalAmount)
      • selectedRecurringDetailReference

        public T selectedRecurringDetailReference​(String selectedRecurringDetailReference)
      • getSelectedRecurringDetailReference

        public String getSelectedRecurringDetailReference()
        the recurringDetailReference you want to use for this payment
        Returns:
        selectedRecurringDetailReference
      • setSelectedRecurringDetailReference

        public void setSelectedRecurringDetailReference​(String selectedRecurringDetailReference)
      • orderReference

        public T orderReference​(String orderReference)
      • getOrderReference

        public String getOrderReference()
        the order reference to link multiple partial payments
        Returns:
        orderReference
      • setOrderReference

        public void setOrderReference​(String orderReference)
      • merchantOrderReference

        public T merchantOrderReference​(String merchantOrderReference)
      • getMerchantOrderReference

        public String getMerchantOrderReference()
        the reference to link multiple transactions to each other
        Returns:
        merchantOrderReference
      • setMerchantOrderReference

        public void setMerchantOrderReference​(String merchantOrderReference)
      • dccQuote

        public T dccQuote​(ForexQuote dccQuote)
      • getDccQuote

        public ForexQuote getDccQuote()
        the forex quote as returned in the response of the forex service
        Returns:
        dccQuote
      • setDccQuote

        public void setDccQuote​(ForexQuote dccQuote)
      • additionalData

        public T additionalData​(Map<String,​String> additionalData)
      • getAdditionalData

        public Map<String,​String> getAdditionalData()
        a map of name/value pairs for passing in additional/industry-specific data
        Returns:
        additionalData
      • setAdditionalData

        public void setAdditionalData​(Map<String,​String> additionalData)
      • shopperName

        public T shopperName​(Name shopperName)
      • getShopperName

        public Name getShopperName()
        the name of the shopper
        Returns:
        shopperName
      • setShopperName

        public void setShopperName​(Name shopperName)
      • shopperLocale

        public T shopperLocale​(String shopperLocale)
      • getShopperLocale

        public String getShopperLocale()
        the combination of language code and country code to specify the language to be used in the payment
        Returns:
        shopperLocale
      • setShopperLocale

        public void setShopperLocale​(String shopperLocale)
      • selectedBrand

        public T selectedBrand​(String selectedBrand)
      • getSelectedBrand

        public String getSelectedBrand()
        the selected brand how to process the payment for dual branded cards
        Returns:
        selectedBrand
      • setSelectedBrand

        public void setSelectedBrand​(String selectedBrand)
      • deliveryAddress

        public T deliveryAddress​(Address deliveryAddress)
      • getDeliveryAddress

        public Address getDeliveryAddress()
        the address where to deliver
        Returns:
        deliveryAddress
      • setDeliveryAddress

        public void setDeliveryAddress​(Address deliveryAddress)
      • deliveryDate

        public T deliveryDate​(Date deliveryDate)
      • getDeliveryDate

        public Date getDeliveryDate()
        the expected date of delivery or fulfillment
        Returns:
        deliveryDate
      • setDeliveryDate

        public void setDeliveryDate​(Date deliveryDate)
      • deviceFingerprint

        public T deviceFingerprint​(String deviceFingerprint)
      • getDeviceFingerprint

        public String getDeviceFingerprint()
        Get deviceFingerprint
        Returns:
        deviceFingerprint
      • setDeviceFingerprint

        public void setDeviceFingerprint​(String deviceFingerprint)
      • installments

        public T installments​(Installments installments)
      • getInstallments

        public Installments getInstallments()
        the installment properties of the payment
        Returns:
        installments
      • setInstallments

        public void setInstallments​(Installments installments)
      • socialSecurityNumber

        public T socialSecurityNumber​(String socialSecurityNumber)
      • getSocialSecurityNumber

        public String getSocialSecurityNumber()
        the shopper's social security number
        Returns:
        socialSecurityNumber
      • setSocialSecurityNumber

        public void setSocialSecurityNumber​(String socialSecurityNumber)
      • captureDelayHours

        public T captureDelayHours​(Integer captureDelayHours)
      • getCaptureDelayHours

        public Integer getCaptureDelayHours()
        the number of hours delay between the authorisation and scheduled auto-capture
        Returns:
        captureDelayHours
      • setCaptureDelayHours

        public void setCaptureDelayHours​(Integer captureDelayHours)
      • dateOfBirth

        public T dateOfBirth​(Date dateOfBirth)
      • getDateOfBirth

        public Date getDateOfBirth()
        the shopper's date of birth
        Returns:
        dateOfBirth
      • setDateOfBirth

        public void setDateOfBirth​(Date dateOfBirth)
      • telephoneNumber

        public T telephoneNumber​(String telephoneNumber)
      • getTelephoneNumber

        public String getTelephoneNumber()
        the shopper's telephone number
        Returns:
        telephoneNumber
      • setTelephoneNumber

        public void setTelephoneNumber​(String telephoneNumber)
      • mcc

        public T mcc​(String mcc)
      • getMcc

        public String getMcc()
        the mcc value that is required to process this payment
        Returns:
        mcc
      • setMcc

        public void setMcc​(String mcc)
      • setApplicationInfo

        public void setApplicationInfo​(ApplicationInfo applicationInfo)
      • getMetadata

        public Map<String,​String> getMetadata()
        a map of key/value pairs of metadata sent by merchant
        Returns:
        metadata
      • setMetadata

        public void setMetadata​(Map<String,​String> metadata)
      • enableRealTimeUpdate

        public T enableRealTimeUpdate​(Boolean enableRealTimeUpdate)
      • isEnableRealTimeUpdate

        public Boolean isEnableRealTimeUpdate()
        Choose if a specific transaction should use the Real-time Account Updater, regardless of other settings.
        Returns:
        enableRealTimeUpdate
      • setEnableRealTimeUpdate

        public void setEnableRealTimeUpdate​(Boolean enableRealTimeUpdate)
      • threeDSAuthenticationOnly

        public T threeDSAuthenticationOnly​(Boolean threeDSAuthenticationOnly)
      • isThreeDSAuthenticationOnly

        public Boolean isThreeDSAuthenticationOnly()
        If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation.
        Returns:
        threeDSAuthenticationOnly
      • setThreeDSAuthenticationOnly

        public void setThreeDSAuthenticationOnly​(Boolean threeDSAuthenticationOnly)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object