changeSubscriptionPlan abstract method

Future<void> changeSubscriptionPlan({
  1. required Object customer,
  2. required BillingPlan plan,
  3. bool prorate = true,
})

Change the customer's subscription to plan. When prorate is true, the provider applies proration if it supports it; when false, the change takes effect at the next billing period without proration.

Throws UnsupportedError when the provider does not implement plan changes (e.g. a provider that bills through metered quantities rather than subscription price updates).

Implementation

Future<void> changeSubscriptionPlan({
  required Object customer,
  required BillingPlan plan,
  bool prorate = true,
});