Quote constructor

const Quote({
  1. required int amountSubtotal,
  2. required int amountTotal,
  3. BillingPortalConfigurationApplicationOrId? application,
  4. int? applicationFeeAmount,
  5. double? applicationFeePercent,
  6. required QuotesResourceAutomaticTax automaticTax,
  7. required InvoiceCollectionMethod collectionMethod,
  8. required QuotesResourceComputed computed,
  9. required DateTime created,
  10. String? currency,
  11. BankAccountCustomerOrId? customer,
  12. List<TaxRateOrId>? defaultTaxRates,
  13. String? description,
  14. required List<DiscountOrId> discounts,
  15. required DateTime expiresAt,
  16. String? footer,
  17. QuoteFromQuote? fromQuote,
  18. String? header,
  19. required String id,
  20. QuoteInvoiceOrId? invoice,
  21. required InvoiceSettingQuoteSetting invoiceSettings,
  22. CheckoutSessionLineItems? lineItems,
  23. required bool livemode,
  24. required Map<String, String> metadata,
  25. String? number,
  26. AccountOrId? onBehalfOf,
  27. required QuoteStatus status,
  28. required QuotesResourceStatusTransitions statusTransitions,
  29. SubscriptionOrId? subscription,
  30. required QuotesResourceSubscriptionDataSubscriptionData subscriptionData,
  31. SubscriptionScheduleOrId? subscriptionSchedule,
  32. TestHelpersTestClockOrId? testClock,
  33. required QuotesResourceTotalDetails totalDetails,
  34. QuoteTransferData? transferData,
})

Quote

A Quote is a way to model prices that you'd like to provide to a customer. Once accepted, it will automatically create an invoice, subscription or subscription schedule.

Implementation

const Quote({
  required this.amountSubtotal,
  required this.amountTotal,
  this.application,
  this.applicationFeeAmount,
  this.applicationFeePercent,
  required this.automaticTax,
  required this.collectionMethod,
  required this.computed,
  required this.created,
  this.currency,
  this.customer,
  this.defaultTaxRates,
  this.description,
  required this.discounts,
  required this.expiresAt,
  this.footer,
  this.fromQuote,
  this.header,
  required this.id,
  this.invoice,
  required this.invoiceSettings,
  this.lineItems,
  required this.livemode,
  required this.metadata,
  this.number,
  this.onBehalfOf,
  required this.status,
  required this.statusTransitions,
  this.subscription,
  required this.subscriptionData,
  this.subscriptionSchedule,
  this.testClock,
  required this.totalDetails,
  this.transferData,
});