Class CouponCreateParams.ServicePeriod

java.lang.Object
com.stripe.param.CouponCreateParams.ServicePeriod
Enclosing class:
CouponCreateParams

public static class CouponCreateParams.ServicePeriod extends Object
Required. The script implementation ID for this coupon.
  • Method Details

    • builder

    • getExtraParams

      public Map<String,Object> getExtraParams()
      Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's @SerializedName value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance.
    • getInterval

      Required. Specifies coupon frequency. Either day, week, month or year.
    • getIntervalCount

      public Long getIntervalCount()
      Required. The number of intervals for which the coupon will be applied.
    • getIterations

      Specifies the number of times the coupon is contiguously applied.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object