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