Class SessionUpdateParams.LineItem

java.lang.Object
com.stripe.param.checkout.SessionUpdateParams.LineItem
Enclosing class:
SessionUpdateParams

public static class SessionUpdateParams.LineItem extends Object
A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if amount_off is not passed).
  • Method Details

    • builder

      public static SessionUpdateParams.LineItem.Builder builder()
    • getAdjustableQuantity

      public SessionUpdateParams.LineItem.AdjustableQuantity getAdjustableQuantity()
      When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
    • 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.
    • getId

      public Object getId()
      ID of an existing line item.
    • getMetadata

      public Object getMetadata()
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
    • getPrice

      public Object getPrice()
      The ID of the Price. One of price or price_data is required when creating a new line item.
    • getPriceData

      Data used to generate a new Price object inline. One of price or price_data is required when creating a new line item.
    • getQuantity

      public Long getQuantity()
      The quantity of the line item being purchased. Quantity should not be defined when recurring.usage_type=metered.
    • getTaxRates

      public Object getTaxRates()
      The tax rates which apply to this line item.
    • 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