Package com.stripe.param.checkout
Class SessionCreateParams.LineItem.PriceData.ProductData.Builder
- java.lang.Object
-
- com.stripe.param.checkout.SessionCreateParams.LineItem.PriceData.ProductData.Builder
-
- Enclosing class:
- SessionCreateParams.LineItem.PriceData.ProductData
public static class SessionCreateParams.LineItem.PriceData.ProductData.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionCreateParams.LineItem.PriceData.ProductData.Builder
addAllImage(java.util.List<java.lang.String> elements)
Add all elements to `images` list.SessionCreateParams.LineItem.PriceData.ProductData.Builder
addImage(java.lang.String element)
Add an element to `images` list.SessionCreateParams.LineItem.PriceData.ProductData
build()
Finalize and obtain parameter instance from this builder.SessionCreateParams.LineItem.PriceData.ProductData.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.SessionCreateParams.LineItem.PriceData.ProductData.Builder
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.SessionCreateParams.LineItem.PriceData.ProductData.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.SessionCreateParams.LineItem.PriceData.ProductData.Builder
putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map.SessionCreateParams.LineItem.PriceData.ProductData.Builder
setDescription(java.lang.String description)
The product's description, meant to be displayable to the customer.SessionCreateParams.LineItem.PriceData.ProductData.Builder
setName(java.lang.String name)
The product's name, meant to be displayable to the customer.
-
-
-
Method Detail
-
build
public SessionCreateParams.LineItem.PriceData.ProductData build()
Finalize and obtain parameter instance from this builder.
-
setDescription
public SessionCreateParams.LineItem.PriceData.ProductData.Builder setDescription(java.lang.String description)
The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
-
putExtraParam
public SessionCreateParams.LineItem.PriceData.ProductData.Builder putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionCreateParams.LineItem.PriceData.ProductData.extraParams
for the field documentation.
-
putAllExtraParam
public SessionCreateParams.LineItem.PriceData.ProductData.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionCreateParams.LineItem.PriceData.ProductData.extraParams
for the field documentation.
-
addImage
public SessionCreateParams.LineItem.PriceData.ProductData.Builder addImage(java.lang.String element)
Add an element to `images` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.LineItem.PriceData.ProductData.images
for the field documentation.
-
addAllImage
public SessionCreateParams.LineItem.PriceData.ProductData.Builder addAllImage(java.util.List<java.lang.String> elements)
Add all elements to `images` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.LineItem.PriceData.ProductData.images
for the field documentation.
-
putMetadata
public SessionCreateParams.LineItem.PriceData.ProductData.Builder putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionCreateParams.LineItem.PriceData.ProductData.metadata
for the field documentation.
-
putAllMetadata
public SessionCreateParams.LineItem.PriceData.ProductData.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionCreateParams.LineItem.PriceData.ProductData.metadata
for the field documentation.
-
setName
public SessionCreateParams.LineItem.PriceData.ProductData.Builder setName(java.lang.String name)
The product's name, meant to be displayable to the customer. Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions.
-
-