Package com.stripe.param
Class SourceCreateParams.SourceOrder.Item.Builder
java.lang.Object
com.stripe.param.SourceCreateParams.SourceOrder.Item.Builder
- Enclosing class:
- SourceCreateParams.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
(String currency) setDescription
(String description) 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
-
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. SeeSourceCreateParams.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. SeeSourceCreateParams.SourceOrder.Item.extraParams
for the field documentation. -
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 SourceCreateParams.SourceOrder.Item.Builder setType(SourceCreateParams.SourceOrder.Item.Type type)
-