Class CostEstimateRequest


  • public class CostEstimateRequest
    extends Object
    CostEstimateRequest
    • Constructor Detail

      • CostEstimateRequest

        public CostEstimateRequest()
    • Method Detail

      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
      • getCardNumber

        public String getCardNumber()
        The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCard` field must be provided in a payment request.
        Returns:
        cardNumber
      • setCardNumber

        public void setCardNumber​(String cardNumber)
      • getEncryptedCard

        public String getEncryptedCard()
        Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Client-Side Encryption library and must contain at least the ` number` and `generationtime` fields. > Either the `cardNumber` or `encryptedCard` field must be provided in a payment request.
        Returns:
        encryptedCard
      • setEncryptedCard

        public void setEncryptedCard​(String encryptedCard)
      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account identifier you want to process the (transaction) request with.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
      • getMerchantDetails

        public MerchantDetails getMerchantDetails()
        Get merchantDetails
        Returns:
        merchantDetails
      • setMerchantDetails

        public void setMerchantDetails​(MerchantDetails merchantDetails)
      • getRecurring

        public Recurring getRecurring()
        Get recurring
        Returns:
        recurring
      • setRecurring

        public void setRecurring​(Recurring recurring)
      • selectedRecurringDetailReference

        public CostEstimateRequest selectedRecurringDetailReference​(String selectedRecurringDetailReference)
      • getSelectedRecurringDetailReference

        public String getSelectedRecurringDetailReference()
        The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail.
        Returns:
        selectedRecurringDetailReference
      • setSelectedRecurringDetailReference

        public void setSelectedRecurringDetailReference​(String selectedRecurringDetailReference)
      • getShopperInteraction

        public CostEstimateRequest.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 card holder 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
      • getShopperReference

        public String getShopperReference()
        The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments.
        Returns:
        shopperReference
      • setShopperReference

        public void setShopperReference​(String shopperReference)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object