Invoice class
Invoice
- Implemented types
Constructors
-
Invoice({required String $id, required String $createdAt, required String $updatedAt, required List<
String> $permissions, required String teamId, required String aggregationId, required String plan, required List<UsageResources> usage, required double amount, required double tax, required double taxAmount, required double vat, required double vatAmount, required double grossAmount, required double creditsUsed, required String currency, required String clientSecret, required String status, required String lastError, required String dueAt, required String from, required String to}) -
Invoice.fromMap(Map<
String, dynamic> map) -
factory
Properties
- $createdAt → String
-
Invoice creation time in ISO 8601 format.
final
- $id → String
-
Invoice ID.
final
-
$permissions
→ List<
String> -
Invoice permissions. Learn more about permissions.
final
- $updatedAt → String
-
Invoice update date in ISO 8601 format.
final
- aggregationId → String
-
Aggregation ID
final
- amount → double
-
Invoice Amount
final
- clientSecret → String
-
Client secret for processing failed payments in front-end
final
- creditsUsed → double
-
Credits used.
final
- currency → String
-
Currency the invoice is in
final
- dueAt → String
-
Invoice due date.
final
- from → String
-
Beginning date of the invoice
final
- grossAmount → double
-
Gross amount after vat, tax, and discounts applied.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastError → String
-
Last payment error associated with the invoice
final
- plan → String
-
Billing plan selected. Can be one of
tier-0,tier-1ortier-2.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
Invoice status
final
- tax → double
-
Tax percentage
final
- taxAmount → double
-
Tax amount
final
- teamId → String
-
Project ID
final
- to → String
-
End date of the invoice
final
-
usage
→ List<
UsageResources> -
Usage breakdown per resource
final
- vat → double
-
VAT percentage
final
- vatAmount → double
-
VAT amount
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited