Package model

Class SubscriptionAmountFeeAmountData

java.lang.Object
model.SubscriptionAmountFeeAmountData

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class SubscriptionAmountFeeAmountData extends Object
The amount and currency of this `Subsciption Amount`.
  • Field Details

  • Constructor Details

    • SubscriptionAmountFeeAmountData

      public SubscriptionAmountFeeAmountData()
  • Method Details

    • amount

      public SubscriptionAmountFeeAmountData amount(Long amount)
    • 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)
    • currency

      public SubscriptionAmountFeeAmountData currency(Currency currency)
    • getCurrency

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

      public void setCurrency(Currency currency)
    • label

    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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