Price constructor

const Price({
  1. required bool active,
  2. required InvoiceitemPlanBillingScheme billingScheme,
  3. required DateTime created,
  4. required String currency,
  5. Map<String, CurrencyOption>? currencyOptions,
  6. CustomUnitAmount? customUnitAmount,
  7. required String id,
  8. required bool livemode,
  9. String? lookupKey,
  10. required Map<String, String> metadata,
  11. String? nickname,
  12. required InvoiceitemPlanProductOrId product,
  13. InvoiceitemPriceRecurring? recurring,
  14. CurrencyOptionTaxBehavior? taxBehavior,
  15. List<PriceTier>? tiers,
  16. InvoiceitemPlanTiersMode? tiersMode,
  17. InvoiceitemPlanTransformUsage? transformQuantity,
  18. required InvoiceitemPriceType type,
  19. int? unitAmount,
  20. String? unitAmountDecimal,
})

Price

Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. [Products](https://stripe.com/docs/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme. For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once. Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription), [create an invoice](https://stripe.com/docs/billing/invoices/create), and more about [products and prices](https://stripe.com/docs/products-prices/overview).

Implementation

const Price({
  required this.active,
  required this.billingScheme,
  required this.created,
  required this.currency,
  this.currencyOptions,
  this.customUnitAmount,
  required this.id,
  required this.livemode,
  this.lookupKey,
  required this.metadata,
  this.nickname,
  required this.product,
  this.recurring,
  this.taxBehavior,
  this.tiers,
  this.tiersMode,
  this.transformQuantity,
  required this.type,
  this.unitAmount,
  this.unitAmountDecimal,
});