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

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

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

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

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