logPurchaseRefund method
Logs the standard purchase_refund
event.
This event signifies that an item purchase was refunded. Note: If you
supply the value
parameter, you must also supply the currency
parameter so that revenue metrics can be computed accurately.
Implementation
Future<void> logPurchaseRefund({
String currency,
double value,
String transactionId,
}) {
_requireValueAndCurrencyTogether(value, currency);
return logEvent(
name: 'purchase_refund',
parameters: filterOutNulls(<String, dynamic>{
_CURRENCY: currency,
_VALUE: value,
_TRANSACTION_ID: transactionId,
}),
);
}