loops

package module
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 21 Imported by: 0

README

Go API client for loops

This is the OpenAPI Spec for the Loops API.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.3.2
  • Package version: 1.0.2
  • Generator version: 7.7.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import loops "github.com/behnh/loops-api-go"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value loops.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), loops.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value loops.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), loops.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using loops.ContextOperationServerIndices and loops.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), loops.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), loops.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://app.loops.so/api/v1

Class Method HTTP request Description
APIKeyAPI ApiKeyGet Get /api-key Test your API key
ContactsAPI ContactsCreatePost Post /contacts/create Create a contact
ContactsAPI ContactsDeletePost Post /contacts/delete Delete a contact
ContactsAPI ContactsFindGet Get /contacts/find Find a contact
ContactsAPI ContactsUpdatePut Put /contacts/update Update a contact
CustomFieldsAPI ContactsCustomFieldsGet Get /contacts/customFields Get a list of custom contact properties
EventsAPI EventsSendPost Post /events/send Send an event
MailingListsAPI ListsGet Get /lists Get a list of mailing lists
TransactionalEmailsAPI TransactionalPost Post /transactional Send a transactional email

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

apiKey
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), loops.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// 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 added in v1.0.2

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

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

func IsNil added in v1.0.2

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool added in v1.0.2

func PtrBool(v bool) *bool

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

func PtrFloat32 added in v1.0.2

func PtrFloat32(v float32) *float32

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

func PtrFloat64 added in v1.0.2

func PtrFloat64(v float64) *float64

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

func PtrInt added in v1.0.2

func PtrInt(v int) *int

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

func PtrInt32 added in v1.0.2

func PtrInt32(v int32) *int32

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

func PtrInt64 added in v1.0.2

func PtrInt64(v int64) *int64

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

func PtrString added in v1.0.2

func PtrString(v string) *string

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

func PtrTime added in v1.0.2

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

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

Types

type APIClient added in v1.0.2

type APIClient struct {
	APIKeyAPI *APIKeyAPIService

	ContactsAPI *ContactsAPIService

	CustomFieldsAPI *CustomFieldsAPIService

	EventsAPI *EventsAPIService

	MailingListsAPI *MailingListsAPIService

	TransactionalEmailsAPI *TransactionalEmailsAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Loops OpenAPI Spec API v1.3.2 In most cases there should be only one, shared, APIClient.

func NewAPIClient added in v1.0.2

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 added in v1.0.2

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 added in v1.0.2

type APIKey struct {
	Key    string
	Prefix string
}

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

type APIKeyAPIService added in v1.3.2

type APIKeyAPIService service

APIKeyAPIService APIKeyAPI service

func (*APIKeyAPIService) ApiKeyGet added in v1.3.2

ApiKeyGet Test your API key

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

func (*APIKeyAPIService) ApiKeyGetExecute added in v1.3.2

Execute executes the request

@return ApiKeyGet200Response

type APIResponse added in v1.0.2

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 added in v1.0.2

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError added in v1.0.2

func NewAPIResponseWithError(errorMessage string) *APIResponse

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

type ApiApiKeyGetRequest added in v1.3.2

type ApiApiKeyGetRequest struct {
	ApiService *APIKeyAPIService
	// contains filtered or unexported fields
}

func (ApiApiKeyGetRequest) Execute added in v1.3.2

type ApiContactsCreatePostRequest added in v1.0.2

type ApiContactsCreatePostRequest struct {
	ApiService *ContactsAPIService
	// contains filtered or unexported fields
}

func (ApiContactsCreatePostRequest) ContactRequest added in v1.0.2

You can add custom contact properties as keys in this request (of type `string`, `number`, `boolean` or `date` ([see available date formats](https://loops.so/docs/contacts/properties#dates))).<br>Make sure to create the properties in Loops before using them in API calls.

func (ApiContactsCreatePostRequest) Execute added in v1.0.2

type ApiContactsCustomFieldsGetRequest added in v1.0.2

type ApiContactsCustomFieldsGetRequest struct {
	ApiService *CustomFieldsAPIService
	// contains filtered or unexported fields
}

func (ApiContactsCustomFieldsGetRequest) Execute added in v1.0.2

type ApiContactsDeletePostRequest added in v1.0.2

type ApiContactsDeletePostRequest struct {
	ApiService *ContactsAPIService
	// contains filtered or unexported fields
}

func (ApiContactsDeletePostRequest) ContactDeleteRequest added in v1.0.2

func (r ApiContactsDeletePostRequest) ContactDeleteRequest(contactDeleteRequest ContactDeleteRequest) ApiContactsDeletePostRequest

Include only one of `email` or `userId`.

func (ApiContactsDeletePostRequest) Execute added in v1.0.2

type ApiContactsFindGetRequest added in v1.0.2

type ApiContactsFindGetRequest struct {
	ApiService *ContactsAPIService
	// contains filtered or unexported fields
}

func (ApiContactsFindGetRequest) Email added in v1.0.2

Email address (URI-encoded)

func (ApiContactsFindGetRequest) Execute added in v1.0.2

func (ApiContactsFindGetRequest) UserId added in v1.3.0

type ApiContactsUpdatePutRequest added in v1.0.2

type ApiContactsUpdatePutRequest struct {
	ApiService *ContactsAPIService
	// contains filtered or unexported fields
}

func (ApiContactsUpdatePutRequest) ContactRequest added in v1.0.2

You can add custom contact properties as keys in this request (of type `string`, `number`, `boolean` or `date` ([see available date formats](https://loops.so/docs/contacts/properties#dates))).<br>Make sure to create the properties in Loops before using them in API calls.

func (ApiContactsUpdatePutRequest) Execute added in v1.0.2

type ApiEventsSendPostRequest added in v1.0.2

type ApiEventsSendPostRequest struct {
	ApiService *EventsAPIService
	// contains filtered or unexported fields
}

func (ApiEventsSendPostRequest) EventRequest added in v1.0.2

func (r ApiEventsSendPostRequest) EventRequest(eventRequest EventRequest) ApiEventsSendPostRequest

Provide either `email` or `userId` to identify the contact ([read more](https://loops.so/docs/api-reference/send-event#body)).<br>You can add event properties, which will be available in emails sent by this event. Values can be of type string, number, boolean or date ([see allowed date formats](https://loops.so/docs/events/properties#important-information-about-event-properties)).<br>Make sure to create the properties in Loops before using them in API calls.<br>You can add contact properties as keys in this request (of type `string`, `number`, `boolean` or `date` ([see available date formats](https://loops.so/docs/contacts/properties#dates))).

func (ApiEventsSendPostRequest) Execute added in v1.0.2

type ApiKeyGet200Response added in v1.3.2

type ApiKeyGet200Response struct {
	Success bool `json:"success"`
	// The name of the team the API key belongs to.
	TeamName string `json:"teamName"`
}

ApiKeyGet200Response struct for ApiKeyGet200Response

func NewApiKeyGet200Response added in v1.3.2

func NewApiKeyGet200Response(success bool, teamName string) *ApiKeyGet200Response

NewApiKeyGet200Response instantiates a new ApiKeyGet200Response 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 NewApiKeyGet200ResponseWithDefaults added in v1.3.2

func NewApiKeyGet200ResponseWithDefaults() *ApiKeyGet200Response

NewApiKeyGet200ResponseWithDefaults instantiates a new ApiKeyGet200Response 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 (*ApiKeyGet200Response) GetSuccess added in v1.3.2

func (o *ApiKeyGet200Response) GetSuccess() bool

GetSuccess returns the Success field value

func (*ApiKeyGet200Response) GetSuccessOk added in v1.3.2

func (o *ApiKeyGet200Response) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set.

func (*ApiKeyGet200Response) GetTeamName added in v1.3.2

func (o *ApiKeyGet200Response) GetTeamName() string

GetTeamName returns the TeamName field value

func (*ApiKeyGet200Response) GetTeamNameOk added in v1.3.2

func (o *ApiKeyGet200Response) GetTeamNameOk() (*string, bool)

GetTeamNameOk returns a tuple with the TeamName field value and a boolean to check if the value has been set.

func (ApiKeyGet200Response) MarshalJSON added in v1.3.2

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

func (*ApiKeyGet200Response) SetSuccess added in v1.3.2

func (o *ApiKeyGet200Response) SetSuccess(v bool)

SetSuccess sets field value

func (*ApiKeyGet200Response) SetTeamName added in v1.3.2

func (o *ApiKeyGet200Response) SetTeamName(v string)

SetTeamName sets field value

func (ApiKeyGet200Response) ToMap added in v1.3.2

func (o ApiKeyGet200Response) ToMap() (map[string]interface{}, error)

func (*ApiKeyGet200Response) UnmarshalJSON added in v1.3.2

func (o *ApiKeyGet200Response) UnmarshalJSON(data []byte) (err error)

type ApiKeyGet401Response added in v1.3.2

type ApiKeyGet401Response struct {
	Error *string `json:"error,omitempty"`
}

ApiKeyGet401Response struct for ApiKeyGet401Response

func NewApiKeyGet401Response added in v1.3.2

func NewApiKeyGet401Response() *ApiKeyGet401Response

NewApiKeyGet401Response instantiates a new ApiKeyGet401Response 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 NewApiKeyGet401ResponseWithDefaults added in v1.3.2

func NewApiKeyGet401ResponseWithDefaults() *ApiKeyGet401Response

NewApiKeyGet401ResponseWithDefaults instantiates a new ApiKeyGet401Response 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 (*ApiKeyGet401Response) GetError added in v1.3.2

func (o *ApiKeyGet401Response) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*ApiKeyGet401Response) GetErrorOk added in v1.3.2

func (o *ApiKeyGet401Response) GetErrorOk() (*string, bool)

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

func (*ApiKeyGet401Response) HasError added in v1.3.2

func (o *ApiKeyGet401Response) HasError() bool

HasError returns a boolean if a field has been set.

func (ApiKeyGet401Response) MarshalJSON added in v1.3.2

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

func (*ApiKeyGet401Response) SetError added in v1.3.2

func (o *ApiKeyGet401Response) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (ApiKeyGet401Response) ToMap added in v1.3.2

func (o ApiKeyGet401Response) ToMap() (map[string]interface{}, error)

type ApiListsGetRequest added in v1.3.0

type ApiListsGetRequest struct {
	ApiService *MailingListsAPIService
	// contains filtered or unexported fields
}

func (ApiListsGetRequest) Execute added in v1.3.0

func (r ApiListsGetRequest) Execute() ([]MailingList, *http.Response, error)

type ApiTransactionalPostRequest added in v1.0.2

type ApiTransactionalPostRequest struct {
	ApiService *TransactionalEmailsAPIService
	// contains filtered or unexported fields
}

func (ApiTransactionalPostRequest) Execute added in v1.0.2

func (ApiTransactionalPostRequest) TransactionalRequest added in v1.0.2

func (r ApiTransactionalPostRequest) TransactionalRequest(transactionalRequest TransactionalRequest) ApiTransactionalPostRequest

type BasicAuth added in v1.0.2

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 Configuration added in v1.0.2

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 added in v1.0.2

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader added in v1.0.2

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

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

func (*Configuration) ServerURL added in v1.0.2

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

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext added in v1.0.2

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

ServerURLWithContext returns a new server URL given an endpoint

type Contact

type Contact struct {
	Id         *string `json:"id,omitempty"`
	Email      *string `json:"email,omitempty"`
	FirstName  *string `json:"firstName,omitempty"`
	LastName   *string `json:"lastName,omitempty"`
	Source     *string `json:"source,omitempty"`
	Subscribed *bool   `json:"subscribed,omitempty"`
	UserGroup  *string `json:"userGroup,omitempty"`
	UserId     *string `json:"userId,omitempty"`
}

Contact struct for Contact

func NewContact added in v1.0.2

func NewContact() *Contact

NewContact instantiates a new Contact 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 NewContactWithDefaults added in v1.0.2

func NewContactWithDefaults() *Contact

NewContactWithDefaults instantiates a new Contact 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 (*Contact) GetEmail added in v1.0.2

func (o *Contact) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*Contact) GetEmailOk added in v1.0.2

func (o *Contact) GetEmailOk() (*string, bool)

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

func (*Contact) GetFirstName added in v1.0.2

func (o *Contact) GetFirstName() string

GetFirstName returns the FirstName field value if set, zero value otherwise.

func (*Contact) GetFirstNameOk added in v1.0.2

func (o *Contact) GetFirstNameOk() (*string, bool)

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

func (*Contact) GetId added in v1.0.2

func (o *Contact) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Contact) GetIdOk added in v1.0.2

func (o *Contact) GetIdOk() (*string, bool)

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

func (*Contact) GetLastName added in v1.0.2

func (o *Contact) GetLastName() string

GetLastName returns the LastName field value if set, zero value otherwise.

func (*Contact) GetLastNameOk added in v1.0.2

func (o *Contact) GetLastNameOk() (*string, bool)

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

func (*Contact) GetSource added in v1.0.2

func (o *Contact) GetSource() string

GetSource returns the Source field value if set, zero value otherwise.

func (*Contact) GetSourceOk added in v1.0.2

func (o *Contact) GetSourceOk() (*string, bool)

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

func (*Contact) GetSubscribed added in v1.0.2

func (o *Contact) GetSubscribed() bool

GetSubscribed returns the Subscribed field value if set, zero value otherwise.

func (*Contact) GetSubscribedOk added in v1.0.2

func (o *Contact) GetSubscribedOk() (*bool, bool)

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

func (*Contact) GetUserGroup added in v1.0.2

func (o *Contact) GetUserGroup() string

GetUserGroup returns the UserGroup field value if set, zero value otherwise.

func (*Contact) GetUserGroupOk added in v1.0.2

func (o *Contact) GetUserGroupOk() (*string, bool)

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

func (*Contact) GetUserId added in v1.0.2

func (o *Contact) GetUserId() string

GetUserId returns the UserId field value if set, zero value otherwise.

func (*Contact) GetUserIdOk added in v1.0.2

func (o *Contact) GetUserIdOk() (*string, bool)

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

func (*Contact) HasEmail added in v1.0.2

func (o *Contact) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*Contact) HasFirstName added in v1.0.2

func (o *Contact) HasFirstName() bool

HasFirstName returns a boolean if a field has been set.

func (*Contact) HasId added in v1.0.2

func (o *Contact) HasId() bool

HasId returns a boolean if a field has been set.

func (*Contact) HasLastName added in v1.0.2

func (o *Contact) HasLastName() bool

HasLastName returns a boolean if a field has been set.

func (*Contact) HasSource added in v1.0.2

func (o *Contact) HasSource() bool

HasSource returns a boolean if a field has been set.

func (*Contact) HasSubscribed added in v1.0.2

func (o *Contact) HasSubscribed() bool

HasSubscribed returns a boolean if a field has been set.

func (*Contact) HasUserGroup added in v1.0.2

func (o *Contact) HasUserGroup() bool

HasUserGroup returns a boolean if a field has been set.

func (*Contact) HasUserId added in v1.0.2

func (o *Contact) HasUserId() bool

HasUserId returns a boolean if a field has been set.

func (Contact) MarshalJSON added in v1.0.2

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

func (*Contact) SetEmail added in v1.0.2

func (o *Contact) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*Contact) SetFirstName added in v1.0.2

func (o *Contact) SetFirstName(v string)

SetFirstName gets a reference to the given string and assigns it to the FirstName field.

func (*Contact) SetId added in v1.0.2

func (o *Contact) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Contact) SetLastName added in v1.0.2

func (o *Contact) SetLastName(v string)

SetLastName gets a reference to the given string and assigns it to the LastName field.

func (*Contact) SetSource added in v1.0.2

func (o *Contact) SetSource(v string)

SetSource gets a reference to the given string and assigns it to the Source field.

func (*Contact) SetSubscribed added in v1.0.2

func (o *Contact) SetSubscribed(v bool)

SetSubscribed gets a reference to the given bool and assigns it to the Subscribed field.

func (*Contact) SetUserGroup added in v1.0.2

func (o *Contact) SetUserGroup(v string)

SetUserGroup gets a reference to the given string and assigns it to the UserGroup field.

func (*Contact) SetUserId added in v1.0.2

func (o *Contact) SetUserId(v string)

SetUserId gets a reference to the given string and assigns it to the UserId field.

func (Contact) ToMap added in v1.0.2

func (o Contact) ToMap() (map[string]interface{}, error)

type ContactDeleteRequest

type ContactDeleteRequest struct {
	Email  string `json:"email"`
	UserId string `json:"userId"`
}

ContactDeleteRequest struct for ContactDeleteRequest

func NewContactDeleteRequest added in v1.0.2

func NewContactDeleteRequest(email string, userId string) *ContactDeleteRequest

NewContactDeleteRequest instantiates a new ContactDeleteRequest 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 NewContactDeleteRequestWithDefaults added in v1.0.2

func NewContactDeleteRequestWithDefaults() *ContactDeleteRequest

NewContactDeleteRequestWithDefaults instantiates a new ContactDeleteRequest 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 (*ContactDeleteRequest) GetEmail added in v1.0.2

func (o *ContactDeleteRequest) GetEmail() string

GetEmail returns the Email field value

func (*ContactDeleteRequest) GetEmailOk added in v1.0.2

func (o *ContactDeleteRequest) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.

func (*ContactDeleteRequest) GetUserId added in v1.0.2

func (o *ContactDeleteRequest) GetUserId() string

GetUserId returns the UserId field value

func (*ContactDeleteRequest) GetUserIdOk added in v1.0.2

func (o *ContactDeleteRequest) GetUserIdOk() (*string, bool)

GetUserIdOk returns a tuple with the UserId field value and a boolean to check if the value has been set.

func (ContactDeleteRequest) MarshalJSON added in v1.0.2

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

func (*ContactDeleteRequest) SetEmail added in v1.0.2

func (o *ContactDeleteRequest) SetEmail(v string)

SetEmail sets field value

func (*ContactDeleteRequest) SetUserId added in v1.0.2

func (o *ContactDeleteRequest) SetUserId(v string)

SetUserId sets field value

func (ContactDeleteRequest) ToMap added in v1.0.2

func (o ContactDeleteRequest) ToMap() (map[string]interface{}, error)

func (*ContactDeleteRequest) UnmarshalJSON added in v1.3.2

func (o *ContactDeleteRequest) UnmarshalJSON(data []byte) (err error)

type ContactDeleteResponse

type ContactDeleteResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

ContactDeleteResponse struct for ContactDeleteResponse

func NewContactDeleteResponse added in v1.0.2

func NewContactDeleteResponse(success bool, message string) *ContactDeleteResponse

NewContactDeleteResponse instantiates a new ContactDeleteResponse 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 NewContactDeleteResponseWithDefaults added in v1.0.2

func NewContactDeleteResponseWithDefaults() *ContactDeleteResponse

NewContactDeleteResponseWithDefaults instantiates a new ContactDeleteResponse 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 (*ContactDeleteResponse) GetMessage added in v1.0.2

func (o *ContactDeleteResponse) GetMessage() string

GetMessage returns the Message field value

func (*ContactDeleteResponse) GetMessageOk added in v1.0.2

func (o *ContactDeleteResponse) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*ContactDeleteResponse) GetSuccess added in v1.0.2

func (o *ContactDeleteResponse) GetSuccess() bool

GetSuccess returns the Success field value

func (*ContactDeleteResponse) GetSuccessOk added in v1.0.2

func (o *ContactDeleteResponse) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set.

func (ContactDeleteResponse) MarshalJSON added in v1.0.2

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

func (*ContactDeleteResponse) SetMessage added in v1.0.2

func (o *ContactDeleteResponse) SetMessage(v string)

SetMessage sets field value

func (*ContactDeleteResponse) SetSuccess added in v1.0.2

func (o *ContactDeleteResponse) SetSuccess(v bool)

SetSuccess sets field value

func (ContactDeleteResponse) ToMap added in v1.0.2

func (o ContactDeleteResponse) ToMap() (map[string]interface{}, error)

func (*ContactDeleteResponse) UnmarshalJSON added in v1.3.2

func (o *ContactDeleteResponse) UnmarshalJSON(data []byte) (err error)

type ContactFailureResponse

type ContactFailureResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

ContactFailureResponse struct for ContactFailureResponse

func NewContactFailureResponse added in v1.0.2

func NewContactFailureResponse(success bool, message string) *ContactFailureResponse

NewContactFailureResponse instantiates a new ContactFailureResponse 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 NewContactFailureResponseWithDefaults added in v1.0.2

func NewContactFailureResponseWithDefaults() *ContactFailureResponse

NewContactFailureResponseWithDefaults instantiates a new ContactFailureResponse 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 (*ContactFailureResponse) GetMessage added in v1.0.2

func (o *ContactFailureResponse) GetMessage() string

GetMessage returns the Message field value

func (*ContactFailureResponse) GetMessageOk added in v1.0.2

func (o *ContactFailureResponse) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*ContactFailureResponse) GetSuccess added in v1.0.2

func (o *ContactFailureResponse) GetSuccess() bool

GetSuccess returns the Success field value

func (*ContactFailureResponse) GetSuccessOk added in v1.0.2

func (o *ContactFailureResponse) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set.

func (ContactFailureResponse) MarshalJSON added in v1.0.2

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

func (*ContactFailureResponse) SetMessage added in v1.0.2

func (o *ContactFailureResponse) SetMessage(v string)

SetMessage sets field value

func (*ContactFailureResponse) SetSuccess added in v1.0.2

func (o *ContactFailureResponse) SetSuccess(v bool)

SetSuccess sets field value

func (ContactFailureResponse) ToMap added in v1.0.2

func (o ContactFailureResponse) ToMap() (map[string]interface{}, error)

func (*ContactFailureResponse) UnmarshalJSON added in v1.3.2

func (o *ContactFailureResponse) UnmarshalJSON(data []byte) (err error)

type ContactRequest

type ContactRequest struct {
	Email      string  `json:"email"`
	FirstName  *string `json:"firstName,omitempty"`
	LastName   *string `json:"lastName,omitempty"`
	Subscribed *bool   `json:"subscribed,omitempty"`
	UserGroup  *string `json:"userGroup,omitempty"`
	UserId     *string `json:"userId,omitempty"`
	// An object of mailing list IDs and boolean subscription statuses.
	MailingLists map[string]interface{} `json:"mailingLists,omitempty"`
}

ContactRequest struct for ContactRequest

func NewContactRequest added in v1.0.2

func NewContactRequest(email string) *ContactRequest

NewContactRequest instantiates a new ContactRequest 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 NewContactRequestWithDefaults added in v1.0.2

func NewContactRequestWithDefaults() *ContactRequest

NewContactRequestWithDefaults instantiates a new ContactRequest 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 (*ContactRequest) GetEmail added in v1.0.2

func (o *ContactRequest) GetEmail() string

GetEmail returns the Email field value

func (*ContactRequest) GetEmailOk added in v1.0.2

func (o *ContactRequest) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.

func (*ContactRequest) GetFirstName added in v1.0.2

func (o *ContactRequest) GetFirstName() string

GetFirstName returns the FirstName field value if set, zero value otherwise.

func (*ContactRequest) GetFirstNameOk added in v1.0.2

func (o *ContactRequest) GetFirstNameOk() (*string, bool)

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

func (*ContactRequest) GetLastName added in v1.0.2

func (o *ContactRequest) GetLastName() string

GetLastName returns the LastName field value if set, zero value otherwise.

func (*ContactRequest) GetLastNameOk added in v1.0.2

func (o *ContactRequest) GetLastNameOk() (*string, bool)

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

func (*ContactRequest) GetMailingLists added in v1.3.0

func (o *ContactRequest) GetMailingLists() map[string]interface{}

GetMailingLists returns the MailingLists field value if set, zero value otherwise.

func (*ContactRequest) GetMailingListsOk added in v1.3.0

func (o *ContactRequest) GetMailingListsOk() (map[string]interface{}, bool)

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

func (*ContactRequest) GetSubscribed added in v1.0.2

func (o *ContactRequest) GetSubscribed() bool

GetSubscribed returns the Subscribed field value if set, zero value otherwise.

func (*ContactRequest) GetSubscribedOk added in v1.0.2

func (o *ContactRequest) GetSubscribedOk() (*bool, bool)

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

func (*ContactRequest) GetUserGroup added in v1.0.2

func (o *ContactRequest) GetUserGroup() string

GetUserGroup returns the UserGroup field value if set, zero value otherwise.

func (*ContactRequest) GetUserGroupOk added in v1.0.2

func (o *ContactRequest) GetUserGroupOk() (*string, bool)

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

func (*ContactRequest) GetUserId added in v1.0.2

func (o *ContactRequest) GetUserId() string

GetUserId returns the UserId field value if set, zero value otherwise.

func (*ContactRequest) GetUserIdOk added in v1.0.2

func (o *ContactRequest) GetUserIdOk() (*string, bool)

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

func (*ContactRequest) HasFirstName added in v1.0.2

func (o *ContactRequest) HasFirstName() bool

HasFirstName returns a boolean if a field has been set.

func (*ContactRequest) HasLastName added in v1.0.2

func (o *ContactRequest) HasLastName() bool

HasLastName returns a boolean if a field has been set.

func (*ContactRequest) HasMailingLists added in v1.3.0

func (o *ContactRequest) HasMailingLists() bool

HasMailingLists returns a boolean if a field has been set.

func (*ContactRequest) HasSubscribed added in v1.0.2

func (o *ContactRequest) HasSubscribed() bool

HasSubscribed returns a boolean if a field has been set.

func (*ContactRequest) HasUserGroup added in v1.0.2

func (o *ContactRequest) HasUserGroup() bool

HasUserGroup returns a boolean if a field has been set.

func (*ContactRequest) HasUserId added in v1.0.2

func (o *ContactRequest) HasUserId() bool

HasUserId returns a boolean if a field has been set.

func (ContactRequest) MarshalJSON added in v1.0.2

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

func (*ContactRequest) SetEmail added in v1.0.2

func (o *ContactRequest) SetEmail(v string)

SetEmail sets field value

func (*ContactRequest) SetFirstName added in v1.0.2

func (o *ContactRequest) SetFirstName(v string)

SetFirstName gets a reference to the given string and assigns it to the FirstName field.

func (*ContactRequest) SetLastName added in v1.0.2

func (o *ContactRequest) SetLastName(v string)

SetLastName gets a reference to the given string and assigns it to the LastName field.

func (*ContactRequest) SetMailingLists added in v1.3.0

func (o *ContactRequest) SetMailingLists(v map[string]interface{})

SetMailingLists gets a reference to the given map[string]interface{} and assigns it to the MailingLists field.

func (*ContactRequest) SetSubscribed added in v1.0.2

func (o *ContactRequest) SetSubscribed(v bool)

SetSubscribed gets a reference to the given bool and assigns it to the Subscribed field.

func (*ContactRequest) SetUserGroup added in v1.0.2

func (o *ContactRequest) SetUserGroup(v string)

SetUserGroup gets a reference to the given string and assigns it to the UserGroup field.

func (*ContactRequest) SetUserId added in v1.0.2

func (o *ContactRequest) SetUserId(v string)

SetUserId gets a reference to the given string and assigns it to the UserId field.

func (ContactRequest) ToMap added in v1.0.2

func (o ContactRequest) ToMap() (map[string]interface{}, error)

func (*ContactRequest) UnmarshalJSON added in v1.0.2

func (o *ContactRequest) UnmarshalJSON(data []byte) (err error)

type ContactSuccessResponse

type ContactSuccessResponse struct {
	Success bool   `json:"success"`
	Id      string `json:"id"`
}

ContactSuccessResponse struct for ContactSuccessResponse

func NewContactSuccessResponse added in v1.0.2

func NewContactSuccessResponse(success bool, id string) *ContactSuccessResponse

NewContactSuccessResponse instantiates a new ContactSuccessResponse 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 NewContactSuccessResponseWithDefaults added in v1.0.2

func NewContactSuccessResponseWithDefaults() *ContactSuccessResponse

NewContactSuccessResponseWithDefaults instantiates a new ContactSuccessResponse 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 (*ContactSuccessResponse) GetId added in v1.0.2

func (o *ContactSuccessResponse) GetId() string

GetId returns the Id field value

func (*ContactSuccessResponse) GetIdOk added in v1.0.2

func (o *ContactSuccessResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*ContactSuccessResponse) GetSuccess added in v1.0.2

func (o *ContactSuccessResponse) GetSuccess() bool

GetSuccess returns the Success field value

func (*ContactSuccessResponse) GetSuccessOk added in v1.0.2

func (o *ContactSuccessResponse) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set.

func (ContactSuccessResponse) MarshalJSON added in v1.0.2

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

func (*ContactSuccessResponse) SetId added in v1.0.2

func (o *ContactSuccessResponse) SetId(v string)

SetId sets field value

func (*ContactSuccessResponse) SetSuccess added in v1.0.2

func (o *ContactSuccessResponse) SetSuccess(v bool)

SetSuccess sets field value

func (ContactSuccessResponse) ToMap added in v1.0.2

func (o ContactSuccessResponse) ToMap() (map[string]interface{}, error)

func (*ContactSuccessResponse) UnmarshalJSON added in v1.3.2

func (o *ContactSuccessResponse) UnmarshalJSON(data []byte) (err error)

type ContactsAPIService added in v1.0.2

type ContactsAPIService service

ContactsAPIService ContactsAPI service

func (*ContactsAPIService) ContactsCreatePost added in v1.0.2

ContactsCreatePost Create a contact

Add a contact to your audience.

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

func (*ContactsAPIService) ContactsCreatePostExecute added in v1.0.2

Execute executes the request

@return ContactSuccessResponse

func (*ContactsAPIService) ContactsDeletePost added in v1.0.2

ContactsDeletePost Delete a contact

Delete a contact by `email` or `userId`.

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

func (*ContactsAPIService) ContactsDeletePostExecute added in v1.0.2

Execute executes the request

@return ContactDeleteResponse

func (*ContactsAPIService) ContactsFindGet added in v1.0.2

ContactsFindGet Find a contact

Search for a contact by `email` or `userId`. Only one parameter is allowed.

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

func (*ContactsAPIService) ContactsFindGetExecute added in v1.0.2

func (a *ContactsAPIService) ContactsFindGetExecute(r ApiContactsFindGetRequest) ([]Contact, *http.Response, error)

Execute executes the request

@return []Contact

func (*ContactsAPIService) ContactsUpdatePut added in v1.0.2

ContactsUpdatePut Update a contact

Update a contact by `email` or `userId`.<br>If you want to update a contact’s email address, the contact will first need a `userId` value. You can then make a request containing the userId field along with an updated email address.

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

func (*ContactsAPIService) ContactsUpdatePutExecute added in v1.0.2

Execute executes the request

@return ContactSuccessResponse

type ContactsDeletePost500Response added in v1.0.2

type ContactsDeletePost500Response struct {
	Success *bool `json:"success,omitempty"`
}

ContactsDeletePost500Response struct for ContactsDeletePost500Response

func NewContactsDeletePost500Response added in v1.0.2

func NewContactsDeletePost500Response() *ContactsDeletePost500Response

NewContactsDeletePost500Response instantiates a new ContactsDeletePost500Response 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 NewContactsDeletePost500ResponseWithDefaults added in v1.0.2

func NewContactsDeletePost500ResponseWithDefaults() *ContactsDeletePost500Response

NewContactsDeletePost500ResponseWithDefaults instantiates a new ContactsDeletePost500Response 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 (*ContactsDeletePost500Response) GetSuccess added in v1.0.2

func (o *ContactsDeletePost500Response) GetSuccess() bool

GetSuccess returns the Success field value if set, zero value otherwise.

func (*ContactsDeletePost500Response) GetSuccessOk added in v1.0.2

func (o *ContactsDeletePost500Response) GetSuccessOk() (*bool, bool)

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

func (*ContactsDeletePost500Response) HasSuccess added in v1.0.2

func (o *ContactsDeletePost500Response) HasSuccess() bool

HasSuccess returns a boolean if a field has been set.

func (ContactsDeletePost500Response) MarshalJSON added in v1.0.2

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

func (*ContactsDeletePost500Response) SetSuccess added in v1.0.2

func (o *ContactsDeletePost500Response) SetSuccess(v bool)

SetSuccess gets a reference to the given bool and assigns it to the Success field.

func (ContactsDeletePost500Response) ToMap added in v1.0.2

func (o ContactsDeletePost500Response) ToMap() (map[string]interface{}, error)

type CustomField

type CustomField struct {
	Key   string `json:"key"`
	Label string `json:"label"`
	Type  string `json:"type"`
}

CustomField struct for CustomField

func NewCustomField added in v1.0.2

func NewCustomField(key string, label string, type_ string) *CustomField

NewCustomField instantiates a new CustomField 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 NewCustomFieldWithDefaults added in v1.0.2

func NewCustomFieldWithDefaults() *CustomField

NewCustomFieldWithDefaults instantiates a new CustomField 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 (*CustomField) GetKey added in v1.0.2

func (o *CustomField) GetKey() string

GetKey returns the Key field value

func (*CustomField) GetKeyOk added in v1.0.2

func (o *CustomField) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*CustomField) GetLabel added in v1.0.2

func (o *CustomField) GetLabel() string

GetLabel returns the Label field value

func (*CustomField) GetLabelOk added in v1.0.2

func (o *CustomField) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field value and a boolean to check if the value has been set.

func (*CustomField) GetType added in v1.0.2

func (o *CustomField) GetType() string

GetType returns the Type field value

func (*CustomField) GetTypeOk added in v1.0.2

func (o *CustomField) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (CustomField) MarshalJSON added in v1.0.2

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

func (*CustomField) SetKey added in v1.0.2

func (o *CustomField) SetKey(v string)

SetKey sets field value

func (*CustomField) SetLabel added in v1.0.2

func (o *CustomField) SetLabel(v string)

SetLabel sets field value

func (*CustomField) SetType added in v1.0.2

func (o *CustomField) SetType(v string)

SetType sets field value

func (CustomField) ToMap added in v1.0.2

func (o CustomField) ToMap() (map[string]interface{}, error)

func (*CustomField) UnmarshalJSON added in v1.3.2

func (o *CustomField) UnmarshalJSON(data []byte) (err error)

type CustomFieldsAPIService added in v1.0.2

type CustomFieldsAPIService service

CustomFieldsAPIService CustomFieldsAPI service

func (*CustomFieldsAPIService) ContactsCustomFieldsGet added in v1.0.2

ContactsCustomFieldsGet Get a list of custom contact properties

Retrieve a list of your account's custom contact properties.

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

func (*CustomFieldsAPIService) ContactsCustomFieldsGetExecute added in v1.0.2

func (a *CustomFieldsAPIService) ContactsCustomFieldsGetExecute(r ApiContactsCustomFieldsGetRequest) ([]CustomField, *http.Response, error)

Execute executes the request

@return []CustomField

type EventFailureResponse

type EventFailureResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

EventFailureResponse struct for EventFailureResponse

func NewEventFailureResponse added in v1.0.2

func NewEventFailureResponse(success bool, message string) *EventFailureResponse

NewEventFailureResponse instantiates a new EventFailureResponse 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 NewEventFailureResponseWithDefaults added in v1.0.2

func NewEventFailureResponseWithDefaults() *EventFailureResponse

NewEventFailureResponseWithDefaults instantiates a new EventFailureResponse 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 (*EventFailureResponse) GetMessage added in v1.0.2

func (o *EventFailureResponse) GetMessage() string

GetMessage returns the Message field value

func (*EventFailureResponse) GetMessageOk added in v1.0.2

func (o *EventFailureResponse) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*EventFailureResponse) GetSuccess added in v1.0.2

func (o *EventFailureResponse) GetSuccess() bool

GetSuccess returns the Success field value

func (*EventFailureResponse) GetSuccessOk added in v1.0.2

func (o *EventFailureResponse) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set.

func (EventFailureResponse) MarshalJSON added in v1.0.2

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

func (*EventFailureResponse) SetMessage added in v1.0.2

func (o *EventFailureResponse) SetMessage(v string)

SetMessage sets field value

func (*EventFailureResponse) SetSuccess added in v1.0.2

func (o *EventFailureResponse) SetSuccess(v bool)

SetSuccess sets field value

func (EventFailureResponse) ToMap added in v1.0.2

func (o EventFailureResponse) ToMap() (map[string]interface{}, error)

func (*EventFailureResponse) UnmarshalJSON added in v1.3.2

func (o *EventFailureResponse) UnmarshalJSON(data []byte) (err error)

type EventRequest

type EventRequest struct {
	Email     *string `json:"email,omitempty"`
	UserId    *string `json:"userId,omitempty"`
	EventName string  `json:"eventName"`
	// An object containing event property data for the event, available in emails sent by the event.
	EventProperties map[string]interface{} `json:"eventProperties,omitempty"`
	// An object of mailing list IDs and boolean subscription statuses.
	MailingLists map[string]interface{} `json:"mailingLists,omitempty"`
}

EventRequest struct for EventRequest

func NewEventRequest added in v1.0.2

func NewEventRequest(eventName string) *EventRequest

NewEventRequest instantiates a new EventRequest 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 NewEventRequestWithDefaults added in v1.0.2

func NewEventRequestWithDefaults() *EventRequest

NewEventRequestWithDefaults instantiates a new EventRequest 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 (*EventRequest) GetEmail added in v1.0.2

func (o *EventRequest) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*EventRequest) GetEmailOk added in v1.0.2

func (o *EventRequest) GetEmailOk() (*string, bool)

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

func (*EventRequest) GetEventName added in v1.0.2

func (o *EventRequest) GetEventName() string

GetEventName returns the EventName field value

func (*EventRequest) GetEventNameOk added in v1.0.2

func (o *EventRequest) GetEventNameOk() (*string, bool)

GetEventNameOk returns a tuple with the EventName field value and a boolean to check if the value has been set.

func (*EventRequest) GetEventProperties added in v1.3.0

func (o *EventRequest) GetEventProperties() map[string]interface{}

GetEventProperties returns the EventProperties field value if set, zero value otherwise.

func (*EventRequest) GetEventPropertiesOk added in v1.3.0

func (o *EventRequest) GetEventPropertiesOk() (map[string]interface{}, bool)

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

func (*EventRequest) GetMailingLists added in v1.3.0

func (o *EventRequest) GetMailingLists() map[string]interface{}

GetMailingLists returns the MailingLists field value if set, zero value otherwise.

func (*EventRequest) GetMailingListsOk added in v1.3.0

func (o *EventRequest) GetMailingListsOk() (map[string]interface{}, bool)

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

func (*EventRequest) GetUserId added in v1.0.2

func (o *EventRequest) GetUserId() string

GetUserId returns the UserId field value if set, zero value otherwise.

func (*EventRequest) GetUserIdOk added in v1.0.2

func (o *EventRequest) GetUserIdOk() (*string, bool)

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

func (*EventRequest) HasEmail added in v1.0.2

func (o *EventRequest) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*EventRequest) HasEventProperties added in v1.3.0

func (o *EventRequest) HasEventProperties() bool

HasEventProperties returns a boolean if a field has been set.

func (*EventRequest) HasMailingLists added in v1.3.0

func (o *EventRequest) HasMailingLists() bool

HasMailingLists returns a boolean if a field has been set.

func (*EventRequest) HasUserId added in v1.0.2

func (o *EventRequest) HasUserId() bool

HasUserId returns a boolean if a field has been set.

func (EventRequest) MarshalJSON added in v1.0.2

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

func (*EventRequest) SetEmail added in v1.0.2

func (o *EventRequest) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*EventRequest) SetEventName added in v1.0.2

func (o *EventRequest) SetEventName(v string)

SetEventName sets field value

func (*EventRequest) SetEventProperties added in v1.3.0

func (o *EventRequest) SetEventProperties(v map[string]interface{})

SetEventProperties gets a reference to the given map[string]interface{} and assigns it to the EventProperties field.

func (*EventRequest) SetMailingLists added in v1.3.0

func (o *EventRequest) SetMailingLists(v map[string]interface{})

SetMailingLists gets a reference to the given map[string]interface{} and assigns it to the MailingLists field.

func (*EventRequest) SetUserId added in v1.0.2

func (o *EventRequest) SetUserId(v string)

SetUserId gets a reference to the given string and assigns it to the UserId field.

func (EventRequest) ToMap added in v1.0.2

func (o EventRequest) ToMap() (map[string]interface{}, error)

func (*EventRequest) UnmarshalJSON added in v1.0.2

func (o *EventRequest) UnmarshalJSON(data []byte) (err error)

type EventSuccessResponse

type EventSuccessResponse struct {
	Success bool `json:"success"`
}

EventSuccessResponse struct for EventSuccessResponse

func NewEventSuccessResponse added in v1.0.2

func NewEventSuccessResponse(success bool) *EventSuccessResponse

NewEventSuccessResponse instantiates a new EventSuccessResponse 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 NewEventSuccessResponseWithDefaults added in v1.0.2

func NewEventSuccessResponseWithDefaults() *EventSuccessResponse

NewEventSuccessResponseWithDefaults instantiates a new EventSuccessResponse 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 (*EventSuccessResponse) GetSuccess added in v1.0.2

func (o *EventSuccessResponse) GetSuccess() bool

GetSuccess returns the Success field value

func (*EventSuccessResponse) GetSuccessOk added in v1.0.2

func (o *EventSuccessResponse) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set.

func (EventSuccessResponse) MarshalJSON added in v1.0.2

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

func (*EventSuccessResponse) SetSuccess added in v1.0.2

func (o *EventSuccessResponse) SetSuccess(v bool)

SetSuccess sets field value

func (EventSuccessResponse) ToMap added in v1.0.2

func (o EventSuccessResponse) ToMap() (map[string]interface{}, error)

func (*EventSuccessResponse) UnmarshalJSON added in v1.3.2

func (o *EventSuccessResponse) UnmarshalJSON(data []byte) (err error)

type EventsAPIService added in v1.0.2

type EventsAPIService service

EventsAPIService EventsAPI service

func (*EventsAPIService) EventsSendPost added in v1.0.2

EventsSendPost Send an event

Send events to trigger emails in Loops.

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

func (*EventsAPIService) EventsSendPostExecute added in v1.0.2

Execute executes the request

@return EventSuccessResponse

type GenericOpenAPIError added in v1.0.2

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

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

func (GenericOpenAPIError) Body added in v1.0.2

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error added in v1.0.2

func (e GenericOpenAPIError) Error() string

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

func (GenericOpenAPIError) Model added in v1.0.2

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type MailingList added in v1.3.0

type MailingList struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	IsPublic bool   `json:"isPublic"`
}

MailingList struct for MailingList

func NewMailingList added in v1.3.0

func NewMailingList(id string, name string, isPublic bool) *MailingList

NewMailingList instantiates a new MailingList 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 NewMailingListWithDefaults added in v1.3.0

func NewMailingListWithDefaults() *MailingList

NewMailingListWithDefaults instantiates a new MailingList 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 (*MailingList) GetId added in v1.3.0

func (o *MailingList) GetId() string

GetId returns the Id field value

func (*MailingList) GetIdOk added in v1.3.0

func (o *MailingList) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*MailingList) GetIsPublic added in v1.3.2

func (o *MailingList) GetIsPublic() bool

GetIsPublic returns the IsPublic field value

func (*MailingList) GetIsPublicOk added in v1.3.2

func (o *MailingList) GetIsPublicOk() (*bool, bool)

GetIsPublicOk returns a tuple with the IsPublic field value and a boolean to check if the value has been set.

func (*MailingList) GetName added in v1.3.0

func (o *MailingList) GetName() string

GetName returns the Name field value

func (*MailingList) GetNameOk added in v1.3.0

func (o *MailingList) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (MailingList) MarshalJSON added in v1.3.0

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

func (*MailingList) SetId added in v1.3.0

func (o *MailingList) SetId(v string)

SetId sets field value

func (*MailingList) SetIsPublic added in v1.3.2

func (o *MailingList) SetIsPublic(v bool)

SetIsPublic sets field value

func (*MailingList) SetName added in v1.3.0

func (o *MailingList) SetName(v string)

SetName sets field value

func (MailingList) ToMap added in v1.3.0

func (o MailingList) ToMap() (map[string]interface{}, error)

func (*MailingList) UnmarshalJSON added in v1.3.2

func (o *MailingList) UnmarshalJSON(data []byte) (err error)

type MailingListsAPIService added in v1.3.0

type MailingListsAPIService service

MailingListsAPIService MailingListsAPI service

func (*MailingListsAPIService) ListsGet added in v1.3.0

ListsGet Get a list of mailing lists

Retrieve a list of your account's mailing lists.

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

func (*MailingListsAPIService) ListsGetExecute added in v1.3.0

Execute executes the request

@return []MailingList

type MappedNullable added in v1.0.2

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableApiKeyGet200Response added in v1.3.2

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

func NewNullableApiKeyGet200Response added in v1.3.2

func NewNullableApiKeyGet200Response(val *ApiKeyGet200Response) *NullableApiKeyGet200Response

func (NullableApiKeyGet200Response) Get added in v1.3.2

func (NullableApiKeyGet200Response) IsSet added in v1.3.2

func (NullableApiKeyGet200Response) MarshalJSON added in v1.3.2

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

func (*NullableApiKeyGet200Response) Set added in v1.3.2

func (*NullableApiKeyGet200Response) UnmarshalJSON added in v1.3.2

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

func (*NullableApiKeyGet200Response) Unset added in v1.3.2

func (v *NullableApiKeyGet200Response) Unset()

type NullableApiKeyGet401Response added in v1.3.2

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

func NewNullableApiKeyGet401Response added in v1.3.2

func NewNullableApiKeyGet401Response(val *ApiKeyGet401Response) *NullableApiKeyGet401Response

func (NullableApiKeyGet401Response) Get added in v1.3.2

func (NullableApiKeyGet401Response) IsSet added in v1.3.2

func (NullableApiKeyGet401Response) MarshalJSON added in v1.3.2

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

func (*NullableApiKeyGet401Response) Set added in v1.3.2

func (*NullableApiKeyGet401Response) UnmarshalJSON added in v1.3.2

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

func (*NullableApiKeyGet401Response) Unset added in v1.3.2

func (v *NullableApiKeyGet401Response) Unset()

type NullableBool added in v1.0.2

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

func NewNullableBool added in v1.0.2

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get added in v1.0.2

func (v NullableBool) Get() *bool

func (NullableBool) IsSet added in v1.0.2

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON added in v1.0.2

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

func (*NullableBool) Set added in v1.0.2

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

func (*NullableBool) UnmarshalJSON added in v1.0.2

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

func (*NullableBool) Unset added in v1.0.2

func (v *NullableBool) Unset()

type NullableContact added in v1.0.2

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

func NewNullableContact added in v1.0.2

func NewNullableContact(val *Contact) *NullableContact

func (NullableContact) Get added in v1.0.2

func (v NullableContact) Get() *Contact

func (NullableContact) IsSet added in v1.0.2

func (v NullableContact) IsSet() bool

func (NullableContact) MarshalJSON added in v1.0.2

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

func (*NullableContact) Set added in v1.0.2

func (v *NullableContact) Set(val *Contact)

func (*NullableContact) UnmarshalJSON added in v1.0.2

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

func (*NullableContact) Unset added in v1.0.2

func (v *NullableContact) Unset()

type NullableContactDeleteRequest added in v1.0.2

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

func NewNullableContactDeleteRequest added in v1.0.2

func NewNullableContactDeleteRequest(val *ContactDeleteRequest) *NullableContactDeleteRequest

func (NullableContactDeleteRequest) Get added in v1.0.2

func (NullableContactDeleteRequest) IsSet added in v1.0.2

func (NullableContactDeleteRequest) MarshalJSON added in v1.0.2

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

func (*NullableContactDeleteRequest) Set added in v1.0.2

func (*NullableContactDeleteRequest) UnmarshalJSON added in v1.0.2

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

func (*NullableContactDeleteRequest) Unset added in v1.0.2

func (v *NullableContactDeleteRequest) Unset()

type NullableContactDeleteResponse added in v1.0.2

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

func NewNullableContactDeleteResponse added in v1.0.2

func NewNullableContactDeleteResponse(val *ContactDeleteResponse) *NullableContactDeleteResponse

func (NullableContactDeleteResponse) Get added in v1.0.2

func (NullableContactDeleteResponse) IsSet added in v1.0.2

func (NullableContactDeleteResponse) MarshalJSON added in v1.0.2

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

func (*NullableContactDeleteResponse) Set added in v1.0.2

func (*NullableContactDeleteResponse) UnmarshalJSON added in v1.0.2

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

func (*NullableContactDeleteResponse) Unset added in v1.0.2

func (v *NullableContactDeleteResponse) Unset()

type NullableContactFailureResponse added in v1.0.2

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

func NewNullableContactFailureResponse added in v1.0.2

func NewNullableContactFailureResponse(val *ContactFailureResponse) *NullableContactFailureResponse

func (NullableContactFailureResponse) Get added in v1.0.2

func (NullableContactFailureResponse) IsSet added in v1.0.2

func (NullableContactFailureResponse) MarshalJSON added in v1.0.2

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

func (*NullableContactFailureResponse) Set added in v1.0.2

func (*NullableContactFailureResponse) UnmarshalJSON added in v1.0.2

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

func (*NullableContactFailureResponse) Unset added in v1.0.2

func (v *NullableContactFailureResponse) Unset()

type NullableContactRequest added in v1.0.2

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

func NewNullableContactRequest added in v1.0.2

func NewNullableContactRequest(val *ContactRequest) *NullableContactRequest

func (NullableContactRequest) Get added in v1.0.2

func (NullableContactRequest) IsSet added in v1.0.2

func (v NullableContactRequest) IsSet() bool

func (NullableContactRequest) MarshalJSON added in v1.0.2

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

func (*NullableContactRequest) Set added in v1.0.2

func (*NullableContactRequest) UnmarshalJSON added in v1.0.2

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

func (*NullableContactRequest) Unset added in v1.0.2

func (v *NullableContactRequest) Unset()

type NullableContactSuccessResponse added in v1.0.2

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

func NewNullableContactSuccessResponse added in v1.0.2

func NewNullableContactSuccessResponse(val *ContactSuccessResponse) *NullableContactSuccessResponse

func (NullableContactSuccessResponse) Get added in v1.0.2

func (NullableContactSuccessResponse) IsSet added in v1.0.2

func (NullableContactSuccessResponse) MarshalJSON added in v1.0.2

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

func (*NullableContactSuccessResponse) Set added in v1.0.2

func (*NullableContactSuccessResponse) UnmarshalJSON added in v1.0.2

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

func (*NullableContactSuccessResponse) Unset added in v1.0.2

func (v *NullableContactSuccessResponse) Unset()

type NullableContactsDeletePost500Response added in v1.0.2

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

func NewNullableContactsDeletePost500Response added in v1.0.2

func NewNullableContactsDeletePost500Response(val *ContactsDeletePost500Response) *NullableContactsDeletePost500Response

func (NullableContactsDeletePost500Response) Get added in v1.0.2

func (NullableContactsDeletePost500Response) IsSet added in v1.0.2

func (NullableContactsDeletePost500Response) MarshalJSON added in v1.0.2

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

func (*NullableContactsDeletePost500Response) Set added in v1.0.2

func (*NullableContactsDeletePost500Response) UnmarshalJSON added in v1.0.2

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

func (*NullableContactsDeletePost500Response) Unset added in v1.0.2

type NullableCustomField added in v1.0.2

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

func NewNullableCustomField added in v1.0.2

func NewNullableCustomField(val *CustomField) *NullableCustomField

func (NullableCustomField) Get added in v1.0.2

func (NullableCustomField) IsSet added in v1.0.2

func (v NullableCustomField) IsSet() bool

func (NullableCustomField) MarshalJSON added in v1.0.2

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

func (*NullableCustomField) Set added in v1.0.2

func (v *NullableCustomField) Set(val *CustomField)

func (*NullableCustomField) UnmarshalJSON added in v1.0.2

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

func (*NullableCustomField) Unset added in v1.0.2

func (v *NullableCustomField) Unset()

type NullableEventFailureResponse added in v1.0.2

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

func NewNullableEventFailureResponse added in v1.0.2

func NewNullableEventFailureResponse(val *EventFailureResponse) *NullableEventFailureResponse

func (NullableEventFailureResponse) Get added in v1.0.2

func (NullableEventFailureResponse) IsSet added in v1.0.2

func (NullableEventFailureResponse) MarshalJSON added in v1.0.2

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

func (*NullableEventFailureResponse) Set added in v1.0.2

func (*NullableEventFailureResponse) UnmarshalJSON added in v1.0.2

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

func (*NullableEventFailureResponse) Unset added in v1.0.2

func (v *NullableEventFailureResponse) Unset()

type NullableEventRequest added in v1.0.2

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

func NewNullableEventRequest added in v1.0.2

func NewNullableEventRequest(val *EventRequest) *NullableEventRequest

func (NullableEventRequest) Get added in v1.0.2

func (NullableEventRequest) IsSet added in v1.0.2

func (v NullableEventRequest) IsSet() bool

func (NullableEventRequest) MarshalJSON added in v1.0.2

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

func (*NullableEventRequest) Set added in v1.0.2

func (v *NullableEventRequest) Set(val *EventRequest)

func (*NullableEventRequest) UnmarshalJSON added in v1.0.2

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

func (*NullableEventRequest) Unset added in v1.0.2

func (v *NullableEventRequest) Unset()

type NullableEventSuccessResponse added in v1.0.2

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

func NewNullableEventSuccessResponse added in v1.0.2

func NewNullableEventSuccessResponse(val *EventSuccessResponse) *NullableEventSuccessResponse

func (NullableEventSuccessResponse) Get added in v1.0.2

func (NullableEventSuccessResponse) IsSet added in v1.0.2

func (NullableEventSuccessResponse) MarshalJSON added in v1.0.2

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

func (*NullableEventSuccessResponse) Set added in v1.0.2

func (*NullableEventSuccessResponse) UnmarshalJSON added in v1.0.2

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

func (*NullableEventSuccessResponse) Unset added in v1.0.2

func (v *NullableEventSuccessResponse) Unset()

type NullableFloat32 added in v1.0.2

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

func NewNullableFloat32 added in v1.0.2

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get added in v1.0.2

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet added in v1.0.2

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON added in v1.0.2

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

func (*NullableFloat32) Set added in v1.0.2

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

func (*NullableFloat32) UnmarshalJSON added in v1.0.2

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

func (*NullableFloat32) Unset added in v1.0.2

func (v *NullableFloat32) Unset()

type NullableFloat64 added in v1.0.2

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

func NewNullableFloat64 added in v1.0.2

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get added in v1.0.2

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet added in v1.0.2

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON added in v1.0.2

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

func (*NullableFloat64) Set added in v1.0.2

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

func (*NullableFloat64) UnmarshalJSON added in v1.0.2

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

func (*NullableFloat64) Unset added in v1.0.2

func (v *NullableFloat64) Unset()

type NullableInt added in v1.0.2

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

func NewNullableInt added in v1.0.2

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get added in v1.0.2

func (v NullableInt) Get() *int

func (NullableInt) IsSet added in v1.0.2

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON added in v1.0.2

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

func (*NullableInt) Set added in v1.0.2

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

func (*NullableInt) UnmarshalJSON added in v1.0.2

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

func (*NullableInt) Unset added in v1.0.2

func (v *NullableInt) Unset()

type NullableInt32 added in v1.0.2

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

func NewNullableInt32 added in v1.0.2

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get added in v1.0.2

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet added in v1.0.2

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON added in v1.0.2

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

func (*NullableInt32) Set added in v1.0.2

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

func (*NullableInt32) UnmarshalJSON added in v1.0.2

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

func (*NullableInt32) Unset added in v1.0.2

func (v *NullableInt32) Unset()

type NullableInt64 added in v1.0.2

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

func NewNullableInt64 added in v1.0.2

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get added in v1.0.2

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet added in v1.0.2

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON added in v1.0.2

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

func (*NullableInt64) Set added in v1.0.2

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

func (*NullableInt64) UnmarshalJSON added in v1.0.2

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

func (*NullableInt64) Unset added in v1.0.2

func (v *NullableInt64) Unset()

type NullableMailingList added in v1.3.0

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

func NewNullableMailingList added in v1.3.0

func NewNullableMailingList(val *MailingList) *NullableMailingList

func (NullableMailingList) Get added in v1.3.0

func (NullableMailingList) IsSet added in v1.3.0

func (v NullableMailingList) IsSet() bool

func (NullableMailingList) MarshalJSON added in v1.3.0

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

func (*NullableMailingList) Set added in v1.3.0

func (v *NullableMailingList) Set(val *MailingList)

func (*NullableMailingList) UnmarshalJSON added in v1.3.0

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

func (*NullableMailingList) Unset added in v1.3.0

func (v *NullableMailingList) Unset()

type NullableString added in v1.0.2

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

func NewNullableString added in v1.0.2

func NewNullableString(val *string) *NullableString

func (NullableString) Get added in v1.0.2

func (v NullableString) Get() *string

func (NullableString) IsSet added in v1.0.2

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON added in v1.0.2

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

func (*NullableString) Set added in v1.0.2

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

func (*NullableString) UnmarshalJSON added in v1.0.2

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

func (*NullableString) Unset added in v1.0.2

func (v *NullableString) Unset()

type NullableTime added in v1.0.2

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

func NewNullableTime added in v1.0.2

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get added in v1.0.2

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

func (NullableTime) IsSet added in v1.0.2

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON added in v1.0.2

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

func (*NullableTime) Set added in v1.0.2

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

func (*NullableTime) UnmarshalJSON added in v1.0.2

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

func (*NullableTime) Unset added in v1.0.2

func (v *NullableTime) Unset()

type NullableTransactionalFailure2Response added in v1.0.2

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

func NewNullableTransactionalFailure2Response added in v1.0.2

func NewNullableTransactionalFailure2Response(val *TransactionalFailure2Response) *NullableTransactionalFailure2Response

func (NullableTransactionalFailure2Response) Get added in v1.0.2

func (NullableTransactionalFailure2Response) IsSet added in v1.0.2

func (NullableTransactionalFailure2Response) MarshalJSON added in v1.0.2

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

func (*NullableTransactionalFailure2Response) Set added in v1.0.2

func (*NullableTransactionalFailure2Response) UnmarshalJSON added in v1.0.2

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

func (*NullableTransactionalFailure2Response) Unset added in v1.0.2

type NullableTransactionalFailure2ResponseError added in v1.0.2

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

func NewNullableTransactionalFailure2ResponseError added in v1.0.2

func NewNullableTransactionalFailure2ResponseError(val *TransactionalFailure2ResponseError) *NullableTransactionalFailure2ResponseError

func (NullableTransactionalFailure2ResponseError) Get added in v1.0.2

func (NullableTransactionalFailure2ResponseError) IsSet added in v1.0.2

func (NullableTransactionalFailure2ResponseError) MarshalJSON added in v1.0.2

func (*NullableTransactionalFailure2ResponseError) Set added in v1.0.2

func (*NullableTransactionalFailure2ResponseError) UnmarshalJSON added in v1.0.2

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

func (*NullableTransactionalFailure2ResponseError) Unset added in v1.0.2

type NullableTransactionalFailure3Response added in v1.0.2

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

func NewNullableTransactionalFailure3Response added in v1.0.2

func NewNullableTransactionalFailure3Response(val *TransactionalFailure3Response) *NullableTransactionalFailure3Response

func (NullableTransactionalFailure3Response) Get added in v1.0.2

func (NullableTransactionalFailure3Response) IsSet added in v1.0.2

func (NullableTransactionalFailure3Response) MarshalJSON added in v1.0.2

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

func (*NullableTransactionalFailure3Response) Set added in v1.0.2

func (*NullableTransactionalFailure3Response) UnmarshalJSON added in v1.0.2

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

func (*NullableTransactionalFailure3Response) Unset added in v1.0.2

type NullableTransactionalFailureResponse added in v1.0.2

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

func NewNullableTransactionalFailureResponse added in v1.0.2

func NewNullableTransactionalFailureResponse(val *TransactionalFailureResponse) *NullableTransactionalFailureResponse

func (NullableTransactionalFailureResponse) Get added in v1.0.2

func (NullableTransactionalFailureResponse) IsSet added in v1.0.2

func (NullableTransactionalFailureResponse) MarshalJSON added in v1.0.2

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

func (*NullableTransactionalFailureResponse) Set added in v1.0.2

func (*NullableTransactionalFailureResponse) UnmarshalJSON added in v1.0.2

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

func (*NullableTransactionalFailureResponse) Unset added in v1.0.2

type NullableTransactionalPost400Response added in v1.0.2

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

func NewNullableTransactionalPost400Response added in v1.0.2

func NewNullableTransactionalPost400Response(val *TransactionalPost400Response) *NullableTransactionalPost400Response

func (NullableTransactionalPost400Response) Get added in v1.0.2

func (NullableTransactionalPost400Response) IsSet added in v1.0.2

func (NullableTransactionalPost400Response) MarshalJSON added in v1.0.2

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

func (*NullableTransactionalPost400Response) Set added in v1.0.2

func (*NullableTransactionalPost400Response) UnmarshalJSON added in v1.0.2

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

func (*NullableTransactionalPost400Response) Unset added in v1.0.2

type NullableTransactionalRequest added in v1.0.2

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

func NewNullableTransactionalRequest added in v1.0.2

func NewNullableTransactionalRequest(val *TransactionalRequest) *NullableTransactionalRequest

func (NullableTransactionalRequest) Get added in v1.0.2

func (NullableTransactionalRequest) IsSet added in v1.0.2

func (NullableTransactionalRequest) MarshalJSON added in v1.0.2

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

func (*NullableTransactionalRequest) Set added in v1.0.2

func (*NullableTransactionalRequest) UnmarshalJSON added in v1.0.2

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

func (*NullableTransactionalRequest) Unset added in v1.0.2

func (v *NullableTransactionalRequest) Unset()

type NullableTransactionalRequestAttachmentsInner added in v1.3.2

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

func NewNullableTransactionalRequestAttachmentsInner added in v1.3.2

func NewNullableTransactionalRequestAttachmentsInner(val *TransactionalRequestAttachmentsInner) *NullableTransactionalRequestAttachmentsInner

func (NullableTransactionalRequestAttachmentsInner) Get added in v1.3.2

func (NullableTransactionalRequestAttachmentsInner) IsSet added in v1.3.2

func (NullableTransactionalRequestAttachmentsInner) MarshalJSON added in v1.3.2

func (*NullableTransactionalRequestAttachmentsInner) Set added in v1.3.2

func (*NullableTransactionalRequestAttachmentsInner) UnmarshalJSON added in v1.3.2

func (*NullableTransactionalRequestAttachmentsInner) Unset added in v1.3.2

type NullableTransactionalSuccessResponse added in v1.0.2

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

func NewNullableTransactionalSuccessResponse added in v1.0.2

func NewNullableTransactionalSuccessResponse(val *TransactionalSuccessResponse) *NullableTransactionalSuccessResponse

func (NullableTransactionalSuccessResponse) Get added in v1.0.2

func (NullableTransactionalSuccessResponse) IsSet added in v1.0.2

func (NullableTransactionalSuccessResponse) MarshalJSON added in v1.0.2

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

func (*NullableTransactionalSuccessResponse) Set added in v1.0.2

func (*NullableTransactionalSuccessResponse) UnmarshalJSON added in v1.0.2

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

func (*NullableTransactionalSuccessResponse) Unset added in v1.0.2

type ServerConfiguration added in v1.0.2

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

ServerConfiguration stores the information about a server

type ServerConfigurations added in v1.0.2

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL added in v1.0.2

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

URL formats template on a index using given variables

type ServerVariable added in v1.0.2

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

ServerVariable stores the information about a server variable

type TransactionalEmailsAPIService added in v1.0.2

type TransactionalEmailsAPIService service

TransactionalEmailsAPIService TransactionalEmailsAPI service

func (*TransactionalEmailsAPIService) TransactionalPost added in v1.0.2

TransactionalPost Send a transactional email

Send a transactional email to a contact.

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

func (*TransactionalEmailsAPIService) TransactionalPostExecute added in v1.0.2

Execute executes the request

@return TransactionalSuccessResponse

type TransactionalFailure2Response

type TransactionalFailure2Response struct {
	Success bool                               `json:"success"`
	Error   TransactionalFailure2ResponseError `json:"error"`
}

TransactionalFailure2Response struct for TransactionalFailure2Response

func NewTransactionalFailure2Response added in v1.0.2

func NewTransactionalFailure2Response(success bool, error_ TransactionalFailure2ResponseError) *TransactionalFailure2Response

NewTransactionalFailure2Response instantiates a new TransactionalFailure2Response 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 NewTransactionalFailure2ResponseWithDefaults added in v1.0.2

func NewTransactionalFailure2ResponseWithDefaults() *TransactionalFailure2Response

NewTransactionalFailure2ResponseWithDefaults instantiates a new TransactionalFailure2Response 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 (*TransactionalFailure2Response) GetError added in v1.0.2

GetError returns the Error field value

func (*TransactionalFailure2Response) GetErrorOk added in v1.0.2

GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.

func (*TransactionalFailure2Response) GetSuccess added in v1.0.2

func (o *TransactionalFailure2Response) GetSuccess() bool

GetSuccess returns the Success field value

func (*TransactionalFailure2Response) GetSuccessOk added in v1.0.2

func (o *TransactionalFailure2Response) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set.

func (TransactionalFailure2Response) MarshalJSON added in v1.0.2

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

func (*TransactionalFailure2Response) SetError added in v1.0.2

SetError sets field value

func (*TransactionalFailure2Response) SetSuccess added in v1.0.2

func (o *TransactionalFailure2Response) SetSuccess(v bool)

SetSuccess sets field value

func (TransactionalFailure2Response) ToMap added in v1.0.2

func (o TransactionalFailure2Response) ToMap() (map[string]interface{}, error)

func (*TransactionalFailure2Response) UnmarshalJSON added in v1.3.2

func (o *TransactionalFailure2Response) UnmarshalJSON(data []byte) (err error)

type TransactionalFailure2ResponseError added in v1.0.2

type TransactionalFailure2ResponseError struct {
	Path    *string `json:"path,omitempty"`
	Message *string `json:"message,omitempty"`
}

TransactionalFailure2ResponseError struct for TransactionalFailure2ResponseError

func NewTransactionalFailure2ResponseError added in v1.0.2

func NewTransactionalFailure2ResponseError() *TransactionalFailure2ResponseError

NewTransactionalFailure2ResponseError instantiates a new TransactionalFailure2ResponseError 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 NewTransactionalFailure2ResponseErrorWithDefaults added in v1.0.2

func NewTransactionalFailure2ResponseErrorWithDefaults() *TransactionalFailure2ResponseError

NewTransactionalFailure2ResponseErrorWithDefaults instantiates a new TransactionalFailure2ResponseError 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 (*TransactionalFailure2ResponseError) GetMessage added in v1.0.2

GetMessage returns the Message field value if set, zero value otherwise.

func (*TransactionalFailure2ResponseError) GetMessageOk added in v1.0.2

func (o *TransactionalFailure2ResponseError) GetMessageOk() (*string, bool)

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

func (*TransactionalFailure2ResponseError) GetPath added in v1.0.2

GetPath returns the Path field value if set, zero value otherwise.

func (*TransactionalFailure2ResponseError) GetPathOk added in v1.0.2

func (o *TransactionalFailure2ResponseError) GetPathOk() (*string, bool)

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

func (*TransactionalFailure2ResponseError) HasMessage added in v1.0.2

func (o *TransactionalFailure2ResponseError) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*TransactionalFailure2ResponseError) HasPath added in v1.0.2

HasPath returns a boolean if a field has been set.

func (TransactionalFailure2ResponseError) MarshalJSON added in v1.0.2

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

func (*TransactionalFailure2ResponseError) SetMessage added in v1.0.2

func (o *TransactionalFailure2ResponseError) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*TransactionalFailure2ResponseError) SetPath added in v1.0.2

SetPath gets a reference to the given string and assigns it to the Path field.

func (TransactionalFailure2ResponseError) ToMap added in v1.0.2

func (o TransactionalFailure2ResponseError) ToMap() (map[string]interface{}, error)

type TransactionalFailure3Response

type TransactionalFailure3Response struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

TransactionalFailure3Response struct for TransactionalFailure3Response

func NewTransactionalFailure3Response added in v1.0.2

func NewTransactionalFailure3Response(success bool, message string) *TransactionalFailure3Response

NewTransactionalFailure3Response instantiates a new TransactionalFailure3Response 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 NewTransactionalFailure3ResponseWithDefaults added in v1.0.2

func NewTransactionalFailure3ResponseWithDefaults() *TransactionalFailure3Response

NewTransactionalFailure3ResponseWithDefaults instantiates a new TransactionalFailure3Response 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 (*TransactionalFailure3Response) GetMessage added in v1.0.2

func (o *TransactionalFailure3Response) GetMessage() string

GetMessage returns the Message field value

func (*TransactionalFailure3Response) GetMessageOk added in v1.0.2

func (o *TransactionalFailure3Response) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*TransactionalFailure3Response) GetSuccess added in v1.0.2

func (o *TransactionalFailure3Response) GetSuccess() bool

GetSuccess returns the Success field value

func (*TransactionalFailure3Response) GetSuccessOk added in v1.0.2

func (o *TransactionalFailure3Response) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set.

func (TransactionalFailure3Response) MarshalJSON added in v1.0.2

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

func (*TransactionalFailure3Response) SetMessage added in v1.0.2

func (o *TransactionalFailure3Response) SetMessage(v string)

SetMessage sets field value

func (*TransactionalFailure3Response) SetSuccess added in v1.0.2

func (o *TransactionalFailure3Response) SetSuccess(v bool)

SetSuccess sets field value

func (TransactionalFailure3Response) ToMap added in v1.0.2

func (o TransactionalFailure3Response) ToMap() (map[string]interface{}, error)

func (*TransactionalFailure3Response) UnmarshalJSON added in v1.3.2

func (o *TransactionalFailure3Response) UnmarshalJSON(data []byte) (err error)

type TransactionalFailureResponse

type TransactionalFailureResponse struct {
	Success bool   `json:"success"`
	Path    string `json:"path"`
	Message string `json:"message"`
}

TransactionalFailureResponse struct for TransactionalFailureResponse

func NewTransactionalFailureResponse added in v1.0.2

func NewTransactionalFailureResponse(success bool, path string, message string) *TransactionalFailureResponse

NewTransactionalFailureResponse instantiates a new TransactionalFailureResponse 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 NewTransactionalFailureResponseWithDefaults added in v1.0.2

func NewTransactionalFailureResponseWithDefaults() *TransactionalFailureResponse

NewTransactionalFailureResponseWithDefaults instantiates a new TransactionalFailureResponse 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 (*TransactionalFailureResponse) GetMessage added in v1.0.2

func (o *TransactionalFailureResponse) GetMessage() string

GetMessage returns the Message field value

func (*TransactionalFailureResponse) GetMessageOk added in v1.0.2

func (o *TransactionalFailureResponse) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*TransactionalFailureResponse) GetPath added in v1.0.2

func (o *TransactionalFailureResponse) GetPath() string

GetPath returns the Path field value

func (*TransactionalFailureResponse) GetPathOk added in v1.0.2

func (o *TransactionalFailureResponse) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (*TransactionalFailureResponse) GetSuccess added in v1.0.2

func (o *TransactionalFailureResponse) GetSuccess() bool

GetSuccess returns the Success field value

func (*TransactionalFailureResponse) GetSuccessOk added in v1.0.2

func (o *TransactionalFailureResponse) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set.

func (TransactionalFailureResponse) MarshalJSON added in v1.0.2

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

func (*TransactionalFailureResponse) SetMessage added in v1.0.2

func (o *TransactionalFailureResponse) SetMessage(v string)

SetMessage sets field value

func (*TransactionalFailureResponse) SetPath added in v1.0.2

func (o *TransactionalFailureResponse) SetPath(v string)

SetPath sets field value

func (*TransactionalFailureResponse) SetSuccess added in v1.0.2

func (o *TransactionalFailureResponse) SetSuccess(v bool)

SetSuccess sets field value

func (TransactionalFailureResponse) ToMap added in v1.0.2

func (o TransactionalFailureResponse) ToMap() (map[string]interface{}, error)

func (*TransactionalFailureResponse) UnmarshalJSON added in v1.3.2

func (o *TransactionalFailureResponse) UnmarshalJSON(data []byte) (err error)

type TransactionalPost400Response added in v1.0.2

type TransactionalPost400Response struct {
	TransactionalFailure2Response *TransactionalFailure2Response
	TransactionalFailure3Response *TransactionalFailure3Response
	TransactionalFailureResponse  *TransactionalFailureResponse
}

TransactionalPost400Response - struct for TransactionalPost400Response

func TransactionalFailure2ResponseAsTransactionalPost400Response added in v1.0.2

func TransactionalFailure2ResponseAsTransactionalPost400Response(v *TransactionalFailure2Response) TransactionalPost400Response

TransactionalFailure2ResponseAsTransactionalPost400Response is a convenience function that returns TransactionalFailure2Response wrapped in TransactionalPost400Response

func TransactionalFailure3ResponseAsTransactionalPost400Response added in v1.0.2

func TransactionalFailure3ResponseAsTransactionalPost400Response(v *TransactionalFailure3Response) TransactionalPost400Response

TransactionalFailure3ResponseAsTransactionalPost400Response is a convenience function that returns TransactionalFailure3Response wrapped in TransactionalPost400Response

func TransactionalFailureResponseAsTransactionalPost400Response added in v1.0.2

func TransactionalFailureResponseAsTransactionalPost400Response(v *TransactionalFailureResponse) TransactionalPost400Response

TransactionalFailureResponseAsTransactionalPost400Response is a convenience function that returns TransactionalFailureResponse wrapped in TransactionalPost400Response

func (*TransactionalPost400Response) GetActualInstance added in v1.0.2

func (obj *TransactionalPost400Response) GetActualInstance() interface{}

Get the actual instance

func (TransactionalPost400Response) MarshalJSON added in v1.0.2

func (src TransactionalPost400Response) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*TransactionalPost400Response) UnmarshalJSON added in v1.0.2

func (dst *TransactionalPost400Response) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type TransactionalRequest

type TransactionalRequest struct {
	Email string `json:"email"`
	// The ID of the transactional email to send.
	TransactionalId string `json:"transactionalId"`
	// If `true`, a contact will be created in your audience using the `email` value (if a matching contact doesn't already exist).
	AddToAudience *bool `json:"addToAudience,omitempty"`
	// An object containing contact data as defined by the data variables added to the transactional email template.
	DataVariables map[string]interface{} `json:"dataVariables,omitempty"`
	// A list containing file objects to be sent along with an email message.
	Attachments []TransactionalRequestAttachmentsInner `json:"attachments,omitempty"`
}

TransactionalRequest struct for TransactionalRequest

func NewTransactionalRequest added in v1.0.2

func NewTransactionalRequest(email string, transactionalId string) *TransactionalRequest

NewTransactionalRequest instantiates a new TransactionalRequest 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 NewTransactionalRequestWithDefaults added in v1.0.2

func NewTransactionalRequestWithDefaults() *TransactionalRequest

NewTransactionalRequestWithDefaults instantiates a new TransactionalRequest 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 (*TransactionalRequest) GetAddToAudience added in v1.3.0

func (o *TransactionalRequest) GetAddToAudience() bool

GetAddToAudience returns the AddToAudience field value if set, zero value otherwise.

func (*TransactionalRequest) GetAddToAudienceOk added in v1.3.0

func (o *TransactionalRequest) GetAddToAudienceOk() (*bool, bool)

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

func (*TransactionalRequest) GetAttachments added in v1.3.2

GetAttachments returns the Attachments field value if set, zero value otherwise.

func (*TransactionalRequest) GetAttachmentsOk added in v1.3.2

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

func (*TransactionalRequest) GetDataVariables added in v1.0.2

func (o *TransactionalRequest) GetDataVariables() map[string]interface{}

GetDataVariables returns the DataVariables field value if set, zero value otherwise.

func (*TransactionalRequest) GetDataVariablesOk added in v1.0.2

func (o *TransactionalRequest) GetDataVariablesOk() (map[string]interface{}, bool)

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

func (*TransactionalRequest) GetEmail added in v1.0.2

func (o *TransactionalRequest) GetEmail() string

GetEmail returns the Email field value

func (*TransactionalRequest) GetEmailOk added in v1.0.2

func (o *TransactionalRequest) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.

func (*TransactionalRequest) GetTransactionalId added in v1.0.2

func (o *TransactionalRequest) GetTransactionalId() string

GetTransactionalId returns the TransactionalId field value

func (*TransactionalRequest) GetTransactionalIdOk added in v1.0.2

func (o *TransactionalRequest) GetTransactionalIdOk() (*string, bool)

GetTransactionalIdOk returns a tuple with the TransactionalId field value and a boolean to check if the value has been set.

func (*TransactionalRequest) HasAddToAudience added in v1.3.0

func (o *TransactionalRequest) HasAddToAudience() bool

HasAddToAudience returns a boolean if a field has been set.

func (*TransactionalRequest) HasAttachments added in v1.3.2

func (o *TransactionalRequest) HasAttachments() bool

HasAttachments returns a boolean if a field has been set.

func (*TransactionalRequest) HasDataVariables added in v1.0.2

func (o *TransactionalRequest) HasDataVariables() bool

HasDataVariables returns a boolean if a field has been set.

func (TransactionalRequest) MarshalJSON added in v1.0.2

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

func (*TransactionalRequest) SetAddToAudience added in v1.3.0

func (o *TransactionalRequest) SetAddToAudience(v bool)

SetAddToAudience gets a reference to the given bool and assigns it to the AddToAudience field.

func (*TransactionalRequest) SetAttachments added in v1.3.2

SetAttachments gets a reference to the given []TransactionalRequestAttachmentsInner and assigns it to the Attachments field.

func (*TransactionalRequest) SetDataVariables added in v1.0.2

func (o *TransactionalRequest) SetDataVariables(v map[string]interface{})

SetDataVariables gets a reference to the given map[string]interface{} and assigns it to the DataVariables field.

func (*TransactionalRequest) SetEmail added in v1.0.2

func (o *TransactionalRequest) SetEmail(v string)

SetEmail sets field value

func (*TransactionalRequest) SetTransactionalId added in v1.0.2

func (o *TransactionalRequest) SetTransactionalId(v string)

SetTransactionalId sets field value

func (TransactionalRequest) ToMap added in v1.0.2

func (o TransactionalRequest) ToMap() (map[string]interface{}, error)

func (*TransactionalRequest) UnmarshalJSON added in v1.0.2

func (o *TransactionalRequest) UnmarshalJSON(data []byte) (err error)

type TransactionalRequestAttachmentsInner added in v1.3.2

type TransactionalRequestAttachmentsInner struct {
	// The name of the file, shown in email clients.
	Filename string `json:"filename"`
	// The MIME type of the file.
	ContentType string `json:"contentType"`
	// The base64-encoded content of the file.
	Data string `json:"data"`
}

TransactionalRequestAttachmentsInner struct for TransactionalRequestAttachmentsInner

func NewTransactionalRequestAttachmentsInner added in v1.3.2

func NewTransactionalRequestAttachmentsInner(filename string, contentType string, data string) *TransactionalRequestAttachmentsInner

NewTransactionalRequestAttachmentsInner instantiates a new TransactionalRequestAttachmentsInner 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 NewTransactionalRequestAttachmentsInnerWithDefaults added in v1.3.2

func NewTransactionalRequestAttachmentsInnerWithDefaults() *TransactionalRequestAttachmentsInner

NewTransactionalRequestAttachmentsInnerWithDefaults instantiates a new TransactionalRequestAttachmentsInner 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 (*TransactionalRequestAttachmentsInner) GetContentType added in v1.3.2

func (o *TransactionalRequestAttachmentsInner) GetContentType() string

GetContentType returns the ContentType field value

func (*TransactionalRequestAttachmentsInner) GetContentTypeOk added in v1.3.2

func (o *TransactionalRequestAttachmentsInner) GetContentTypeOk() (*string, bool)

GetContentTypeOk returns a tuple with the ContentType field value and a boolean to check if the value has been set.

func (*TransactionalRequestAttachmentsInner) GetData added in v1.3.2

GetData returns the Data field value

func (*TransactionalRequestAttachmentsInner) GetDataOk added in v1.3.2

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*TransactionalRequestAttachmentsInner) GetFilename added in v1.3.2

GetFilename returns the Filename field value

func (*TransactionalRequestAttachmentsInner) GetFilenameOk added in v1.3.2

func (o *TransactionalRequestAttachmentsInner) GetFilenameOk() (*string, bool)

GetFilenameOk returns a tuple with the Filename field value and a boolean to check if the value has been set.

func (TransactionalRequestAttachmentsInner) MarshalJSON added in v1.3.2

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

func (*TransactionalRequestAttachmentsInner) SetContentType added in v1.3.2

func (o *TransactionalRequestAttachmentsInner) SetContentType(v string)

SetContentType sets field value

func (*TransactionalRequestAttachmentsInner) SetData added in v1.3.2

SetData sets field value

func (*TransactionalRequestAttachmentsInner) SetFilename added in v1.3.2

func (o *TransactionalRequestAttachmentsInner) SetFilename(v string)

SetFilename sets field value

func (TransactionalRequestAttachmentsInner) ToMap added in v1.3.2

func (o TransactionalRequestAttachmentsInner) ToMap() (map[string]interface{}, error)

func (*TransactionalRequestAttachmentsInner) UnmarshalJSON added in v1.3.2

func (o *TransactionalRequestAttachmentsInner) UnmarshalJSON(data []byte) (err error)

type TransactionalSuccessResponse

type TransactionalSuccessResponse struct {
	Success bool `json:"success"`
}

TransactionalSuccessResponse struct for TransactionalSuccessResponse

func NewTransactionalSuccessResponse added in v1.0.2

func NewTransactionalSuccessResponse(success bool) *TransactionalSuccessResponse

NewTransactionalSuccessResponse instantiates a new TransactionalSuccessResponse 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 NewTransactionalSuccessResponseWithDefaults added in v1.0.2

func NewTransactionalSuccessResponseWithDefaults() *TransactionalSuccessResponse

NewTransactionalSuccessResponseWithDefaults instantiates a new TransactionalSuccessResponse 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 (*TransactionalSuccessResponse) GetSuccess added in v1.0.2

func (o *TransactionalSuccessResponse) GetSuccess() bool

GetSuccess returns the Success field value

func (*TransactionalSuccessResponse) GetSuccessOk added in v1.0.2

func (o *TransactionalSuccessResponse) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set.

func (TransactionalSuccessResponse) MarshalJSON added in v1.0.2

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

func (*TransactionalSuccessResponse) SetSuccess added in v1.0.2

func (o *TransactionalSuccessResponse) SetSuccess(v bool)

SetSuccess sets field value

func (TransactionalSuccessResponse) ToMap added in v1.0.2

func (o TransactionalSuccessResponse) ToMap() (map[string]interface{}, error)

func (*TransactionalSuccessResponse) UnmarshalJSON added in v1.3.2

func (o *TransactionalSuccessResponse) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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