businesssdk

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 25 Imported by: 1

README

CAPI Business SDK in Go

Introduction

The Snapchat Conversions API (CAPI) allows you to pass web, app, and offline events to Snap via a Server-to-Server (S2S) integration. Similar to our other Direct Data Integrations, Snap Pixel and App Ads Kit (SDK), by passing these events, you can access post-view and post-swipe campaign reporting to measure performance and incrementality. Depending on the data shared and timeliness of integration, it’s also possible to leverage events passed via Conversions API for solutions such as custom audience targeting, campaign optimization, Dynamic Ads, and more.

Business SDK is an API client that facilitates requests and authentication processes with CAPI as if they were local functions of the supported languages. There have been similar products (e.g. Facebook Business SDK for Conversion API), which largely simplified the integration for advertising platforms. To improve the developer experience and CAPI adoption, we bundle the dedicated CAPI client, hashing libraries, and code examples into one SDK that is available in multiple languages. In addition, our CAPI Business SDK paves the way for Privacy-Enhancing Technologies in CAPI v2, with seamless integration of the Launch Pad.

Installation

The Go CAPI Business SDK module will be published as part of the public github repository.

Add the Business SDK dependency to your go project with the go get command

go get github.com/Snapchat/business-sdk-go

Import the package in your go file with the following declaration Go:

Import "github.com/Snapchat/business-sdk-go"

Code Examples

Sending Production Events

Please use the code example below as a template on sending your conversion events to Snap Conversion API. More conversion parameters are expected to be provided in practice.

package main

import (
sdk "github.com/Snapchat/business-sdk-go"
)

func main() {
    auth_token := "TOKEN_WITHOUT_BEARER_PREFIX"
    pixel_id := "TEST_PIXEL_ID"
    
    capiClient := sdk.NewCapiClient(longLivedToken)
    //capiClient := sdk.NewCapiClient(longLivedToken, sdk.WithLaunchPadUrl("LAUNCHPAD_URL_HERE"))
    capiClient.SetDebugging(true)
    
    event := sdk.NewCapiEvent()
    event.SetPixelId(pixel_id)
    event.SetEventType("PURCHASE")
    event.SetEventConversionType("WEB")
    event.SetEventTag("event_tag_example")
    event.SetTimestamp(1656022510346)
    event.SetUuidC1("34dd6077-e3a0-4b1c-9f91-a690ea0e335d")
    // we support pass in plaintext email (it will be hashed and set to hashed_email automatically)
    event.SetEmail("test@example.com")
    // you can also pass hashed email if preferred
    // event.SetHashedEmail("f660ab912ec121d1b1e928a0bb4bc61b15f5ad44d5efdc4e1c92a25e99b8e44a")
    // we support pass in plaintext phone number (it will be hashed and set to hashed_phone_number automatically)
    event.SetPhoneNumber("1234567890")
    // you can also pass hashed phone number if preferred
    //event.SetHashedPhoneNumber("a2b5e507dfb65941ff4be6e4fc089313cbbb640da5fd6fbc4e3d2e2f3abe92cc")
    // we support pass in plaintext ip address (it will be hashed and set to hashed_ip_address automatically)
    event.SetIpAddress("12.34.56.78")
    // you can also pass hashed ip address if preferred
    // event.SetHashedIpAddress("f1412386aa8db2579aff2636cb9511cacc5fd9880ecab60c048508fbe26ee4d9")
    event.SetItemCategory("item_category_example")
    event.SetItemIds("item_ids_example")
    event.SetDescription("description_example")
    event.SetNumberItems("number_items_example")
    event.SetPrice("price_example")
    event.SetCurrency("USD")
    event.SetTransactionId("transaction_id_example")
    event.SetLevel("level_example")
    event.SetClientDedupId("client_dedup_id_example")
    event.SetSearchString("search_string_example")
    event.SetPageUrl("page_url_example")
    event.SetSignUpMethod("sign_up_method_example")
    event.SetFirstName("test_first")
    //event.SetHashedFirstNameSha("d99156483b6a99eb5f5a1707f7330e1c979a648b47a379d56a0d6850a9a9c76c")
    //event.SetHashedFirstNameSdx("T231")
    event.SetMiddleName("")
    //event.SetHashedMiddleNameSha("")
    //event.SetHashedMiddleNameSdx("")
    event.SetLastName("test_last")
    //event.SetHashedLastNameSha("19fc3d9f9f6fad30ccbbebd51f67515dc95d8a5ef363fd35c34a2f47064d43bd")
    //event.SetHashedLastNameSdx("T234")
    event.SetCity("Los Angeles")
    //event.SetHashedCitySha("9f2608067816e38c85edfb0c3985feff32def8b5dc17bb522ffc2e877e9b386b")
    //event.SetHashedCitySdx("9f2608067816e38c85edfb0c3985feff32def8b5dc17bb522ffc2e877e9b386b")
    event.SetState("CA")
    //event.SetHashedStateSha("6959097001d10501ac7d54c0bdb8db61420f658f2922cc26e46d536119a31126")
    event.SetHashedStateSdx("C000") //(hashed_state_sdx="C000")
    event.SetZip("00000")
    //event.SetHashedZip("e7042ac7d09c7bc41c8cfa5749e41858f6980643bc0db1a83cc793d3e24d3f77")
    //event.SetClickId("click_id_example")
    
    asyncRespChan := make(chan *sdk.AsyncResponse, 2)
    // send single event asynchronously
    capiClient.SendEvent(*event, asyncRespChan)
    // send multiple events asynchronously
    capiClient.SendEvents([]sdk.CapiEvent{*event}, asyncRespChan)
    
    defer func() {
    for i := 0; i < 2; i++ {
    result := <-asyncRespChan
    
            if result.Err != nil {
               // handle result
            }
         }
    }()
}
Sending Test Events

Snap’s Conversion API provides the validate, log, and stats endpoints for advertisers to test their events and obtain more information on how each of the test event was processed.

Creating and setting up a test event is the same as setting up to send a production event. Clients must simply call the SendTestEvent function instead of the production functions.

The stats and logs should be called after sending and receiving a successful response from the test event endpoint.

capiClient.SendTestEvent(*event)
// Example to get and handle response objects
// responseBody, httpResponse, err := capiClient.SendTestEvent(*event)

responseStats, httpRespStats, err := capiClient.GetTestEventStats(pixelId)
responseLogs, httpRespLogs, err := capiClient.GetTestEventLogs(pixelId)

Notes:

  1. Initiate ConversionApi
    • Please use sdk.NewCapiClient(longLivedToken, sdk.WithLaunchPadUrl("url_here")). if the Launch Pad has been set up under your domain. Conversion events will be forwarded to Snap transparently. (Other MPC features will be introduced in later versions).
    • Otherwise, you can initiate the instance using sdk.NewCapiClient(longLivedToken) Conversion events are sent back to Snap from the business SDK directly.
    • It’s recommended to create a dedicated instance per thread to avoid any potential issues.
  2. API Token
    • To use the Conversions API, you need to use the access token for auth. See here to generate the token.
  3. Build CapiEvent
    • Please check with the section Conversion Parameters and provide as much information as possible when creating the CapiEvent object.
    • Every CAPI attribute has a corresponding setter in the CapiEvent class following the camelcase naming convention.
    • At least one of the following parameters is required in order to successfully send events via the Conversions API. When possible, we recommend passing all of the below parameters to improve performance:
      • hashed_email
      • hashed_phone
      • hashed_ip and user_agent
      • hashed_mobile_ad_id
    • Any setter starting with the prefix of “hashed” (e.g. SetHashedEmail()) accepts the hashing PII value only (see Data Hygiene). Please use the unhashed setter (e.g. SetEmail()) if you want the business sdk to normalize and hash the PII field on your behalf.
    • We highly recommend passing cookie1 uuid_c1, if available, as this will increase your match rate. You can access a 1st party cookie by looking at the _scid value under your domain if you are using the Pixel SDK.
  4. Send event(s) asynchronously
    • Conversion events can be sent individually via SendEvent(event CapiEvent, rc chan *AsyncResponse).
    • Conversion events can be reported in batch using SendEvents(events []CapiEvent, rc chan *AsyncResponse) if they are buffered in your application.
    • Events are encapsulated in an asynchronous request in both solutions by which your application won’t be blocked. The response is logged by the asynchronous go routine (under debugging mode)
    • The asynchronous go routine will send back the response to your handler through a response channel that you can provide to the SendEvents function.
  5. Test Events, Logs, and Stats
    • Conversion events can be sent for testing and validation via the SendTestEvent(event CapiEvent).
    • Conversion API also provides logging endpoint. It provides a summary of test CAPI events sent to the test endpoint within the past day
    • Converion API’s stats endpoint provides basic stats and summary of the test events sent.
  6. Debugging Mode
    • When debugging mode is turned on, we will log the events, api call response and exceptions using the logrus logger.
      • By default, the logger will log to the console

Documentation

Index

Constants

View Source
const (
	SDK_LANGUAGE             = "Go"
	SDK_VERSION              = "1.0.0"
	API_VERSION              = "v2"
	PROD_URL                 = "https://tr.snapchat.com/" + API_VERSION
	STAGING_URL              = "https://tr-shadow.snapchat.com/" + API_VERSION
	USER_AGENT               = "BusinessSDK/" + SDK_VERSION + "/Go"
	USER_AGENT_WITH_PAD      = USER_AGENT + " (LaunchPAD)"
	SDK_VERSION_HEADER       = "X-CAPI-BusinessSDK"
	INTEGRATION_SDK          = "business-sdk"
	SDK_VERSION_HEADER_VALUE = SDK_LANGUAGE + "/" + SDK_VERSION

	// LaunchPAD Support
	TEST_MODE_HEADER = "X-CAPI-Test-Mode"
	CAPI_PATH_HEADER = "X-CAPI-Path"

	// Specify the CAPI endpoint path where the request is forwarded
	CAPI_PATH      = "/" + API_VERSION + "/conversion"
	CAPI_PATH_TEST = CAPI_PATH + "/validate"
)

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func NormAndHashPhoneNum

func NormAndHashPhoneNum(in string) (*string, bool)

NormAndHashPhoneNum Normalizes and hashes phone number. Returns a tuple with hashed normalized phone number if set. Nil otherwise and boolean to check if value is set

func NormAndHashStr

func NormAndHashStr(in string) (*string, bool)

NormAndHashStr Returns a tuple with hashed and normalized string if it is valid. Nil otherwise and boolean to check if value is set

func NormAndSoundexStr

func NormAndSoundexStr(in string) (*string, bool)

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

func Sha256

func Sha256(in string) string

func Soundex

func Soundex(in string) string

Types

type APIClient

type APIClient struct {
	DefaultApi DefaultApi
	// contains filtered or unexported fields
}

APIClient manages communication with the Snap Conversions API API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiConversionValidateLogsRequest

type ApiConversionValidateLogsRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiConversionValidateLogsRequest) AssetId

func (ApiConversionValidateLogsRequest) Execute

type ApiConversionValidateStatsRequest

type ApiConversionValidateStatsRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiConversionValidateStatsRequest) AssetId

func (ApiConversionValidateStatsRequest) Execute

type ApiSendDataRequest

type ApiSendDataRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiSendDataRequest) Body

Snap Conversions API

func (ApiSendDataRequest) Execute

func (r ApiSendDataRequest) Execute() (*Response, *http.Response, error)

type ApiSendTestDataRequest

type ApiSendTestDataRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiSendTestDataRequest) Body

Snap Conversions API

func (ApiSendTestDataRequest) Execute

type AsyncResponse

type AsyncResponse struct {
	Response     *Response
	HttpResponse *http.Response
	Err          error
}

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type CapiClient

type CapiClient struct {
	// contains filtered or unexported fields
}

CapiClient DefaultApi service

func NewCapiClient

func NewCapiClient(longLivedToken string, opts ...ContextOption) *CapiClient

func (*CapiClient) GetTestEventLogs

func (c *CapiClient) GetTestEventLogs(assetId string) (*ResponseLogs, *http.Response, error)

func (*CapiClient) GetTestEventStats

func (c *CapiClient) GetTestEventStats(assetId string) (*ResponseStats, *http.Response, error)

func (*CapiClient) SendEvent

func (c *CapiClient) SendEvent(event CapiEvent, rc chan *AsyncResponse)

func (*CapiClient) SendEventSync

func (c *CapiClient) SendEventSync(event CapiEvent) (*Response, *http.Response, error)

func (*CapiClient) SendEvents

func (c *CapiClient) SendEvents(events []CapiEvent, rc chan *AsyncResponse)

func (*CapiClient) SendEventsSync

func (c *CapiClient) SendEventsSync(events []CapiEvent) (*Response, *http.Response, error)

func (*CapiClient) SendTestEvent

func (c *CapiClient) SendTestEvent(event CapiEvent) (*TestResponse, *http.Response, error)

func (*CapiClient) SendTestEvents

func (c *CapiClient) SendTestEvents(events []CapiEvent) (*TestResponse, *http.Response, error)

func (*CapiClient) SetDebugging

func (c *CapiClient) SetDebugging(isEnabled bool)

type CapiEvent

type CapiEvent struct {
	PixelId             *string `json:"pixel_id,omitempty"`
	AppId               *string `json:"app_id,omitempty"`
	SnapAppId           *string `json:"snap_app_id,omitempty"`
	EventType           *string `json:"event_type,omitempty"`
	EventConversionType *string `json:"event_conversion_type,omitempty"`
	EventTag            *string `json:"event_tag,omitempty"`
	Timestamp           *string `json:"timestamp,omitempty"`
	HashedEmail         *string `json:"hashed_email,omitempty"`
	HashedMobileAdId    *string `json:"hashed_mobile_ad_id,omitempty"`
	UuidC1              *string `json:"uuid_c1,omitempty"`
	HashedIdfv          *string `json:"hashed_idfv,omitempty"`
	HashedPhoneNumber   *string `json:"hashed_phone_number,omitempty"`
	UserAgent           *string `json:"user_agent,omitempty"`
	HashedIpAddress     *string `json:"hashed_ip_address,omitempty"`
	ItemCategory        *string `json:"item_category,omitempty"`
	ItemIds             *string `json:"item_ids,omitempty"`
	Description         *string `json:"description,omitempty"`
	NumberItems         *string `json:"number_items,omitempty"`
	Price               *string `json:"price,omitempty"`
	Currency            *string `json:"currency,omitempty"`
	TransactionId       *string `json:"transaction_id,omitempty"`
	Level               *string `json:"level,omitempty"`
	ClientDedupId       *string `json:"client_dedup_id,omitempty"`
	DataUse             *string `json:"data_use,omitempty"`
	SearchString        *string `json:"search_string,omitempty"`
	PageUrl             *string `json:"page_url,omitempty"`
	SignUpMethod        *string `json:"sign_up_method,omitempty"`
	HashedFirstNameSha  *string `json:"hashed_first_name_sha,omitempty"`
	HashedFirstNameSdx  *string `json:"hashed_first_name_sdx,omitempty"`
	HashedMiddleNameSha *string `json:"hashed_middle_name_sha,omitempty"`
	HashedMiddleNameSdx *string `json:"hashed_middle_name_sdx,omitempty"`
	HashedLastNameSha   *string `json:"hashed_last_name_sha,omitempty"`
	HashedLastNameSdx   *string `json:"hashed_last_name_sdx,omitempty"`
	HashedCitySha       *string `json:"hashed_city_sha,omitempty"`
	HashedCitySdx       *string `json:"hashed_city_sdx,omitempty"`
	HashedStateSha      *string `json:"hashed_state_sha,omitempty"`
	HashedStateSdx      *string `json:"hashed_state_sdx,omitempty"`
	HashedZip           *string `json:"hashed_zip,omitempty"`
	HashedDobMonth      *string `json:"hashed_dob_month,omitempty"`
	HashedDobDay        *string `json:"hashed_dob_day,omitempty"`
	Integration         *string `json:"integration,omitempty"`
	ClickId             *string `json:"click_id,omitempty"`
}

CapiEvent struct for CapiEvent

func NewCapiEvent

func NewCapiEvent() *CapiEvent

NewCapiEvent instantiates a new CapiEvent 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 NewCapiEventWithDefaults

func NewCapiEventWithDefaults() *CapiEvent

NewCapiEventWithDefaults instantiates a new CapiEvent 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 (*CapiEvent) GetAppId

func (o *CapiEvent) GetAppId() string

GetAppId returns the AppId field value if set, zero value otherwise.

func (*CapiEvent) GetAppIdOk

func (o *CapiEvent) GetAppIdOk() (*string, bool)

GetAppIdOk returns a tuple with the AppId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetClickId

func (o *CapiEvent) GetClickId() string

GetClickId returns the ClickId field value if set, zero value otherwise.

func (*CapiEvent) GetClickIdOk

func (o *CapiEvent) GetClickIdOk() (*string, bool)

GetClickIdOk returns a tuple with the ClickId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetClientDedupId

func (o *CapiEvent) GetClientDedupId() string

GetClientDedupId returns the ClientDedupId field value if set, zero value otherwise.

func (*CapiEvent) GetClientDedupIdOk

func (o *CapiEvent) GetClientDedupIdOk() (*string, bool)

GetClientDedupIdOk returns a tuple with the ClientDedupId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetCurrency

func (o *CapiEvent) GetCurrency() string

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*CapiEvent) GetCurrencyOk

func (o *CapiEvent) GetCurrencyOk() (*string, bool)

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 (*CapiEvent) GetDataUse

func (o *CapiEvent) GetDataUse() string

GetDataUse returns the DataUse field value if set, zero value otherwise.

func (*CapiEvent) GetDataUseOk

func (o *CapiEvent) GetDataUseOk() (*string, bool)

GetDataUseOk returns a tuple with the DataUse field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetDescription

func (o *CapiEvent) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*CapiEvent) GetDescriptionOk

func (o *CapiEvent) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetEventConversionType

func (o *CapiEvent) GetEventConversionType() string

GetEventConversionType returns the EventConversionType field value if set, zero value otherwise.

func (*CapiEvent) GetEventConversionTypeOk

func (o *CapiEvent) GetEventConversionTypeOk() (*string, bool)

GetEventConversionTypeOk returns a tuple with the EventConversionType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetEventTag

func (o *CapiEvent) GetEventTag() string

GetEventTag returns the EventTag field value if set, zero value otherwise.

func (*CapiEvent) GetEventTagOk

func (o *CapiEvent) GetEventTagOk() (*string, bool)

GetEventTagOk returns a tuple with the EventTag field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetEventType

func (o *CapiEvent) GetEventType() string

GetEventType returns the EventType field value if set, zero value otherwise.

func (*CapiEvent) GetEventTypeOk

func (o *CapiEvent) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedCitySdx

func (o *CapiEvent) GetHashedCitySdx() string

GetHashedCitySdx returns the HashedCitySdx field value if set, zero value otherwise.

func (*CapiEvent) GetHashedCitySdxOk

func (o *CapiEvent) GetHashedCitySdxOk() (*string, bool)

GetHashedCitySdxOk returns a tuple with the HashedCitySdx field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedCitySha

func (o *CapiEvent) GetHashedCitySha() string

GetHashedCitySha returns the HashedCitySha field value if set, zero value otherwise.

func (*CapiEvent) GetHashedCityShaOk

func (o *CapiEvent) GetHashedCityShaOk() (*string, bool)

GetHashedCityShaOk returns a tuple with the HashedCitySha field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedDobDay

func (o *CapiEvent) GetHashedDobDay() string

GetHashedDobDay returns the HashedDobDay field value if set, zero value otherwise.

func (*CapiEvent) GetHashedDobDayOk

func (o *CapiEvent) GetHashedDobDayOk() (*string, bool)

GetHashedDobDayOk returns a tuple with the HashedDobDay field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedDobMonth

func (o *CapiEvent) GetHashedDobMonth() string

GetHashedDobMonth returns the HashedDobMonth field value if set, zero value otherwise.

func (*CapiEvent) GetHashedDobMonthOk

func (o *CapiEvent) GetHashedDobMonthOk() (*string, bool)

GetHashedDobMonthOk returns a tuple with the HashedDobMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedEmail

func (o *CapiEvent) GetHashedEmail() string

GetHashedEmail returns the HashedEmail field value if set, zero value otherwise.

func (*CapiEvent) GetHashedEmailOk

func (o *CapiEvent) GetHashedEmailOk() (*string, bool)

GetHashedEmailOk returns a tuple with the HashedEmail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedFirstNameSdx

func (o *CapiEvent) GetHashedFirstNameSdx() string

GetHashedFirstNameSdx returns the HashedFirstNameSdx field value if set, zero value otherwise.

func (*CapiEvent) GetHashedFirstNameSdxOk

func (o *CapiEvent) GetHashedFirstNameSdxOk() (*string, bool)

GetHashedFirstNameSdxOk returns a tuple with the HashedFirstNameSdx field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedFirstNameSha

func (o *CapiEvent) GetHashedFirstNameSha() string

GetHashedFirstNameSha returns the HashedFirstNameSha field value if set, zero value otherwise.

func (*CapiEvent) GetHashedFirstNameShaOk

func (o *CapiEvent) GetHashedFirstNameShaOk() (*string, bool)

GetHashedFirstNameShaOk returns a tuple with the HashedFirstNameSha field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedIdfv

func (o *CapiEvent) GetHashedIdfv() string

GetHashedIdfv returns the HashedIdfv field value if set, zero value otherwise.

func (*CapiEvent) GetHashedIdfvOk

func (o *CapiEvent) GetHashedIdfvOk() (*string, bool)

GetHashedIdfvOk returns a tuple with the HashedIdfv field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedIpAddress

func (o *CapiEvent) GetHashedIpAddress() string

GetHashedIpAddress returns the HashedIpAddress field value if set, zero value otherwise.

func (*CapiEvent) GetHashedIpAddressOk

func (o *CapiEvent) GetHashedIpAddressOk() (*string, bool)

GetHashedIpAddressOk returns a tuple with the HashedIpAddress field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedLastNameSdx

func (o *CapiEvent) GetHashedLastNameSdx() string

GetHashedLastNameSdx returns the HashedLastNameSdx field value if set, zero value otherwise.

func (*CapiEvent) GetHashedLastNameSdxOk

func (o *CapiEvent) GetHashedLastNameSdxOk() (*string, bool)

GetHashedLastNameSdxOk returns a tuple with the HashedLastNameSdx field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedLastNameSha

func (o *CapiEvent) GetHashedLastNameSha() string

GetHashedLastNameSha returns the HashedLastNameSha field value if set, zero value otherwise.

func (*CapiEvent) GetHashedLastNameShaOk

func (o *CapiEvent) GetHashedLastNameShaOk() (*string, bool)

GetHashedLastNameShaOk returns a tuple with the HashedLastNameSha field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedMiddleNameSdx

func (o *CapiEvent) GetHashedMiddleNameSdx() string

GetHashedMiddleNameSdx returns the HashedMiddleNameSdx field value if set, zero value otherwise.

func (*CapiEvent) GetHashedMiddleNameSdxOk

func (o *CapiEvent) GetHashedMiddleNameSdxOk() (*string, bool)

GetHashedMiddleNameSdxOk returns a tuple with the HashedMiddleNameSdx field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedMiddleNameSha

func (o *CapiEvent) GetHashedMiddleNameSha() string

GetHashedMiddleNameSha returns the HashedMiddleNameSha field value if set, zero value otherwise.

func (*CapiEvent) GetHashedMiddleNameShaOk

func (o *CapiEvent) GetHashedMiddleNameShaOk() (*string, bool)

GetHashedMiddleNameShaOk returns a tuple with the HashedMiddleNameSha field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedMobileAdId

func (o *CapiEvent) GetHashedMobileAdId() string

GetHashedMobileAdId returns the HashedMobileAdId field value if set, zero value otherwise.

func (*CapiEvent) GetHashedMobileAdIdOk

func (o *CapiEvent) GetHashedMobileAdIdOk() (*string, bool)

GetHashedMobileAdIdOk returns a tuple with the HashedMobileAdId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedPhoneNumber

func (o *CapiEvent) GetHashedPhoneNumber() string

GetHashedPhoneNumber returns the HashedPhoneNumber field value if set, zero value otherwise.

func (*CapiEvent) GetHashedPhoneNumberOk

func (o *CapiEvent) GetHashedPhoneNumberOk() (*string, bool)

GetHashedPhoneNumberOk returns a tuple with the HashedPhoneNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedStateSdx

func (o *CapiEvent) GetHashedStateSdx() string

GetHashedStateSdx returns the HashedStateSdx field value if set, zero value otherwise.

func (*CapiEvent) GetHashedStateSdxOk

func (o *CapiEvent) GetHashedStateSdxOk() (*string, bool)

GetHashedStateSdxOk returns a tuple with the HashedStateSdx field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedStateSha

func (o *CapiEvent) GetHashedStateSha() string

GetHashedStateSha returns the HashedStateSha field value if set, zero value otherwise.

func (*CapiEvent) GetHashedStateShaOk

func (o *CapiEvent) GetHashedStateShaOk() (*string, bool)

GetHashedStateShaOk returns a tuple with the HashedStateSha field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetHashedZip

func (o *CapiEvent) GetHashedZip() string

GetHashedZip returns the HashedZip field value if set, zero value otherwise.

func (*CapiEvent) GetHashedZipOk

func (o *CapiEvent) GetHashedZipOk() (*string, bool)

GetHashedZipOk returns a tuple with the HashedZip field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetIntegration

func (o *CapiEvent) GetIntegration() string

GetIntegration returns the Integration field value if set, zero value otherwise.

func (*CapiEvent) GetIntegrationOk

func (o *CapiEvent) GetIntegrationOk() (*string, bool)

GetIntegrationOk returns a tuple with the Integration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetItemCategory

func (o *CapiEvent) GetItemCategory() string

GetItemCategory returns the ItemCategory field value if set, zero value otherwise.

func (*CapiEvent) GetItemCategoryOk

func (o *CapiEvent) GetItemCategoryOk() (*string, bool)

GetItemCategoryOk returns a tuple with the ItemCategory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetItemIds

func (o *CapiEvent) GetItemIds() string

GetItemIds returns the ItemIds field value if set, zero value otherwise.

func (*CapiEvent) GetItemIdsOk

func (o *CapiEvent) GetItemIdsOk() (*string, bool)

GetItemIdsOk returns a tuple with the ItemIds field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetLevel

func (o *CapiEvent) GetLevel() string

GetLevel returns the Level field value if set, zero value otherwise.

func (*CapiEvent) GetLevelOk

func (o *CapiEvent) GetLevelOk() (*string, bool)

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 (*CapiEvent) GetNumberItems

func (o *CapiEvent) GetNumberItems() string

GetNumberItems returns the NumberItems field value if set, zero value otherwise.

func (*CapiEvent) GetNumberItemsOk

func (o *CapiEvent) GetNumberItemsOk() (*string, bool)

GetNumberItemsOk returns a tuple with the NumberItems field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetPageUrl

func (o *CapiEvent) GetPageUrl() string

GetPageUrl returns the PageUrl field value if set, zero value otherwise.

func (*CapiEvent) GetPageUrlOk

func (o *CapiEvent) GetPageUrlOk() (*string, bool)

GetPageUrlOk returns a tuple with the PageUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetPixelId

func (o *CapiEvent) GetPixelId() string

GetPixelId returns the PixelId field value if set, zero value otherwise.

func (*CapiEvent) GetPixelIdOk

func (o *CapiEvent) GetPixelIdOk() (*string, bool)

GetPixelIdOk returns a tuple with the PixelId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetPrice

func (o *CapiEvent) GetPrice() string

GetPrice returns the Price field value if set, zero value otherwise.

func (*CapiEvent) GetPriceOk

func (o *CapiEvent) GetPriceOk() (*string, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetSearchString

func (o *CapiEvent) GetSearchString() string

GetSearchString returns the SearchString field value if set, zero value otherwise.

func (*CapiEvent) GetSearchStringOk

func (o *CapiEvent) GetSearchStringOk() (*string, bool)

GetSearchStringOk returns a tuple with the SearchString field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetSignUpMethod

func (o *CapiEvent) GetSignUpMethod() string

GetSignUpMethod returns the SignUpMethod field value if set, zero value otherwise.

func (*CapiEvent) GetSignUpMethodOk

func (o *CapiEvent) GetSignUpMethodOk() (*string, bool)

GetSignUpMethodOk returns a tuple with the SignUpMethod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetSnapAppId

func (o *CapiEvent) GetSnapAppId() string

GetSnapAppId returns the SnapAppId field value if set, zero value otherwise.

func (*CapiEvent) GetSnapAppIdOk

func (o *CapiEvent) GetSnapAppIdOk() (*string, bool)

GetSnapAppIdOk returns a tuple with the SnapAppId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetTimestamp

func (o *CapiEvent) GetTimestamp() string

GetTimestamp returns the Timestamp field value if set, zero value otherwise.

func (*CapiEvent) GetTimestampOk

func (o *CapiEvent) GetTimestampOk() (*string, bool)

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 (*CapiEvent) GetTransactionId

func (o *CapiEvent) GetTransactionId() string

GetTransactionId returns the TransactionId field value if set, zero value otherwise.

func (*CapiEvent) GetTransactionIdOk

func (o *CapiEvent) GetTransactionIdOk() (*string, bool)

GetTransactionIdOk returns a tuple with the TransactionId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetUserAgent

func (o *CapiEvent) GetUserAgent() string

GetUserAgent returns the UserAgent field value if set, zero value otherwise.

func (*CapiEvent) GetUserAgentOk

func (o *CapiEvent) GetUserAgentOk() (*string, bool)

GetUserAgentOk returns a tuple with the UserAgent field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) GetUuidC1

func (o *CapiEvent) GetUuidC1() string

GetUuidC1 returns the UuidC1 field value if set, zero value otherwise.

func (*CapiEvent) GetUuidC1Ok

func (o *CapiEvent) GetUuidC1Ok() (*string, bool)

GetUuidC1Ok returns a tuple with the UuidC1 field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CapiEvent) HasAppId

func (o *CapiEvent) HasAppId() bool

HasAppId returns a boolean if a field has been set.

func (*CapiEvent) HasClickId

func (o *CapiEvent) HasClickId() bool

HasClickId returns a boolean if a field has been set.

func (*CapiEvent) HasClientDedupId

func (o *CapiEvent) HasClientDedupId() bool

HasClientDedupId returns a boolean if a field has been set.

func (*CapiEvent) HasCurrency

func (o *CapiEvent) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*CapiEvent) HasDataUse

func (o *CapiEvent) HasDataUse() bool

HasDataUse returns a boolean if a field has been set.

func (*CapiEvent) HasDescription

func (o *CapiEvent) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*CapiEvent) HasEventConversionType

func (o *CapiEvent) HasEventConversionType() bool

HasEventConversionType returns a boolean if a field has been set.

func (*CapiEvent) HasEventTag

func (o *CapiEvent) HasEventTag() bool

HasEventTag returns a boolean if a field has been set.

func (*CapiEvent) HasEventType

func (o *CapiEvent) HasEventType() bool

HasEventType returns a boolean if a field has been set.

func (*CapiEvent) HasHashedCitySdx

func (o *CapiEvent) HasHashedCitySdx() bool

HasHashedCitySdx returns a boolean if a field has been set.

func (*CapiEvent) HasHashedCitySha

func (o *CapiEvent) HasHashedCitySha() bool

HasHashedCitySha returns a boolean if a field has been set.

func (*CapiEvent) HasHashedDobDay

func (o *CapiEvent) HasHashedDobDay() bool

HasHashedDobDay returns a boolean if a field has been set.

func (*CapiEvent) HasHashedDobMonth

func (o *CapiEvent) HasHashedDobMonth() bool

HasHashedDobMonth returns a boolean if a field has been set.

func (*CapiEvent) HasHashedEmail

func (o *CapiEvent) HasHashedEmail() bool

HasHashedEmail returns a boolean if a field has been set.

func (*CapiEvent) HasHashedFirstNameSdx

func (o *CapiEvent) HasHashedFirstNameSdx() bool

HasHashedFirstNameSdx returns a boolean if a field has been set.

func (*CapiEvent) HasHashedFirstNameSha

func (o *CapiEvent) HasHashedFirstNameSha() bool

HasHashedFirstNameSha returns a boolean if a field has been set.

func (*CapiEvent) HasHashedIdfv

func (o *CapiEvent) HasHashedIdfv() bool

HasHashedIdfv returns a boolean if a field has been set.

func (*CapiEvent) HasHashedIpAddress

func (o *CapiEvent) HasHashedIpAddress() bool

HasHashedIpAddress returns a boolean if a field has been set.

func (*CapiEvent) HasHashedLastNameSdx

func (o *CapiEvent) HasHashedLastNameSdx() bool

HasHashedLastNameSdx returns a boolean if a field has been set.

func (*CapiEvent) HasHashedLastNameSha

func (o *CapiEvent) HasHashedLastNameSha() bool

HasHashedLastNameSha returns a boolean if a field has been set.

func (*CapiEvent) HasHashedMiddleNameSdx

func (o *CapiEvent) HasHashedMiddleNameSdx() bool

HasHashedMiddleNameSdx returns a boolean if a field has been set.

func (*CapiEvent) HasHashedMiddleNameSha

func (o *CapiEvent) HasHashedMiddleNameSha() bool

HasHashedMiddleNameSha returns a boolean if a field has been set.

func (*CapiEvent) HasHashedMobileAdId

func (o *CapiEvent) HasHashedMobileAdId() bool

HasHashedMobileAdId returns a boolean if a field has been set.

func (*CapiEvent) HasHashedPhoneNumber

func (o *CapiEvent) HasHashedPhoneNumber() bool

HasHashedPhoneNumber returns a boolean if a field has been set.

func (*CapiEvent) HasHashedStateSdx

func (o *CapiEvent) HasHashedStateSdx() bool

HasHashedStateSdx returns a boolean if a field has been set.

func (*CapiEvent) HasHashedStateSha

func (o *CapiEvent) HasHashedStateSha() bool

HasHashedStateSha returns a boolean if a field has been set.

func (*CapiEvent) HasHashedZip

func (o *CapiEvent) HasHashedZip() bool

HasHashedZip returns a boolean if a field has been set.

func (*CapiEvent) HasIntegration

func (o *CapiEvent) HasIntegration() bool

HasIntegration returns a boolean if a field has been set.

func (*CapiEvent) HasItemCategory

func (o *CapiEvent) HasItemCategory() bool

HasItemCategory returns a boolean if a field has been set.

func (*CapiEvent) HasItemIds

func (o *CapiEvent) HasItemIds() bool

HasItemIds returns a boolean if a field has been set.

func (*CapiEvent) HasLevel

func (o *CapiEvent) HasLevel() bool

HasLevel returns a boolean if a field has been set.

func (*CapiEvent) HasNumberItems

func (o *CapiEvent) HasNumberItems() bool

HasNumberItems returns a boolean if a field has been set.

func (*CapiEvent) HasPageUrl

func (o *CapiEvent) HasPageUrl() bool

HasPageUrl returns a boolean if a field has been set.

func (*CapiEvent) HasPixelId

func (o *CapiEvent) HasPixelId() bool

HasPixelId returns a boolean if a field has been set.

func (*CapiEvent) HasPrice

func (o *CapiEvent) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*CapiEvent) HasSearchString

func (o *CapiEvent) HasSearchString() bool

HasSearchString returns a boolean if a field has been set.

func (*CapiEvent) HasSignUpMethod

func (o *CapiEvent) HasSignUpMethod() bool

HasSignUpMethod returns a boolean if a field has been set.

func (*CapiEvent) HasSnapAppId

func (o *CapiEvent) HasSnapAppId() bool

HasSnapAppId returns a boolean if a field has been set.

func (*CapiEvent) HasTimestamp

func (o *CapiEvent) HasTimestamp() bool

HasTimestamp returns a boolean if a field has been set.

func (*CapiEvent) HasTransactionId

func (o *CapiEvent) HasTransactionId() bool

HasTransactionId returns a boolean if a field has been set.

func (*CapiEvent) HasUserAgent

func (o *CapiEvent) HasUserAgent() bool

HasUserAgent returns a boolean if a field has been set.

func (*CapiEvent) HasUuidC1

func (o *CapiEvent) HasUuidC1() bool

HasUuidC1 returns a boolean if a field has been set.

func (CapiEvent) MarshalJSON

func (o CapiEvent) MarshalJSON() ([]byte, error)

func (*CapiEvent) SetAppId

func (o *CapiEvent) SetAppId(v string)

SetAppId gets a reference to the given string and assigns it to the AppId field.

func (*CapiEvent) SetCity

func (o *CapiEvent) SetCity(unhashedCity string) bool

func (*CapiEvent) SetClickId

func (o *CapiEvent) SetClickId(v string)

SetClickId gets a reference to the given string and assigns it to the ClickId field.

func (*CapiEvent) SetClientDedupId

func (o *CapiEvent) SetClientDedupId(v string)

SetClientDedupId gets a reference to the given string and assigns it to the ClientDedupId field.

func (*CapiEvent) SetCurrency

func (o *CapiEvent) SetCurrency(v string)

SetCurrency gets a reference to the given string and assigns it to the Currency field.

func (*CapiEvent) SetDataUse

func (o *CapiEvent) SetDataUse(v string)

SetDataUse gets a reference to the given string and assigns it to the DataUse field.

func (*CapiEvent) SetDescription

func (o *CapiEvent) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*CapiEvent) SetDob

func (o *CapiEvent) SetDob(unhashedDobStr string) bool

func (*CapiEvent) SetEmail

func (o *CapiEvent) SetEmail(unhashedEmail string) bool

func (*CapiEvent) SetEventConversionType

func (o *CapiEvent) SetEventConversionType(v string)

SetEventConversionType gets a reference to the given string and assigns it to the EventConversionType field.

func (*CapiEvent) SetEventTag

func (o *CapiEvent) SetEventTag(v string)

SetEventTag gets a reference to the given string and assigns it to the EventTag field.

func (*CapiEvent) SetEventType

func (o *CapiEvent) SetEventType(v string)

SetEventType gets a reference to the given string and assigns it to the EventType field.

func (*CapiEvent) SetFirstName

func (o *CapiEvent) SetFirstName(unhashedFirstName string) bool

func (*CapiEvent) SetHashedCitySdx

func (o *CapiEvent) SetHashedCitySdx(v string)

SetHashedCitySdx gets a reference to the given string and assigns it to the HashedCitySdx field.

func (*CapiEvent) SetHashedCitySha

func (o *CapiEvent) SetHashedCitySha(v string)

SetHashedCitySha gets a reference to the given string and assigns it to the HashedCitySha field.

func (*CapiEvent) SetHashedDobDay

func (o *CapiEvent) SetHashedDobDay(v string)

SetHashedDobDay gets a reference to the given string and assigns it to the HashedDobDay field.

func (*CapiEvent) SetHashedDobMonth

func (o *CapiEvent) SetHashedDobMonth(v string)

SetHashedDobMonth gets a reference to the given string and assigns it to the HashedDobMonth field.

func (*CapiEvent) SetHashedEmail

func (o *CapiEvent) SetHashedEmail(v string)

SetHashedEmail gets a reference to the given string and assigns it to the HashedEmail field.

func (*CapiEvent) SetHashedFirstNameSdx

func (o *CapiEvent) SetHashedFirstNameSdx(v string)

SetHashedFirstNameSdx gets a reference to the given string and assigns it to the HashedFirstNameSdx field.

func (*CapiEvent) SetHashedFirstNameSha

func (o *CapiEvent) SetHashedFirstNameSha(v string)

SetHashedFirstNameSha gets a reference to the given string and assigns it to the HashedFirstNameSha field.

func (*CapiEvent) SetHashedIdfv

func (o *CapiEvent) SetHashedIdfv(v string)

SetHashedIdfv gets a reference to the given string and assigns it to the HashedIdfv field.

func (*CapiEvent) SetHashedIpAddress

func (o *CapiEvent) SetHashedIpAddress(v string)

SetHashedIpAddress gets a reference to the given string and assigns it to the HashedIpAddress field.

func (*CapiEvent) SetHashedLastNameSdx

func (o *CapiEvent) SetHashedLastNameSdx(v string)

SetHashedLastNameSdx gets a reference to the given string and assigns it to the HashedLastNameSdx field.

func (*CapiEvent) SetHashedLastNameSha

func (o *CapiEvent) SetHashedLastNameSha(v string)

SetHashedLastNameSha gets a reference to the given string and assigns it to the HashedLastNameSha field.

func (*CapiEvent) SetHashedMiddleNameSdx

func (o *CapiEvent) SetHashedMiddleNameSdx(v string)

SetHashedMiddleNameSdx gets a reference to the given string and assigns it to the HashedMiddleNameSdx field.

func (*CapiEvent) SetHashedMiddleNameSha

func (o *CapiEvent) SetHashedMiddleNameSha(v string)

SetHashedMiddleNameSha gets a reference to the given string and assigns it to the HashedMiddleNameSha field.

func (*CapiEvent) SetHashedMobileAdId

func (o *CapiEvent) SetHashedMobileAdId(v string)

SetHashedMobileAdId gets a reference to the given string and assigns it to the HashedMobileAdId field.

func (*CapiEvent) SetHashedPhoneNumber

func (o *CapiEvent) SetHashedPhoneNumber(v string)

SetHashedPhoneNumber gets a reference to the given string and assigns it to the HashedPhoneNumber field.

func (*CapiEvent) SetHashedStateSdx

func (o *CapiEvent) SetHashedStateSdx(v string)

SetHashedStateSdx gets a reference to the given string and assigns it to the HashedStateSdx field.

func (*CapiEvent) SetHashedStateSha

func (o *CapiEvent) SetHashedStateSha(v string)

SetHashedStateSha gets a reference to the given string and assigns it to the HashedStateSha field.

func (*CapiEvent) SetHashedZip

func (o *CapiEvent) SetHashedZip(v string)

SetHashedZip gets a reference to the given string and assigns it to the HashedZip field.

func (*CapiEvent) SetIdfv

func (o *CapiEvent) SetIdfv(unhashedIdfv string) bool

func (*CapiEvent) SetIntegration

func (o *CapiEvent) SetIntegration(v string)

SetIntegration gets a reference to the given string and assigns it to the Integration field.

func (*CapiEvent) SetIpAddress

func (o *CapiEvent) SetIpAddress(unhashedIpAddress string) bool

func (*CapiEvent) SetItemCategory

func (o *CapiEvent) SetItemCategory(v string)

SetItemCategory gets a reference to the given string and assigns it to the ItemCategory field.

func (*CapiEvent) SetItemIds

func (o *CapiEvent) SetItemIds(v string)

SetItemIds gets a reference to the given string and assigns it to the ItemIds field.

func (*CapiEvent) SetLastName

func (o *CapiEvent) SetLastName(unhashedLastName string) bool

func (*CapiEvent) SetLevel

func (o *CapiEvent) SetLevel(v string)

SetLevel gets a reference to the given string and assigns it to the Level field.

func (*CapiEvent) SetMiddleName

func (o *CapiEvent) SetMiddleName(unhashedMiddleName string) bool

func (*CapiEvent) SetMobileAdId

func (o *CapiEvent) SetMobileAdId(unhashedMobileAdId string) bool

func (*CapiEvent) SetNumberItems

func (o *CapiEvent) SetNumberItems(v string)

SetNumberItems gets a reference to the given string and assigns it to the NumberItems field.

func (*CapiEvent) SetPageUrl

func (o *CapiEvent) SetPageUrl(v string)

SetPageUrl gets a reference to the given string and assigns it to the PageUrl field.

func (*CapiEvent) SetPhoneNumber

func (o *CapiEvent) SetPhoneNumber(unhashedPhoneNumber string) bool

func (*CapiEvent) SetPixelId

func (o *CapiEvent) SetPixelId(v string)

SetPixelId gets a reference to the given string and assigns it to the PixelId field.

func (*CapiEvent) SetPrice

func (o *CapiEvent) SetPrice(v string)

SetPrice gets a reference to the given string and assigns it to the Price field.

func (*CapiEvent) SetSearchString

func (o *CapiEvent) SetSearchString(v string)

SetSearchString gets a reference to the given string and assigns it to the SearchString field.

func (*CapiEvent) SetSignUpMethod

func (o *CapiEvent) SetSignUpMethod(v string)

SetSignUpMethod gets a reference to the given string and assigns it to the SignUpMethod field.

func (*CapiEvent) SetSnapAppId

func (o *CapiEvent) SetSnapAppId(v string)

SetSnapAppId gets a reference to the given string and assigns it to the SnapAppId field.

func (*CapiEvent) SetState

func (o *CapiEvent) SetState(unhashedState string) bool

func (*CapiEvent) SetTimestamp

func (o *CapiEvent) SetTimestamp(v string)

SetTimestamp gets a reference to the given string and assigns it to the Timestamp field.

func (*CapiEvent) SetTransactionId

func (o *CapiEvent) SetTransactionId(v string)

SetTransactionId gets a reference to the given string and assigns it to the TransactionId field.

func (*CapiEvent) SetUserAgent

func (o *CapiEvent) SetUserAgent(v string)

SetUserAgent gets a reference to the given string and assigns it to the UserAgent field.

func (*CapiEvent) SetUuidC1

func (o *CapiEvent) SetUuidC1(v string)

SetUuidC1 gets a reference to the given string and assigns it to the UuidC1 field.

func (*CapiEvent) SetZip

func (o *CapiEvent) SetZip(unhashedZip string) bool

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type ContextOption

type ContextOption func(*CapiClient)

func WithLaunchPadUrl

func WithLaunchPadUrl(launchPadUrl string) ContextOption

WithLaunchPadUrl sets configuration based on launchPadUrl

type ConversionApi

type ConversionApi interface {
	SetDebugging(bool)
	SendEventSync(CapiEvent) (*Response, *http.Response, error)
	SendEventsSync([]CapiEvent) (*Response, *http.Response, error)
	// Todo implement callback structure
	SendEventAsync(CapiEvent)
	SendEventsAsync([]CapiEvent)
}

TODO: Add more documentation

type DefaultApi

type DefaultApi interface {

	/*
		ConversionValidateLogs Method for ConversionValidateLogs

		Returns a list of test events in last 24 hours

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiConversionValidateLogsRequest
	*/
	ConversionValidateLogs(ctx context.Context) ApiConversionValidateLogsRequest

	// ConversionValidateLogsExecute executes the request
	//  @return ResponseLogs
	ConversionValidateLogsExecute(r ApiConversionValidateLogsRequest) (*ResponseLogs, *http.Response, error)

	/*
		ConversionValidateStats Method for ConversionValidateStats

		Returns the stats on test and non-test events in the past hour

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiConversionValidateStatsRequest
	*/
	ConversionValidateStats(ctx context.Context) ApiConversionValidateStatsRequest

	// ConversionValidateStatsExecute executes the request
	//  @return ResponseStats
	ConversionValidateStatsExecute(r ApiConversionValidateStatsRequest) (*ResponseStats, *http.Response, error)

	/*
		SendData Method for SendData

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiSendDataRequest
	*/
	SendData(ctx context.Context) ApiSendDataRequest

	// SendDataExecute executes the request
	//  @return Response
	SendDataExecute(r ApiSendDataRequest) (*Response, *http.Response, error)

	/*
		SendTestData Method for SendTestData

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiSendTestDataRequest
	*/
	SendTestData(ctx context.Context) ApiSendTestDataRequest

	// SendTestDataExecute executes the request
	//  @return TestResponse
	SendTestDataExecute(r ApiSendTestDataRequest) (*TestResponse, *http.Response, error)
}

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

func (*DefaultApiService) ConversionValidateLogs

func (a *DefaultApiService) ConversionValidateLogs(ctx context.Context) ApiConversionValidateLogsRequest

ConversionValidateLogs Method for ConversionValidateLogs

Returns a list of test events in last 24 hours

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiConversionValidateLogsRequest

func (*DefaultApiService) ConversionValidateLogsExecute

func (a *DefaultApiService) ConversionValidateLogsExecute(r ApiConversionValidateLogsRequest) (*ResponseLogs, *http.Response, error)

Execute executes the request

@return ResponseLogs

func (*DefaultApiService) ConversionValidateStats

func (a *DefaultApiService) ConversionValidateStats(ctx context.Context) ApiConversionValidateStatsRequest

ConversionValidateStats Method for ConversionValidateStats

Returns the stats on test and non-test events in the past hour

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiConversionValidateStatsRequest

func (*DefaultApiService) ConversionValidateStatsExecute

func (a *DefaultApiService) ConversionValidateStatsExecute(r ApiConversionValidateStatsRequest) (*ResponseStats, *http.Response, error)

Execute executes the request

@return ResponseStats

func (*DefaultApiService) SendData

SendData Method for SendData

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSendDataRequest

func (*DefaultApiService) SendDataExecute

func (a *DefaultApiService) SendDataExecute(r ApiSendDataRequest) (*Response, *http.Response, error)

Execute executes the request

@return Response

func (*DefaultApiService) SendTestData

SendTestData Method for SendTestData

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSendTestDataRequest

func (*DefaultApiService) SendTestDataExecute

func (a *DefaultApiService) SendTestDataExecute(r ApiSendTestDataRequest) (*TestResponse, *http.Response, error)

Execute executes the request

@return TestResponse

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCapiEvent

type NullableCapiEvent struct {
	// contains filtered or unexported fields
}

func NewNullableCapiEvent

func NewNullableCapiEvent(val *CapiEvent) *NullableCapiEvent

func (NullableCapiEvent) Get

func (v NullableCapiEvent) Get() *CapiEvent

func (NullableCapiEvent) IsSet

func (v NullableCapiEvent) IsSet() bool

func (NullableCapiEvent) MarshalJSON

func (v NullableCapiEvent) MarshalJSON() ([]byte, error)

func (*NullableCapiEvent) Set

func (v *NullableCapiEvent) Set(val *CapiEvent)

func (*NullableCapiEvent) UnmarshalJSON

func (v *NullableCapiEvent) UnmarshalJSON(src []byte) error

func (*NullableCapiEvent) Unset

func (v *NullableCapiEvent) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableResponse

type NullableResponse struct {
	// contains filtered or unexported fields
}

func NewNullableResponse

func NewNullableResponse(val *Response) *NullableResponse

func (NullableResponse) Get

func (v NullableResponse) Get() *Response

func (NullableResponse) IsSet

func (v NullableResponse) IsSet() bool

func (NullableResponse) MarshalJSON

func (v NullableResponse) MarshalJSON() ([]byte, error)

func (*NullableResponse) Set

func (v *NullableResponse) Set(val *Response)

func (*NullableResponse) UnmarshalJSON

func (v *NullableResponse) UnmarshalJSON(src []byte) error

func (*NullableResponse) Unset

func (v *NullableResponse) Unset()

type NullableResponseErrorRecords

type NullableResponseErrorRecords struct {
	// contains filtered or unexported fields
}

func NewNullableResponseErrorRecords

func NewNullableResponseErrorRecords(val *ResponseErrorRecords) *NullableResponseErrorRecords

func (NullableResponseErrorRecords) Get

func (NullableResponseErrorRecords) IsSet

func (NullableResponseErrorRecords) MarshalJSON

func (v NullableResponseErrorRecords) MarshalJSON() ([]byte, error)

func (*NullableResponseErrorRecords) Set

func (*NullableResponseErrorRecords) UnmarshalJSON

func (v *NullableResponseErrorRecords) UnmarshalJSON(src []byte) error

func (*NullableResponseErrorRecords) Unset

func (v *NullableResponseErrorRecords) Unset()

type NullableResponseLogs

type NullableResponseLogs struct {
	// contains filtered or unexported fields
}

func NewNullableResponseLogs

func NewNullableResponseLogs(val *ResponseLogs) *NullableResponseLogs

func (NullableResponseLogs) Get

func (NullableResponseLogs) IsSet

func (v NullableResponseLogs) IsSet() bool

func (NullableResponseLogs) MarshalJSON

func (v NullableResponseLogs) MarshalJSON() ([]byte, error)

func (*NullableResponseLogs) Set

func (v *NullableResponseLogs) Set(val *ResponseLogs)

func (*NullableResponseLogs) UnmarshalJSON

func (v *NullableResponseLogs) UnmarshalJSON(src []byte) error

func (*NullableResponseLogs) Unset

func (v *NullableResponseLogs) Unset()

type NullableResponseLogsLog

type NullableResponseLogsLog struct {
	// contains filtered or unexported fields
}

func NewNullableResponseLogsLog

func NewNullableResponseLogsLog(val *ResponseLogsLog) *NullableResponseLogsLog

func (NullableResponseLogsLog) Get

func (NullableResponseLogsLog) IsSet

func (v NullableResponseLogsLog) IsSet() bool

func (NullableResponseLogsLog) MarshalJSON

func (v NullableResponseLogsLog) MarshalJSON() ([]byte, error)

func (*NullableResponseLogsLog) Set

func (*NullableResponseLogsLog) UnmarshalJSON

func (v *NullableResponseLogsLog) UnmarshalJSON(src []byte) error

func (*NullableResponseLogsLog) Unset

func (v *NullableResponseLogsLog) Unset()

type NullableResponseStats

type NullableResponseStats struct {
	// contains filtered or unexported fields
}

func NewNullableResponseStats

func NewNullableResponseStats(val *ResponseStats) *NullableResponseStats

func (NullableResponseStats) Get

func (NullableResponseStats) IsSet

func (v NullableResponseStats) IsSet() bool

func (NullableResponseStats) MarshalJSON

func (v NullableResponseStats) MarshalJSON() ([]byte, error)

func (*NullableResponseStats) Set

func (v *NullableResponseStats) Set(val *ResponseStats)

func (*NullableResponseStats) UnmarshalJSON

func (v *NullableResponseStats) UnmarshalJSON(src []byte) error

func (*NullableResponseStats) Unset

func (v *NullableResponseStats) Unset()

type NullableResponseStatsData

type NullableResponseStatsData struct {
	// contains filtered or unexported fields
}

func NewNullableResponseStatsData

func NewNullableResponseStatsData(val *ResponseStatsData) *NullableResponseStatsData

func (NullableResponseStatsData) Get

func (NullableResponseStatsData) IsSet

func (v NullableResponseStatsData) IsSet() bool

func (NullableResponseStatsData) MarshalJSON

func (v NullableResponseStatsData) MarshalJSON() ([]byte, error)

func (*NullableResponseStatsData) Set

func (*NullableResponseStatsData) UnmarshalJSON

func (v *NullableResponseStatsData) UnmarshalJSON(src []byte) error

func (*NullableResponseStatsData) Unset

func (v *NullableResponseStatsData) Unset()

type NullableResponseStatsTest

type NullableResponseStatsTest struct {
	// contains filtered or unexported fields
}

func NewNullableResponseStatsTest

func NewNullableResponseStatsTest(val *ResponseStatsTest) *NullableResponseStatsTest

func (NullableResponseStatsTest) Get

func (NullableResponseStatsTest) IsSet

func (v NullableResponseStatsTest) IsSet() bool

func (NullableResponseStatsTest) MarshalJSON

func (v NullableResponseStatsTest) MarshalJSON() ([]byte, error)

func (*NullableResponseStatsTest) Set

func (*NullableResponseStatsTest) UnmarshalJSON

func (v *NullableResponseStatsTest) UnmarshalJSON(src []byte) error

func (*NullableResponseStatsTest) Unset

func (v *NullableResponseStatsTest) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTestResponse

type NullableTestResponse struct {
	// contains filtered or unexported fields
}

func NewNullableTestResponse

func NewNullableTestResponse(val *TestResponse) *NullableTestResponse

func (NullableTestResponse) Get

func (NullableTestResponse) IsSet

func (v NullableTestResponse) IsSet() bool

func (NullableTestResponse) MarshalJSON

func (v NullableTestResponse) MarshalJSON() ([]byte, error)

func (*NullableTestResponse) Set

func (v *NullableTestResponse) Set(val *TestResponse)

func (*NullableTestResponse) UnmarshalJSON

func (v *NullableTestResponse) UnmarshalJSON(src []byte) error

func (*NullableTestResponse) Unset

func (v *NullableTestResponse) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableValidatedFields

type NullableValidatedFields struct {
	// contains filtered or unexported fields
}

func NewNullableValidatedFields

func NewNullableValidatedFields(val *ValidatedFields) *NullableValidatedFields

func (NullableValidatedFields) Get

func (NullableValidatedFields) IsSet

func (v NullableValidatedFields) IsSet() bool

func (NullableValidatedFields) MarshalJSON

func (v NullableValidatedFields) MarshalJSON() ([]byte, error)

func (*NullableValidatedFields) Set

func (*NullableValidatedFields) UnmarshalJSON

func (v *NullableValidatedFields) UnmarshalJSON(src []byte) error

func (*NullableValidatedFields) Unset

func (v *NullableValidatedFields) Unset()

type NullableValidatedFieldsItems

type NullableValidatedFieldsItems struct {
	// contains filtered or unexported fields
}

func NewNullableValidatedFieldsItems

func NewNullableValidatedFieldsItems(val *ValidatedFieldsItems) *NullableValidatedFieldsItems

func (NullableValidatedFieldsItems) Get

func (NullableValidatedFieldsItems) IsSet

func (NullableValidatedFieldsItems) MarshalJSON

func (v NullableValidatedFieldsItems) MarshalJSON() ([]byte, error)

func (*NullableValidatedFieldsItems) Set

func (*NullableValidatedFieldsItems) UnmarshalJSON

func (v *NullableValidatedFieldsItems) UnmarshalJSON(src []byte) error

func (*NullableValidatedFieldsItems) Unset

func (v *NullableValidatedFieldsItems) Unset()

type Response

type Response struct {
	Status       *string                `json:"status,omitempty"`
	Reason       *string                `json:"reason,omitempty"`
	ErrorRecords []ResponseErrorRecords `json:"error_records,omitempty"`
}

Response struct for Response

func NewResponse

func NewResponse() *Response

NewResponse instantiates a new Response 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 NewResponseWithDefaults

func NewResponseWithDefaults() *Response

NewResponseWithDefaults instantiates a new Response 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 (*Response) GetErrorRecords

func (o *Response) GetErrorRecords() []ResponseErrorRecords

GetErrorRecords returns the ErrorRecords field value if set, zero value otherwise.

func (*Response) GetErrorRecordsOk

func (o *Response) GetErrorRecordsOk() ([]ResponseErrorRecords, bool)

GetErrorRecordsOk returns a tuple with the ErrorRecords field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Response) GetReason

func (o *Response) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*Response) GetReasonOk

func (o *Response) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Response) GetStatus

func (o *Response) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*Response) GetStatusOk

func (o *Response) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Response) HasErrorRecords

func (o *Response) HasErrorRecords() bool

HasErrorRecords returns a boolean if a field has been set.

func (*Response) HasReason

func (o *Response) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*Response) HasStatus

func (o *Response) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (Response) MarshalJSON

func (o Response) MarshalJSON() ([]byte, error)

func (*Response) SetErrorRecords

func (o *Response) SetErrorRecords(v []ResponseErrorRecords)

SetErrorRecords gets a reference to the given []ResponseErrorRecords and assigns it to the ErrorRecords field.

func (*Response) SetReason

func (o *Response) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*Response) SetStatus

func (o *Response) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

type ResponseErrorRecords

type ResponseErrorRecords struct {
	Reason        *string `json:"reason,omitempty"`
	RecordIndexes []int32 `json:"record_indexes,omitempty"`
}

ResponseErrorRecords struct for ResponseErrorRecords

func NewResponseErrorRecords

func NewResponseErrorRecords() *ResponseErrorRecords

NewResponseErrorRecords instantiates a new ResponseErrorRecords 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 NewResponseErrorRecordsWithDefaults

func NewResponseErrorRecordsWithDefaults() *ResponseErrorRecords

NewResponseErrorRecordsWithDefaults instantiates a new ResponseErrorRecords 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 (*ResponseErrorRecords) GetReason

func (o *ResponseErrorRecords) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*ResponseErrorRecords) GetReasonOk

func (o *ResponseErrorRecords) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseErrorRecords) GetRecordIndexes

func (o *ResponseErrorRecords) GetRecordIndexes() []int32

GetRecordIndexes returns the RecordIndexes field value if set, zero value otherwise.

func (*ResponseErrorRecords) GetRecordIndexesOk

func (o *ResponseErrorRecords) GetRecordIndexesOk() ([]int32, bool)

GetRecordIndexesOk returns a tuple with the RecordIndexes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseErrorRecords) HasReason

func (o *ResponseErrorRecords) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*ResponseErrorRecords) HasRecordIndexes

func (o *ResponseErrorRecords) HasRecordIndexes() bool

HasRecordIndexes returns a boolean if a field has been set.

func (ResponseErrorRecords) MarshalJSON

func (o ResponseErrorRecords) MarshalJSON() ([]byte, error)

func (*ResponseErrorRecords) SetReason

func (o *ResponseErrorRecords) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*ResponseErrorRecords) SetRecordIndexes

func (o *ResponseErrorRecords) SetRecordIndexes(v []int32)

SetRecordIndexes gets a reference to the given []int32 and assigns it to the RecordIndexes field.

type ResponseLogs

type ResponseLogs struct {
	Status *string           `json:"status,omitempty"`
	Reason *string           `json:"reason,omitempty"`
	Logs   []ResponseLogsLog `json:"logs,omitempty"`
}

ResponseLogs struct for ResponseLogs

func NewResponseLogs

func NewResponseLogs() *ResponseLogs

NewResponseLogs instantiates a new ResponseLogs 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 NewResponseLogsWithDefaults

func NewResponseLogsWithDefaults() *ResponseLogs

NewResponseLogsWithDefaults instantiates a new ResponseLogs 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 (*ResponseLogs) GetLogs

func (o *ResponseLogs) GetLogs() []ResponseLogsLog

GetLogs returns the Logs field value if set, zero value otherwise.

func (*ResponseLogs) GetLogsOk

func (o *ResponseLogs) GetLogsOk() ([]ResponseLogsLog, bool)

GetLogsOk returns a tuple with the Logs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseLogs) GetReason

func (o *ResponseLogs) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*ResponseLogs) GetReasonOk

func (o *ResponseLogs) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseLogs) GetStatus

func (o *ResponseLogs) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*ResponseLogs) GetStatusOk

func (o *ResponseLogs) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseLogs) HasLogs

func (o *ResponseLogs) HasLogs() bool

HasLogs returns a boolean if a field has been set.

func (*ResponseLogs) HasReason

func (o *ResponseLogs) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*ResponseLogs) HasStatus

func (o *ResponseLogs) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (ResponseLogs) MarshalJSON

func (o ResponseLogs) MarshalJSON() ([]byte, error)

func (*ResponseLogs) SetLogs

func (o *ResponseLogs) SetLogs(v []ResponseLogsLog)

SetLogs gets a reference to the given []ResponseLogsLog and assigns it to the Logs field.

func (*ResponseLogs) SetReason

func (o *ResponseLogs) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*ResponseLogs) SetStatus

func (o *ResponseLogs) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

type ResponseLogsLog

type ResponseLogsLog struct {
	Timestamp           *string    `json:"timestamp,omitempty"`
	EventType           *string    `json:"event_type,omitempty"`
	EventConversionType *string    `json:"event_conversion_type,omitempty"`
	Status              *string    `json:"status,omitempty"`
	Integration         *string    `json:"integration,omitempty"`
	EventMetadata       *CapiEvent `json:"event_metadata,omitempty"`
	ErrorRecords        []string   `json:"error_records,omitempty"`
	WarningRecords      []string   `json:"warning_records,omitempty"`
}

ResponseLogsLog struct for ResponseLogsLog

func NewResponseLogsLog

func NewResponseLogsLog() *ResponseLogsLog

NewResponseLogsLog instantiates a new ResponseLogsLog 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 NewResponseLogsLogWithDefaults

func NewResponseLogsLogWithDefaults() *ResponseLogsLog

NewResponseLogsLogWithDefaults instantiates a new ResponseLogsLog 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 (*ResponseLogsLog) GetErrorRecords

func (o *ResponseLogsLog) GetErrorRecords() []string

GetErrorRecords returns the ErrorRecords field value if set, zero value otherwise.

func (*ResponseLogsLog) GetErrorRecordsOk

func (o *ResponseLogsLog) GetErrorRecordsOk() ([]string, bool)

GetErrorRecordsOk returns a tuple with the ErrorRecords field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseLogsLog) GetEventConversionType

func (o *ResponseLogsLog) GetEventConversionType() string

GetEventConversionType returns the EventConversionType field value if set, zero value otherwise.

func (*ResponseLogsLog) GetEventConversionTypeOk

func (o *ResponseLogsLog) GetEventConversionTypeOk() (*string, bool)

GetEventConversionTypeOk returns a tuple with the EventConversionType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseLogsLog) GetEventMetadata

func (o *ResponseLogsLog) GetEventMetadata() CapiEvent

GetEventMetadata returns the EventMetadata field value if set, zero value otherwise.

func (*ResponseLogsLog) GetEventMetadataOk

func (o *ResponseLogsLog) GetEventMetadataOk() (*CapiEvent, bool)

GetEventMetadataOk returns a tuple with the EventMetadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseLogsLog) GetEventType

func (o *ResponseLogsLog) GetEventType() string

GetEventType returns the EventType field value if set, zero value otherwise.

func (*ResponseLogsLog) GetEventTypeOk

func (o *ResponseLogsLog) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseLogsLog) GetIntegration

func (o *ResponseLogsLog) GetIntegration() string

GetIntegration returns the Integration field value if set, zero value otherwise.

func (*ResponseLogsLog) GetIntegrationOk

func (o *ResponseLogsLog) GetIntegrationOk() (*string, bool)

GetIntegrationOk returns a tuple with the Integration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseLogsLog) GetStatus

func (o *ResponseLogsLog) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*ResponseLogsLog) GetStatusOk

func (o *ResponseLogsLog) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseLogsLog) GetTimestamp

func (o *ResponseLogsLog) GetTimestamp() string

GetTimestamp returns the Timestamp field value if set, zero value otherwise.

func (*ResponseLogsLog) GetTimestampOk

func (o *ResponseLogsLog) GetTimestampOk() (*string, bool)

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 (*ResponseLogsLog) GetWarningRecords

func (o *ResponseLogsLog) GetWarningRecords() []string

GetWarningRecords returns the WarningRecords field value if set, zero value otherwise.

func (*ResponseLogsLog) GetWarningRecordsOk

func (o *ResponseLogsLog) GetWarningRecordsOk() ([]string, bool)

GetWarningRecordsOk returns a tuple with the WarningRecords field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseLogsLog) HasErrorRecords

func (o *ResponseLogsLog) HasErrorRecords() bool

HasErrorRecords returns a boolean if a field has been set.

func (*ResponseLogsLog) HasEventConversionType

func (o *ResponseLogsLog) HasEventConversionType() bool

HasEventConversionType returns a boolean if a field has been set.

func (*ResponseLogsLog) HasEventMetadata

func (o *ResponseLogsLog) HasEventMetadata() bool

HasEventMetadata returns a boolean if a field has been set.

func (*ResponseLogsLog) HasEventType

func (o *ResponseLogsLog) HasEventType() bool

HasEventType returns a boolean if a field has been set.

func (*ResponseLogsLog) HasIntegration

func (o *ResponseLogsLog) HasIntegration() bool

HasIntegration returns a boolean if a field has been set.

func (*ResponseLogsLog) HasStatus

func (o *ResponseLogsLog) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*ResponseLogsLog) HasTimestamp

func (o *ResponseLogsLog) HasTimestamp() bool

HasTimestamp returns a boolean if a field has been set.

func (*ResponseLogsLog) HasWarningRecords

func (o *ResponseLogsLog) HasWarningRecords() bool

HasWarningRecords returns a boolean if a field has been set.

func (ResponseLogsLog) MarshalJSON

func (o ResponseLogsLog) MarshalJSON() ([]byte, error)

func (*ResponseLogsLog) SetErrorRecords

func (o *ResponseLogsLog) SetErrorRecords(v []string)

SetErrorRecords gets a reference to the given []string and assigns it to the ErrorRecords field.

func (*ResponseLogsLog) SetEventConversionType

func (o *ResponseLogsLog) SetEventConversionType(v string)

SetEventConversionType gets a reference to the given string and assigns it to the EventConversionType field.

func (*ResponseLogsLog) SetEventMetadata

func (o *ResponseLogsLog) SetEventMetadata(v CapiEvent)

SetEventMetadata gets a reference to the given CapiEvent and assigns it to the EventMetadata field.

func (*ResponseLogsLog) SetEventType

func (o *ResponseLogsLog) SetEventType(v string)

SetEventType gets a reference to the given string and assigns it to the EventType field.

func (*ResponseLogsLog) SetIntegration

func (o *ResponseLogsLog) SetIntegration(v string)

SetIntegration gets a reference to the given string and assigns it to the Integration field.

func (*ResponseLogsLog) SetStatus

func (o *ResponseLogsLog) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*ResponseLogsLog) SetTimestamp

func (o *ResponseLogsLog) SetTimestamp(v string)

SetTimestamp gets a reference to the given string and assigns it to the Timestamp field.

func (*ResponseLogsLog) SetWarningRecords

func (o *ResponseLogsLog) SetWarningRecords(v []string)

SetWarningRecords gets a reference to the given []string and assigns it to the WarningRecords field.

type ResponseStats

type ResponseStats struct {
	Status *string            `json:"status,omitempty"`
	Reason *string            `json:"reason,omitempty"`
	Stats  *ResponseStatsData `json:"stats,omitempty"`
}

ResponseStats struct for ResponseStats

func NewResponseStats

func NewResponseStats() *ResponseStats

NewResponseStats instantiates a new ResponseStats 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 NewResponseStatsWithDefaults

func NewResponseStatsWithDefaults() *ResponseStats

NewResponseStatsWithDefaults instantiates a new ResponseStats 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 (*ResponseStats) GetReason

func (o *ResponseStats) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*ResponseStats) GetReasonOk

func (o *ResponseStats) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseStats) GetStats

func (o *ResponseStats) GetStats() ResponseStatsData

GetStats returns the Stats field value if set, zero value otherwise.

func (*ResponseStats) GetStatsOk

func (o *ResponseStats) GetStatsOk() (*ResponseStatsData, bool)

GetStatsOk returns a tuple with the Stats field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseStats) GetStatus

func (o *ResponseStats) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*ResponseStats) GetStatusOk

func (o *ResponseStats) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseStats) HasReason

func (o *ResponseStats) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*ResponseStats) HasStats

func (o *ResponseStats) HasStats() bool

HasStats returns a boolean if a field has been set.

func (*ResponseStats) HasStatus

func (o *ResponseStats) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (ResponseStats) MarshalJSON

func (o ResponseStats) MarshalJSON() ([]byte, error)

func (*ResponseStats) SetReason

func (o *ResponseStats) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*ResponseStats) SetStats

func (o *ResponseStats) SetStats(v ResponseStatsData)

SetStats gets a reference to the given ResponseStatsData and assigns it to the Stats field.

func (*ResponseStats) SetStatus

func (o *ResponseStats) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

type ResponseStatsData

type ResponseStatsData struct {
	Test *ResponseStatsTest `json:"test,omitempty"`
	Live *ResponseStatsTest `json:"live,omitempty"`
}

ResponseStatsData struct for ResponseStatsData

func NewResponseStatsData

func NewResponseStatsData() *ResponseStatsData

NewResponseStatsData instantiates a new ResponseStatsData 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 NewResponseStatsDataWithDefaults

func NewResponseStatsDataWithDefaults() *ResponseStatsData

NewResponseStatsDataWithDefaults instantiates a new ResponseStatsData 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 (*ResponseStatsData) GetLive

func (o *ResponseStatsData) GetLive() ResponseStatsTest

GetLive returns the Live field value if set, zero value otherwise.

func (*ResponseStatsData) GetLiveOk

func (o *ResponseStatsData) GetLiveOk() (*ResponseStatsTest, bool)

GetLiveOk returns a tuple with the Live field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseStatsData) GetTest

func (o *ResponseStatsData) GetTest() ResponseStatsTest

GetTest returns the Test field value if set, zero value otherwise.

func (*ResponseStatsData) GetTestOk

func (o *ResponseStatsData) GetTestOk() (*ResponseStatsTest, bool)

GetTestOk returns a tuple with the Test field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseStatsData) HasLive

func (o *ResponseStatsData) HasLive() bool

HasLive returns a boolean if a field has been set.

func (*ResponseStatsData) HasTest

func (o *ResponseStatsData) HasTest() bool

HasTest returns a boolean if a field has been set.

func (ResponseStatsData) MarshalJSON

func (o ResponseStatsData) MarshalJSON() ([]byte, error)

func (*ResponseStatsData) SetLive

func (o *ResponseStatsData) SetLive(v ResponseStatsTest)

SetLive gets a reference to the given ResponseStatsTest and assigns it to the Live field.

func (*ResponseStatsData) SetTest

func (o *ResponseStatsData) SetTest(v ResponseStatsTest)

SetTest gets a reference to the given ResponseStatsTest and assigns it to the Test field.

type ResponseStatsTest

type ResponseStatsTest struct {
	LatestEventTs      *int64 `json:"latest_event_ts,omitempty"`
	EventCountPastHour *int64 `json:"event_count_past_hour,omitempty"`
}

ResponseStatsTest struct for ResponseStatsTest

func NewResponseStatsTest

func NewResponseStatsTest() *ResponseStatsTest

NewResponseStatsTest instantiates a new ResponseStatsTest 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 NewResponseStatsTestWithDefaults

func NewResponseStatsTestWithDefaults() *ResponseStatsTest

NewResponseStatsTestWithDefaults instantiates a new ResponseStatsTest 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 (*ResponseStatsTest) GetEventCountPastHour

func (o *ResponseStatsTest) GetEventCountPastHour() int64

GetEventCountPastHour returns the EventCountPastHour field value if set, zero value otherwise.

func (*ResponseStatsTest) GetEventCountPastHourOk

func (o *ResponseStatsTest) GetEventCountPastHourOk() (*int64, bool)

GetEventCountPastHourOk returns a tuple with the EventCountPastHour field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseStatsTest) GetLatestEventTs

func (o *ResponseStatsTest) GetLatestEventTs() int64

GetLatestEventTs returns the LatestEventTs field value if set, zero value otherwise.

func (*ResponseStatsTest) GetLatestEventTsOk

func (o *ResponseStatsTest) GetLatestEventTsOk() (*int64, bool)

GetLatestEventTsOk returns a tuple with the LatestEventTs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResponseStatsTest) HasEventCountPastHour

func (o *ResponseStatsTest) HasEventCountPastHour() bool

HasEventCountPastHour returns a boolean if a field has been set.

func (*ResponseStatsTest) HasLatestEventTs

func (o *ResponseStatsTest) HasLatestEventTs() bool

HasLatestEventTs returns a boolean if a field has been set.

func (ResponseStatsTest) MarshalJSON

func (o ResponseStatsTest) MarshalJSON() ([]byte, error)

func (*ResponseStatsTest) SetEventCountPastHour

func (o *ResponseStatsTest) SetEventCountPastHour(v int64)

SetEventCountPastHour gets a reference to the given int64 and assigns it to the EventCountPastHour field.

func (*ResponseStatsTest) SetLatestEventTs

func (o *ResponseStatsTest) SetLatestEventTs(v int64)

SetLatestEventTs gets a reference to the given int64 and assigns it to the LatestEventTs field.

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type TestResponse

type TestResponse struct {
	Status          *string                `json:"status,omitempty"`
	Reason          *string                `json:"reason,omitempty"`
	ErrorRecords    []ResponseErrorRecords `json:"error_records,omitempty"`
	WarningRecords  []ResponseErrorRecords `json:"warning_records,omitempty"`
	ValidatedFields []ValidatedFields      `json:"validated_fields,omitempty"`
}

TestResponse struct for TestResponse

func NewTestResponse

func NewTestResponse() *TestResponse

NewTestResponse instantiates a new TestResponse 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 NewTestResponseWithDefaults

func NewTestResponseWithDefaults() *TestResponse

NewTestResponseWithDefaults instantiates a new TestResponse 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 (*TestResponse) GetErrorRecords

func (o *TestResponse) GetErrorRecords() []ResponseErrorRecords

GetErrorRecords returns the ErrorRecords field value if set, zero value otherwise.

func (*TestResponse) GetErrorRecordsOk

func (o *TestResponse) GetErrorRecordsOk() ([]ResponseErrorRecords, bool)

GetErrorRecordsOk returns a tuple with the ErrorRecords field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TestResponse) GetReason

func (o *TestResponse) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*TestResponse) GetReasonOk

func (o *TestResponse) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TestResponse) GetStatus

func (o *TestResponse) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*TestResponse) GetStatusOk

func (o *TestResponse) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TestResponse) GetValidatedFields

func (o *TestResponse) GetValidatedFields() []ValidatedFields

GetValidatedFields returns the ValidatedFields field value if set, zero value otherwise.

func (*TestResponse) GetValidatedFieldsOk

func (o *TestResponse) GetValidatedFieldsOk() ([]ValidatedFields, bool)

GetValidatedFieldsOk returns a tuple with the ValidatedFields field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TestResponse) GetWarningRecords

func (o *TestResponse) GetWarningRecords() []ResponseErrorRecords

GetWarningRecords returns the WarningRecords field value if set, zero value otherwise.

func (*TestResponse) GetWarningRecordsOk

func (o *TestResponse) GetWarningRecordsOk() ([]ResponseErrorRecords, bool)

GetWarningRecordsOk returns a tuple with the WarningRecords field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TestResponse) HasErrorRecords

func (o *TestResponse) HasErrorRecords() bool

HasErrorRecords returns a boolean if a field has been set.

func (*TestResponse) HasReason

func (o *TestResponse) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*TestResponse) HasStatus

func (o *TestResponse) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*TestResponse) HasValidatedFields

func (o *TestResponse) HasValidatedFields() bool

HasValidatedFields returns a boolean if a field has been set.

func (*TestResponse) HasWarningRecords

func (o *TestResponse) HasWarningRecords() bool

HasWarningRecords returns a boolean if a field has been set.

func (TestResponse) MarshalJSON

func (o TestResponse) MarshalJSON() ([]byte, error)

func (*TestResponse) SetErrorRecords

func (o *TestResponse) SetErrorRecords(v []ResponseErrorRecords)

SetErrorRecords gets a reference to the given []ResponseErrorRecords and assigns it to the ErrorRecords field.

func (*TestResponse) SetReason

func (o *TestResponse) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*TestResponse) SetStatus

func (o *TestResponse) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*TestResponse) SetValidatedFields

func (o *TestResponse) SetValidatedFields(v []ValidatedFields)

SetValidatedFields gets a reference to the given []ValidatedFields and assigns it to the ValidatedFields field.

func (*TestResponse) SetWarningRecords

func (o *TestResponse) SetWarningRecords(v []ResponseErrorRecords)

SetWarningRecords gets a reference to the given []ResponseErrorRecords and assigns it to the WarningRecords field.

type ValidatedFields

type ValidatedFields struct {
	ValidatedFields *ValidatedFieldsItems `json:"validated_fields,omitempty"`
	RecordIndex     *int32                `json:"record_index,omitempty"`
}

ValidatedFields struct for ValidatedFields

func NewValidatedFields

func NewValidatedFields() *ValidatedFields

NewValidatedFields instantiates a new ValidatedFields 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 NewValidatedFieldsWithDefaults

func NewValidatedFieldsWithDefaults() *ValidatedFields

NewValidatedFieldsWithDefaults instantiates a new ValidatedFields 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 (*ValidatedFields) GetRecordIndex

func (o *ValidatedFields) GetRecordIndex() int32

GetRecordIndex returns the RecordIndex field value if set, zero value otherwise.

func (*ValidatedFields) GetRecordIndexOk

func (o *ValidatedFields) GetRecordIndexOk() (*int32, bool)

GetRecordIndexOk returns a tuple with the RecordIndex field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidatedFields) GetValidatedFields

func (o *ValidatedFields) GetValidatedFields() ValidatedFieldsItems

GetValidatedFields returns the ValidatedFields field value if set, zero value otherwise.

func (*ValidatedFields) GetValidatedFieldsOk

func (o *ValidatedFields) GetValidatedFieldsOk() (*ValidatedFieldsItems, bool)

GetValidatedFieldsOk returns a tuple with the ValidatedFields field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidatedFields) HasRecordIndex

func (o *ValidatedFields) HasRecordIndex() bool

HasRecordIndex returns a boolean if a field has been set.

func (*ValidatedFields) HasValidatedFields

func (o *ValidatedFields) HasValidatedFields() bool

HasValidatedFields returns a boolean if a field has been set.

func (ValidatedFields) MarshalJSON

func (o ValidatedFields) MarshalJSON() ([]byte, error)

func (*ValidatedFields) SetRecordIndex

func (o *ValidatedFields) SetRecordIndex(v int32)

SetRecordIndex gets a reference to the given int32 and assigns it to the RecordIndex field.

func (*ValidatedFields) SetValidatedFields

func (o *ValidatedFields) SetValidatedFields(v ValidatedFieldsItems)

SetValidatedFields gets a reference to the given ValidatedFieldsItems and assigns it to the ValidatedFields field.

type ValidatedFieldsItems

type ValidatedFieldsItems struct {
	PixelId             *string `json:"pixel_id,omitempty"`
	SnapAppId           *string `json:"snap_app_id,omitempty"`
	Currency            *string `json:"currency,omitempty"`
	Price               *string `json:"price,omitempty"`
	EventConversionType *string `json:"event_conversion_type,omitempty"`
	EventType           *string `json:"event_type,omitempty"`
}

ValidatedFieldsItems struct for ValidatedFieldsItems

func NewValidatedFieldsItems

func NewValidatedFieldsItems() *ValidatedFieldsItems

NewValidatedFieldsItems instantiates a new ValidatedFieldsItems 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 NewValidatedFieldsItemsWithDefaults

func NewValidatedFieldsItemsWithDefaults() *ValidatedFieldsItems

NewValidatedFieldsItemsWithDefaults instantiates a new ValidatedFieldsItems 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 (*ValidatedFieldsItems) GetCurrency

func (o *ValidatedFieldsItems) GetCurrency() string

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*ValidatedFieldsItems) GetCurrencyOk

func (o *ValidatedFieldsItems) GetCurrencyOk() (*string, bool)

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 (*ValidatedFieldsItems) GetEventConversionType

func (o *ValidatedFieldsItems) GetEventConversionType() string

GetEventConversionType returns the EventConversionType field value if set, zero value otherwise.

func (*ValidatedFieldsItems) GetEventConversionTypeOk

func (o *ValidatedFieldsItems) GetEventConversionTypeOk() (*string, bool)

GetEventConversionTypeOk returns a tuple with the EventConversionType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidatedFieldsItems) GetEventType

func (o *ValidatedFieldsItems) GetEventType() string

GetEventType returns the EventType field value if set, zero value otherwise.

func (*ValidatedFieldsItems) GetEventTypeOk

func (o *ValidatedFieldsItems) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidatedFieldsItems) GetPixelId

func (o *ValidatedFieldsItems) GetPixelId() string

GetPixelId returns the PixelId field value if set, zero value otherwise.

func (*ValidatedFieldsItems) GetPixelIdOk

func (o *ValidatedFieldsItems) GetPixelIdOk() (*string, bool)

GetPixelIdOk returns a tuple with the PixelId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidatedFieldsItems) GetPrice

func (o *ValidatedFieldsItems) GetPrice() string

GetPrice returns the Price field value if set, zero value otherwise.

func (*ValidatedFieldsItems) GetPriceOk

func (o *ValidatedFieldsItems) GetPriceOk() (*string, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidatedFieldsItems) GetSnapAppId

func (o *ValidatedFieldsItems) GetSnapAppId() string

GetSnapAppId returns the SnapAppId field value if set, zero value otherwise.

func (*ValidatedFieldsItems) GetSnapAppIdOk

func (o *ValidatedFieldsItems) GetSnapAppIdOk() (*string, bool)

GetSnapAppIdOk returns a tuple with the SnapAppId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidatedFieldsItems) HasCurrency

func (o *ValidatedFieldsItems) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*ValidatedFieldsItems) HasEventConversionType

func (o *ValidatedFieldsItems) HasEventConversionType() bool

HasEventConversionType returns a boolean if a field has been set.

func (*ValidatedFieldsItems) HasEventType

func (o *ValidatedFieldsItems) HasEventType() bool

HasEventType returns a boolean if a field has been set.

func (*ValidatedFieldsItems) HasPixelId

func (o *ValidatedFieldsItems) HasPixelId() bool

HasPixelId returns a boolean if a field has been set.

func (*ValidatedFieldsItems) HasPrice

func (o *ValidatedFieldsItems) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*ValidatedFieldsItems) HasSnapAppId

func (o *ValidatedFieldsItems) HasSnapAppId() bool

HasSnapAppId returns a boolean if a field has been set.

func (ValidatedFieldsItems) MarshalJSON

func (o ValidatedFieldsItems) MarshalJSON() ([]byte, error)

func (*ValidatedFieldsItems) SetCurrency

func (o *ValidatedFieldsItems) SetCurrency(v string)

SetCurrency gets a reference to the given string and assigns it to the Currency field.

func (*ValidatedFieldsItems) SetEventConversionType

func (o *ValidatedFieldsItems) SetEventConversionType(v string)

SetEventConversionType gets a reference to the given string and assigns it to the EventConversionType field.

func (*ValidatedFieldsItems) SetEventType

func (o *ValidatedFieldsItems) SetEventType(v string)

SetEventType gets a reference to the given string and assigns it to the EventType field.

func (*ValidatedFieldsItems) SetPixelId

func (o *ValidatedFieldsItems) SetPixelId(v string)

SetPixelId gets a reference to the given string and assigns it to the PixelId field.

func (*ValidatedFieldsItems) SetPrice

func (o *ValidatedFieldsItems) SetPrice(v string)

SetPrice gets a reference to the given string and assigns it to the Price field.

func (*ValidatedFieldsItems) SetSnapAppId

func (o *ValidatedFieldsItems) SetSnapAppId(v string)

SetSnapAppId gets a reference to the given string and assigns it to the SnapAppId field.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL