pub struct BillingPlanChangeEffect {
pub additions: Vec<BillingPreviewLine>,
pub effective_at: Option<String>,
pub minimum_commitment: Option<BillingPreviewMinimumCommitment>,
pub timing: BillingPlanChangeTiming,
pub unsold_fixed_charges: Vec<BillingHeldFixedCharge>,
pub unused_time_credit: Option<BillingPreviewCredit>,
}Fields§
§additions: Vec<BillingPreviewLine>One line per requested addition: what adding it bills on the target plan, prorated as if added now. Billed when it is added, not with dueNow; the balance left after dueNow applies to it first. nextCharge already includes it.
effective_at: Option<String>When a period_end change applies. Null otherwise.
minimum_commitment: Option<BillingPreviewMinimumCommitment>The target plan’s minimum commitment: when a period’s charges fall short of it, the difference is billed at the period end. Set for an upgrade to a plan with one, null otherwise.
timing: BillingPlanChangeTiming§unsold_fixed_charges: Vec<BillingHeldFixedCharge>Held fixed charges the target plan does not sell; the preview prices the change without them. With period_end they stay until it applies and are released with it. Otherwise the change is refused (release_required) until they are released.
unused_time_credit: Option<BillingPreviewCredit>The replaced plan’s unused time, which an upgrade credits to the payer: applied to dueNow first, the rest kept as balance. Set for an upgrade from a plan paid in advance, null otherwise.