sesamy-go/event/params/addpaymentinfo.go
Kevin Franklin Kim 453e5159a1
feat: add events
2024-05-15 13:17:45 +02:00

15 lines
504 B
Go

package params
import (
"github.com/foomo/gostandards/iso4217"
)
// AddPaymentInfo https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events
type AddPaymentInfo[Item 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 []Item `json:"items,omitempty"`
}