Package com.stripe.param
Class InvoiceUpcomingParams.ScheduleDetails.Builder
java.lang.Object
com.stripe.param.InvoiceUpcomingParams.ScheduleDetails.Builder
- Enclosing class:
- InvoiceUpcomingParams.ScheduleDetails
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `phases` 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.Behavior of the subscription schedule and underlying subscription when it ends.setProrationBehavior
(InvoiceUpcomingParams.ScheduleDetails.ProrationBehavior prorationBehavior) In cases where theschedule_details
params 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. -
setEndBehavior
public InvoiceUpcomingParams.ScheduleDetails.Builder setEndBehavior(InvoiceUpcomingParams.ScheduleDetails.EndBehavior endBehavior) Behavior of the subscription schedule and underlying subscription when it ends. Possible values arerelease
orcancel
with the default beingrelease
.release
will end the subscription schedule and keep the underlying subscription running.cancel
will 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. SeeInvoiceUpcomingParams.ScheduleDetails.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. SeeInvoiceUpcomingParams.ScheduleDetails.extraParams
for the field documentation. -
addPhase
public InvoiceUpcomingParams.ScheduleDetails.Builder addPhase(InvoiceUpcomingParams.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. SeeInvoiceUpcomingParams.ScheduleDetails.phases
for the field documentation. -
addAllPhase
public InvoiceUpcomingParams.ScheduleDetails.Builder addAllPhase(List<InvoiceUpcomingParams.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. SeeInvoiceUpcomingParams.ScheduleDetails.phases
for the field documentation. -
setProrationBehavior
public InvoiceUpcomingParams.ScheduleDetails.Builder setProrationBehavior(InvoiceUpcomingParams.ScheduleDetails.ProrationBehavior prorationBehavior) In cases where theschedule_details
params update the currently active phase, specifies if and how to prorate at the time of the request.
-