pub struct PreviewOrganizationChangeResponse {
pub balance_after_cents: Option<i64>,
pub due_now: BillingPreviewInvoice,
pub next_charge: Option<BillingNextCharge>,
pub plan_change: Option<BillingPlanChangeEffect>,
pub quote: Option<FixedChargeQuote>,
pub time_zone: String,
}Fields§
§balance_after_cents: Option<i64>The payer’s credit balance once dueNow is charged: the credit the change issues included, less what dueNow uses. In dueNow’s currency. Null when the change charges nothing now (a downgrade).
due_now: BillingPreviewInvoice§next_charge: Option<BillingNextCharge>What is charged in advance at the next period start for what is held after the change. Usage and a minimum commitment are billed after the period. Null when nothing is, or the subscription ends first.
plan_change: Option<BillingPlanChangeEffect>Set for a plan change, null otherwise.
quote: Option<FixedChargeQuote>Set for a fixed-charge change, null otherwise: the unit price, currency and period the preview was priced on. Pass them on with the purchase so it is refused if they no longer hold.
time_zone: StringThe IANA time zone the payer is billed in, e.g. America/Los_Angeles. Billing periods start and end at its midnights, so read their calendar dates in it.