pauseSubscription method

  1. @override
Future<void> pauseSubscription({
  1. required Object customer,
})
override

Not offered by the Bachs API: a subscription can be paused only from the Bachs dashboard.

Implementation

@override
Future<void> pauseSubscription({required Object customer}) async {
  throw UnsupportedError(
    'The Bachs API cannot pause a subscription. Cancel at the period end, '
    'or pause it from the Bachs dashboard.',
  );
}