Class Fee


  • public class Fee
    extends Object
    Fee
    • Constructor Detail

      • Fee

        public Fee()
    • Method Detail

      • amount

        public Fee amount​(Amount amount)
        amount
        Parameters:
        amount -
        Returns:
        the current Fee instance, allowing for method chaining
      • getAmount

        public Amount getAmount()
        amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • equals

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

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

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

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