public static class TrackHelper.Order
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
TrackMe |
build()
May throw an
IllegalArgumentException if the TrackMe was build with incorrect arguments. |
TrackHelper.Order |
discount(java.lang.Integer discount) |
TrackHelper.Order |
items(EcommerceItems items) |
boolean |
safelyWith(MatomoApplication matomoApplication) |
boolean |
safelyWith(Tracker tracker)
build() can throw an exception on illegal arguments. |
TrackHelper.Order |
shipping(java.lang.Integer shipping) |
TrackHelper.Order |
subTotal(java.lang.Integer subTotal) |
TrackHelper.Order |
tax(java.lang.Integer tax) |
void |
with(MatomoApplication matomoApplication) |
void |
with(Tracker tracker) |
public TrackHelper.Order subTotal(java.lang.Integer subTotal)
subTotal - the subTotal for the order, in centspublic TrackHelper.Order tax(java.lang.Integer tax)
tax - the tax for the order, in centspublic TrackHelper.Order shipping(java.lang.Integer shipping)
shipping - the shipping for the order, in centspublic TrackHelper.Order discount(java.lang.Integer discount)
discount - the discount for the order, in centspublic TrackHelper.Order items(EcommerceItems items)
items - the items included in the orderpublic TrackMe build()
IllegalArgumentException if the TrackMe was build with incorrect arguments.public void with(MatomoApplication matomoApplication)
public void with(Tracker tracker)
public boolean safelyWith(MatomoApplication matomoApplication)