Class SessionCreateParams.LineItem

Enclosing class:

public static class SessionCreateParams.LineItem extends Object
The ID of a promotion code to apply to this Session.
  • Method Details

    • builder

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

      public SessionCreateParams.LineItem.AdjustableQuantity getAdjustableQuantity()
      When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
    • getAmount

      public Long getAmount()
      [Deprecated] The amount to be collected per unit of the line item. If specified, must also pass currency and name.
    • getCurrency

      public String getCurrency()
      [Deprecated] Three-letter ISO currency code, in lowercase. Must be a supported currency. Required if amount is passed.
    • getDescription

      public String getDescription()
      [Deprecated] The description for the line item, to be displayed on the Checkout page.
    • getDynamicTaxRates

      public List<String> getDynamicTaxRates()
      The tax rates that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
    • 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.
    • getImages

      public List<String> getImages()
      [Deprecated] A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passing price or price_data, specify images on the associated product instead.
    • getName

      public String getName()
      [Deprecated] The name for the item to be displayed on the Checkout page. Required if amount is passed.
    • getPrice

      public String getPrice()
      The ID of the Price or Plan object. One of price or price_data is required.
    • getPriceData

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

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

      public List<String> getTaxRates()
      The tax rates which apply to this line item.