logRefund method
Future<void>
logRefund({
- String? currency,
- String? coupon,
- double? value,
- double? tax,
- double? shipping,
- String? transactionId,
- String? affiliation,
- List<
AnalyticsEventItem> ? items, - Map<
String, Object> ? parameters,
inherited
Logs the standard refund
event.
This event signifies that a refund was issued.
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,
}),
);
}