logPurchaseRefund method

Future<void> logPurchaseRefund({
  1. String currency,
  2. double value,
  3. String transactionId,
})

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.

See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#PURCHASE_REFUND

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,
    }),
  );
}