Package com.stripe.param.checkout
Class SessionCreateParams.ShippingOption.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.ShippingOption.Builder
- Enclosing class:
- SessionCreateParams.ShippingOption
-
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.setShippingRate
(String shippingRate) The ID of the Shipping Rate to use for this shipping option.setShippingRateData
(SessionCreateParams.ShippingOption.ShippingRateData shippingRateData) Parameters to be passed to Shipping Rate creation for this shipping option.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
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. SeeSessionCreateParams.ShippingOption.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. SeeSessionCreateParams.ShippingOption.extraParams
for the field documentation. -
setShippingRate
The ID of the Shipping Rate to use for this shipping option. -
setShippingRateData
public SessionCreateParams.ShippingOption.Builder setShippingRateData(SessionCreateParams.ShippingOption.ShippingRateData shippingRateData) Parameters to be passed to Shipping Rate creation for this shipping option.
-