Class SessionCreateParams.OptionalItem

java.lang.Object
com.stripe.param.checkout.SessionCreateParams.OptionalItem
Enclosing class:
SessionCreateParams

public static class SessionCreateParams.OptionalItem extends Object
The number of intervals between subscription billings. For example, interval=month and interval_count=3 bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
  • Method Details

    • builder

    • getAdjustableQuantity

      When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
    • 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.
    • getPrice

      public String getPrice()
      Required. The ID of the Price or Plan object.
    • getQuantity

      public Long getQuantity()
      Required. The initial quantity of the line item created when a customer chooses to add this optional item to their order.
    • 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