Package com.stripe.param
Class SubscriptionScheduleAmendParams.Builder
java.lang.Object
com.stripe.param.SubscriptionScheduleAmendParams.Builder
- Enclosing class:
- SubscriptionScheduleAmendParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `amendments` list.addAllExpand
(List<String> elements) Add all elements to `expand` list.Add all elements to `prebilling` list.Add an element to `amendments` list.Add an element to `expand` list.Add an element to `prebilling` 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.setPrebilling
(EmptyParam prebilling) Provide any time periods to bill in advance.setPrebilling
(List<SubscriptionScheduleAmendParams.Prebilling> prebilling) Provide any time periods to bill in advance.setProrationBehavior
(SubscriptionScheduleAmendParams.ProrationBehavior prorationBehavior) In cases where the amendment changes the currently active phase, specifies if and how to prorate at the time of the request.setScheduleSettings
(SubscriptionScheduleAmendParams.ScheduleSettings scheduleSettings) Changes to apply to the subscription schedule.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addAmendment
public SubscriptionScheduleAmendParams.Builder addAmendment(SubscriptionScheduleAmendParams.Amendment element) Add an element to `amendments` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleAmendParams.amendments
for the field documentation. -
addAllAmendment
public SubscriptionScheduleAmendParams.Builder addAllAmendment(List<SubscriptionScheduleAmendParams.Amendment> elements) Add all elements to `amendments` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleAmendParams.amendments
for the field documentation. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleAmendParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleAmendParams.expand
for the field documentation. -
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. SeeSubscriptionScheduleAmendParams.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. SeeSubscriptionScheduleAmendParams.extraParams
for the field documentation. -
addPrebilling
public SubscriptionScheduleAmendParams.Builder addPrebilling(SubscriptionScheduleAmendParams.Prebilling element) Add an element to `prebilling` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleAmendParams.prebilling
for the field documentation. -
addAllPrebilling
public SubscriptionScheduleAmendParams.Builder addAllPrebilling(List<SubscriptionScheduleAmendParams.Prebilling> elements) Add all elements to `prebilling` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleAmendParams.prebilling
for the field documentation. -
setPrebilling
Provide any time periods to bill in advance. -
setPrebilling
public SubscriptionScheduleAmendParams.Builder setPrebilling(List<SubscriptionScheduleAmendParams.Prebilling> prebilling) Provide any time periods to bill in advance. -
setProrationBehavior
public SubscriptionScheduleAmendParams.Builder setProrationBehavior(SubscriptionScheduleAmendParams.ProrationBehavior prorationBehavior) In cases where the amendment changes the currently active phase, specifies if and how to prorate at the time of the request. -
setScheduleSettings
public SubscriptionScheduleAmendParams.Builder setScheduleSettings(SubscriptionScheduleAmendParams.ScheduleSettings scheduleSettings) Changes to apply to the subscription schedule.
-