Package com.stripe.param
Class OrderReturnOrderParams.Item.Builder
java.lang.Object
com.stripe.param.OrderReturnOrderParams.Item.Builder
- Enclosing class:
OrderReturnOrderParams.Item
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.The amount (price) for this order item to return.setDescription
(String description) If returning atax
item, use description to disambiguate which one to return.The ID of the SKU, tax, or shipping item being returned.setQuantity
(Long quantity) When type issku
, this is the number of instances of the SKU to be returned.The type of this order item.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
The amount (price) for this order item to return. -
setDescription
If returning atax
item, use description to disambiguate which one to return. -
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. SeeOrderReturnOrderParams.Item.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. SeeOrderReturnOrderParams.Item.extraParams
for the field documentation. -
setParent
The ID of the SKU, tax, or shipping item being returned. -
setQuantity
When type issku
, this is the number of instances of the SKU to be returned. -
setType
The type of this order item. Must besku
,tax
, orshipping
.
-