Price class

Inheritance
Annotations
  • @JsonSerializable()

Constructors

Price({required _PriceObject object, required String id, required bool active, required String currency, required String product, required PriceType type, required int unitAmount})
Price.fromJson(Map<String, dynamic> json)
factory

Properties

active bool
Whether the price can be used for new purchases.
final
currency String
Three-letter ISO currency code, in lowercase. Must be a supported currency.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for the object.
final
object → _PriceObject
final
product String
The ID of the product this price is associated with.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PriceType
One of one_time or recurring depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
final
unitAmount int
The unit amount in cents to be charged, represented as a whole integer if possible. Only set if billing_scheme=per_unit.
final

Methods

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

Operators

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