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 - The amount in the payment's currency that is debited or credited on the balance accounting register.
        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 The amount in the payment's currency that is debited or credited on the balance accounting register.
      • 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 - The amount in the payment's currency that is debited or credited on the balance accounting register.
      • currency

        public BalanceMutation currency​(String currency)
        The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
        Parameters:
        currency - The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
        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 The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
      • setCurrency

        public void setCurrency​(String currency)
        The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
        Parameters:
        currency - The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
      • 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 - The amount in the payment's currency that is debited or credited on the received accounting register.
        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 The amount in the payment's currency that is debited or credited on the received accounting register.
      • 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 - The amount in the payment's currency that is debited or credited on the received accounting register.
      • 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 - The amount in the payment's currency that is debited or credited on the reserved accounting register.
        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 The amount in the payment's currency that is debited or credited on the reserved accounting register.
      • 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 - The amount in the payment's currency that is debited or credited on the reserved accounting register.
      • includeNullValues

        public BalanceMutation includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • 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
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • 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