Package com.stripe.param
Class InvoiceCreatePreviewParams.ScheduleDetails.Builder
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.ScheduleDetails.Builder
- Enclosing class:
- InvoiceCreatePreviewParams.ScheduleDetails
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `pauseSchedules` list.Add all elements to `phases` list.Add an element to `pauseSchedules` list.Add an element to `phases` 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.Controls how prorations and invoices for subscriptions are calculated and orchestrated.Behavior of the subscription schedule and underlying subscription when it ends.setPauseSchedules(EmptyParam pauseSchedules) The subscription's pause behavior and optional resume behavior.The subscription's pause behavior and optional resume behavior.setProrationBehavior(InvoiceCreatePreviewParams.ScheduleDetails.ProrationBehavior prorationBehavior) In cases where theschedule_detailsparams update the currently active phase, specifies if and how to prorate at the time of the request.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setBillingMode
public InvoiceCreatePreviewParams.ScheduleDetails.Builder setBillingMode(InvoiceCreatePreviewParams.ScheduleDetails.BillingMode billingMode) Controls how prorations and invoices for subscriptions are calculated and orchestrated. -
setEndBehavior
public InvoiceCreatePreviewParams.ScheduleDetails.Builder setEndBehavior(InvoiceCreatePreviewParams.ScheduleDetails.EndBehavior endBehavior) Behavior of the subscription schedule and underlying subscription when it ends. Possible values arereleaseorcancelwith the default beingrelease.releasewill end the subscription schedule and keep the underlying subscription running.cancelwill end the subscription schedule and cancel the underlying subscription. -
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. SeeInvoiceCreatePreviewParams.ScheduleDetails.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. SeeInvoiceCreatePreviewParams.ScheduleDetails.extraParamsfor the field documentation. -
addPauseSchedule
public InvoiceCreatePreviewParams.ScheduleDetails.Builder addPauseSchedule(InvoiceCreatePreviewParams.ScheduleDetails.PauseSchedule element) Add an element to `pauseSchedules` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceCreatePreviewParams.ScheduleDetails.pauseSchedulesfor the field documentation. -
addAllPauseSchedule
public InvoiceCreatePreviewParams.ScheduleDetails.Builder addAllPauseSchedule(List<InvoiceCreatePreviewParams.ScheduleDetails.PauseSchedule> elements) Add all elements to `pauseSchedules` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceCreatePreviewParams.ScheduleDetails.pauseSchedulesfor the field documentation. -
setPauseSchedules
public InvoiceCreatePreviewParams.ScheduleDetails.Builder setPauseSchedules(EmptyParam pauseSchedules) The subscription's pause behavior and optional resume behavior. You can provide one entry. Include itskeyto update an existing pause schedule. Omitpause_schedulesto leave the existing schedule unchanged, or pass an empty string ("") to clear it. -
setPauseSchedules
public InvoiceCreatePreviewParams.ScheduleDetails.Builder setPauseSchedules(List<InvoiceCreatePreviewParams.ScheduleDetails.PauseSchedule> pauseSchedules) The subscription's pause behavior and optional resume behavior. You can provide one entry. Include itskeyto update an existing pause schedule. Omitpause_schedulesto leave the existing schedule unchanged, or pass an empty string ("") to clear it. -
addPhase
public InvoiceCreatePreviewParams.ScheduleDetails.Builder addPhase(InvoiceCreatePreviewParams.ScheduleDetails.Phase element) Add an element to `phases` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceCreatePreviewParams.ScheduleDetails.phasesfor the field documentation. -
addAllPhase
public InvoiceCreatePreviewParams.ScheduleDetails.Builder addAllPhase(List<InvoiceCreatePreviewParams.ScheduleDetails.Phase> elements) Add all elements to `phases` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceCreatePreviewParams.ScheduleDetails.phasesfor the field documentation. -
setProrationBehavior
public InvoiceCreatePreviewParams.ScheduleDetails.Builder setProrationBehavior(InvoiceCreatePreviewParams.ScheduleDetails.ProrationBehavior prorationBehavior) In cases where theschedule_detailsparams update the currently active phase, specifies if and how to prorate at the time of the request.
-