Class SessionUpdateParams

java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.checkout.SessionUpdateParams

public class SessionUpdateParams extends ApiRequestParams
  • Method Details

    • builder

      public static SessionUpdateParams.Builder builder()
    • getCollectedInformation

      public SessionUpdateParams.CollectedInformation getCollectedInformation()
      Information about the customer collected within the Checkout Session. Can only be set when updating embedded or custom sessions.
    • getDiscounts

      public Object getDiscounts()
      List of coupons and promotion codes attached to the Checkout Session.
    • getExpand

      public List<String> getExpand()
      Specifies which fields in the response should be expanded.
    • 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.
    • getLineItems

      public List<SessionUpdateParams.LineItem> getLineItems()
      A list of items the customer is purchasing.

      When updating line items, you must retransmit the entire array of line items.

      To retain an existing line item, specify its id.

      To update an existing line item, specify its id along with the new values of the fields to update.

      To add a new line item, specify one of price or price_data and quantity.

      To remove an existing line item, omit the line item's ID from the retransmitted array.

      To reorder a line item, specify it at the desired position in the retransmitted array.

    • 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.
    • getShippingOptions

      public Object getShippingOptions()
      The shipping rate options to apply to this Session. Up to a maximum of 5.
    • getSubscriptionData

      public SessionUpdateParams.SubscriptionData getSubscriptionData()
      A subset of parameters to be passed to subscription creation for Checkout Sessions in subscription mode.
    • 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