Package com.stripe.param.billing
Class AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Builder
java.lang.Object
com.stripe.param.billing.AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Builder
- Enclosing class:
- AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope
public static class AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllBillableItem
(List<AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.BillableItem> elements) Add all elements to `billableItems` list.addAllPrice
(List<AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Price> elements) Add all elements to `prices` list.addBillableItem
(AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.BillableItem element) Add an element to `billableItems` list.addPrice
(AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Price element) Add an element to `prices` list.build()
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.setPriceType
(AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.PriceType priceType) The price type that credit grants can apply to.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
public AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope build()Finalize and obtain parameter instance from this builder. -
addBillableItem
public AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Builder addBillableItem(AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.BillableItem element) Add an element to `billableItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeAlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.billableItems
for the field documentation. -
addAllBillableItem
public AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Builder addAllBillableItem(List<AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.BillableItem> elements) Add all elements to `billableItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeAlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.billableItems
for the field documentation. -
putExtraParam
public AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.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. SeeAlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.extraParams
for the field documentation. -
putAllExtraParam
public AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.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. SeeAlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.extraParams
for the field documentation. -
setPriceType
public AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Builder setPriceType(AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.PriceType priceType) The price type that credit grants can apply to. We currently only support themetered
price type. Cannot be used in combination withprices
. -
addPrice
public AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Builder addPrice(AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Price element) Add an element to `prices` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeAlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.prices
for the field documentation. -
addAllPrice
public AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Builder addAllPrice(List<AlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.Price> elements) Add all elements to `prices` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeAlertCreateParams.CreditBalanceThreshold.Filter.CreditGrants.ApplicabilityConfig.Scope.prices
for the field documentation.
-