Package com.stripe.param.billing
Class CreditGrantCreateParams.Builder
java.lang.Object
com.stripe.param.billing.CreditGrantCreateParams.Builder
- Enclosing class:
- CreditGrantCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()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.Required. Amount of this credit grant.setApplicabilityConfig(CreditGrantCreateParams.ApplicabilityConfig applicabilityConfig) Required. Configuration specifying what this credit grant applies to.setCategory(CreditGrantCreateParams.Category category) The category of this credit grant.setCustomer(String customer) ID of the customer to receive the billing credits.setCustomerAccount(String customerAccount) ID of the account to receive the billing credits.setEffectiveAt(Long effectiveAt) The time when the billing credits become effective-when they're eligible for use.setExpiresAt(Long expiresAt) The time when the billing credits expire.A descriptive name shown in the Dashboard.setPriority(Long 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
Required. Amount of this credit grant. -
setApplicabilityConfig
public CreditGrantCreateParams.Builder setApplicabilityConfig(CreditGrantCreateParams.ApplicabilityConfig applicabilityConfig) Required. Configuration specifying what this credit grant applies to. We currently only supportmeteredprices that have a Billing Meter attached to them. -
setCategory
The category of this credit grant. It defaults topaidif not specified. -
setCustomer
ID of the customer to receive the billing credits. -
setCustomerAccount
ID of the account to receive the billing credits. -
setEffectiveAt
The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCreditGrantCreateParams.expandfor the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCreditGrantCreateParams.expandfor the field documentation. -
setExpiresAt
The time when the billing credits expire. If not specified, the billing credits don't expire. -
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. SeeCreditGrantCreateParams.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. SeeCreditGrantCreateParams.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. SeeCreditGrantCreateParams.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. SeeCreditGrantCreateParams.metadatafor the field documentation. -
setName
A descriptive name shown in the Dashboard. -
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.
-