Package com.stripe.param
Class InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Builder
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Builder
public static class InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Builder
extends Object
-
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.setDuration
(InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Duration duration) Specifies the billing period.setTimestamp
(Long timestamp) The end date of the billing schedule.Required. Describes how the billing schedule will determine the end date.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDuration
public InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Builder setDuration(InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Duration duration) Specifies the billing period. -
putExtraParam
public InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.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.BillUntil.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.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.BillUntil.extraParams
for the field documentation. -
setTimestamp
public InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Builder setTimestamp(Long timestamp) The end date of the billing schedule. -
setType
public InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Builder setType(InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Type type) Required. Describes how the billing schedule will determine the end date. Eitherduration
ortimestamp
.
-