Package com.stripe.param
Class InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.Builder
java.lang.Object
com.stripe.param.InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.Builder
- Enclosing class:
- InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount
public static class InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.Builder
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllCurrencyOption
(Map<String, InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOption> map) Add all map key/value pairs to `currencyOptions` map.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putCurrencyOption
(String key, InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOption value) Add a key/value pair to `currencyOptions` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.Required. A non-negative integer in cents representing how much to charge.setCurrency
(String currency) Required. Three-letter ISO currency code, in lowercase.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Required. A non-negative integer in cents representing how much to charge. -
setCurrency
public InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.Builder setCurrency(String currency) Required. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
putCurrencyOption
public InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.Builder putCurrencyOption(String key, InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOption value) Add a key/value pair to `currencyOptions` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeInvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.currencyOptions
for the field documentation. -
putAllCurrencyOption
public InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.Builder putAllCurrencyOption(Map<String, InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOption> map) Add all map key/value pairs to `currencyOptions` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeInvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.currencyOptions
for the field documentation. -
putExtraParam
public InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.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. SeeInvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.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. SeeInvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.extraParams
for the field documentation.
-