purchaseEvent static method

ECommerceEvent purchaseEvent(
  1. ECommerceOrder order
)

Creates E-Commerce PurchaseEvent events. Use it to inform about the completion of the purchase.

Implementation

/// Use it to inform about the completion of the purchase.
static ECommerceEvent purchaseEvent(ECommerceOrder order) {
  return ECommerceConstructors.purchaseEvent(order);
}