Package com.stripe.param
Class SubscriptionCreateParams.BillingSchedule.Builder
java.lang.Object
com.stripe.param.SubscriptionCreateParams.BillingSchedule.Builder
- Enclosing class:
- SubscriptionCreateParams.BillingSchedule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `appliesTo` list.Add an element to `appliesTo` 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.Required. The end date for the billing schedule.Specify a key for the billing schedule.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addAppliesTo
public SubscriptionCreateParams.BillingSchedule.Builder addAppliesTo(SubscriptionCreateParams.BillingSchedule.AppliesTo element) Add an element to `appliesTo` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionCreateParams.BillingSchedule.appliesTo
for the field documentation. -
addAllAppliesTo
public SubscriptionCreateParams.BillingSchedule.Builder addAllAppliesTo(List<SubscriptionCreateParams.BillingSchedule.AppliesTo> elements) Add all elements to `appliesTo` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionCreateParams.BillingSchedule.appliesTo
for the field documentation. -
setBillUntil
public SubscriptionCreateParams.BillingSchedule.Builder setBillUntil(SubscriptionCreateParams.BillingSchedule.BillUntil billUntil) Required. The end date for the billing schedule. -
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. SeeSubscriptionCreateParams.BillingSchedule.extraParams
for 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. SeeSubscriptionCreateParams.BillingSchedule.extraParams
for the field documentation. -
setKey
Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
-