Class SplitAmount


  • public class SplitAmount
    extends Object
    SplitAmount
    • Constructor Detail

      • SplitAmount

        public SplitAmount()
    • Method Detail

      • getCurrency

        public String getCurrency()
        The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used.
        Returns:
        currency
      • setCurrency

        public void setCurrency​(String currency)
      • getValue

        public Long getValue()
        The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes).
        Returns:
        value
      • setValue

        public void setValue​(Long 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 SplitAmount
      • fromJson

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

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