SchemasCommercePlan constructor

SchemasCommercePlan({
  1. required SchemasCommercePlanObjectEnum object,
  2. required String id,
  3. required String name,
  4. required CommerceMoneyResponse fee,
  5. required CommerceMoneyResponse annualMonthlyFee,
  6. required CommerceMoneyResponse annualFee,
  7. required int amount,
  8. required String amountFormatted,
  9. required int annualMonthlyAmount,
  10. required String annualMonthlyAmountFormatted,
  11. required int annualAmount,
  12. required String annualAmountFormatted,
  13. required String currencySymbol,
  14. required String currency,
  15. required String description,
  16. required String productId,
  17. required bool isDefault,
  18. required bool isRecurring,
  19. required bool publiclyVisible,
  20. required bool hasBaseFee,
  21. List<String> payerType = const [],
  22. required String forPayerType,
  23. required String slug,
  24. required String avatarUrl,
  25. String? period,
  26. int? interval,
  27. List<SchemasFeatureResponse> features = const [],
  28. bool? freeTrialEnabled,
  29. int? freeTrialDays,
})

Returns a new SchemasCommercePlan instance.

Implementation

SchemasCommercePlan({
  required this.object,
  required this.id,
  required this.name,
  required this.fee,
  required this.annualMonthlyFee,
  required this.annualFee,
  required this.amount,
  required this.amountFormatted,
  required this.annualMonthlyAmount,
  required this.annualMonthlyAmountFormatted,
  required this.annualAmount,
  required this.annualAmountFormatted,
  required this.currencySymbol,
  required this.currency,
  required this.description,
  required this.productId,
  required this.isDefault,
  required this.isRecurring,
  required this.publiclyVisible,
  required this.hasBaseFee,
  this.payerType = const [],
  required this.forPayerType,
  required this.slug,
  required this.avatarUrl,
  this.period,
  this.interval,
  this.features = const [],
  this.freeTrialEnabled,
  this.freeTrialDays,
});