InvoiceitemPlan constructor

const InvoiceitemPlan({
  1. required bool active,
  2. InvoiceitemPlanAggregateUsage? aggregateUsage,
  3. int? amount,
  4. String? amountDecimal,
  5. required InvoiceitemPlanBillingScheme billingScheme,
  6. required DateTime created,
  7. required String currency,
  8. required String id,
  9. required InvoiceitemPlanInterval interval,
  10. required int intervalCount,
  11. required bool livemode,
  12. Map<String, String>? metadata,
  13. String? meter,
  14. String? nickname,
  15. InvoiceitemPlanProductOrId? product,
  16. List<PlanTier>? tiers,
  17. InvoiceitemPlanTiersMode? tiersMode,
  18. InvoiceitemPlanTransformUsage? transformUsage,
  19. int? trialPeriodDays,
  20. required InvoiceitemPlanUsageType usageType,
})

If the invoice item is a proration, the plan of the subscription that the proration was computed for.

Implementation

const InvoiceitemPlan({
  required this.active,
  this.aggregateUsage,
  this.amount,
  this.amountDecimal,
  required this.billingScheme,
  required this.created,
  required this.currency,
  required this.id,
  required this.interval,
  required this.intervalCount,
  required this.livemode,
  this.metadata,
  this.meter,
  this.nickname,
  this.product,
  this.tiers,
  this.tiersMode,
  this.transformUsage,
  this.trialPeriodDays,
  required this.usageType,
});