Customer class final
A customer record, contact details, addresses, and current customer balance.
fingerprint identifies the customer within the API's matching model; guest distinguishes guest records from persisted customer identities.
Constructors
- Customer({required CustomerBalance balance, Address? billingAddress, required DateTime createdAt, CustomData? customData, String? emailAddress, required String fingerprint, required bool guest, required String id, required String name, String? phoneNumber, String? reference, Address? shippingAddress, String? suffix, String? title, DateTime? updatedAt})
-
const
-
Customer.fromJson(Map<
String, Object?> json) -
factory
Properties
- balance → CustomerBalance
-
final
- billingAddress → Address?
-
final
- createdAt → DateTime
-
final
- customData → CustomData?
-
final
- emailAddress → String?
-
final
- fingerprint → String
-
final
- guest → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- name → String
-
final
- phoneNumber → String?
-
final
- reference → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shippingAddress → Address?
-
final
- suffix → String?
-
final
- title → String?
-
final
- updatedAt → DateTime?
-
final
Methods
-
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited