EcommerceTransaction class

Implemented types
Annotations

Constructors

EcommerceTransaction({required String orderId, required double totalValue, String? affiliation, required double taxValue, required double shipping, String? city, String? state, String? country, String? currency, required List<EcommerceTransactionItem> items, Set<SelfDescribingJson> contexts = const {}})
Create a EcommerceTransaction event

Properties

affiliation String?
affiliation Transaction affiliation.
final
city String?
city Delivery address city.
final
contexts Set<SelfDescribingJson>
contexts Attached custom contexts
final
country String?
country Delivery address country.
final
currency String?
currency Transaction currency.
final
hashCode int
The hash code for this object.
no setteroverride
items List<EcommerceTransactionItem>
items An array of items in the transaction.
final
orderId String
orderId ID of the eCommerce transaction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shipping double
shipping Delivery cost charged.
final
state String?
state Delivery address state.
final
taxValue double
taxValue Transaction tax value.
final
totalValue double
totalValue Total transaction value.
final

Methods

attach({required Set<SelfDescribingJson> contexts}) EcommerceTransaction
attach Attaches additional contexts to the event
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
Converts the event object to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

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