Package com.stripe.param
Class QuoteCreateParams.Line.Action.Builder
java.lang.Object
com.stripe.param.QuoteCreateParams.Line.Action.Builder
- Enclosing class:
- QuoteCreateParams.Line.Action
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllRemoveMetadata(List<String> elements) Add all elements to `removeMetadata` list.Add all elements to `setDiscounts` list.Add all elements to `setItems` list.addRemoveMetadata(String element) Add an element to `removeMetadata` list.Add an element to `setDiscounts` list.Add an element to `setItems` list.build()Finalize and obtain parameter instance from this builder.putAddMetadata(String key, String value) Add a key/value pair to `addMetadata` map.putAllAddMetadata(Map<String, String> map) Add all map key/value pairs to `addMetadata` map.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllSetMetadata(Map<String, String> map) Add all map key/value pairs to `setMetadata` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.putSetMetadata(String key, String value) Add a key/value pair to `setMetadata` map.setAddDiscount(QuoteCreateParams.Line.Action.AddDiscount addDiscount) Details for theadd_discounttype.Details for theadd_itemtype.setRemoveDiscount(QuoteCreateParams.Line.Action.RemoveDiscount removeDiscount) Details for theremove_discounttype.Details for theremove_itemtype.setSetMetadata(EmptyParam setMetadata) Details for theset_metadatatype: specify an array of key-value pairs.setSetMetadata(Map<String, String> setMetadata) Details for theset_metadatatype: specify an array of key-value pairs.Required. The type of action the quote line performs.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAddDiscount
public QuoteCreateParams.Line.Action.Builder setAddDiscount(QuoteCreateParams.Line.Action.AddDiscount addDiscount) Details for theadd_discounttype. -
setAddItem
public QuoteCreateParams.Line.Action.Builder setAddItem(QuoteCreateParams.Line.Action.AddItem addItem) Details for theadd_itemtype. -
putAddMetadata
Add a key/value pair to `addMetadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteCreateParams.Line.Action.addMetadatafor the field documentation. -
putAllAddMetadata
Add all map key/value pairs to `addMetadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteCreateParams.Line.Action.addMetadatafor the field documentation. -
putExtraParam
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. SeeQuoteCreateParams.Line.Action.extraParamsfor the field documentation. -
putAllExtraParam
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. SeeQuoteCreateParams.Line.Action.extraParamsfor the field documentation. -
setRemoveDiscount
public QuoteCreateParams.Line.Action.Builder setRemoveDiscount(QuoteCreateParams.Line.Action.RemoveDiscount removeDiscount) Details for theremove_discounttype. -
setRemoveItem
public QuoteCreateParams.Line.Action.Builder setRemoveItem(QuoteCreateParams.Line.Action.RemoveItem removeItem) Details for theremove_itemtype. -
addRemoveMetadata
Add an element to `removeMetadata` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteCreateParams.Line.Action.removeMetadatafor the field documentation. -
addAllRemoveMetadata
Add all elements to `removeMetadata` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteCreateParams.Line.Action.removeMetadatafor the field documentation. -
addSetDiscount
public QuoteCreateParams.Line.Action.Builder addSetDiscount(QuoteCreateParams.Line.Action.SetDiscount element) Add an element to `setDiscounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteCreateParams.Line.Action.setDiscountsfor the field documentation. -
addAllSetDiscount
public QuoteCreateParams.Line.Action.Builder addAllSetDiscount(List<QuoteCreateParams.Line.Action.SetDiscount> elements) Add all elements to `setDiscounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteCreateParams.Line.Action.setDiscountsfor the field documentation. -
addSetItem
public QuoteCreateParams.Line.Action.Builder addSetItem(QuoteCreateParams.Line.Action.SetItem element) Add an element to `setItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteCreateParams.Line.Action.setItemsfor the field documentation. -
addAllSetItem
public QuoteCreateParams.Line.Action.Builder addAllSetItem(List<QuoteCreateParams.Line.Action.SetItem> elements) Add all elements to `setItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteCreateParams.Line.Action.setItemsfor the field documentation. -
putSetMetadata
Add a key/value pair to `setMetadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteCreateParams.Line.Action.setMetadatafor the field documentation. -
putAllSetMetadata
Add all map key/value pairs to `setMetadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteCreateParams.Line.Action.setMetadatafor the field documentation. -
setSetMetadata
Details for theset_metadatatype: specify an array of key-value pairs. -
setSetMetadata
Details for theset_metadatatype: specify an array of key-value pairs. -
setType
Required. The type of action the quote line performs.
-