Package com.stripe.param
Class InvoiceUpcomingLinesListParams.ScheduleDetails.Builder
java.lang.Object
com.stripe.param.InvoiceUpcomingLinesListParams.ScheduleDetails.Builder
- Enclosing class:
- InvoiceUpcomingLinesListParams.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
(InvoiceUpcomingLinesListParams.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 InvoiceUpcomingLinesListParams.ScheduleDetails.Builder setEndBehavior(InvoiceUpcomingLinesListParams.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
public InvoiceUpcomingLinesListParams.ScheduleDetails.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceUpcomingLinesListParams.ScheduleDetails.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.extraParams
for the field documentation. -
addPhase
public InvoiceUpcomingLinesListParams.ScheduleDetails.Builder addPhase(InvoiceUpcomingLinesListParams.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.phases
for the field documentation. -
addAllPhase
public InvoiceUpcomingLinesListParams.ScheduleDetails.Builder addAllPhase(List<InvoiceUpcomingLinesListParams.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.phases
for the field documentation. -
setProrationBehavior
public InvoiceUpcomingLinesListParams.ScheduleDetails.Builder setProrationBehavior(InvoiceUpcomingLinesListParams.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.
-