Class BalanceMutation


  • public class BalanceMutation
    extends Object
    BalanceMutation
    • Constructor Detail

      • BalanceMutation

        public BalanceMutation()
    • Method Detail

      • balance

        public BalanceMutation balance​(Long balance)
        The amount in the payment's currency that is debited or credited on the balance accounting register.
        Parameters:
        balance -
        Returns:
        the current BalanceMutation instance, allowing for method chaining
      • getBalance

        public Long getBalance()
        The amount in the payment's currency that is debited or credited on the balance accounting register.
        Returns:
        balance
      • setBalance

        public void setBalance​(Long balance)
        The amount in the payment's currency that is debited or credited on the balance accounting register.
        Parameters:
        balance -
      • currency

        public BalanceMutation currency​(String currency)
        The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
        Parameters:
        currency -
        Returns:
        the current BalanceMutation instance, allowing for method chaining
      • 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 -
      • received

        public BalanceMutation received​(Long received)
        The amount in the payment's currency that is debited or credited on the received accounting register.
        Parameters:
        received -
        Returns:
        the current BalanceMutation instance, allowing for method chaining
      • getReceived

        public Long getReceived()
        The amount in the payment's currency that is debited or credited on the received accounting register.
        Returns:
        received
      • setReceived

        public void setReceived​(Long received)
        The amount in the payment's currency that is debited or credited on the received accounting register.
        Parameters:
        received -
      • reserved

        public BalanceMutation reserved​(Long reserved)
        The amount in the payment's currency that is debited or credited on the reserved accounting register.
        Parameters:
        reserved -
        Returns:
        the current BalanceMutation instance, allowing for method chaining
      • getReserved

        public Long getReserved()
        The amount in the payment's currency that is debited or credited on the reserved accounting register.
        Returns:
        reserved
      • setReserved

        public void setReserved​(Long reserved)
        The amount in the payment's currency that is debited or credited on the reserved accounting register.
        Parameters:
        reserved -
      • equals

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

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

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

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