SubscriptionSchedulePhaseConfiguration constructor

const SubscriptionSchedulePhaseConfiguration({
  1. required List<SubscriptionScheduleAddInvoiceItem> addInvoiceItems,
  2. double? applicationFeePercent,
  3. SchedulesPhaseAutomaticTax? automaticTax,
  4. SubscriptionSchedulePhaseConfigurationBillingCycleAnchor? billingCycleAnchor,
  5. SubscriptionBillingThresholds? billingThresholds,
  6. SubscriptionSchedulePhaseConfigurationCollectionMethod? collectionMethod,
  7. SubscriptionSchedulePhaseConfigurationCouponOrId? coupon,
  8. required String currency,
  9. PaymentMethodOrId? defaultPaymentMethod,
  10. List<TaxRate>? defaultTaxRates,
  11. String? description,
  12. required DateTime endDate,
  13. InvoiceSettingSubscriptionSchedulePhaseSetting? invoiceSettings,
  14. required List<SubscriptionScheduleConfigurationItem> items,
  15. Map<String, String>? metadata,
  16. AccountOrId? onBehalfOf,
  17. required PortalSubscriptionCancelProrationBehavior prorationBehavior,
  18. required DateTime startDate,
  19. SubscriptionTransferData? transferData,
  20. DateTime? trialEnd,
})

SubscriptionSchedulePhaseConfiguration

A phase describes the plans, coupon, and trialing status of a subscription for a predefined time period.

Implementation

const SubscriptionSchedulePhaseConfiguration({
  required this.addInvoiceItems,
  this.applicationFeePercent,
  this.automaticTax,
  this.billingCycleAnchor,
  this.billingThresholds,
  this.collectionMethod,
  this.coupon,
  required this.currency,
  this.defaultPaymentMethod,
  this.defaultTaxRates,
  this.description,
  required this.endDate,
  this.invoiceSettings,
  required this.items,
  this.metadata,
  this.onBehalfOf,
  required this.prorationBehavior,
  required this.startDate,
  this.transferData,
  this.trialEnd,
});