Package model

Class SubscriptionAmountFeeAmountData


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class SubscriptionAmountFeeAmountData
    extends Object
    The amount and currency of this `Subsciption Amount`.
    • Constructor Detail

      • SubscriptionAmountFeeAmountData

        public SubscriptionAmountFeeAmountData()
    • Method Detail

      • getAmount

        @Nullable
        public Long getAmount()
        A positive integer in cents representing how much to charge on a recurring basis
        Returns:
        amount
      • setAmount

        public void setAmount​(Long amount)
      • getCurrency

        @Nullable
        public Currency getCurrency()
        Get currency
        Returns:
        currency
      • setCurrency

        public void setCurrency​(Currency currency)
      • getLabel

        @Nullable
        public String getLabel()
        The display name of the `Subscription Amount` that can be used for filtering purposes.
        Returns:
        label
      • setLabel

        public void setLabel​(String label)
      • 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 SubscriptionAmountFeeAmountData
      • fromJson

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

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