Package com.stripe.param
Class InvoiceCreatePreviewParams.ScheduleDetails.Amendment
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.ScheduleDetails.Amendment
- Enclosing class:
- InvoiceCreatePreviewParams.ScheduleDetails
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enumConfigure how an opt-in following a paid trial is billed when usingbilling_behavior: prorate_up_front.static classstatic classstatic classstatic enumstatic classstatic classstatic enumstatic classstatic enumstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanDetails to identify the end of the time range modified by the proposed change.Required. Details to identify the earliest timestamp where the proposed change should take effect.For point-in-time amendments (having noamendment_end), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at theamendment_starttimestamp.For time-span based amendments (having bothamendment_startandamendment_end), the only value valid isautomatic, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.Actions to apply to the billing schedules.Changes to the coupons being redeemed or discounts being applied during the amendment time span.Configures how the subscription schedule handles billing for phase transitions.Map of extra parameters for custom features not available in this client library.Changes to the subscription items during the amendment time span.Instructions for how to modify phase metadata.Changes to how Stripe handles prorations during the amendment time span.Defines how to pause collection for the underlying subscription throughout the duration of the amendment.Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.Settings related to subscription trials.inthashCode()
-
Method Details
-
builder
-
getAmendmentEnd
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. -
getAmendmentStart
Required. Details to identify the earliest timestamp where the proposed change should take effect. -
getBillingCycleAnchor
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.BillingCycleAnchor getBillingCycleAnchor()For point-in-time amendments (having noamendment_end), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at theamendment_starttimestamp.For time-span based amendments (having bothamendment_startandamendment_end), the only value valid isautomatic, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment. -
getBillingSchedulesActions
public List<InvoiceCreatePreviewParams.ScheduleDetails.Amendment.BillingSchedulesAction> getBillingSchedulesActions()Actions to apply to the billing schedules. -
getDiscountActions
public List<InvoiceCreatePreviewParams.ScheduleDetails.Amendment.DiscountAction> getDiscountActions()Changes to the coupons being redeemed or discounts being applied during the amendment time span. -
getEffectiveAt
Configures how the subscription schedule handles billing for phase transitions. Possible values arephase_start(default) orbilling_period_start.phase_startbills based on the current state of the subscription, ignoring changes scheduled in future phases.billing_period_startbills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedNamevalue. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
getItemActions
Changes to the subscription items during the amendment time span. -
getMetadataActions
public List<InvoiceCreatePreviewParams.ScheduleDetails.Amendment.MetadataAction> getMetadataActions()Instructions for how to modify phase metadata. -
getProrationBehavior
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ProrationBehavior getProrationBehavior()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_endisnull. -
getSetPauseCollection
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.SetPauseCollection getSetPauseCollection()Defines how to pause collection for the underlying subscription throughout the duration of the amendment. -
getSetScheduleEnd
Ends the subscription schedule early as dictated by either the accompanying amendment's start or end. -
getTrialSettings
Settings related to subscription trials. -
equals
-
canEqual
-
hashCode
public int hashCode()
-