Invoice class

Constructors

Invoice({String? id, String? token, String? clientId, String? customerToken, required List<InvoiceLine> lines, Map<String, String>? metadata, required List<String> taxesTokens, bool sendViaEmail = false, Client? client, required DateTime date, Customer? customer, List<Charge>? charges})
Invoice.fromJson(String source)
factory
Invoice.fromMap(Map<String, dynamic> map)
factory

Properties

charges List<Charge>?
Assigned by the controller
getter/setter pair
client ↔ Client?
Assigned by the controller
getter/setter pair
clientId String?
getter/setter pair
customer Customer?
Assigned by the controller
getter/setter pair
customerToken String?
getter/setter pair
date DateTime
getter/setter pair
hashCode int
The hash code for this object.
no setter
id String?
getter/setter pair
lines List<InvoiceLine>
getter/setter pair
metadata Map<String, String>?
getter/setter pair
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendViaEmail bool
getter/setter pair
subTotal double
no setter
taxes List?
Assigned by the controller
getter/setter pair
taxesTokens List<String>
getter/setter pair
token String?
getter/setter pair
total double
no setter

Methods

copyWith({String? clientId, String? customerToken, List<InvoiceLine>? lines, Map<String, String>? metadata, List<String>? taxesTokens, bool? sendViaEmail, DateTime? date, Client? client, Customer? customer}) Invoice
Specify how to clone the concrete class.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toMap({bool withId = false, bool withPrices = true}) Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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