* Create a purchase event on the current user's Iterable profile. * * Represent each item in the purchase event with an IterableCommerceItem object. * * @see IterableCommerceItem * * **NOTE**: `total` is a parameter that is passed in. Iterable does not sum the `pric
(
total: number,
items: IterableCommerceItem[],
dataFields?: unknown
)
| 548 | * ``` |
| 549 | */ |
| 550 | static trackPurchase( |
| 551 | total: number, |
| 552 | items: IterableCommerceItem[], |
| 553 | dataFields?: unknown |
| 554 | ) { |
| 555 | IterableLogger?.log('trackPurchase'); |
| 556 | |
| 557 | IterableApi.trackPurchase({ total, items, dataFields }); |
| 558 | } |
| 559 | |
| 560 | /** |
| 561 | * Create an `inAppOpen` event for the specified message on the current user's profile |
nothing calls this directly
no test coverage detected