Transaction class

Inheritance

Constructors

Transaction({required String transactionId, required String affiliation, double? revenue, String? couponCode, double? tax, String? currency, int? itemCount, String? paymentMethod, double? shipping, String? shippingMethod})
Transaction.fromMap(String oldId, Map body)

Properties

affiliation ↔ String
Transaction name. Name of the goal in the reporting. The maximum permitted length is 500 Bytes. The maximum permitted length is 500 Bytes.
getter/setter pair
anonymousId ↔ String?
getter/setter pairinherited
bodyTrack → Map<String, Object>
no setteroverride
clientId ↔ String
getter/setter pairinherited
communBodyTrack → Map<String, Object>
no setterinherited
couponCode ↔ String?
Specifies the coupon code used by the customer for the transaction. The maximum permitted length is 10 Bytes.
getter/setter pair
createdAt ↔ DateTime?
CreatedAt date
getter/setter pairinherited
currency ↔ String?
Specifies the currency used for all transaction currency values. Value should be a valid ISO 4217 currency code. The maximum permitted length is 500 Bytes.
getter/setter pair
dataSource ↔ String
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
getter/setter pairinherited
itemCount ↔ int?
Specifies the number of items for the transaction.
getter/setter pair
location ↔ String?
This argument refers to the Screen Name of the app, at the moment the hit is sent. The maximum permitted length is 2048 Bytes .
getter/setter pairinherited
paymentMethod ↔ String?
Specifies the payment method for the transaction. The maximum permitted length is 10 Bytes.
getter/setter pair
qa ↔ bool
getter/setter pairinherited
revenue ↔ double?
Total revenue associated with the transaction. This value should include any shipping or tax costs
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screenResolution ↔ String?
Refers to the the screen resolution in pixels. The maximum permitted length is 20 Bytes.
getter/setter pairinherited
sessionNumber ↔ int?
Indicates the number of sessions the current visitor has logged, including the current session.
getter/setter pairinherited
shipping ↔ double?
Specifies the total shipping cost of the transaction.
getter/setter pair
shippingMethod ↔ String?
Specifies the shipping method of the transaction. The maximum permitted length is 10 Bytes.
getter/setter pair
tax ↔ double?
Specifies the total taxes of the transaction.
getter/setter pair
transactionId ↔ String
Transaction unique identifier.
getter/setter pair
type ↔ HitCategory
getter/setter pairinherited
typeOfEvent → String
no setterinherited
userIp ↔ String?
Refers to the IP address of the user. This should be a valid IP address in IPv4 or IPv6 format. The maximum permitted length is 45 Bytes.
getter/setter pairinherited
userLanguage ↔ String?
Refers to the user's language. The maximum permitted length is 20 Bytes.
getter/setter pairinherited
visitorId ↔ String
getter/setter pairinherited

Methods

isLessThan4H() → bool
inherited
isValid() → bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited