Package com.stripe.param
Class QuoteUpdateParams.Line.Action.Builder
java.lang.Object
com.stripe.param.QuoteUpdateParams.Line.Action.Builder
- Enclosing class:
- QuoteUpdateParams.Line.Action
-
Constructor Summary
-
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
(QuoteUpdateParams.Line.Action.AddDiscount addDiscount) Details for theadd_discount
type.Details for theadd_item
type.setRemoveDiscount
(QuoteUpdateParams.Line.Action.RemoveDiscount removeDiscount) Details for theremove_discount
type.Details for theremove_item
type.setSetMetadata
(EmptyParam setMetadata) Details for theset_metadata
type: specify an array of key-value pairs.setSetMetadata
(Map<String, String> setMetadata) Details for theset_metadata
type: specify an array of key-value pairs.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 QuoteUpdateParams.Line.Action.Builder setAddDiscount(QuoteUpdateParams.Line.Action.AddDiscount addDiscount) Details for theadd_discount
type. -
setAddItem
public QuoteUpdateParams.Line.Action.Builder setAddItem(QuoteUpdateParams.Line.Action.AddItem addItem) Details for theadd_item
type. -
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. SeeQuoteUpdateParams.Line.Action.addMetadata
for 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. SeeQuoteUpdateParams.Line.Action.addMetadata
for 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. SeeQuoteUpdateParams.Line.Action.extraParams
for 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. SeeQuoteUpdateParams.Line.Action.extraParams
for the field documentation. -
setRemoveDiscount
public QuoteUpdateParams.Line.Action.Builder setRemoveDiscount(QuoteUpdateParams.Line.Action.RemoveDiscount removeDiscount) Details for theremove_discount
type. -
setRemoveItem
public QuoteUpdateParams.Line.Action.Builder setRemoveItem(QuoteUpdateParams.Line.Action.RemoveItem removeItem) Details for theremove_item
type. -
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. SeeQuoteUpdateParams.Line.Action.removeMetadata
for 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. SeeQuoteUpdateParams.Line.Action.removeMetadata
for the field documentation. -
addSetDiscount
public QuoteUpdateParams.Line.Action.Builder addSetDiscount(QuoteUpdateParams.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. SeeQuoteUpdateParams.Line.Action.setDiscounts
for the field documentation. -
addAllSetDiscount
public QuoteUpdateParams.Line.Action.Builder addAllSetDiscount(List<QuoteUpdateParams.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. SeeQuoteUpdateParams.Line.Action.setDiscounts
for the field documentation. -
addSetItem
public QuoteUpdateParams.Line.Action.Builder addSetItem(QuoteUpdateParams.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. SeeQuoteUpdateParams.Line.Action.setItems
for the field documentation. -
addAllSetItem
public QuoteUpdateParams.Line.Action.Builder addAllSetItem(List<QuoteUpdateParams.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. SeeQuoteUpdateParams.Line.Action.setItems
for 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. SeeQuoteUpdateParams.Line.Action.setMetadata
for 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. SeeQuoteUpdateParams.Line.Action.setMetadata
for the field documentation. -
setSetMetadata
Details for theset_metadata
type: specify an array of key-value pairs. -
setSetMetadata
Details for theset_metadata
type: specify an array of key-value pairs. -
setType
The type of action the quote line performs.
-