Package model

Class SubscriptionSchedulePeriodOffset

java.lang.Object
model.SubscriptionSchedulePeriodOffset

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class SubscriptionSchedulePeriodOffset extends Object
Specifies when the `Fee` is charged. This field is **null** for **FIXED_TIME_INTERVAL** `Subscription Schedules`.
  • Field Details

  • Constructor Details

    • SubscriptionSchedulePeriodOffset

      public SubscriptionSchedulePeriodOffset()
  • Method Details

    • day

    • getDay

      @Nullable public Long getDay()
      Specifies the day when the `Subscription Schedule` starts.
      Returns:
      day
    • setDay

      public void setDay(Long day)
    • month

      public SubscriptionSchedulePeriodOffset month(Long month)
    • getMonth

      @Nullable public Long getMonth()
      Specifies the month when the `Subscription Schedule` starts. If the `Subscription Schedule` is **PERIODIC_MONTHLY**, the month field can be left **null**.
      Returns:
      month
    • setMonth

      public void setMonth(Long month)
    • 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 SubscriptionSchedulePeriodOffset
    • fromJson

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

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