logRefund method

Future<void> logRefund({
  1. String? currency,
  2. String? coupon,
  3. double? value,
  4. double? tax,
  5. double? shipping,
  6. String? transactionId,
  7. String? affiliation,
  8. List<AnalyticsEventItem>? items,
  9. Map<String, Object?>? parameters,
})

Logs the standard refund event.

This event signifies that a refund was issued.

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

Implementation

Future<void> logRefund({
  String? currency,
  String? coupon,
  double? value,
  double? tax,
  double? shipping,
  String? transactionId,
  String? affiliation,
  List<AnalyticsEventItem>? items,
  Map<String, Object?>? parameters,
}) {
  _assertParameterTypesAreCorrect(parameters);
  _assertItemsParameterTypesAreCorrect(items);

  return _delegate.logEvent(
    name: 'refund',
    parameters: filterOutNulls(<String, Object?>{
      _CURRENCY: currency,
      _COUPON: coupon,
      _VALUE: value,
      _TAX: tax,
      _SHIPPING: shipping,
      _TRANSACTION_ID: transactionId,
      _AFFILIATION: affiliation,
      _ITEMS: _marshalItems(items),
      if (parameters != null) ...parameters,
    }),
  );
}