Class TerminalProductPrice


  • public class TerminalProductPrice
    extends Object
    TerminalProductPrice
    • Constructor Detail

      • TerminalProductPrice

        public TerminalProductPrice()
    • Method Detail

      • getCurrency

        public String getCurrency()
        The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
        Returns:
        currency
      • setCurrency

        public void setCurrency​(String currency)
        The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
        Parameters:
        currency -
      • getValue

        public Double getValue()
        The price of the item.
        Returns:
        value
      • setValue

        public void setValue​(Double value)
        The price of the item.
        Parameters:
        value -
      • equals

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

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

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

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