logPurchaseRefund method

  1. @Deprecated('logPurchaseRefund() has been deprecated. Please use logRefund()')
Future<void> logPurchaseRefund({
  1. String? currency,
  2. double? value,
  3. String? transactionId,
})

Logs the standard purchase_refund event. This event has been deprecated, please use refund instead.

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

@Deprecated('logPurchaseRefund() has been deprecated. Please use logRefund()')
Future<void> logPurchaseRefund({
  String? currency,
  double? value,
  String? transactionId,
}) {
  _requireValueAndCurrencyTogether(value, currency);

  return _delegate.logEvent(
    name: 'purchase_refund',
    parameters: filterOutNulls(<String, Object?>{
      _CURRENCY: currency,
      _VALUE: value,
      _TRANSACTION_ID: transactionId,
    }),
  );
}