Package com.stripe.param.billing
Class CreditGrantCreateParams.ApplicabilityConfig.Scope.Builder
java.lang.Object
com.stripe.param.billing.CreditGrantCreateParams.ApplicabilityConfig.Scope.Builder
- Enclosing class:
- CreditGrantCreateParams.ApplicabilityConfig.Scope
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `prices` list.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.The price type that credit grants can apply to.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
public CreditGrantCreateParams.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. SeeCreditGrantCreateParams.ApplicabilityConfig.Scope.extraParams
for the field documentation. -
putAllExtraParam
public CreditGrantCreateParams.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. SeeCreditGrantCreateParams.ApplicabilityConfig.Scope.extraParams
for the field documentation. -
setPriceType
public CreditGrantCreateParams.ApplicabilityConfig.Scope.Builder setPriceType(CreditGrantCreateParams.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 CreditGrantCreateParams.ApplicabilityConfig.Scope.Builder addPrice(CreditGrantCreateParams.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. SeeCreditGrantCreateParams.ApplicabilityConfig.Scope.prices
for the field documentation. -
addAllPrice
public CreditGrantCreateParams.ApplicabilityConfig.Scope.Builder addAllPrice(List<CreditGrantCreateParams.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. SeeCreditGrantCreateParams.ApplicabilityConfig.Scope.prices
for the field documentation.
-