Transaction constructor

Transaction({
  1. required String transactionId,
  2. required String affiliation,
  3. double? revenue,
  4. String? couponCode,
  5. double? tax,
  6. String? currency,
  7. int? itemCount,
  8. String? paymentMethod,
  9. double? shipping,
  10. String? shippingMethod,
})

Implementation

Transaction(
    {required this.transactionId,
    required this.affiliation,
    this.revenue,
    this.couponCode,
    this.tax,
    this.currency,
    this.itemCount,
    this.paymentMethod,
    this.shipping,
    this.shippingMethod})
    : super() {
  type = HitCategory.TRANSACTION;
}