Package com.stripe.param
Class InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder
java.lang.Object
com.stripe.param.InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder
- Enclosing class:
- InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllDiscountAction
(List<InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction> elements) Add all elements to `discountActions` list.addAllItemAction
(List<InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction> elements) Add all elements to `itemActions` list.addAllMetadataAction
(List<InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.MetadataAction> elements) Add all elements to `metadataActions` list.Add an element to `discountActions` list.Add an element to `itemActions` list.Add an element to `metadataActions` 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.Details to identify the end of the time range modified by the proposed change.setAmendmentStart
(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentStart amendmentStart) Required. Details to identify the earliest timestamp where the proposed change should take effect.setBillingCycleAnchor
(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.BillingCycleAnchor billingCycleAnchor) For a point-in-time amendment, this attribute lets you set or update whether the subscription's billing cycle anchor is reset at theamendment_start
timestamp.setProrationBehavior
(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ProrationBehavior prorationBehavior) Changes to how Stripe handles prorations during the amendment time span.setSetPauseCollection
(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.SetPauseCollection setPauseCollection) Defines how to pause collection for the underlying subscription throughout the duration of the amendment.setSetScheduleEnd
(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.SetScheduleEnd setScheduleEnd) Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.setTrialSettings
(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.TrialSettings trialSettings) Settings related to subscription trials.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmendmentEnd
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder setAmendmentEnd(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd amendmentEnd) Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp atamendment_start
, and a restricted set of attributes is supported on the amendment. -
setAmendmentStart
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder setAmendmentStart(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentStart amendmentStart) Required. Details to identify the earliest timestamp where the proposed change should take effect. -
setBillingCycleAnchor
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder setBillingCycleAnchor(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.BillingCycleAnchor billingCycleAnchor) For a point-in-time amendment, this attribute lets you set or update whether the subscription's billing cycle anchor is reset at theamendment_start
timestamp. -
addDiscountAction
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder addDiscountAction(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction element) Add an element to `discountActions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.discountActions
for the field documentation. -
addAllDiscountAction
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder addAllDiscountAction(List<InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction> elements) Add all elements to `discountActions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.discountActions
for the field documentation. -
putExtraParam
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.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.Amendment.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.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.Amendment.extraParams
for the field documentation. -
addItemAction
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder addItemAction(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction element) Add an element to `itemActions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.itemActions
for the field documentation. -
addAllItemAction
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder addAllItemAction(List<InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction> elements) Add all elements to `itemActions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.itemActions
for the field documentation. -
addMetadataAction
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder addMetadataAction(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.MetadataAction element) Add an element to `metadataActions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.metadataActions
for the field documentation. -
addAllMetadataAction
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder addAllMetadataAction(List<InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.MetadataAction> elements) Add all elements to `metadataActions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.metadataActions
for the field documentation. -
setProrationBehavior
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder setProrationBehavior(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ProrationBehavior prorationBehavior) Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation whenamendment_end
isnull
. -
setSetPauseCollection
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder setSetPauseCollection(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.SetPauseCollection setPauseCollection) Defines how to pause collection for the underlying subscription throughout the duration of the amendment. -
setSetScheduleEnd
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder setSetScheduleEnd(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.SetScheduleEnd setScheduleEnd) Ends the subscription schedule early as dictated by either the accompanying amendment's start or end. -
setTrialSettings
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.Builder setTrialSettings(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.TrialSettings trialSettings) Settings related to subscription trials.
-