InvoiceitemPlan class final
If the invoice item is a proration, the plan of the subscription that the proration was computed for.
Constructors
-
InvoiceitemPlan({required bool active, InvoiceitemPlanAggregateUsage? aggregateUsage, int? amount, String? amountDecimal, required InvoiceitemPlanBillingScheme billingScheme, required DateTime created, required String currency, required String id, required InvoiceitemPlanInterval interval, required int intervalCount, required bool livemode, Map<
String, String> ? metadata, String? meter, String? nickname, InvoiceitemPlanProductOrId? product, List<PlanTier> ? tiers, InvoiceitemPlanTiersMode? tiersMode, InvoiceitemPlanTransformUsage? transformUsage, int? trialPeriodDays, required InvoiceitemPlanUsageType usageType}) -
If the invoice item is a proration, the plan of the subscription that the proration was computed for.
const
- InvoiceitemPlan.fromJson(Object? json)
-
factory
Properties
- active → bool
-
final
- aggregateUsage → InvoiceitemPlanAggregateUsage?
-
final
- amount → int?
-
final
- amountDecimal → String?
-
final
- billingScheme → InvoiceitemPlanBillingScheme
-
final
- created → DateTime
-
final
- currency → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- interval → InvoiceitemPlanInterval
-
final
- intervalCount → int
-
final
- livemode → bool
-
final
-
metadata
→ Map<
String, String> ? -
final
- meter → String?
-
final
- nickname → String?
-
final
- object → String
-
final
- product → InvoiceitemPlanProductOrId?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tiers
→ List<
PlanTier> ? -
final
- tiersMode → InvoiceitemPlanTiersMode?
-
final
- transformUsage → InvoiceitemPlanTransformUsage?
-
Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with `tiers`.
final
- trialPeriodDays → int?
-
final
- usageType → InvoiceitemPlanUsageType
-
final
Methods
-
encodeWith<
V> (Encoder< V> encoder) → V -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
encode<
V> (InvoiceitemPlan instance, Encoder< V> encoder) → V