Class RateCreateParams.Tier.Builder
java.lang.Object
com.stripe.param.v2.billing.ratecards.RateCreateParams.Tier.Builder
- Enclosing class:
- RateCreateParams.Tier
-
Constructor Summary
Constructors -
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.setFlatAmount
(String flatAmount) Price for the entire tier, represented as a decimal string in minor currency units with at most 12 decimal places.setUnitAmount
(String unitAmount) Per-unit price for units included in this tier, represented as a decimal string in minor currency units with at most 12 decimal places.setUpToDecimal
(String upToDecimal) Up to and including this quantity will be contained in the tier.setUpToInf
(RateCreateParams.Tier.UpToInf upToInf) No upper bound to this tier.
-
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. SeeRateCreateParams.Tier.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. SeeRateCreateParams.Tier.extraParams
for the field documentation. -
setFlatAmount
Price for the entire tier, represented as a decimal string in minor currency units with at most 12 decimal places. -
setUnitAmount
Per-unit price for units included in this tier, represented as a decimal string in minor currency units with at most 12 decimal places. -
setUpToDecimal
Up to and including this quantity will be contained in the tier. Only one ofup_to_decimal
andup_to_inf
may be set. -
setUpToInf
No upper bound to this tier. Only one ofup_to_decimal
andup_to_inf
may be set.
-