Class CustomPricingUnitOverageRateCreateParams.Builder
java.lang.Object
com.stripe.param.v2.billing.ratecards.CustomPricingUnitOverageRateCreateParams.Builder
- Enclosing class:
- CustomPricingUnitOverageRateCreateParams
-
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.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.setCustomPricingUnit(String customPricingUnit) Required. The ID of the custom pricing unit this overage rate applies to.setOneTimeItem(String oneTimeItem) Required. The ID of the one-time item to use for overage line items.setUnitAmount(String unitAmount) Required. The per-unit amount to charge for overages, represented as a decimal string in minor currency units with at most 12 decimal places.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCustomPricingUnit
public CustomPricingUnitOverageRateCreateParams.Builder setCustomPricingUnit(String customPricingUnit) Required. The ID of the custom pricing unit this overage rate applies to. -
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. SeeCustomPricingUnitOverageRateCreateParams.extraParamsfor 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. SeeCustomPricingUnitOverageRateCreateParams.extraParamsfor the field documentation. -
putMetadata
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. SeeCustomPricingUnitOverageRateCreateParams.metadatafor the field documentation. -
putAllMetadata
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. SeeCustomPricingUnitOverageRateCreateParams.metadatafor the field documentation. -
setOneTimeItem
Required. The ID of the one-time item to use for overage line items. -
setUnitAmount
Required. The per-unit amount to charge for overages, represented as a decimal string in minor currency units with at most 12 decimal places.
-