Class Fee


  • public class Fee
    extends Object
    Fee
    • Constructor Detail

      • Fee

        public Fee()
    • Method Detail

      • amount

        public Fee amount​(Amount amount)
      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to Fee
      • fromJson

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

        public String toJson()
        Convert an instance of Fee to an JSON string
        Returns:
        JSON string