mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
1597 lines
42 KiB
Go
1597 lines
42 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the CaptureEvent type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CaptureEvent{}
|
|
|
|
// CaptureEvent struct for CaptureEvent
|
|
type CaptureEvent struct {
|
|
AnonymousId *string `json:"anonymousId,omitempty"`
|
|
Channel *string `json:"channel,omitempty"`
|
|
Clip *ClipBody `json:"clip,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
DistinctId *string `json:"distinctId,omitempty"`
|
|
Environment *string `json:"environment,omitempty"`
|
|
Error *Exception `json:"error,omitempty"`
|
|
Event *string `json:"event,omitempty"`
|
|
GroupId *string `json:"groupId,omitempty"`
|
|
GroupType *string `json:"groupType,omitempty"`
|
|
Kind *string `json:"kind,omitempty"`
|
|
LastUtm *UTM `json:"lastUtm,omitempty"`
|
|
Level *string `json:"level,omitempty"`
|
|
Library *string `json:"library,omitempty"`
|
|
LibraryVersion *string `json:"libraryVersion,omitempty"`
|
|
Log *LogBody `json:"log,omitempty"`
|
|
MessageId *string `json:"messageId,omitempty"`
|
|
Metric *MetricBody `json:"metric,omitempty"`
|
|
Path *string `json:"path,omitempty"`
|
|
PersonId *string `json:"personId,omitempty"`
|
|
Product *string `json:"product,omitempty"`
|
|
ProductId *string `json:"productId,omitempty"`
|
|
Properties map[string]interface{} `json:"properties,omitempty"`
|
|
Quantity *int32 `json:"quantity,omitempty"`
|
|
RefCode *string `json:"refCode,omitempty"`
|
|
Referrer *string `json:"referrer,omitempty"`
|
|
Release *string `json:"release,omitempty"`
|
|
Resource *string `json:"resource,omitempty"`
|
|
Revenue *float32 `json:"revenue,omitempty"`
|
|
Service *string `json:"service,omitempty"`
|
|
SessionId *string `json:"sessionId,omitempty"`
|
|
SignupWeek *string `json:"signupWeek,omitempty"`
|
|
Site *string `json:"site,omitempty"`
|
|
Span *SpanBody `json:"span,omitempty"`
|
|
SpanId *string `json:"spanId,omitempty"`
|
|
Timestamp *string `json:"timestamp,omitempty"`
|
|
TraceId *string `json:"traceId,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
Utm *UTM `json:"utm,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _CaptureEvent CaptureEvent
|
|
|
|
// NewCaptureEvent instantiates a new CaptureEvent object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewCaptureEvent() *CaptureEvent {
|
|
this := CaptureEvent{}
|
|
return &this
|
|
}
|
|
|
|
// NewCaptureEventWithDefaults instantiates a new CaptureEvent object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewCaptureEventWithDefaults() *CaptureEvent {
|
|
this := CaptureEvent{}
|
|
return &this
|
|
}
|
|
|
|
// GetAnonymousId returns the AnonymousId field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetAnonymousId() string {
|
|
if o == nil || IsNil(o.AnonymousId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AnonymousId
|
|
}
|
|
|
|
// GetAnonymousIdOk returns a tuple with the AnonymousId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetAnonymousIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AnonymousId) {
|
|
return nil, false
|
|
}
|
|
return o.AnonymousId, true
|
|
}
|
|
|
|
// HasAnonymousId returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasAnonymousId() bool {
|
|
if o != nil && !IsNil(o.AnonymousId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAnonymousId gets a reference to the given string and assigns it to the AnonymousId field.
|
|
func (o *CaptureEvent) SetAnonymousId(v string) {
|
|
o.AnonymousId = &v
|
|
}
|
|
|
|
// GetChannel returns the Channel field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetChannel() string {
|
|
if o == nil || IsNil(o.Channel) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Channel
|
|
}
|
|
|
|
// GetChannelOk returns a tuple with the Channel field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetChannelOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Channel) {
|
|
return nil, false
|
|
}
|
|
return o.Channel, true
|
|
}
|
|
|
|
// HasChannel returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasChannel() bool {
|
|
if o != nil && !IsNil(o.Channel) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetChannel gets a reference to the given string and assigns it to the Channel field.
|
|
func (o *CaptureEvent) SetChannel(v string) {
|
|
o.Channel = &v
|
|
}
|
|
|
|
// GetClip returns the Clip field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetClip() ClipBody {
|
|
if o == nil || IsNil(o.Clip) {
|
|
var ret ClipBody
|
|
return ret
|
|
}
|
|
return *o.Clip
|
|
}
|
|
|
|
// GetClipOk returns a tuple with the Clip field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetClipOk() (*ClipBody, bool) {
|
|
if o == nil || IsNil(o.Clip) {
|
|
return nil, false
|
|
}
|
|
return o.Clip, true
|
|
}
|
|
|
|
// HasClip returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasClip() bool {
|
|
if o != nil && !IsNil(o.Clip) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetClip gets a reference to the given ClipBody and assigns it to the Clip field.
|
|
func (o *CaptureEvent) SetClip(v ClipBody) {
|
|
o.Clip = &v
|
|
}
|
|
|
|
// GetCurrency returns the Currency field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetCurrency() string {
|
|
if o == nil || IsNil(o.Currency) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Currency
|
|
}
|
|
|
|
// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetCurrencyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Currency) {
|
|
return nil, false
|
|
}
|
|
return o.Currency, true
|
|
}
|
|
|
|
// HasCurrency returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasCurrency() bool {
|
|
if o != nil && !IsNil(o.Currency) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCurrency gets a reference to the given string and assigns it to the Currency field.
|
|
func (o *CaptureEvent) SetCurrency(v string) {
|
|
o.Currency = &v
|
|
}
|
|
|
|
// GetDistinctId returns the DistinctId field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetDistinctId() string {
|
|
if o == nil || IsNil(o.DistinctId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DistinctId
|
|
}
|
|
|
|
// GetDistinctIdOk returns a tuple with the DistinctId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetDistinctIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DistinctId) {
|
|
return nil, false
|
|
}
|
|
return o.DistinctId, true
|
|
}
|
|
|
|
// HasDistinctId returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasDistinctId() bool {
|
|
if o != nil && !IsNil(o.DistinctId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDistinctId gets a reference to the given string and assigns it to the DistinctId field.
|
|
func (o *CaptureEvent) SetDistinctId(v string) {
|
|
o.DistinctId = &v
|
|
}
|
|
|
|
// GetEnvironment returns the Environment field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetEnvironment() string {
|
|
if o == nil || IsNil(o.Environment) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Environment
|
|
}
|
|
|
|
// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetEnvironmentOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Environment) {
|
|
return nil, false
|
|
}
|
|
return o.Environment, true
|
|
}
|
|
|
|
// HasEnvironment returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasEnvironment() bool {
|
|
if o != nil && !IsNil(o.Environment) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEnvironment gets a reference to the given string and assigns it to the Environment field.
|
|
func (o *CaptureEvent) SetEnvironment(v string) {
|
|
o.Environment = &v
|
|
}
|
|
|
|
// GetError returns the Error field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetError() Exception {
|
|
if o == nil || IsNil(o.Error) {
|
|
var ret Exception
|
|
return ret
|
|
}
|
|
return *o.Error
|
|
}
|
|
|
|
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetErrorOk() (*Exception, bool) {
|
|
if o == nil || IsNil(o.Error) {
|
|
return nil, false
|
|
}
|
|
return o.Error, true
|
|
}
|
|
|
|
// HasError returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasError() bool {
|
|
if o != nil && !IsNil(o.Error) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetError gets a reference to the given Exception and assigns it to the Error field.
|
|
func (o *CaptureEvent) SetError(v Exception) {
|
|
o.Error = &v
|
|
}
|
|
|
|
// GetEvent returns the Event field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetEvent() string {
|
|
if o == nil || IsNil(o.Event) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Event
|
|
}
|
|
|
|
// GetEventOk returns a tuple with the Event field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetEventOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Event) {
|
|
return nil, false
|
|
}
|
|
return o.Event, true
|
|
}
|
|
|
|
// HasEvent returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasEvent() bool {
|
|
if o != nil && !IsNil(o.Event) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEvent gets a reference to the given string and assigns it to the Event field.
|
|
func (o *CaptureEvent) SetEvent(v string) {
|
|
o.Event = &v
|
|
}
|
|
|
|
// GetGroupId returns the GroupId field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetGroupId() string {
|
|
if o == nil || IsNil(o.GroupId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.GroupId
|
|
}
|
|
|
|
// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetGroupIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.GroupId) {
|
|
return nil, false
|
|
}
|
|
return o.GroupId, true
|
|
}
|
|
|
|
// HasGroupId returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasGroupId() bool {
|
|
if o != nil && !IsNil(o.GroupId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGroupId gets a reference to the given string and assigns it to the GroupId field.
|
|
func (o *CaptureEvent) SetGroupId(v string) {
|
|
o.GroupId = &v
|
|
}
|
|
|
|
// GetGroupType returns the GroupType field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetGroupType() string {
|
|
if o == nil || IsNil(o.GroupType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.GroupType
|
|
}
|
|
|
|
// GetGroupTypeOk returns a tuple with the GroupType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetGroupTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.GroupType) {
|
|
return nil, false
|
|
}
|
|
return o.GroupType, true
|
|
}
|
|
|
|
// HasGroupType returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasGroupType() bool {
|
|
if o != nil && !IsNil(o.GroupType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGroupType gets a reference to the given string and assigns it to the GroupType field.
|
|
func (o *CaptureEvent) SetGroupType(v string) {
|
|
o.GroupType = &v
|
|
}
|
|
|
|
// GetKind returns the Kind field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetKind() string {
|
|
if o == nil || IsNil(o.Kind) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Kind
|
|
}
|
|
|
|
// GetKindOk returns a tuple with the Kind field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetKindOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Kind) {
|
|
return nil, false
|
|
}
|
|
return o.Kind, true
|
|
}
|
|
|
|
// HasKind returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasKind() bool {
|
|
if o != nil && !IsNil(o.Kind) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetKind gets a reference to the given string and assigns it to the Kind field.
|
|
func (o *CaptureEvent) SetKind(v string) {
|
|
o.Kind = &v
|
|
}
|
|
|
|
// GetLastUtm returns the LastUtm field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetLastUtm() UTM {
|
|
if o == nil || IsNil(o.LastUtm) {
|
|
var ret UTM
|
|
return ret
|
|
}
|
|
return *o.LastUtm
|
|
}
|
|
|
|
// GetLastUtmOk returns a tuple with the LastUtm field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetLastUtmOk() (*UTM, bool) {
|
|
if o == nil || IsNil(o.LastUtm) {
|
|
return nil, false
|
|
}
|
|
return o.LastUtm, true
|
|
}
|
|
|
|
// HasLastUtm returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasLastUtm() bool {
|
|
if o != nil && !IsNil(o.LastUtm) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLastUtm gets a reference to the given UTM and assigns it to the LastUtm field.
|
|
func (o *CaptureEvent) SetLastUtm(v UTM) {
|
|
o.LastUtm = &v
|
|
}
|
|
|
|
// GetLevel returns the Level field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetLevel() string {
|
|
if o == nil || IsNil(o.Level) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Level
|
|
}
|
|
|
|
// GetLevelOk returns a tuple with the Level field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetLevelOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Level) {
|
|
return nil, false
|
|
}
|
|
return o.Level, true
|
|
}
|
|
|
|
// HasLevel returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasLevel() bool {
|
|
if o != nil && !IsNil(o.Level) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLevel gets a reference to the given string and assigns it to the Level field.
|
|
func (o *CaptureEvent) SetLevel(v string) {
|
|
o.Level = &v
|
|
}
|
|
|
|
// GetLibrary returns the Library field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetLibrary() string {
|
|
if o == nil || IsNil(o.Library) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Library
|
|
}
|
|
|
|
// GetLibraryOk returns a tuple with the Library field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetLibraryOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Library) {
|
|
return nil, false
|
|
}
|
|
return o.Library, true
|
|
}
|
|
|
|
// HasLibrary returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasLibrary() bool {
|
|
if o != nil && !IsNil(o.Library) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLibrary gets a reference to the given string and assigns it to the Library field.
|
|
func (o *CaptureEvent) SetLibrary(v string) {
|
|
o.Library = &v
|
|
}
|
|
|
|
// GetLibraryVersion returns the LibraryVersion field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetLibraryVersion() string {
|
|
if o == nil || IsNil(o.LibraryVersion) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.LibraryVersion
|
|
}
|
|
|
|
// GetLibraryVersionOk returns a tuple with the LibraryVersion field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetLibraryVersionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.LibraryVersion) {
|
|
return nil, false
|
|
}
|
|
return o.LibraryVersion, true
|
|
}
|
|
|
|
// HasLibraryVersion returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasLibraryVersion() bool {
|
|
if o != nil && !IsNil(o.LibraryVersion) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLibraryVersion gets a reference to the given string and assigns it to the LibraryVersion field.
|
|
func (o *CaptureEvent) SetLibraryVersion(v string) {
|
|
o.LibraryVersion = &v
|
|
}
|
|
|
|
// GetLog returns the Log field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetLog() LogBody {
|
|
if o == nil || IsNil(o.Log) {
|
|
var ret LogBody
|
|
return ret
|
|
}
|
|
return *o.Log
|
|
}
|
|
|
|
// GetLogOk returns a tuple with the Log field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetLogOk() (*LogBody, bool) {
|
|
if o == nil || IsNil(o.Log) {
|
|
return nil, false
|
|
}
|
|
return o.Log, true
|
|
}
|
|
|
|
// HasLog returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasLog() bool {
|
|
if o != nil && !IsNil(o.Log) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLog gets a reference to the given LogBody and assigns it to the Log field.
|
|
func (o *CaptureEvent) SetLog(v LogBody) {
|
|
o.Log = &v
|
|
}
|
|
|
|
// GetMessageId returns the MessageId field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetMessageId() string {
|
|
if o == nil || IsNil(o.MessageId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.MessageId
|
|
}
|
|
|
|
// GetMessageIdOk returns a tuple with the MessageId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetMessageIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.MessageId) {
|
|
return nil, false
|
|
}
|
|
return o.MessageId, true
|
|
}
|
|
|
|
// HasMessageId returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasMessageId() bool {
|
|
if o != nil && !IsNil(o.MessageId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMessageId gets a reference to the given string and assigns it to the MessageId field.
|
|
func (o *CaptureEvent) SetMessageId(v string) {
|
|
o.MessageId = &v
|
|
}
|
|
|
|
// GetMetric returns the Metric field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetMetric() MetricBody {
|
|
if o == nil || IsNil(o.Metric) {
|
|
var ret MetricBody
|
|
return ret
|
|
}
|
|
return *o.Metric
|
|
}
|
|
|
|
// GetMetricOk returns a tuple with the Metric field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetMetricOk() (*MetricBody, bool) {
|
|
if o == nil || IsNil(o.Metric) {
|
|
return nil, false
|
|
}
|
|
return o.Metric, true
|
|
}
|
|
|
|
// HasMetric returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasMetric() bool {
|
|
if o != nil && !IsNil(o.Metric) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMetric gets a reference to the given MetricBody and assigns it to the Metric field.
|
|
func (o *CaptureEvent) SetMetric(v MetricBody) {
|
|
o.Metric = &v
|
|
}
|
|
|
|
// GetPath returns the Path field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetPath() string {
|
|
if o == nil || IsNil(o.Path) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Path
|
|
}
|
|
|
|
// GetPathOk returns a tuple with the Path field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetPathOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Path) {
|
|
return nil, false
|
|
}
|
|
return o.Path, true
|
|
}
|
|
|
|
// HasPath returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasPath() bool {
|
|
if o != nil && !IsNil(o.Path) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPath gets a reference to the given string and assigns it to the Path field.
|
|
func (o *CaptureEvent) SetPath(v string) {
|
|
o.Path = &v
|
|
}
|
|
|
|
// GetPersonId returns the PersonId field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetPersonId() string {
|
|
if o == nil || IsNil(o.PersonId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.PersonId
|
|
}
|
|
|
|
// GetPersonIdOk returns a tuple with the PersonId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetPersonIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.PersonId) {
|
|
return nil, false
|
|
}
|
|
return o.PersonId, true
|
|
}
|
|
|
|
// HasPersonId returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasPersonId() bool {
|
|
if o != nil && !IsNil(o.PersonId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPersonId gets a reference to the given string and assigns it to the PersonId field.
|
|
func (o *CaptureEvent) SetPersonId(v string) {
|
|
o.PersonId = &v
|
|
}
|
|
|
|
// GetProduct returns the Product field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetProduct() string {
|
|
if o == nil || IsNil(o.Product) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Product
|
|
}
|
|
|
|
// GetProductOk returns a tuple with the Product field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetProductOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Product) {
|
|
return nil, false
|
|
}
|
|
return o.Product, true
|
|
}
|
|
|
|
// HasProduct returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasProduct() bool {
|
|
if o != nil && !IsNil(o.Product) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProduct gets a reference to the given string and assigns it to the Product field.
|
|
func (o *CaptureEvent) SetProduct(v string) {
|
|
o.Product = &v
|
|
}
|
|
|
|
// GetProductId returns the ProductId field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetProductId() string {
|
|
if o == nil || IsNil(o.ProductId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ProductId
|
|
}
|
|
|
|
// GetProductIdOk returns a tuple with the ProductId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetProductIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ProductId) {
|
|
return nil, false
|
|
}
|
|
return o.ProductId, true
|
|
}
|
|
|
|
// HasProductId returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasProductId() bool {
|
|
if o != nil && !IsNil(o.ProductId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProductId gets a reference to the given string and assigns it to the ProductId field.
|
|
func (o *CaptureEvent) SetProductId(v string) {
|
|
o.ProductId = &v
|
|
}
|
|
|
|
// GetProperties returns the Properties field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetProperties() map[string]interface{} {
|
|
if o == nil || IsNil(o.Properties) {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
return o.Properties
|
|
}
|
|
|
|
// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetPropertiesOk() (map[string]interface{}, bool) {
|
|
if o == nil || IsNil(o.Properties) {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.Properties, true
|
|
}
|
|
|
|
// HasProperties returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasProperties() bool {
|
|
if o != nil && !IsNil(o.Properties) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProperties gets a reference to the given map[string]interface{} and assigns it to the Properties field.
|
|
func (o *CaptureEvent) SetProperties(v map[string]interface{}) {
|
|
o.Properties = v
|
|
}
|
|
|
|
// GetQuantity returns the Quantity field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetQuantity() int32 {
|
|
if o == nil || IsNil(o.Quantity) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Quantity
|
|
}
|
|
|
|
// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetQuantityOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Quantity) {
|
|
return nil, false
|
|
}
|
|
return o.Quantity, true
|
|
}
|
|
|
|
// HasQuantity returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasQuantity() bool {
|
|
if o != nil && !IsNil(o.Quantity) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.
|
|
func (o *CaptureEvent) SetQuantity(v int32) {
|
|
o.Quantity = &v
|
|
}
|
|
|
|
// GetRefCode returns the RefCode field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetRefCode() string {
|
|
if o == nil || IsNil(o.RefCode) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RefCode
|
|
}
|
|
|
|
// GetRefCodeOk returns a tuple with the RefCode field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetRefCodeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RefCode) {
|
|
return nil, false
|
|
}
|
|
return o.RefCode, true
|
|
}
|
|
|
|
// HasRefCode returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasRefCode() bool {
|
|
if o != nil && !IsNil(o.RefCode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRefCode gets a reference to the given string and assigns it to the RefCode field.
|
|
func (o *CaptureEvent) SetRefCode(v string) {
|
|
o.RefCode = &v
|
|
}
|
|
|
|
// GetReferrer returns the Referrer field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetReferrer() string {
|
|
if o == nil || IsNil(o.Referrer) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Referrer
|
|
}
|
|
|
|
// GetReferrerOk returns a tuple with the Referrer field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetReferrerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Referrer) {
|
|
return nil, false
|
|
}
|
|
return o.Referrer, true
|
|
}
|
|
|
|
// HasReferrer returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasReferrer() bool {
|
|
if o != nil && !IsNil(o.Referrer) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReferrer gets a reference to the given string and assigns it to the Referrer field.
|
|
func (o *CaptureEvent) SetReferrer(v string) {
|
|
o.Referrer = &v
|
|
}
|
|
|
|
// GetRelease returns the Release field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetRelease() string {
|
|
if o == nil || IsNil(o.Release) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Release
|
|
}
|
|
|
|
// GetReleaseOk returns a tuple with the Release field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetReleaseOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Release) {
|
|
return nil, false
|
|
}
|
|
return o.Release, true
|
|
}
|
|
|
|
// HasRelease returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasRelease() bool {
|
|
if o != nil && !IsNil(o.Release) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRelease gets a reference to the given string and assigns it to the Release field.
|
|
func (o *CaptureEvent) SetRelease(v string) {
|
|
o.Release = &v
|
|
}
|
|
|
|
// GetResource returns the Resource field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetResource() string {
|
|
if o == nil || IsNil(o.Resource) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Resource
|
|
}
|
|
|
|
// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetResourceOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Resource) {
|
|
return nil, false
|
|
}
|
|
return o.Resource, true
|
|
}
|
|
|
|
// HasResource returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasResource() bool {
|
|
if o != nil && !IsNil(o.Resource) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetResource gets a reference to the given string and assigns it to the Resource field.
|
|
func (o *CaptureEvent) SetResource(v string) {
|
|
o.Resource = &v
|
|
}
|
|
|
|
// GetRevenue returns the Revenue field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetRevenue() float32 {
|
|
if o == nil || IsNil(o.Revenue) {
|
|
var ret float32
|
|
return ret
|
|
}
|
|
return *o.Revenue
|
|
}
|
|
|
|
// GetRevenueOk returns a tuple with the Revenue field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetRevenueOk() (*float32, bool) {
|
|
if o == nil || IsNil(o.Revenue) {
|
|
return nil, false
|
|
}
|
|
return o.Revenue, true
|
|
}
|
|
|
|
// HasRevenue returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasRevenue() bool {
|
|
if o != nil && !IsNil(o.Revenue) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRevenue gets a reference to the given float32 and assigns it to the Revenue field.
|
|
func (o *CaptureEvent) SetRevenue(v float32) {
|
|
o.Revenue = &v
|
|
}
|
|
|
|
// GetService returns the Service field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetService() string {
|
|
if o == nil || IsNil(o.Service) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Service
|
|
}
|
|
|
|
// GetServiceOk returns a tuple with the Service field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetServiceOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Service) {
|
|
return nil, false
|
|
}
|
|
return o.Service, true
|
|
}
|
|
|
|
// HasService returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasService() bool {
|
|
if o != nil && !IsNil(o.Service) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetService gets a reference to the given string and assigns it to the Service field.
|
|
func (o *CaptureEvent) SetService(v string) {
|
|
o.Service = &v
|
|
}
|
|
|
|
// GetSessionId returns the SessionId field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetSessionId() string {
|
|
if o == nil || IsNil(o.SessionId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SessionId
|
|
}
|
|
|
|
// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetSessionIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SessionId) {
|
|
return nil, false
|
|
}
|
|
return o.SessionId, true
|
|
}
|
|
|
|
// HasSessionId returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasSessionId() bool {
|
|
if o != nil && !IsNil(o.SessionId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSessionId gets a reference to the given string and assigns it to the SessionId field.
|
|
func (o *CaptureEvent) SetSessionId(v string) {
|
|
o.SessionId = &v
|
|
}
|
|
|
|
// GetSignupWeek returns the SignupWeek field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetSignupWeek() string {
|
|
if o == nil || IsNil(o.SignupWeek) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SignupWeek
|
|
}
|
|
|
|
// GetSignupWeekOk returns a tuple with the SignupWeek field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetSignupWeekOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SignupWeek) {
|
|
return nil, false
|
|
}
|
|
return o.SignupWeek, true
|
|
}
|
|
|
|
// HasSignupWeek returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasSignupWeek() bool {
|
|
if o != nil && !IsNil(o.SignupWeek) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignupWeek gets a reference to the given string and assigns it to the SignupWeek field.
|
|
func (o *CaptureEvent) SetSignupWeek(v string) {
|
|
o.SignupWeek = &v
|
|
}
|
|
|
|
// GetSite returns the Site field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetSite() string {
|
|
if o == nil || IsNil(o.Site) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Site
|
|
}
|
|
|
|
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetSiteOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Site) {
|
|
return nil, false
|
|
}
|
|
return o.Site, true
|
|
}
|
|
|
|
// HasSite returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasSite() bool {
|
|
if o != nil && !IsNil(o.Site) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSite gets a reference to the given string and assigns it to the Site field.
|
|
func (o *CaptureEvent) SetSite(v string) {
|
|
o.Site = &v
|
|
}
|
|
|
|
// GetSpan returns the Span field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetSpan() SpanBody {
|
|
if o == nil || IsNil(o.Span) {
|
|
var ret SpanBody
|
|
return ret
|
|
}
|
|
return *o.Span
|
|
}
|
|
|
|
// GetSpanOk returns a tuple with the Span field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetSpanOk() (*SpanBody, bool) {
|
|
if o == nil || IsNil(o.Span) {
|
|
return nil, false
|
|
}
|
|
return o.Span, true
|
|
}
|
|
|
|
// HasSpan returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasSpan() bool {
|
|
if o != nil && !IsNil(o.Span) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSpan gets a reference to the given SpanBody and assigns it to the Span field.
|
|
func (o *CaptureEvent) SetSpan(v SpanBody) {
|
|
o.Span = &v
|
|
}
|
|
|
|
// GetSpanId returns the SpanId field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetSpanId() string {
|
|
if o == nil || IsNil(o.SpanId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SpanId
|
|
}
|
|
|
|
// GetSpanIdOk returns a tuple with the SpanId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetSpanIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SpanId) {
|
|
return nil, false
|
|
}
|
|
return o.SpanId, true
|
|
}
|
|
|
|
// HasSpanId returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasSpanId() bool {
|
|
if o != nil && !IsNil(o.SpanId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSpanId gets a reference to the given string and assigns it to the SpanId field.
|
|
func (o *CaptureEvent) SetSpanId(v string) {
|
|
o.SpanId = &v
|
|
}
|
|
|
|
// GetTimestamp returns the Timestamp field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetTimestamp() string {
|
|
if o == nil || IsNil(o.Timestamp) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Timestamp
|
|
}
|
|
|
|
// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetTimestampOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Timestamp) {
|
|
return nil, false
|
|
}
|
|
return o.Timestamp, true
|
|
}
|
|
|
|
// HasTimestamp returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasTimestamp() bool {
|
|
if o != nil && !IsNil(o.Timestamp) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTimestamp gets a reference to the given string and assigns it to the Timestamp field.
|
|
func (o *CaptureEvent) SetTimestamp(v string) {
|
|
o.Timestamp = &v
|
|
}
|
|
|
|
// GetTraceId returns the TraceId field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetTraceId() string {
|
|
if o == nil || IsNil(o.TraceId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.TraceId
|
|
}
|
|
|
|
// GetTraceIdOk returns a tuple with the TraceId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetTraceIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.TraceId) {
|
|
return nil, false
|
|
}
|
|
return o.TraceId, true
|
|
}
|
|
|
|
// HasTraceId returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasTraceId() bool {
|
|
if o != nil && !IsNil(o.TraceId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTraceId gets a reference to the given string and assigns it to the TraceId field.
|
|
func (o *CaptureEvent) SetTraceId(v string) {
|
|
o.TraceId = &v
|
|
}
|
|
|
|
// GetType returns the Type field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetType() string {
|
|
if o == nil || IsNil(o.Type) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Type
|
|
}
|
|
|
|
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Type) {
|
|
return nil, false
|
|
}
|
|
return o.Type, true
|
|
}
|
|
|
|
// HasType returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasType() bool {
|
|
if o != nil && !IsNil(o.Type) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetType gets a reference to the given string and assigns it to the Type field.
|
|
func (o *CaptureEvent) SetType(v string) {
|
|
o.Type = &v
|
|
}
|
|
|
|
// GetUrl returns the Url field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetUrl() string {
|
|
if o == nil || IsNil(o.Url) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Url
|
|
}
|
|
|
|
// GetUrlOk returns a tuple with the Url field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Url) {
|
|
return nil, false
|
|
}
|
|
return o.Url, true
|
|
}
|
|
|
|
// HasUrl returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasUrl() bool {
|
|
if o != nil && !IsNil(o.Url) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUrl gets a reference to the given string and assigns it to the Url field.
|
|
func (o *CaptureEvent) SetUrl(v string) {
|
|
o.Url = &v
|
|
}
|
|
|
|
// GetUtm returns the Utm field value if set, zero value otherwise.
|
|
func (o *CaptureEvent) GetUtm() UTM {
|
|
if o == nil || IsNil(o.Utm) {
|
|
var ret UTM
|
|
return ret
|
|
}
|
|
return *o.Utm
|
|
}
|
|
|
|
// GetUtmOk returns a tuple with the Utm field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptureEvent) GetUtmOk() (*UTM, bool) {
|
|
if o == nil || IsNil(o.Utm) {
|
|
return nil, false
|
|
}
|
|
return o.Utm, true
|
|
}
|
|
|
|
// HasUtm returns a boolean if a field has been set.
|
|
func (o *CaptureEvent) HasUtm() bool {
|
|
if o != nil && !IsNil(o.Utm) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUtm gets a reference to the given UTM and assigns it to the Utm field.
|
|
func (o *CaptureEvent) SetUtm(v UTM) {
|
|
o.Utm = &v
|
|
}
|
|
|
|
func (o CaptureEvent) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o CaptureEvent) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AnonymousId) {
|
|
toSerialize["anonymousId"] = o.AnonymousId
|
|
}
|
|
if !IsNil(o.Channel) {
|
|
toSerialize["channel"] = o.Channel
|
|
}
|
|
if !IsNil(o.Clip) {
|
|
toSerialize["clip"] = o.Clip
|
|
}
|
|
if !IsNil(o.Currency) {
|
|
toSerialize["currency"] = o.Currency
|
|
}
|
|
if !IsNil(o.DistinctId) {
|
|
toSerialize["distinctId"] = o.DistinctId
|
|
}
|
|
if !IsNil(o.Environment) {
|
|
toSerialize["environment"] = o.Environment
|
|
}
|
|
if !IsNil(o.Error) {
|
|
toSerialize["error"] = o.Error
|
|
}
|
|
if !IsNil(o.Event) {
|
|
toSerialize["event"] = o.Event
|
|
}
|
|
if !IsNil(o.GroupId) {
|
|
toSerialize["groupId"] = o.GroupId
|
|
}
|
|
if !IsNil(o.GroupType) {
|
|
toSerialize["groupType"] = o.GroupType
|
|
}
|
|
if !IsNil(o.Kind) {
|
|
toSerialize["kind"] = o.Kind
|
|
}
|
|
if !IsNil(o.LastUtm) {
|
|
toSerialize["lastUtm"] = o.LastUtm
|
|
}
|
|
if !IsNil(o.Level) {
|
|
toSerialize["level"] = o.Level
|
|
}
|
|
if !IsNil(o.Library) {
|
|
toSerialize["library"] = o.Library
|
|
}
|
|
if !IsNil(o.LibraryVersion) {
|
|
toSerialize["libraryVersion"] = o.LibraryVersion
|
|
}
|
|
if !IsNil(o.Log) {
|
|
toSerialize["log"] = o.Log
|
|
}
|
|
if !IsNil(o.MessageId) {
|
|
toSerialize["messageId"] = o.MessageId
|
|
}
|
|
if !IsNil(o.Metric) {
|
|
toSerialize["metric"] = o.Metric
|
|
}
|
|
if !IsNil(o.Path) {
|
|
toSerialize["path"] = o.Path
|
|
}
|
|
if !IsNil(o.PersonId) {
|
|
toSerialize["personId"] = o.PersonId
|
|
}
|
|
if !IsNil(o.Product) {
|
|
toSerialize["product"] = o.Product
|
|
}
|
|
if !IsNil(o.ProductId) {
|
|
toSerialize["productId"] = o.ProductId
|
|
}
|
|
if !IsNil(o.Properties) {
|
|
toSerialize["properties"] = o.Properties
|
|
}
|
|
if !IsNil(o.Quantity) {
|
|
toSerialize["quantity"] = o.Quantity
|
|
}
|
|
if !IsNil(o.RefCode) {
|
|
toSerialize["refCode"] = o.RefCode
|
|
}
|
|
if !IsNil(o.Referrer) {
|
|
toSerialize["referrer"] = o.Referrer
|
|
}
|
|
if !IsNil(o.Release) {
|
|
toSerialize["release"] = o.Release
|
|
}
|
|
if !IsNil(o.Resource) {
|
|
toSerialize["resource"] = o.Resource
|
|
}
|
|
if !IsNil(o.Revenue) {
|
|
toSerialize["revenue"] = o.Revenue
|
|
}
|
|
if !IsNil(o.Service) {
|
|
toSerialize["service"] = o.Service
|
|
}
|
|
if !IsNil(o.SessionId) {
|
|
toSerialize["sessionId"] = o.SessionId
|
|
}
|
|
if !IsNil(o.SignupWeek) {
|
|
toSerialize["signupWeek"] = o.SignupWeek
|
|
}
|
|
if !IsNil(o.Site) {
|
|
toSerialize["site"] = o.Site
|
|
}
|
|
if !IsNil(o.Span) {
|
|
toSerialize["span"] = o.Span
|
|
}
|
|
if !IsNil(o.SpanId) {
|
|
toSerialize["spanId"] = o.SpanId
|
|
}
|
|
if !IsNil(o.Timestamp) {
|
|
toSerialize["timestamp"] = o.Timestamp
|
|
}
|
|
if !IsNil(o.TraceId) {
|
|
toSerialize["traceId"] = o.TraceId
|
|
}
|
|
if !IsNil(o.Type) {
|
|
toSerialize["type"] = o.Type
|
|
}
|
|
if !IsNil(o.Url) {
|
|
toSerialize["url"] = o.Url
|
|
}
|
|
if !IsNil(o.Utm) {
|
|
toSerialize["utm"] = o.Utm
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *CaptureEvent) UnmarshalJSON(data []byte) (err error) {
|
|
varCaptureEvent := _CaptureEvent{}
|
|
|
|
err = json.Unmarshal(data, &varCaptureEvent)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = CaptureEvent(varCaptureEvent)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "anonymousId")
|
|
delete(additionalProperties, "channel")
|
|
delete(additionalProperties, "clip")
|
|
delete(additionalProperties, "currency")
|
|
delete(additionalProperties, "distinctId")
|
|
delete(additionalProperties, "environment")
|
|
delete(additionalProperties, "error")
|
|
delete(additionalProperties, "event")
|
|
delete(additionalProperties, "groupId")
|
|
delete(additionalProperties, "groupType")
|
|
delete(additionalProperties, "kind")
|
|
delete(additionalProperties, "lastUtm")
|
|
delete(additionalProperties, "level")
|
|
delete(additionalProperties, "library")
|
|
delete(additionalProperties, "libraryVersion")
|
|
delete(additionalProperties, "log")
|
|
delete(additionalProperties, "messageId")
|
|
delete(additionalProperties, "metric")
|
|
delete(additionalProperties, "path")
|
|
delete(additionalProperties, "personId")
|
|
delete(additionalProperties, "product")
|
|
delete(additionalProperties, "productId")
|
|
delete(additionalProperties, "properties")
|
|
delete(additionalProperties, "quantity")
|
|
delete(additionalProperties, "refCode")
|
|
delete(additionalProperties, "referrer")
|
|
delete(additionalProperties, "release")
|
|
delete(additionalProperties, "resource")
|
|
delete(additionalProperties, "revenue")
|
|
delete(additionalProperties, "service")
|
|
delete(additionalProperties, "sessionId")
|
|
delete(additionalProperties, "signupWeek")
|
|
delete(additionalProperties, "site")
|
|
delete(additionalProperties, "span")
|
|
delete(additionalProperties, "spanId")
|
|
delete(additionalProperties, "timestamp")
|
|
delete(additionalProperties, "traceId")
|
|
delete(additionalProperties, "type")
|
|
delete(additionalProperties, "url")
|
|
delete(additionalProperties, "utm")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableCaptureEvent struct {
|
|
value *CaptureEvent
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCaptureEvent) Get() *CaptureEvent {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCaptureEvent) Set(val *CaptureEvent) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCaptureEvent) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCaptureEvent) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCaptureEvent(val *CaptureEvent) *NullableCaptureEvent {
|
|
return &NullableCaptureEvent{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCaptureEvent) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCaptureEvent) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|