sesamy-go/pkg/event/params/addpaymentinfo.go
2024-05-21 07:26:53 +02:00

15 lines
501 B
Go

package params
import (
"github.com/foomo/gostandards/iso4217"
)
// AddPaymentInfo https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events
type AddPaymentInfo[I any] struct {
Currency iso4217.Currency `json:"currency,omitempty"`
Value float64 `json:"value,omitempty"`
Coupon string `json:"coupon,omitempty"`
PaymentType string `json:"payment_type,omitempty"`
Items []I `json:"items,omitempty"`
}