Class CostEstimateResponse


  • public class CostEstimateResponse
    extends Object
    CostEstimateResponse
    • Constructor Detail

      • CostEstimateResponse

        public CostEstimateResponse()
    • Method Detail

      • cardBin

        public CostEstimateResponse cardBin​(CardBin cardBin)
        cardBin
        Parameters:
        cardBin -
        Returns:
        the current CostEstimateResponse instance, allowing for method chaining
      • getCardBin

        public CardBin getCardBin()
        cardBin
        Returns:
        cardBin
      • setCardBin

        public void setCardBin​(CardBin cardBin)
        cardBin
        Parameters:
        cardBin -
      • costEstimateAmount

        public CostEstimateResponse costEstimateAmount​(Amount costEstimateAmount)
        costEstimateAmount
        Parameters:
        costEstimateAmount -
        Returns:
        the current CostEstimateResponse instance, allowing for method chaining
      • getCostEstimateAmount

        public Amount getCostEstimateAmount()
        costEstimateAmount
        Returns:
        costEstimateAmount
      • setCostEstimateAmount

        public void setCostEstimateAmount​(Amount costEstimateAmount)
        costEstimateAmount
        Parameters:
        costEstimateAmount -
      • costEstimateReference

        public CostEstimateResponse costEstimateReference​(String costEstimateReference)
        Adyen's 16-character reference associated with the request.
        Parameters:
        costEstimateReference -
        Returns:
        the current CostEstimateResponse instance, allowing for method chaining
      • getCostEstimateReference

        public String getCostEstimateReference()
        Adyen's 16-character reference associated with the request.
        Returns:
        costEstimateReference
      • setCostEstimateReference

        public void setCostEstimateReference​(String costEstimateReference)
        Adyen's 16-character reference associated with the request.
        Parameters:
        costEstimateReference -
      • resultCode

        public CostEstimateResponse resultCode​(String resultCode)
        The result of the cost estimation.
        Parameters:
        resultCode -
        Returns:
        the current CostEstimateResponse instance, allowing for method chaining
      • getResultCode

        public String getResultCode()
        The result of the cost estimation.
        Returns:
        resultCode
      • setResultCode

        public void setResultCode​(String resultCode)
        The result of the cost estimation.
        Parameters:
        resultCode -
      • surchargeType

        public CostEstimateResponse surchargeType​(String surchargeType)
        Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on
        Parameters:
        surchargeType -
        Returns:
        the current CostEstimateResponse instance, allowing for method chaining
      • getSurchargeType

        public String getSurchargeType()
        Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on
        Returns:
        surchargeType
      • setSurchargeType

        public void setSurchargeType​(String surchargeType)
        Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on
        Parameters:
        surchargeType -
      • equals

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

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

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

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