Package com.stripe.param
Class InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.Builder
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.Builder
- Enclosing class:
- InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule
public static class InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllAppliesTo
(List<InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.AppliesTo> elements) Add 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.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 InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.Builder addAppliesTo(InvoiceCreatePreviewParams.SubscriptionDetails.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. SeeInvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.appliesTo
for the field documentation. -
addAllAppliesTo
public InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.Builder addAllAppliesTo(List<InvoiceCreatePreviewParams.SubscriptionDetails.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. SeeInvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.appliesTo
for the field documentation. -
setBillUntil
public InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.Builder setBillUntil(InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil billUntil) The end date for the billing schedule. -
putExtraParam
public InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.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. SeeInvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.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. SeeInvoiceCreatePreviewParams.SubscriptionDetails.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.
-