marketingeventsbeta

package
v0.0.0-...-2284865 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package marketingeventsbeta provides primitives to interact with the openapi HTTP API.

Code generated by github.com/faetools/devtool version (devel) DO NOT EDIT.

Package marketingeventsbeta provides primitives to interact with the openapi HTTP API.

Code generated by github.com/faetools/devtool version (devel) DO NOT EDIT.

Index

Constants

View Source
const (
	Developer_hapikeyScopes = "developer_hapikey.Scopes"
	HapikeyScopes           = "hapikey.Scopes"
	Oauth2_legacyScopes     = "oauth2_legacy.Scopes"
)
View Source
const DefaultServer = "https://api.hubapi.com/"

DefaultServer is the default server to be used.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchInputMarketingEventCreateRequestParams

type BatchInputMarketingEventCreateRequestParams struct {
	Inputs []MarketingEventCreateRequestParams `json:"inputs"`
}

BatchInputMarketingEventCreateRequestParams defines model for BatchInputMarketingEventCreateRequestParams.

type BatchInputMarketingEventEmailSubscriber

type BatchInputMarketingEventEmailSubscriber struct {
	// List of marketing event details to create or update
	Inputs []MarketingEventEmailSubscriber `json:"inputs"`
}

List of marketing event details to create or update

type BatchInputMarketingEventExternalUniqueIdentifier

type BatchInputMarketingEventExternalUniqueIdentifier struct {
	Inputs []MarketingEventExternalUniqueIdentifier `json:"inputs"`
}

BatchInputMarketingEventExternalUniqueIdentifier defines model for BatchInputMarketingEventExternalUniqueIdentifier.

type BatchInputMarketingEventSubscriber

type BatchInputMarketingEventSubscriber struct {
	// List of HubSpot contacts to subscribe to the marketing event
	Inputs []MarketingEventSubscriber `json:"inputs"`
}

List of HubSpot contacts to subscribe to the marketing event

type BatchResponseMarketingEventPublicDefaultResponse

type BatchResponseMarketingEventPublicDefaultResponse struct {
	CompletedAt time.Time                                               `json:"completedAt"`
	Errors      *[]StandardError                                        `json:"errors,omitempty"`
	Links       *BatchResponseMarketingEventPublicDefaultResponse_Links `json:"links,omitempty"`
	NumErrors   *int32                                                  `json:"numErrors,omitempty"`
	RequestedAt *time.Time                                              `json:"requestedAt,omitempty"`
	Results     []MarketingEventPublicDefaultResponse                   `json:"results"`
	StartedAt   time.Time                                               `json:"startedAt"`
	Status      BatchResponseMarketingEventPublicDefaultResponseStatus  `json:"status"`
}

BatchResponseMarketingEventPublicDefaultResponse defines model for BatchResponseMarketingEventPublicDefaultResponse.

type BatchResponseMarketingEventPublicDefaultResponseStatus

type BatchResponseMarketingEventPublicDefaultResponseStatus string

BatchResponseMarketingEventPublicDefaultResponseStatus defines model for BatchResponseMarketingEventPublicDefaultResponse.Status.

const (
	BatchResponseMarketingEventPublicDefaultResponseStatusCANCELED BatchResponseMarketingEventPublicDefaultResponseStatus = "CANCELED"

	BatchResponseMarketingEventPublicDefaultResponseStatusCOMPLETE BatchResponseMarketingEventPublicDefaultResponseStatus = "COMPLETE"

	BatchResponseMarketingEventPublicDefaultResponseStatusPENDING BatchResponseMarketingEventPublicDefaultResponseStatus = "PENDING"

	BatchResponseMarketingEventPublicDefaultResponseStatusPROCESSING BatchResponseMarketingEventPublicDefaultResponseStatus = "PROCESSING"
)

Defines values for BatchResponseMarketingEventPublicDefaultResponseStatus.

type BatchResponseMarketingEventPublicDefaultResponse_Links struct {
	AdditionalProperties map[string]string `json:"-"`
}

BatchResponseMarketingEventPublicDefaultResponse_Links defines model for BatchResponseMarketingEventPublicDefaultResponse.Links.

func (BatchResponseMarketingEventPublicDefaultResponse_Links) Get

Getter for additional properties for BatchResponseMarketingEventPublicDefaultResponse_Links. Returns the specified element and whether it was found

func (BatchResponseMarketingEventPublicDefaultResponse_Links) MarshalJSON

Override default JSON handling for BatchResponseMarketingEventPublicDefaultResponse_Links to handle AdditionalProperties

func (*BatchResponseMarketingEventPublicDefaultResponse_Links) Set

Setter for additional properties for BatchResponseMarketingEventPublicDefaultResponse_Links

func (*BatchResponseMarketingEventPublicDefaultResponse_Links) UnmarshalJSON

Override default JSON handling for BatchResponseMarketingEventPublicDefaultResponse_Links to handle AdditionalProperties

type CancelExternalEventParams

type CancelExternalEventParams struct {
	// The account id associated with the marketing event
	ExternalAccountId string `json:"externalAccountId"`
}

CancelExternalEventParams defines parameters for CancelExternalEvent.

type CancelExternalEventResponse

type CancelExternalEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MarketingEventDefaultResponse
}

func (CancelExternalEventResponse) Status

Status returns HTTPResponse.Status

func (CancelExternalEventResponse) StatusCode

func (r CancelExternalEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Client

type Client client.Client

Client conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(opts ...client.Option) (*Client, error)

NewClient creates a new Client with reasonable defaults.

func (*Client) CancelExternalEvent

func (c *Client) CancelExternalEvent(ctx context.Context, externalEventId string, params *CancelExternalEventParams, reqEditors ...client.RequestEditorFn) (*CancelExternalEventResponse, error)

CancelExternalEvent request returning *CancelExternalEventResponse

func (*Client) DeleteEvents

func (c *Client) DeleteEvents(ctx context.Context, body DeleteEventsJSONRequestBody, reqEditors ...client.RequestEditorFn) (*DeleteEventsResponse, error)

func (*Client) DeleteEventsWithBody

func (c *Client) DeleteEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*DeleteEventsResponse, error)

DeleteEventsWithBody request with arbitrary body returning *DeleteEventsResponse

func (*Client) DeleteExternalEvent

func (c *Client) DeleteExternalEvent(ctx context.Context, externalEventId string, params *DeleteExternalEventParams, reqEditors ...client.RequestEditorFn) (*DeleteExternalEventResponse, error)

DeleteExternalEvent request returning *DeleteExternalEventResponse

func (*Client) EmailUpsertSubscriberState

func (c *Client) EmailUpsertSubscriberState(ctx context.Context, externalEventId string, subscriberState string, params *EmailUpsertSubscriberStateParams, body EmailUpsertSubscriberStateJSONRequestBody, reqEditors ...client.RequestEditorFn) (*EmailUpsertSubscriberStateResponse, error)

func (*Client) EmailUpsertSubscriberStateWithBody

func (c *Client) EmailUpsertSubscriberStateWithBody(ctx context.Context, externalEventId string, subscriberState string, params *EmailUpsertSubscriberStateParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*EmailUpsertSubscriberStateResponse, error)

EmailUpsertSubscriberStateWithBody request with arbitrary body returning *EmailUpsertSubscriberStateResponse

func (*Client) EventsMarketingEventsWithBody

func (c *Client) EventsMarketingEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*EventsMarketingEventsResponse, error)

EventsMarketingEventsWithBody request with arbitrary body returning *EventsMarketingEventsResponse

func (*Client) GetAppSettings

func (c *Client) GetAppSettings(ctx context.Context, appId int32, reqEditors ...client.RequestEditorFn) (*GetAppSettingsResponse, error)

GetAppSettings request returning *GetAppSettingsResponse

func (*Client) GetExternalEvent

func (c *Client) GetExternalEvent(ctx context.Context, externalEventId string, params *GetExternalEventParams, reqEditors ...client.RequestEditorFn) (*GetExternalEventResponse, error)

GetExternalEvent request returning *GetExternalEventResponse

func (*Client) PatchExternalEvent

func (c *Client) PatchExternalEvent(ctx context.Context, externalEventId string, params *PatchExternalEventParams, body PatchExternalEventJSONRequestBody, reqEditors ...client.RequestEditorFn) (*PatchExternalEventResponse, error)

func (*Client) PatchExternalEventWithBody

func (c *Client) PatchExternalEventWithBody(ctx context.Context, externalEventId string, params *PatchExternalEventParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*PatchExternalEventResponse, error)

PatchExternalEventWithBody request with arbitrary body returning *PatchExternalEventResponse

func (*Client) PostAppSettings

func (c *Client) PostAppSettings(ctx context.Context, appId int32, body PostAppSettingsJSONRequestBody, reqEditors ...client.RequestEditorFn) (*PostAppSettingsResponse, error)

func (*Client) PostAppSettingsWithBody

func (c *Client) PostAppSettingsWithBody(ctx context.Context, appId int32, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*PostAppSettingsResponse, error)

PostAppSettingsWithBody request with arbitrary body returning *PostAppSettingsResponse

func (*Client) PutExternalEvent

func (c *Client) PutExternalEvent(ctx context.Context, externalEventId string, body PutExternalEventJSONRequestBody, reqEditors ...client.RequestEditorFn) (*PutExternalEventResponse, error)

func (*Client) PutExternalEventWithBody

func (c *Client) PutExternalEventWithBody(ctx context.Context, externalEventId string, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*PutExternalEventResponse, error)

PutExternalEventWithBody request with arbitrary body returning *PutExternalEventResponse

func (*Client) SearchEvents

func (c *Client) SearchEvents(ctx context.Context, params *SearchEventsParams, reqEditors ...client.RequestEditorFn) (*SearchEventsResponse, error)

SearchEvents request returning *SearchEventsResponse

func (*Client) UpsertEvents

func (c *Client) UpsertEvents(ctx context.Context, body UpsertEventsJSONRequestBody, reqEditors ...client.RequestEditorFn) (*UpsertEventsResponse, error)

func (*Client) UpsertEventsWithBody

func (c *Client) UpsertEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*UpsertEventsResponse, error)

UpsertEventsWithBody request with arbitrary body returning *UpsertEventsResponse

func (*Client) UpsertSubscriberState

func (c *Client) UpsertSubscriberState(ctx context.Context, externalEventId string, subscriberState string, params *UpsertSubscriberStateParams, body UpsertSubscriberStateJSONRequestBody, reqEditors ...client.RequestEditorFn) (*UpsertSubscriberStateResponse, error)

func (*Client) UpsertSubscriberStateWithBody

func (c *Client) UpsertSubscriberStateWithBody(ctx context.Context, externalEventId string, subscriberState string, params *UpsertSubscriberStateParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*UpsertSubscriberStateResponse, error)

UpsertSubscriberStateWithBody request with arbitrary body returning *UpsertSubscriberStateResponse

type ClientInterface

type ClientInterface interface {
	// EventsMarketingEvents request with any body
	EventsMarketingEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*EventsMarketingEventsResponse, error)
	EventsMarketingEvents(ctx context.Context, body EventsMarketingEventsJSONRequestBody, reqEditors ...client.RequestEditorFn) (*EventsMarketingEventsResponse, error)

	// DeleteEvents request with any body
	DeleteEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*DeleteEventsResponse, error)
	DeleteEvents(ctx context.Context, body DeleteEventsJSONRequestBody, reqEditors ...client.RequestEditorFn) (*DeleteEventsResponse, error)

	// SearchEvents request
	SearchEvents(ctx context.Context, params *SearchEventsParams, reqEditors ...client.RequestEditorFn) (*SearchEventsResponse, error)

	// UpsertEvents request with any body
	UpsertEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*UpsertEventsResponse, error)
	UpsertEvents(ctx context.Context, body UpsertEventsJSONRequestBody, reqEditors ...client.RequestEditorFn) (*UpsertEventsResponse, error)

	// DeleteExternalEvent request
	DeleteExternalEvent(ctx context.Context, externalEventId string, params *DeleteExternalEventParams, reqEditors ...client.RequestEditorFn) (*DeleteExternalEventResponse, error)

	// GetExternalEvent request
	GetExternalEvent(ctx context.Context, externalEventId string, params *GetExternalEventParams, reqEditors ...client.RequestEditorFn) (*GetExternalEventResponse, error)

	// PatchExternalEvent request with any body
	PatchExternalEventWithBody(ctx context.Context, externalEventId string, params *PatchExternalEventParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*PatchExternalEventResponse, error)
	PatchExternalEvent(ctx context.Context, externalEventId string, params *PatchExternalEventParams, body PatchExternalEventJSONRequestBody, reqEditors ...client.RequestEditorFn) (*PatchExternalEventResponse, error)

	// PutExternalEvent request with any body
	PutExternalEventWithBody(ctx context.Context, externalEventId string, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*PutExternalEventResponse, error)
	PutExternalEvent(ctx context.Context, externalEventId string, body PutExternalEventJSONRequestBody, reqEditors ...client.RequestEditorFn) (*PutExternalEventResponse, error)

	// CancelExternalEvent request
	CancelExternalEvent(ctx context.Context, externalEventId string, params *CancelExternalEventParams, reqEditors ...client.RequestEditorFn) (*CancelExternalEventResponse, error)

	// EmailUpsertSubscriberState request with any body
	EmailUpsertSubscriberStateWithBody(ctx context.Context, externalEventId string, subscriberState string, params *EmailUpsertSubscriberStateParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*EmailUpsertSubscriberStateResponse, error)
	EmailUpsertSubscriberState(ctx context.Context, externalEventId string, subscriberState string, params *EmailUpsertSubscriberStateParams, body EmailUpsertSubscriberStateJSONRequestBody, reqEditors ...client.RequestEditorFn) (*EmailUpsertSubscriberStateResponse, error)

	// UpsertSubscriberState request with any body
	UpsertSubscriberStateWithBody(ctx context.Context, externalEventId string, subscriberState string, params *UpsertSubscriberStateParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*UpsertSubscriberStateResponse, error)
	UpsertSubscriberState(ctx context.Context, externalEventId string, subscriberState string, params *UpsertSubscriberStateParams, body UpsertSubscriberStateJSONRequestBody, reqEditors ...client.RequestEditorFn) (*UpsertSubscriberStateResponse, error)

	// GetAppSettings request
	GetAppSettings(ctx context.Context, appId int32, reqEditors ...client.RequestEditorFn) (*GetAppSettingsResponse, error)

	// PostAppSettings request with any body
	PostAppSettingsWithBody(ctx context.Context, appId int32, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*PostAppSettingsResponse, error)
	PostAppSettings(ctx context.Context, appId int32, body PostAppSettingsJSONRequestBody, reqEditors ...client.RequestEditorFn) (*PostAppSettingsResponse, error)
}

ClientInterface interface specification for the client.

type CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging

type CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging struct {
	Results []MarketingEventExternalUniqueIdentifier `json:"results"`
}

CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging defines model for CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging.

type DeleteEventsJSONBody

DeleteEventsJSONBody defines parameters for DeleteEvents.

type DeleteEventsJSONRequestBody

type DeleteEventsJSONRequestBody DeleteEventsJSONBody

DeleteEventsJSONRequestBody defines body for DeleteEvents for application/json ContentType.

type DeleteEventsResponse

type DeleteEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func (DeleteEventsResponse) Status

func (r DeleteEventsResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteEventsResponse) StatusCode

func (r DeleteEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteExternalEventParams

type DeleteExternalEventParams struct {
	// The account id associated with the marketing event
	ExternalAccountId string `json:"externalAccountId"`
}

DeleteExternalEventParams defines parameters for DeleteExternalEvent.

type DeleteExternalEventResponse

type DeleteExternalEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func (DeleteExternalEventResponse) Status

Status returns HTTPResponse.Status

func (DeleteExternalEventResponse) StatusCode

func (r DeleteExternalEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EmailUpsertSubscriberStateJSONBody

type EmailUpsertSubscriberStateJSONBody BatchInputMarketingEventEmailSubscriber

EmailUpsertSubscriberStateJSONBody defines parameters for EmailUpsertSubscriberState.

type EmailUpsertSubscriberStateJSONRequestBody

type EmailUpsertSubscriberStateJSONRequestBody EmailUpsertSubscriberStateJSONBody

EmailUpsertSubscriberStateJSONRequestBody defines body for EmailUpsertSubscriberState for application/json ContentType.

type EmailUpsertSubscriberStateParams

type EmailUpsertSubscriberStateParams struct {
	// The account id associated with the marketing event
	ExternalAccountId string `json:"externalAccountId"`
}

EmailUpsertSubscriberStateParams defines parameters for EmailUpsertSubscriberState.

type EmailUpsertSubscriberStateResponse

type EmailUpsertSubscriberStateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func (EmailUpsertSubscriberStateResponse) Status

Status returns HTTPResponse.Status

func (EmailUpsertSubscriberStateResponse) StatusCode

func (r EmailUpsertSubscriberStateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Error

type Error struct {
	// The error category
	Category string `json:"category"`

	// Context about the error condition
	Context *Error_Context `json:"context,omitempty"`

	// A unique identifier for the request. Include this value with any error reports or support tickets
	CorrelationId string `json:"correlationId"`

	// further information about the error
	Errors *[]ErrorDetail `json:"errors,omitempty"`

	// A map of link names to associated URIs containing documentation about the error or recommended remediation steps
	Links *Error_Links `json:"links,omitempty"`

	// A human readable message describing the error along with remediation steps where appropriate
	Message string `json:"message"`

	// A specific category that contains more specific detail about the error
	SubCategory *string `json:"subCategory,omitempty"`
}

Error defines model for Error.

type ErrorCategory

type ErrorCategory struct {
	HttpStatus ErrorCategoryHttpStatus `json:"httpStatus"`
	Name       string                  `json:"name"`
}

ErrorCategory defines model for ErrorCategory.

type ErrorCategoryHttpStatus

type ErrorCategoryHttpStatus string

ErrorCategoryHttpStatus defines model for ErrorCategory.HttpStatus.

const (
	ErrorCategoryHttpStatusACCEPTED ErrorCategoryHttpStatus = "ACCEPTED"

	ErrorCategoryHttpStatusALREADYREPORTED ErrorCategoryHttpStatus = "ALREADY_REPORTED"

	ErrorCategoryHttpStatusBADGATEWAY ErrorCategoryHttpStatus = "BAD_GATEWAY"

	ErrorCategoryHttpStatusBADREQUEST ErrorCategoryHttpStatus = "BAD_REQUEST"

	ErrorCategoryHttpStatusCONFLICT ErrorCategoryHttpStatus = "CONFLICT"

	ErrorCategoryHttpStatusCONTINUE ErrorCategoryHttpStatus = "CONTINUE"

	ErrorCategoryHttpStatusCREATED ErrorCategoryHttpStatus = "CREATED"

	ErrorCategoryHttpStatusEXPECTATIONFAILED ErrorCategoryHttpStatus = "EXPECTATION_FAILED"

	ErrorCategoryHttpStatusFAILEDDEPENDENCY ErrorCategoryHttpStatus = "FAILED_DEPENDENCY"

	ErrorCategoryHttpStatusFORBIDDEN ErrorCategoryHttpStatus = "FORBIDDEN"

	ErrorCategoryHttpStatusFOUND ErrorCategoryHttpStatus = "FOUND"

	ErrorCategoryHttpStatusGATEWAYTIMEOUT ErrorCategoryHttpStatus = "GATEWAY_TIMEOUT"

	ErrorCategoryHttpStatusGONE ErrorCategoryHttpStatus = "GONE"

	ErrorCategoryHttpStatusHTTPVERSIONNOTSUPPORTED ErrorCategoryHttpStatus = "HTTP_VERSION_NOT_SUPPORTED"

	ErrorCategoryHttpStatusIMATEAPOT ErrorCategoryHttpStatus = "IM_A_TEAPOT"

	ErrorCategoryHttpStatusIMUSED ErrorCategoryHttpStatus = "IM_USED"

	ErrorCategoryHttpStatusINSUFFICIENTSTORAGE ErrorCategoryHttpStatus = "INSUFFICIENT_STORAGE"

	ErrorCategoryHttpStatusINTERNALSERVERERROR ErrorCategoryHttpStatus = "INTERNAL_SERVER_ERROR"

	ErrorCategoryHttpStatusINTERNALSTALESERVICEDISCOVERY ErrorCategoryHttpStatus = "INTERNAL_STALE_SERVICE_DISCOVERY"

	ErrorCategoryHttpStatusLENGTHREQUIRED ErrorCategoryHttpStatus = "LENGTH_REQUIRED"

	ErrorCategoryHttpStatusLOCKED ErrorCategoryHttpStatus = "LOCKED"

	ErrorCategoryHttpStatusLOOPDETECTED ErrorCategoryHttpStatus = "LOOP_DETECTED"

	ErrorCategoryHttpStatusMETHODNOTALLOWED ErrorCategoryHttpStatus = "METHOD_NOT_ALLOWED"

	ErrorCategoryHttpStatusMISDIRECTEDREQUEST ErrorCategoryHttpStatus = "MISDIRECTED_REQUEST"

	ErrorCategoryHttpStatusMOVEDPERMANENTLY ErrorCategoryHttpStatus = "MOVED_PERMANENTLY"

	ErrorCategoryHttpStatusMULTIPLECHOICES ErrorCategoryHttpStatus = "MULTIPLE_CHOICES"

	ErrorCategoryHttpStatusMULTISTATUS ErrorCategoryHttpStatus = "MULTI_STATUS"

	ErrorCategoryHttpStatusNETWORKAUTHENTICATIONREQUIRED ErrorCategoryHttpStatus = "NETWORK_AUTHENTICATION_REQUIRED"

	ErrorCategoryHttpStatusNOCONTENT ErrorCategoryHttpStatus = "NO_CONTENT"

	ErrorCategoryHttpStatusNONAUTHORITATIVEINFORMATION ErrorCategoryHttpStatus = "NON_AUTHORITATIVE_INFORMATION"

	ErrorCategoryHttpStatusNOTACCEPTABLE ErrorCategoryHttpStatus = "NOT_ACCEPTABLE"

	ErrorCategoryHttpStatusNOTEXTENDED ErrorCategoryHttpStatus = "NOT_EXTENDED"

	ErrorCategoryHttpStatusNOTFOUND ErrorCategoryHttpStatus = "NOT_FOUND"

	ErrorCategoryHttpStatusNOTIMPLEMENTED ErrorCategoryHttpStatus = "NOT_IMPLEMENTED"

	ErrorCategoryHttpStatusNOTMODIFIED ErrorCategoryHttpStatus = "NOT_MODIFIED"

	ErrorCategoryHttpStatusOK ErrorCategoryHttpStatus = "OK"

	ErrorCategoryHttpStatusPARTIALCONTENT ErrorCategoryHttpStatus = "PARTIAL_CONTENT"

	ErrorCategoryHttpStatusPAYMENTREQUIRED ErrorCategoryHttpStatus = "PAYMENT_REQUIRED"

	ErrorCategoryHttpStatusPERMANENTREDIRECT ErrorCategoryHttpStatus = "PERMANENT_REDIRECT"

	ErrorCategoryHttpStatusPRECONDITIONFAILED ErrorCategoryHttpStatus = "PRECONDITION_FAILED"

	ErrorCategoryHttpStatusPRECONDITIONREQUIRED ErrorCategoryHttpStatus = "PRECONDITION_REQUIRED"

	ErrorCategoryHttpStatusPROCESSING ErrorCategoryHttpStatus = "PROCESSING"

	ErrorCategoryHttpStatusPROXYAUTHENTICATIONREQUIRED ErrorCategoryHttpStatus = "PROXY_AUTHENTICATION_REQUIRED"

	ErrorCategoryHttpStatusREQUESTEDRANGENOTSATISFIABLE ErrorCategoryHttpStatus = "REQUESTED_RANGE_NOT_SATISFIABLE"

	ErrorCategoryHttpStatusREQUESTENTITYTOOLARGE ErrorCategoryHttpStatus = "REQUEST_ENTITY_TOO_LARGE"

	ErrorCategoryHttpStatusREQUESTHEADERSFIELDSTOOLARGE ErrorCategoryHttpStatus = "REQUEST_HEADERS_FIELDS_TOO_LARGE"

	ErrorCategoryHttpStatusREQUESTTIMEOUT ErrorCategoryHttpStatus = "REQUEST_TIMEOUT"

	ErrorCategoryHttpStatusREQUESTURITOOLONG ErrorCategoryHttpStatus = "REQUEST_URI_TOO_LONG"

	ErrorCategoryHttpStatusRESETCONTENT ErrorCategoryHttpStatus = "RESET_CONTENT"

	ErrorCategoryHttpStatusSEEOTHER ErrorCategoryHttpStatus = "SEE_OTHER"

	ErrorCategoryHttpStatusSERVICEUNAVAILABLE ErrorCategoryHttpStatus = "SERVICE_UNAVAILABLE"

	ErrorCategoryHttpStatusSWITCHINGPROTOCOLS ErrorCategoryHttpStatus = "SWITCHING_PROTOCOLS"

	ErrorCategoryHttpStatusTEMPORARYREDIRECT ErrorCategoryHttpStatus = "TEMPORARY_REDIRECT"

	ErrorCategoryHttpStatusTOOMANYREQUESTS ErrorCategoryHttpStatus = "TOO_MANY_REQUESTS"

	ErrorCategoryHttpStatusUNAUTHORIZED ErrorCategoryHttpStatus = "UNAUTHORIZED"

	ErrorCategoryHttpStatusUNAVAILABLEFORLEGALREASONS ErrorCategoryHttpStatus = "UNAVAILABLE_FOR_LEGAL_REASONS"

	ErrorCategoryHttpStatusUNPROCESSABLEENTITY ErrorCategoryHttpStatus = "UNPROCESSABLE_ENTITY"

	ErrorCategoryHttpStatusUNSUPPORTEDMEDIATYPE ErrorCategoryHttpStatus = "UNSUPPORTED_MEDIA_TYPE"

	ErrorCategoryHttpStatusUPGRADEREQUIRED ErrorCategoryHttpStatus = "UPGRADE_REQUIRED"

	ErrorCategoryHttpStatusUSEPROXY ErrorCategoryHttpStatus = "USE_PROXY"

	ErrorCategoryHttpStatusVARIANTALSONEGOTIATES ErrorCategoryHttpStatus = "VARIANT_ALSO_NEGOTIATES"
)

Defines values for ErrorCategoryHttpStatus.

type ErrorDetail

type ErrorDetail struct {
	// The status code associated with the error detail
	Code *string `json:"code,omitempty"`

	// Context about the error condition
	Context *ErrorDetail_Context `json:"context,omitempty"`

	// The name of the field or parameter in which the error was found.
	In *string `json:"in,omitempty"`

	// A human readable message describing the error along with remediation steps where appropriate
	Message string `json:"message"`

	// A specific category that contains more specific detail about the error
	SubCategory *string `json:"subCategory,omitempty"`
}

ErrorDetail defines model for ErrorDetail.

type ErrorDetail_Context

type ErrorDetail_Context struct {
	AdditionalProperties map[string][]string `json:"-"`
}

Context about the error condition

func (ErrorDetail_Context) Get

func (a ErrorDetail_Context) Get(fieldName string) (value []string, found bool)

Getter for additional properties for ErrorDetail_Context. Returns the specified element and whether it was found

func (ErrorDetail_Context) MarshalJSON

func (a ErrorDetail_Context) MarshalJSON() ([]byte, error)

Override default JSON handling for ErrorDetail_Context to handle AdditionalProperties

func (*ErrorDetail_Context) Set

func (a *ErrorDetail_Context) Set(fieldName string, value []string)

Setter for additional properties for ErrorDetail_Context

func (*ErrorDetail_Context) UnmarshalJSON

func (a *ErrorDetail_Context) UnmarshalJSON(b []byte) error

Override default JSON handling for ErrorDetail_Context to handle AdditionalProperties

type Error_Context

type Error_Context struct {
	AdditionalProperties map[string][]string `json:"-"`
}

Context about the error condition

func (Error_Context) Get

func (a Error_Context) Get(fieldName string) (value []string, found bool)

Getter for additional properties for Error_Context. Returns the specified element and whether it was found

func (Error_Context) MarshalJSON

func (a Error_Context) MarshalJSON() ([]byte, error)

Override default JSON handling for Error_Context to handle AdditionalProperties

func (*Error_Context) Set

func (a *Error_Context) Set(fieldName string, value []string)

Setter for additional properties for Error_Context

func (*Error_Context) UnmarshalJSON

func (a *Error_Context) UnmarshalJSON(b []byte) error

Override default JSON handling for Error_Context to handle AdditionalProperties

type Error_Links struct {
	AdditionalProperties map[string]string `json:"-"`
}

A map of link names to associated URIs containing documentation about the error or recommended remediation steps

func (Error_Links) Get

func (a Error_Links) Get(fieldName string) (value string, found bool)

Getter for additional properties for Error_Links. Returns the specified element and whether it was found

func (Error_Links) MarshalJSON

func (a Error_Links) MarshalJSON() ([]byte, error)

Override default JSON handling for Error_Links to handle AdditionalProperties

func (*Error_Links) Set

func (a *Error_Links) Set(fieldName string, value string)

Setter for additional properties for Error_Links

func (*Error_Links) UnmarshalJSON

func (a *Error_Links) UnmarshalJSON(b []byte) error

Override default JSON handling for Error_Links to handle AdditionalProperties

type EventDetailSettings

type EventDetailSettings struct {
	// The id of the application the settings are for
	AppId int32 `json:"appId"`

	// The url that will be used to fetch marketing event details by id
	EventDetailsUrl string `json:"eventDetailsUrl"`
}

EventDetailSettings defines model for EventDetailSettings.

type EventDetailSettingsUrl

type EventDetailSettingsUrl struct {
	// The url that will be used to fetch marketing event details by id. Must contain a `%s` character sequence that will be substituted with the event id. For example: `https://my.event.app/events/%s`
	EventDetailsUrl string `json:"eventDetailsUrl"`
}

EventDetailSettingsUrl defines model for EventDetailSettingsUrl.

type EventsMarketingEventsJSONBody

type EventsMarketingEventsJSONBody MarketingEventCreateRequestParams

EventsMarketingEventsJSONBody defines parameters for EventsMarketingEvents.

type EventsMarketingEventsJSONRequestBody

type EventsMarketingEventsJSONRequestBody EventsMarketingEventsJSONBody

EventsMarketingEventsJSONRequestBody defines body for EventsMarketingEvents for application/json ContentType.

type EventsMarketingEventsResponse

type EventsMarketingEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MarketingEventDefaultResponse
}

func (EventsMarketingEventsResponse) Status

Status returns HTTPResponse.Status

func (EventsMarketingEventsResponse) StatusCode

func (r EventsMarketingEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAppSettingsResponse

type GetAppSettingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *EventDetailSettings
}

func (GetAppSettingsResponse) Status

func (r GetAppSettingsResponse) Status() string

Status returns HTTPResponse.Status

func (GetAppSettingsResponse) StatusCode

func (r GetAppSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExternalEventParams

type GetExternalEventParams struct {
	// The account id associated with the marketing event
	ExternalAccountId string `json:"externalAccountId"`
}

GetExternalEventParams defines parameters for GetExternalEvent.

type GetExternalEventResponse

type GetExternalEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MarketingEventPublicReadResponse
}

func (GetExternalEventResponse) Status

func (r GetExternalEventResponse) Status() string

Status returns HTTPResponse.Status

func (GetExternalEventResponse) StatusCode

func (r GetExternalEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MarketingEventCreateRequestParams

type MarketingEventCreateRequestParams struct {
	// A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
	// In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
	CustomProperties *[]PropertyValue `json:"customProperties,omitempty"`

	// The end date and time of the marketing event.
	EndDateTime *time.Time `json:"endDateTime,omitempty"`

	// Indicates if the marketing event has been cancelled.  Defaults to `false`
	EventCancelled *bool `json:"eventCancelled,omitempty"`

	// The description of the marketing event.
	EventDescription *string `json:"eventDescription,omitempty"`

	// The name of the marketing event.
	EventName string `json:"eventName"`

	// The name of the organizer of the marketing event.
	EventOrganizer string `json:"eventOrganizer"`

	// Describes what type of event this is.  For example: `WEBINAR`, `CONFERENCE`, `WORKSHOP`
	EventType *string `json:"eventType,omitempty"`

	// A URL in the external event application where the marketing event can be managed.
	EventUrl *string `json:"eventUrl,omitempty"`

	// The accountId that is associated with this marketing event in the external event application.
	ExternalAccountId string `json:"externalAccountId"`

	// The id of the marketing event in the external event application.
	ExternalEventId string `json:"externalEventId"`

	// The start date and time of the marketing event.
	StartDateTime *time.Time `json:"startDateTime,omitempty"`
}

MarketingEventCreateRequestParams defines model for MarketingEventCreateRequestParams.

type MarketingEventDefaultResponse

type MarketingEventDefaultResponse struct {
	// A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
	// In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
	CustomProperties *[]PropertyValue `json:"customProperties,omitempty"`

	// The end date and time of the marketing event.
	EndDateTime *time.Time `json:"endDateTime,omitempty"`

	// Indicates if the marketing event has been cancelled.
	EventCancelled *bool `json:"eventCancelled,omitempty"`

	// The description of the marketing event.
	EventDescription *string `json:"eventDescription,omitempty"`

	// The name of the marketing event.
	EventName string `json:"eventName"`

	// The name of the organizer of the marketing event.
	EventOrganizer string `json:"eventOrganizer"`

	// The type of the marketing event.
	EventType *string `json:"eventType,omitempty"`

	// The URL in the external event application where the marketing event can be managed.
	EventUrl *string `json:"eventUrl,omitempty"`

	// The start date and time of the marketing event.
	StartDateTime *time.Time `json:"startDateTime,omitempty"`
}

MarketingEventDefaultResponse defines model for MarketingEventDefaultResponse.

type MarketingEventEmailSubscriber

type MarketingEventEmailSubscriber struct {
	// The email address of the contact in HubSpot to associate with the event. Note that the contact must already exist in HubSpot; a contact will not be created.
	Email string `json:"email"`

	// The date and time at which the contact subscribed to the event.
	InteractionDateTime int64 `json:"interactionDateTime"`
}

MarketingEventEmailSubscriber defines model for MarketingEventEmailSubscriber.

type MarketingEventExternalUniqueIdentifier

type MarketingEventExternalUniqueIdentifier struct {
	// The id of the application that created the marketing event in HubSpot.
	AppId int32 `json:"appId"`

	// The accountId that is associated with this marketing event in the external event application.
	ExternalAccountId string `json:"externalAccountId"`

	// The id of the marketing event in the external event application.
	ExternalEventId string `json:"externalEventId"`
}

MarketingEventExternalUniqueIdentifier defines model for MarketingEventExternalUniqueIdentifier.

type MarketingEventPublicDefaultResponse

type MarketingEventPublicDefaultResponse struct {
	CreatedAt time.Time `json:"createdAt"`

	// A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
	// In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
	CustomProperties *[]PropertyValue `json:"customProperties,omitempty"`

	// The end date and time of the marketing event.
	EndDateTime *time.Time `json:"endDateTime,omitempty"`

	// Indicates if the marketing event has been cancelled.
	EventCancelled *bool `json:"eventCancelled,omitempty"`

	// The description of the marketing event.
	EventDescription *string `json:"eventDescription,omitempty"`

	// The name of the marketing event.
	EventName string `json:"eventName"`

	// The name of the organizer of the marketing event.
	EventOrganizer string `json:"eventOrganizer"`

	// The type of the marketing event.
	EventType *string `json:"eventType,omitempty"`

	// A URL in the external event application where the marketing event can be managed.
	EventUrl *string `json:"eventUrl,omitempty"`
	Id       string  `json:"id"`

	// The start date and time of the marketing event.
	StartDateTime *time.Time `json:"startDateTime,omitempty"`
	UpdatedAt     time.Time  `json:"updatedAt"`
}

MarketingEventPublicDefaultResponse defines model for MarketingEventPublicDefaultResponse.

type MarketingEventPublicReadResponse

type MarketingEventPublicReadResponse struct {
	// The number of HubSpot contacts that attended this marketing event.
	Attendees int32 `json:"attendees"`

	// The number of HubSpot contacts that registered for this marketing event, but later cancelled their registration.
	Cancellations int32     `json:"cancellations"`
	CreatedAt     time.Time `json:"createdAt"`

	// A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
	// In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
	CustomProperties *[]PropertyValue `json:"customProperties,omitempty"`

	// The end date and time of the marketing event.
	EndDateTime *time.Time `json:"endDateTime,omitempty"`

	// Indicates if the marketing event has been cancelled.
	EventCancelled *bool `json:"eventCancelled,omitempty"`

	// The description of the marketing event.
	EventDescription *string `json:"eventDescription,omitempty"`

	// The name of the marketing event.
	EventName string `json:"eventName"`

	// The name of the organizer of the marketing event.
	EventOrganizer string `json:"eventOrganizer"`

	// The type of the marketing event.
	EventType *string `json:"eventType,omitempty"`

	// A URL in the external event application where the marketing event can be managed.
	EventUrl *string `json:"eventUrl,omitempty"`

	// The id of the marketing event in the external event application.
	ExternalEventId string `json:"externalEventId"`
	Id              string `json:"id"`

	// The number of HubSpot contacts that registered for this marketing event, but did not attend. This field only had a value when the event is over.
	NoShows int32 `json:"noShows"`

	// The number of HubSpot contacts that registered for this marketing event.
	Registrants int32 `json:"registrants"`

	// The start date and time of the marketing event.
	StartDateTime *time.Time `json:"startDateTime,omitempty"`
	UpdatedAt     time.Time  `json:"updatedAt"`
}

MarketingEventPublicReadResponse defines model for MarketingEventPublicReadResponse.

type MarketingEventSubscriber

type MarketingEventSubscriber struct {
	// The date and time at which the contact subscribed to the event.
	InteractionDateTime int64  `json:"interactionDateTime"`
	Vid                 *int32 `json:"vid,omitempty"`
}

MarketingEventSubscriber defines model for MarketingEventSubscriber.

type MarketingEventUpdateRequestParams

type MarketingEventUpdateRequestParams struct {
	// A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
	// In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
	CustomProperties *[]PropertyValue `json:"customProperties,omitempty"`

	// The end date and time of the marketing event.
	EndDateTime *time.Time `json:"endDateTime,omitempty"`

	// Indicates if the marketing event has been cancelled. Defaults to `false`
	EventCancelled *bool `json:"eventCancelled,omitempty"`

	// The description of the marketing event.
	EventDescription *string `json:"eventDescription,omitempty"`

	// The name of the marketing event.
	EventName *string `json:"eventName,omitempty"`

	// The name of the organizer of the marketing event.
	EventOrganizer *string `json:"eventOrganizer,omitempty"`

	// Describes what type of event this is.  For example: `WEBINAR`, `CONFERENCE`, `WORKSHOP`
	EventType *string `json:"eventType,omitempty"`

	// A URL in the external event application where the marketing event can be managed.
	EventUrl *string `json:"eventUrl,omitempty"`

	// The start date and time of the marketing event.
	StartDateTime *time.Time `json:"startDateTime,omitempty"`
}

MarketingEventUpdateRequestParams defines model for MarketingEventUpdateRequestParams.

type PatchExternalEventJSONBody

type PatchExternalEventJSONBody MarketingEventUpdateRequestParams

PatchExternalEventJSONBody defines parameters for PatchExternalEvent.

type PatchExternalEventJSONRequestBody

type PatchExternalEventJSONRequestBody PatchExternalEventJSONBody

PatchExternalEventJSONRequestBody defines body for PatchExternalEvent for application/json ContentType.

type PatchExternalEventParams

type PatchExternalEventParams struct {
	// The account id associated with the marketing event
	ExternalAccountId string `json:"externalAccountId"`
}

PatchExternalEventParams defines parameters for PatchExternalEvent.

type PatchExternalEventResponse

type PatchExternalEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MarketingEventPublicDefaultResponse
}

func (PatchExternalEventResponse) Status

Status returns HTTPResponse.Status

func (PatchExternalEventResponse) StatusCode

func (r PatchExternalEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostAppSettingsJSONBody

type PostAppSettingsJSONBody EventDetailSettingsUrl

PostAppSettingsJSONBody defines parameters for PostAppSettings.

type PostAppSettingsJSONRequestBody

type PostAppSettingsJSONRequestBody PostAppSettingsJSONBody

PostAppSettingsJSONRequestBody defines body for PostAppSettings for application/json ContentType.

type PostAppSettingsResponse

type PostAppSettingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *EventDetailSettings
}

func (PostAppSettingsResponse) Status

func (r PostAppSettingsResponse) Status() string

Status returns HTTPResponse.Status

func (PostAppSettingsResponse) StatusCode

func (r PostAppSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PropertyValue

type PropertyValue struct {
	Name                    string              `json:"name"`
	RequestId               string              `json:"requestId"`
	SelectedByUser          bool                `json:"selectedByUser"`
	SelectedByUserTimestamp int64               `json:"selectedByUserTimestamp"`
	Source                  PropertyValueSource `json:"source"`
	SourceId                string              `json:"sourceId"`
	SourceLabel             string              `json:"sourceLabel"`

	// Source metadata encoded as a base64 string. For example: `ZXhhbXBsZSBzdHJpbmc=`
	SourceMetadata  string  `json:"sourceMetadata"`
	SourceVid       []int64 `json:"sourceVid"`
	Timestamp       int64   `json:"timestamp"`
	UpdatedByUserId *int32  `json:"updatedByUserId,omitempty"`
	Value           string  `json:"value"`
}

PropertyValue defines model for PropertyValue.

type PropertyValueSource

type PropertyValueSource string

PropertyValueSource defines model for PropertyValue.Source.

const (
	PropertyValueSourceACADEMY PropertyValueSource = "ACADEMY"

	PropertyValueSourceADS PropertyValueSource = "ADS"

	PropertyValueSourceAIGROUP PropertyValueSource = "AI_GROUP"

	PropertyValueSourceANALYTICS PropertyValueSource = "ANALYTICS"

	PropertyValueSourceAPI PropertyValueSource = "API"

	PropertyValueSourceAPPROVALS PropertyValueSource = "APPROVALS"

	PropertyValueSourceASSISTS PropertyValueSource = "ASSISTS"

	PropertyValueSourceASSOCIATIONS PropertyValueSource = "ASSOCIATIONS"

	PropertyValueSourceAUTOMATIONPLATFORM PropertyValueSource = "AUTOMATION_PLATFORM"

	PropertyValueSourceAVATARSSERVICE PropertyValueSource = "AVATARS_SERVICE"

	PropertyValueSourceBATCHUPDATE PropertyValueSource = "BATCH_UPDATE"

	PropertyValueSourceBCCTOCRM PropertyValueSource = "BCC_TO_CRM"

	PropertyValueSourceBEHAVIORALEVENTS PropertyValueSource = "BEHAVIORAL_EVENTS"

	PropertyValueSourceBETASSIGNMENT PropertyValueSource = "BET_ASSIGNMENT"

	PropertyValueSourceBETCRMCONNECTOR PropertyValueSource = "BET_CRM_CONNECTOR"

	PropertyValueSourceBIDEN PropertyValueSource = "BIDEN"

	PropertyValueSourceBOT PropertyValueSource = "BOT"

	PropertyValueSourceCALCULATED PropertyValueSource = "CALCULATED"

	PropertyValueSourceCOMMUNICATOR PropertyValueSource = "COMMUNICATOR"

	PropertyValueSourceCOMPANIES PropertyValueSource = "COMPANIES"

	PropertyValueSourceCOMPANYFAMILIES PropertyValueSource = "COMPANY_FAMILIES"

	PropertyValueSourceCOMPANYINSIGHTS PropertyValueSource = "COMPANY_INSIGHTS"

	PropertyValueSourceCONTACTS PropertyValueSource = "CONTACTS"

	PropertyValueSourceCONTACTSWEB PropertyValueSource = "CONTACTS_WEB"

	PropertyValueSourceCONTENTMEMBERSHIP PropertyValueSource = "CONTENT_MEMBERSHIP"

	PropertyValueSourceCONVERSATIONS PropertyValueSource = "CONVERSATIONS"

	PropertyValueSourceCRMUI PropertyValueSource = "CRM_UI"

	PropertyValueSourceDEALS PropertyValueSource = "DEALS"

	PropertyValueSourceDEFAULT PropertyValueSource = "DEFAULT"

	PropertyValueSourceEMAIL PropertyValueSource = "EMAIL"

	PropertyValueSourceEMAILINTEGRATION PropertyValueSource = "EMAIL_INTEGRATION"

	PropertyValueSourceENGAGEMENTS PropertyValueSource = "ENGAGEMENTS"

	PropertyValueSourceEXTENSION PropertyValueSource = "EXTENSION"

	PropertyValueSourceFORM PropertyValueSource = "FORM"

	PropertyValueSourceFORWARDTOCRM PropertyValueSource = "FORWARD_TO_CRM"

	PropertyValueSourceGMAILINTEGRATION PropertyValueSource = "GMAIL_INTEGRATION"

	PropertyValueSourceGOALS PropertyValueSource = "GOALS"

	PropertyValueSourceHEISENBERG PropertyValueSource = "HEISENBERG"

	PropertyValueSourceIMPORT PropertyValueSource = "IMPORT"

	PropertyValueSourceINTEGRATION PropertyValueSource = "INTEGRATION"

	PropertyValueSourceINTEGRATIONSPLATFORM PropertyValueSource = "INTEGRATIONS_PLATFORM"

	PropertyValueSourceINTEGRATIONSSYNC PropertyValueSource = "INTEGRATIONS_SYNC"

	PropertyValueSourceLEADIN PropertyValueSource = "LEADIN"

	PropertyValueSourceMEETINGS PropertyValueSource = "MEETINGS"

	PropertyValueSourceMERGECOMPANIES PropertyValueSource = "MERGE_COMPANIES"

	PropertyValueSourceMERGECONTACTS PropertyValueSource = "MERGE_CONTACTS"

	PropertyValueSourceMERGEOBJECTS PropertyValueSource = "MERGE_OBJECTS"

	PropertyValueSourceMIGRATION PropertyValueSource = "MIGRATION"

	PropertyValueSourceMOBILEANDROID PropertyValueSource = "MOBILE_ANDROID"

	PropertyValueSourceMOBILEIOS PropertyValueSource = "MOBILE_IOS"

	PropertyValueSourcePAYMENTS PropertyValueSource = "PAYMENTS"

	PropertyValueSourcePIPELINESETTINGS PropertyValueSource = "PIPELINE_SETTINGS"

	PropertyValueSourcePORTALOBJECTSYNC PropertyValueSource = "PORTAL_OBJECT_SYNC"

	PropertyValueSourcePORTALUSERASSOCIATOR PropertyValueSource = "PORTAL_USER_ASSOCIATOR"

	PropertyValueSourcePRESENTATIONS PropertyValueSource = "PRESENTATIONS"

	PropertyValueSourcePROPERTYSETTINGS PropertyValueSource = "PROPERTY_SETTINGS"

	PropertyValueSourceQUOTAS PropertyValueSource = "QUOTAS"

	PropertyValueSourceQUOTES PropertyValueSource = "QUOTES"

	PropertyValueSourceRECYCLINGBIN PropertyValueSource = "RECYCLING_BIN"

	PropertyValueSourceSALES PropertyValueSource = "SALES"

	PropertyValueSourceSALESFORCE PropertyValueSource = "SALESFORCE"

	PropertyValueSourceSALESMESSAGES PropertyValueSource = "SALES_MESSAGES"

	PropertyValueSourceSEQUENCES PropertyValueSource = "SEQUENCES"

	PropertyValueSourceSETTINGS PropertyValueSource = "SETTINGS"

	PropertyValueSourceSIDEKICK PropertyValueSource = "SIDEKICK"

	PropertyValueSourceSIGNALS PropertyValueSource = "SIGNALS"

	PropertyValueSourceSOCIAL PropertyValueSource = "SOCIAL"

	PropertyValueSourceSUCCESS PropertyValueSource = "SUCCESS"

	PropertyValueSourceTALLY PropertyValueSource = "TALLY"

	PropertyValueSourceTASK PropertyValueSource = "TASK"

	PropertyValueSourceWALINCREMENTAL PropertyValueSource = "WAL_INCREMENTAL"

	PropertyValueSourceWORKFLOWS PropertyValueSource = "WORKFLOWS"
)

Defines values for PropertyValueSource.

type PutExternalEventJSONBody

type PutExternalEventJSONBody MarketingEventCreateRequestParams

PutExternalEventJSONBody defines parameters for PutExternalEvent.

type PutExternalEventJSONRequestBody

type PutExternalEventJSONRequestBody PutExternalEventJSONBody

PutExternalEventJSONRequestBody defines body for PutExternalEvent for application/json ContentType.

type PutExternalEventResponse

type PutExternalEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MarketingEventPublicDefaultResponse
}

func (PutExternalEventResponse) Status

func (r PutExternalEventResponse) Status() string

Status returns HTTPResponse.Status

func (PutExternalEventResponse) StatusCode

func (r PutExternalEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchEventsParams

type SearchEventsParams struct {
	// The partial event id to search for
	Q string `json:"q"`
}

SearchEventsParams defines parameters for SearchEvents.

type SearchEventsResponse

type SearchEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging
}

func (SearchEventsResponse) Status

func (r SearchEventsResponse) Status() string

Status returns HTTPResponse.Status

func (SearchEventsResponse) StatusCode

func (r SearchEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StandardError

type StandardError struct {
	Category    ErrorCategory           `json:"category"`
	Context     StandardError_Context   `json:"context"`
	Errors      []ErrorDetail           `json:"errors"`
	Id          *string                 `json:"id,omitempty"`
	Links       StandardError_Links     `json:"links"`
	Message     string                  `json:"message"`
	Status      string                  `json:"status"`
	SubCategory *map[string]interface{} `json:"subCategory,omitempty"`
}

StandardError defines model for StandardError.

type StandardError_Context

type StandardError_Context struct {
	AdditionalProperties map[string][]string `json:"-"`
}

StandardError_Context defines model for StandardError.Context.

func (StandardError_Context) Get

func (a StandardError_Context) Get(fieldName string) (value []string, found bool)

Getter for additional properties for StandardError_Context. Returns the specified element and whether it was found

func (StandardError_Context) MarshalJSON

func (a StandardError_Context) MarshalJSON() ([]byte, error)

Override default JSON handling for StandardError_Context to handle AdditionalProperties

func (*StandardError_Context) Set

func (a *StandardError_Context) Set(fieldName string, value []string)

Setter for additional properties for StandardError_Context

func (*StandardError_Context) UnmarshalJSON

func (a *StandardError_Context) UnmarshalJSON(b []byte) error

Override default JSON handling for StandardError_Context to handle AdditionalProperties

type StandardError_Links struct {
	AdditionalProperties map[string]string `json:"-"`
}

StandardError_Links defines model for StandardError.Links.

func (StandardError_Links) Get

func (a StandardError_Links) Get(fieldName string) (value string, found bool)

Getter for additional properties for StandardError_Links. Returns the specified element and whether it was found

func (StandardError_Links) MarshalJSON

func (a StandardError_Links) MarshalJSON() ([]byte, error)

Override default JSON handling for StandardError_Links to handle AdditionalProperties

func (*StandardError_Links) Set

func (a *StandardError_Links) Set(fieldName string, value string)

Setter for additional properties for StandardError_Links

func (*StandardError_Links) UnmarshalJSON

func (a *StandardError_Links) UnmarshalJSON(b []byte) error

Override default JSON handling for StandardError_Links to handle AdditionalProperties

type UpsertEventsJSONBody

UpsertEventsJSONBody defines parameters for UpsertEvents.

type UpsertEventsJSONRequestBody

type UpsertEventsJSONRequestBody UpsertEventsJSONBody

UpsertEventsJSONRequestBody defines body for UpsertEvents for application/json ContentType.

type UpsertEventsResponse

type UpsertEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BatchResponseMarketingEventPublicDefaultResponse
}

func (UpsertEventsResponse) Status

func (r UpsertEventsResponse) Status() string

Status returns HTTPResponse.Status

func (UpsertEventsResponse) StatusCode

func (r UpsertEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpsertSubscriberStateJSONBody

type UpsertSubscriberStateJSONBody BatchInputMarketingEventSubscriber

UpsertSubscriberStateJSONBody defines parameters for UpsertSubscriberState.

type UpsertSubscriberStateJSONRequestBody

type UpsertSubscriberStateJSONRequestBody UpsertSubscriberStateJSONBody

UpsertSubscriberStateJSONRequestBody defines body for UpsertSubscriberState for application/json ContentType.

type UpsertSubscriberStateParams

type UpsertSubscriberStateParams struct {
	// The account id associated with the marketing event
	ExternalAccountId string `json:"externalAccountId"`
}

UpsertSubscriberStateParams defines parameters for UpsertSubscriberState.

type UpsertSubscriberStateResponse

type UpsertSubscriberStateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func (UpsertSubscriberStateResponse) Status

Status returns HTTPResponse.Status

func (UpsertSubscriberStateResponse) StatusCode

func (r UpsertSubscriberStateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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