Class CapitalBalance


  • public class CapitalBalance
    extends Object
    CapitalBalance
    • Constructor Detail

      • CapitalBalance

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

        public Long getFee()
        Fee amount.
        Returns:
        fee
      • setFee

        public void setFee​(Long fee)
        Fee amount.
        Parameters:
        fee -
      • getPrincipal

        public Long getPrincipal()
        Principal amount.
        Returns:
        principal
      • setPrincipal

        public void setPrincipal​(Long principal)
        Principal amount.
        Parameters:
        principal -
      • getTotal

        public Long getTotal()
        Total amount. A sum of principal amount and fee amount.
        Returns:
        total
      • setTotal

        public void setTotal​(Long total)
        Total amount. A sum of principal amount and fee amount.
        Parameters:
        total -
      • equals

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

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

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

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