Class CostEstimateRequest


  • public class CostEstimateRequest
    extends Object
    CostEstimateRequest
    • Constructor Detail

      • CostEstimateRequest

        public CostEstimateRequest()
    • Method Detail

      • amount

        public CostEstimateRequest amount​(Amount amount)
        amount
        Parameters:
        amount -
        Returns:
        the current CostEstimateRequest instance, allowing for method chaining
      • getAmount

        public Amount getAmount()
        amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • assumptions

        public CostEstimateRequest assumptions​(CostEstimateAssumptions assumptions)
        assumptions
        Parameters:
        assumptions -
        Returns:
        the current CostEstimateRequest instance, allowing for method chaining
      • setAssumptions

        public void setAssumptions​(CostEstimateAssumptions assumptions)
        assumptions
        Parameters:
        assumptions -
      • cardNumber

        public CostEstimateRequest cardNumber​(String cardNumber)
        The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request.
        Parameters:
        cardNumber -
        Returns:
        the current CostEstimateRequest instance, allowing for method chaining
      • getCardNumber

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

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

        public CostEstimateRequest encryptedCardNumber​(String encryptedCardNumber)
        Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request.
        Parameters:
        encryptedCardNumber -
        Returns:
        the current CostEstimateRequest instance, allowing for method chaining
      • getEncryptedCardNumber

        public String getEncryptedCardNumber()
        Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request.
        Returns:
        encryptedCardNumber
      • setEncryptedCardNumber

        public void setEncryptedCardNumber​(String encryptedCardNumber)
        Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request.
        Parameters:
        encryptedCardNumber -
      • merchantAccount

        public CostEstimateRequest merchantAccount​(String merchantAccount)
        The merchant account identifier you want to process the (transaction) request with.
        Parameters:
        merchantAccount -
        Returns:
        the current CostEstimateRequest instance, allowing for method chaining
      • getMerchantAccount

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

        public void setMerchantAccount​(String merchantAccount)
        The merchant account identifier you want to process the (transaction) request with.
        Parameters:
        merchantAccount -
      • merchantDetails

        public CostEstimateRequest merchantDetails​(MerchantDetails merchantDetails)
        merchantDetails
        Parameters:
        merchantDetails -
        Returns:
        the current CostEstimateRequest instance, allowing for method chaining
      • getMerchantDetails

        public MerchantDetails getMerchantDetails()
        merchantDetails
        Returns:
        merchantDetails
      • setMerchantDetails

        public void setMerchantDetails​(MerchantDetails merchantDetails)
        merchantDetails
        Parameters:
        merchantDetails -
      • recurring

        public CostEstimateRequest recurring​(Recurring recurring)
        recurring
        Parameters:
        recurring -
        Returns:
        the current CostEstimateRequest instance, allowing for method chaining
      • getRecurring

        public Recurring getRecurring()
        recurring
        Returns:
        recurring
      • setRecurring

        public void setRecurring​(Recurring recurring)
        recurring
        Parameters:
        recurring -
      • selectedRecurringDetailReference

        public CostEstimateRequest selectedRecurringDetailReference​(String selectedRecurringDetailReference)
        The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail.
        Parameters:
        selectedRecurringDetailReference -
        Returns:
        the current CostEstimateRequest instance, allowing for method chaining
      • 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)
        The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail.
        Parameters:
        selectedRecurringDetailReference -
      • shopperInteraction

        public CostEstimateRequest shopperInteraction​(CostEstimateRequest.ShopperInteractionEnum shopperInteraction)
        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.
        Parameters:
        shopperInteraction -
        Returns:
        the current CostEstimateRequest instance, allowing for method chaining
      • 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
      • setShopperInteraction

        public void setShopperInteraction​(CostEstimateRequest.ShopperInteractionEnum shopperInteraction)
        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.
        Parameters:
        shopperInteraction -
      • shopperReference

        public CostEstimateRequest shopperReference​(String shopperReference)
        Required for recurring payments. 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.
        Parameters:
        shopperReference -
        Returns:
        the current CostEstimateRequest instance, allowing for method chaining
      • getShopperReference

        public String getShopperReference()
        Required for recurring payments. 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)
        Required for recurring payments. 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.
        Parameters:
        shopperReference -
      • equals

        public boolean equals​(Object o)
        Return true if this CostEstimateRequest object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static CostEstimateRequest fromJson​(String jsonString)
                                            throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of CostEstimateRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CostEstimateRequest
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to CostEstimateRequest
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of CostEstimateRequest to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException