Price class final

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).

Implemented types

Constructors

Price({required bool active, required InvoiceitemPlanBillingScheme billingScheme, required DateTime created, required String currency, Map<String, CurrencyOption>? currencyOptions, CustomUnitAmount? customUnitAmount, required String id, required bool livemode, String? lookupKey, required Map<String, String> metadata, String? nickname, required InvoiceitemPlanProductOrId product, InvoiceitemPriceRecurring? recurring, CurrencyOptionTaxBehavior? taxBehavior, List<PriceTier>? tiers, InvoiceitemPlanTiersMode? tiersMode, InvoiceitemPlanTransformUsage? transformQuantity, required InvoiceitemPriceType type, int? unitAmount, String? unitAmountDecimal})
Price
const
Price.fromJson(Object? json)
factory

Properties

active bool
final
billingScheme InvoiceitemPlanBillingScheme
final
created DateTime
final
currency String
final
currencyOptions Map<String, CurrencyOption>?
final
customUnitAmount CustomUnitAmount?
final
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the Price.
final
livemode bool
final
lookupKey String?
final
metadata Map<String, String>
final
nickname String?
final
object String
The resource's type.
final
product InvoiceitemPlanProductOrId
final
recurring InvoiceitemPriceRecurring?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taxBehavior CurrencyOptionTaxBehavior?
final
tiers List<PriceTier>?
final
tiersMode InvoiceitemPlanTiersMode?
final
transformQuantity InvoiceitemPlanTransformUsage?
final
type InvoiceitemPriceType
final
unitAmount int?
final
unitAmountDecimal String?
final

Methods

encodeWith<V>(Encoder<V> encoder) → V
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

encode<V>(Price instance, Encoder<V> encoder) → V
override