SubscriptionSchedule constructor
const
SubscriptionSchedule({
- BillingPortalConfigurationApplicationOrId? application,
- DateTime? canceledAt,
- DateTime? completedAt,
- required DateTime created,
- SubscriptionScheduleCurrentPhase? currentPhase,
- required BankAccountCustomerOrId customer,
- required SubscriptionSchedulesResourceDefaultSettings defaultSettings,
- required SubscriptionScheduleEndBehavior endBehavior,
- required String id,
- required bool livemode,
- Map<
String, String> ? metadata, - required List<
SubscriptionSchedulePhaseConfiguration> phases, - DateTime? releasedAt,
- String? releasedSubscription,
- required SubscriptionScheduleStatus status,
- SubscriptionOrId? subscription,
- 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,
});