pub struct CreatePreviewInvoiceScheduleDetails {
pub billing_mode: Option<CreatePreviewInvoiceScheduleDetailsBillingMode>,
pub end_behavior: Option<CreatePreviewInvoiceScheduleDetailsEndBehavior>,
pub phases: Option<Vec<CreatePreviewInvoiceScheduleDetailsPhases>>,
pub proration_behavior: Option<CreatePreviewInvoiceScheduleDetailsProrationBehavior>,
}
Expand description
The schedule creation or modification params to apply as a preview.
Cannot be used with subscription
or subscription_
prefixed fields.
Fields§
§billing_mode: Option<CreatePreviewInvoiceScheduleDetailsBillingMode>
Controls how prorations and invoices for subscriptions are calculated and orchestrated.
end_behavior: Option<CreatePreviewInvoiceScheduleDetailsEndBehavior>
Behavior of the subscription schedule and underlying subscription when it ends.
Possible values are release
or cancel
with the default being release
.
release
will end the subscription schedule and keep the underlying subscription running.
cancel
will end the subscription schedule and cancel the underlying subscription.
phases: Option<Vec<CreatePreviewInvoiceScheduleDetailsPhases>>
List representing phases of the subscription schedule.
Each phase can be customized to have different durations, plans, and coupons.
If there are multiple phases, the end_date
of one phase will always equal the start_date
of the next phase.
proration_behavior: Option<CreatePreviewInvoiceScheduleDetailsProrationBehavior>
In cases where the schedule_details
params update the currently active phase, specifies if and how to prorate at the time of the request.
Implementations§
Trait Implementations§
Source§impl Clone for CreatePreviewInvoiceScheduleDetails
impl Clone for CreatePreviewInvoiceScheduleDetails
Source§fn clone(&self) -> CreatePreviewInvoiceScheduleDetails
fn clone(&self) -> CreatePreviewInvoiceScheduleDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more