Package com.stripe.param.v2.billing
Class ActionServiceCreateParams.CreditGrantPerTenant.Builder
java.lang.Object
com.stripe.param.v2.billing.ActionServiceCreateParams.CreditGrantPerTenant.Builder
- Enclosing class:
- ActionServiceCreateParams.CreditGrantPerTenant
-
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.Required. The amount of the credit grant.setApplicabilityConfig
(ActionServiceCreateParams.CreditGrantPerTenant.ApplicabilityConfig applicabilityConfig) Required. Defines the scope where the credit grant is applicable.The category of the credit grant.Required. The expiry configuration for the credit grant.Required. The grant condition for the credit grant.Required. Customer-facing name for the credit grant.setPriority
(Integer priority) The desired priority for applying this credit grant.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
public ActionServiceCreateParams.CreditGrantPerTenant.Builder setAmount(ActionServiceCreateParams.CreditGrantPerTenant.Amount amount) Required. The amount of the credit grant. -
setApplicabilityConfig
public ActionServiceCreateParams.CreditGrantPerTenant.Builder setApplicabilityConfig(ActionServiceCreateParams.CreditGrantPerTenant.ApplicabilityConfig applicabilityConfig) Required. Defines the scope where the credit grant is applicable. -
setCategory
public ActionServiceCreateParams.CreditGrantPerTenant.Builder setCategory(ActionServiceCreateParams.CreditGrantPerTenant.Category category) The category of the credit grant. -
setExpiryConfig
public ActionServiceCreateParams.CreditGrantPerTenant.Builder setExpiryConfig(ActionServiceCreateParams.CreditGrantPerTenant.ExpiryConfig expiryConfig) Required. The expiry configuration for the credit grant. -
putExtraParam
public ActionServiceCreateParams.CreditGrantPerTenant.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. SeeActionServiceCreateParams.CreditGrantPerTenant.extraParams
for the field documentation. -
putAllExtraParam
public ActionServiceCreateParams.CreditGrantPerTenant.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. SeeActionServiceCreateParams.CreditGrantPerTenant.extraParams
for the field documentation. -
setGrantCondition
public ActionServiceCreateParams.CreditGrantPerTenant.Builder setGrantCondition(ActionServiceCreateParams.CreditGrantPerTenant.GrantCondition grantCondition) Required. The grant condition for the credit grant. -
setName
Required. Customer-facing name for the credit grant. -
setPriority
The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
-