SubscriptionSchedule constructor

const SubscriptionSchedule({
  1. BillingPortalConfigurationApplicationOrId? application,
  2. DateTime? canceledAt,
  3. DateTime? completedAt,
  4. required DateTime created,
  5. SubscriptionScheduleCurrentPhase? currentPhase,
  6. required BankAccountCustomerOrId customer,
  7. required SubscriptionSchedulesResourceDefaultSettings defaultSettings,
  8. required SubscriptionScheduleEndBehavior endBehavior,
  9. required String id,
  10. required bool livemode,
  11. Map<String, String>? metadata,
  12. required List<SubscriptionSchedulePhaseConfiguration> phases,
  13. DateTime? releasedAt,
  14. String? releasedSubscription,
  15. required SubscriptionScheduleStatus status,
  16. SubscriptionOrId? subscription,
  17. TestHelpersTestClockOrId? testClock,
})

SubscriptionSchedule

A subscription schedule allows you to create and manage the lifecycle of a subscription by predefining expected changes. Related guide: [Subscription schedules](https://stripe.com/docs/billing/subscriptions/subscription-schedules)

Implementation

const SubscriptionSchedule({
  this.application,
  this.canceledAt,
  this.completedAt,
  required this.created,
  this.currentPhase,
  required this.customer,
  required this.defaultSettings,
  required this.endBehavior,
  required this.id,
  required this.livemode,
  this.metadata,
  required this.phases,
  this.releasedAt,
  this.releasedSubscription,
  required this.status,
  this.subscription,
  this.testClock,
});