SubscriptionItem class final
SubscriptionItem
Subscription items allow you to create customer subscriptions with more than one plan, making it easy to represent complex billing relationships.
- Implemented types
Constructors
-
SubscriptionItem({SubscriptionItemBillingThresholds? billingThresholds, required int created, required String id, required Map<
String, String> metadata, required Plan plan, required Price price, int? quantity, required String subscription, List<TaxRate> ? taxRates}) -
SubscriptionItem
const
- SubscriptionItem.fromJson(Object? json)
-
factory
Properties
- billingThresholds → SubscriptionItemBillingThresholds?
-
Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
final
- created → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The ID of the SubscriptionItem.
final
-
metadata
→ Map<
String, String> -
final
- object → String
-
The resource's type.
final
- plan → Plan
-
final
- price → Price
-
final
- quantity → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscription → String
-
final
-
taxRates
→ List<
TaxRate> ? -
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> (SubscriptionItem instance, Encoder< V> encoder) → V -
override