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)
      • getValue

        public Object getValue()
        Get value
        Returns:
        value
      • setValue

        public void setValue​(Object value)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to TerminalProductPrice
      • fromJson

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

        public String toJson()
        Convert an instance of TerminalProductPrice to an JSON string
        Returns:
        JSON string