Package com.stripe.param.checkout
Class SessionCreateParams.ShippingOption.ShippingRateData.Builder
- java.lang.Object
-
- com.stripe.param.checkout.SessionCreateParams.ShippingOption.ShippingRateData.Builder
-
- Enclosing class:
- SessionCreateParams.ShippingOption.ShippingRateData
public static class SessionCreateParams.ShippingOption.ShippingRateData.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
build
public SessionCreateParams.ShippingOption.ShippingRateData build()
Finalize and obtain parameter instance from this builder.
-
setDeliveryEstimate
public SessionCreateParams.ShippingOption.ShippingRateData.Builder setDeliveryEstimate(SessionCreateParams.ShippingOption.ShippingRateData.DeliveryEstimate deliveryEstimate)
The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
-
setDisplayName
public SessionCreateParams.ShippingOption.ShippingRateData.Builder setDisplayName(java.lang.String displayName)
The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
-
putExtraParam
public SessionCreateParams.ShippingOption.ShippingRateData.Builder putExtraParam(java.lang.String key, java.lang.Object value)
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.ShippingRateData.extraParams
for the field documentation.
-
putAllExtraParam
public SessionCreateParams.ShippingOption.ShippingRateData.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
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.ShippingRateData.extraParams
for the field documentation.
-
setFixedAmount
public SessionCreateParams.ShippingOption.ShippingRateData.Builder setFixedAmount(SessionCreateParams.ShippingOption.ShippingRateData.FixedAmount fixedAmount)
Describes a fixed amount to charge for shipping. Must be present if type isfixed_amount
.
-
putMetadata
public SessionCreateParams.ShippingOption.ShippingRateData.Builder putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` 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.ShippingRateData.metadata
for the field documentation.
-
putAllMetadata
public SessionCreateParams.ShippingOption.ShippingRateData.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` 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.ShippingRateData.metadata
for the field documentation.
-
setTaxBehavior
public SessionCreateParams.ShippingOption.ShippingRateData.Builder setTaxBehavior(SessionCreateParams.ShippingOption.ShippingRateData.TaxBehavior taxBehavior)
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One ofinclusive
,exclusive
, orunspecified
.
-
setTaxCode
public SessionCreateParams.ShippingOption.ShippingRateData.Builder setTaxCode(java.lang.String taxCode)
A tax code ID. The Shipping tax code istxcd_92010001
.
-
setType
public SessionCreateParams.ShippingOption.ShippingRateData.Builder setType(SessionCreateParams.ShippingOption.ShippingRateData.Type type)
The type of calculation to use on the shipping rate. Can only befixed_amount
for now.
-
-