Package com.stripe.param
Class SourceUpdateParams.SourceOrder.Item.Builder
java.lang.Object
com.stripe.param.SourceUpdateParams.SourceOrder.Item.Builder
- Enclosing class:
- SourceUpdateParams.SourceOrder.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.setCurrency
(EmptyParam currency) setCurrency
(String currency) setDescription
(EmptyParam description) setDescription
(String description) setParent
(EmptyParam parent) The ID of the SKU being ordered.The ID of the SKU being ordered.setQuantity
(Long quantity) The quantity of this order item.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
-
setCurrency
-
setCurrency
-
setDescription
-
setDescription
-
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. SeeSourceUpdateParams.SourceOrder.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. SeeSourceUpdateParams.SourceOrder.Item.extraParams
for the field documentation. -
setParent
The ID of the SKU being ordered. -
setParent
The ID of the SKU being ordered. -
setQuantity
The quantity of this order item. When type issku
, this is the number of instances of the SKU to be ordered. -
setType
public SourceUpdateParams.SourceOrder.Item.Builder setType(SourceUpdateParams.SourceOrder.Item.Type type)
-