pylon

package module
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 8 Imported by: 0

README

Pylon Go SDK

The official Go SDK for the Pylon API.

Alpha. The SDK is new and its interface may change between v0.x releases.

Installation

go get github.com/pylon-labs/pylon-go

Requires Go 1.22 or later.

Usage

package main

import (
	"context"
	"fmt"
	"os"

	pylonclient "github.com/pylon-labs/pylon-go/client"
	"github.com/pylon-labs/pylon-go/option"
)

func main() {
	ctx := context.Background()
	client := pylonclient.NewClient(option.WithToken(os.Getenv("PYLON_API_TOKEN")))

	me, err := client.Me.Get(ctx)
	if err != nil {
		panic(err)
	}
	fmt.Println(me.GetData().GetName())
}

Pylon accounts live in either the US or the EU region, and the client defaults to the US. EU accounts must select the EU region:

import pylon "github.com/pylon-labs/pylon-go"

client := pylonclient.NewClient(
	option.WithToken(os.Getenv("PYLON_API_TOKEN")),
	option.WithBaseURL(pylon.Environments.Eu),
)
Pagination

List and search methods return a page whose iterator fetches the next page as you go:

page, err := client.Accounts.List(ctx, &pylon.AccountsListRequest{Limit: pylon.Int64(100)})
if err != nil {
	return err
}
iter := page.Iterator()
for iter.Next(ctx) {
	fmt.Println(iter.Current().GetName())
}
if err := iter.Err(); err != nil {
	return err
}
Errors

Requests that fail return an error you can match by status, such as *pylon.NotFoundError:

_, err := client.Issues.Get(ctx, &pylon.IssuesGetRequest{ID: "issue_id"})
var notFound *pylon.NotFoundError
if errors.As(err, &notFound) {
	fmt.Println("Issue not found")
}
Retries and timeouts

Rate-limited (429), timed-out (408), and server error (5xx) responses are retried with backoff. Requests that create something aren't retried, so a retry can't create a duplicate. Use option.WithMaxAttempts or option.WithoutRetries() on the client or a single call, and set timeouts through the context you pass in.

Reference

reference.md documents every method. The Pylon API documentation covers the underlying endpoints.

Contributing

This SDK is generated from Pylon's OpenAPI spec, so changes outside the hand-maintained files listed in .fernignore are overwritten by the next sync. Please open an issue for bugs or missing endpoints.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Environments = struct {
	Us string
	Eu string
}{
	Us: "https://api.usepylon.com",
	Eu: "https://api.eu.usepylon.com",
}

Environments defines all of the API environments. These values can be used with the WithBaseURL RequestOption to override the client's default environment, if any.

View Source
var ErrorCodes internal.ErrorCodes = internal.ErrorCodes{
	400: func(apiError *core.APIError) error {
		return &BadRequestError{
			APIError: apiError,
		}
	},
	401: func(apiError *core.APIError) error {
		return &UnauthorizedError{
			APIError: apiError,
		}
	},
	403: func(apiError *core.APIError) error {
		return &ForbiddenError{
			APIError: apiError,
		}
	},
	404: func(apiError *core.APIError) error {
		return &NotFoundError{
			APIError: apiError,
		}
	},
	429: func(apiError *core.APIError) error {
		return &TooManyRequestsError{
			APIError: apiError,
		}
	},
	500: func(apiError *core.APIError) error {
		return &InternalServerError{
			APIError: apiError,
		}
	},
	413: func(apiError *core.APIError) error {
		return &ContentTooLargeError{
			APIError: apiError,
		}
	},
	409: func(apiError *core.APIError) error {
		return &ConflictError{
			APIError: apiError,
		}
	},
}

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Bytes

func Bytes(b []byte) *[]byte

Bytes returns a pointer to the given []byte value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

Types

type APICustomObject

type APICustomObject struct {
	// When the object was created.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// Custom field values keyed by field slug. Relationship-typed fields are excluded here and returned in the `relations` field instead.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// The ID of the custom object.
	ID string `json:"id" url:"id"`
	// The name of the custom object.
	Name string `json:"name" url:"name"`
	// Relationships from this object to other objects, sourced from relationship-typed custom fields.
	Relations []*APIObjectRelation `json:"relations,omitempty" url:"relations,omitempty"`
	// The type slug of the custom object.
	Type string `json:"type" url:"type"`
	// When the object was last updated.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*APICustomObject) GetCreatedAt

func (a *APICustomObject) GetCreatedAt() time.Time

func (*APICustomObject) GetCustomFields

func (a *APICustomObject) GetCustomFields() map[string]*CustomFieldValue

func (*APICustomObject) GetExtraProperties

func (a *APICustomObject) GetExtraProperties() map[string]interface{}

func (*APICustomObject) GetID

func (a *APICustomObject) GetID() string

func (*APICustomObject) GetName

func (a *APICustomObject) GetName() string

func (*APICustomObject) GetRelations

func (a *APICustomObject) GetRelations() []*APIObjectRelation

func (*APICustomObject) GetType

func (a *APICustomObject) GetType() string

func (*APICustomObject) GetUpdatedAt

func (a *APICustomObject) GetUpdatedAt() time.Time

func (*APICustomObject) MarshalJSON

func (a *APICustomObject) MarshalJSON() ([]byte, error)

func (*APICustomObject) SetCreatedAt

func (a *APICustomObject) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APICustomObject) SetCustomFields

func (a *APICustomObject) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APICustomObject) SetID

func (a *APICustomObject) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APICustomObject) SetName

func (a *APICustomObject) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APICustomObject) SetRelations

func (a *APICustomObject) SetRelations(relations []*APIObjectRelation)

SetRelations sets the Relations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APICustomObject) SetType

func (a *APICustomObject) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APICustomObject) SetUpdatedAt

func (a *APICustomObject) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APICustomObject) String

func (a *APICustomObject) String() string

func (*APICustomObject) UnmarshalJSON

func (a *APICustomObject) UnmarshalJSON(data []byte) error

type APIObjectRelation

type APIObjectRelation struct {
	// The ID of the related object.
	ObjectID string `json:"object_id" url:"object_id"`
	// The type of the related object (e.g. "account", "contact", "issue").
	ObjectType string `json:"object_type" url:"object_type"`
	// contains filtered or unexported fields
}

func (*APIObjectRelation) GetExtraProperties

func (a *APIObjectRelation) GetExtraProperties() map[string]interface{}

func (*APIObjectRelation) GetObjectID

func (a *APIObjectRelation) GetObjectID() string

func (*APIObjectRelation) GetObjectType

func (a *APIObjectRelation) GetObjectType() string

func (*APIObjectRelation) MarshalJSON

func (a *APIObjectRelation) MarshalJSON() ([]byte, error)

func (*APIObjectRelation) SetObjectID

func (a *APIObjectRelation) SetObjectID(objectID string)

SetObjectID sets the ObjectID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIObjectRelation) SetObjectType

func (a *APIObjectRelation) SetObjectType(objectType string)

SetObjectType sets the ObjectType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIObjectRelation) String

func (a *APIObjectRelation) String() string

func (*APIObjectRelation) UnmarshalJSON

func (a *APIObjectRelation) UnmarshalJSON(data []byte) error

type Account

type Account struct {
	// The IDs of accounts associated with this partner that the caller can read. Present only for partner accounts; an empty array indicates no visible associated accounts.
	AssociatedAccountIDs []string `json:"associated_account_ids,omitempty" url:"associated_account_ids,omitempty"`
	// Channels associated with the account.
	Channels []*Channel `json:"channels,omitempty" url:"channels,omitempty"`
	// The creation time of the account.
	CreatedAt   time.Time    `json:"created_at" url:"created_at"`
	CrmSettings *CrmSettings `json:"crm_settings,omitempty" url:"crm_settings,omitempty"`
	// Custom fields associated with the account.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// The primary domain of the account.
	Domain *string `json:"domain,omitempty" url:"domain,omitempty"`
	// The list of domains associated with the account.
	Domains []string `json:"domains,omitempty" url:"domains,omitempty"`
	// External IDs associated with the account.
	ExternalIDs []*ExternalID `json:"external_ids,omitempty" url:"external_ids,omitempty"`
	// The ID of the account.
	ID string `json:"id" url:"id"`
	// Whether the account is disabled.
	IsDisabled bool `json:"is_disabled" url:"is_disabled"`
	// The time of the latest customer activity.
	LatestCustomerActivityTime string `json:"latest_customer_activity_time" url:"latest_customer_activity_time"`
	// The time of the latest vendor activity.
	LatestVendorActivityTime string `json:"latest_vendor_activity_time" url:"latest_vendor_activity_time"`
	// The logo URL of the account.
	LogoURL string `json:"logo_url" url:"logo_url"`
	// The name of the account.
	Name  string    `json:"name" url:"name"`
	Owner *MiniUser `json:"owner,omitempty" url:"owner,omitempty"`
	// The ID of this account's parent account, or null if it has no parent.
	ParentAccountID *string `json:"parent_account_id,omitempty" url:"parent_account_id,omitempty"`
	// The primary domain of the account.
	PrimaryDomain *string `json:"primary_domain,omitempty" url:"primary_domain,omitempty"`
	// The IDs of the subaccounts belonging to this account.
	SubaccountIDs []string `json:"subaccount_ids,omitempty" url:"subaccount_ids,omitempty"`
	// Tags associated with the account.
	Tags []string `json:"tags,omitempty" url:"tags,omitempty"`
	// The type of the account.
	//
	// Known values: `customer`, `internal`, `community`, `partner`. This list is not exhaustive.
	Type string `json:"type" url:"type"`
	// The time the account was last updated.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*Account) GetAssociatedAccountIDs

func (a *Account) GetAssociatedAccountIDs() []string

func (*Account) GetChannels

func (a *Account) GetChannels() []*Channel

func (*Account) GetCreatedAt

func (a *Account) GetCreatedAt() time.Time

func (*Account) GetCrmSettings

func (a *Account) GetCrmSettings() *CrmSettings

func (*Account) GetCustomFields

func (a *Account) GetCustomFields() map[string]*CustomFieldValue

func (*Account) GetDomain

func (a *Account) GetDomain() *string

func (*Account) GetDomains

func (a *Account) GetDomains() []string

func (*Account) GetExternalIDs

func (a *Account) GetExternalIDs() []*ExternalID

func (*Account) GetExtraProperties

func (a *Account) GetExtraProperties() map[string]interface{}

func (*Account) GetID

func (a *Account) GetID() string

func (*Account) GetIsDisabled

func (a *Account) GetIsDisabled() bool

func (*Account) GetLatestCustomerActivityTime

func (a *Account) GetLatestCustomerActivityTime() string

func (*Account) GetLatestVendorActivityTime

func (a *Account) GetLatestVendorActivityTime() string

func (*Account) GetLogoURL

func (a *Account) GetLogoURL() string

func (*Account) GetName

func (a *Account) GetName() string

func (*Account) GetOwner

func (a *Account) GetOwner() *MiniUser

func (*Account) GetParentAccountID

func (a *Account) GetParentAccountID() *string

func (*Account) GetPrimaryDomain

func (a *Account) GetPrimaryDomain() *string

func (*Account) GetSubaccountIDs

func (a *Account) GetSubaccountIDs() []string

func (*Account) GetTags

func (a *Account) GetTags() []string

func (*Account) GetType

func (a *Account) GetType() string

func (*Account) GetUpdatedAt

func (a *Account) GetUpdatedAt() time.Time

func (*Account) MarshalJSON

func (a *Account) MarshalJSON() ([]byte, error)

func (*Account) SetAssociatedAccountIDs

func (a *Account) SetAssociatedAccountIDs(associatedAccountIDs []string)

SetAssociatedAccountIDs sets the AssociatedAccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetChannels

func (a *Account) SetChannels(channels []*Channel)

SetChannels sets the Channels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetCreatedAt

func (a *Account) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetCrmSettings

func (a *Account) SetCrmSettings(crmSettings *CrmSettings)

SetCrmSettings sets the CrmSettings field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetCustomFields

func (a *Account) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetDomain

func (a *Account) SetDomain(domain *string)

SetDomain sets the Domain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetDomains

func (a *Account) SetDomains(domains []string)

SetDomains sets the Domains field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetExternalIDs

func (a *Account) SetExternalIDs(externalIDs []*ExternalID)

SetExternalIDs sets the ExternalIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetID

func (a *Account) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetIsDisabled

func (a *Account) SetIsDisabled(isDisabled bool)

SetIsDisabled sets the IsDisabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetLatestCustomerActivityTime

func (a *Account) SetLatestCustomerActivityTime(latestCustomerActivityTime string)

SetLatestCustomerActivityTime sets the LatestCustomerActivityTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetLatestVendorActivityTime

func (a *Account) SetLatestVendorActivityTime(latestVendorActivityTime string)

SetLatestVendorActivityTime sets the LatestVendorActivityTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetLogoURL

func (a *Account) SetLogoURL(logoURL string)

SetLogoURL sets the LogoURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetName

func (a *Account) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetOwner

func (a *Account) SetOwner(owner *MiniUser)

SetOwner sets the Owner field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetParentAccountID

func (a *Account) SetParentAccountID(parentAccountID *string)

SetParentAccountID sets the ParentAccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetPrimaryDomain

func (a *Account) SetPrimaryDomain(primaryDomain *string)

SetPrimaryDomain sets the PrimaryDomain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetSubaccountIDs

func (a *Account) SetSubaccountIDs(subaccountIDs []string)

SetSubaccountIDs sets the SubaccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetTags

func (a *Account) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetType

func (a *Account) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) SetUpdatedAt

func (a *Account) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Account) String

func (a *Account) String() string

func (*Account) UnmarshalJSON

func (a *Account) UnmarshalJSON(data []byte) error

type AccountHighlight

type AccountHighlight struct {
	// The ID of the account this highlight belongs to.
	AccountID string `json:"account_id" url:"account_id"`
	// The HTML content of the highlight.
	ContentHTML string `json:"content_html" url:"content_html"`
	// The timestamp of when the highlight was created.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The timestamp of when the highlight expires, if set.
	ExpiresAt *time.Time `json:"expires_at,omitempty" url:"expires_at,omitempty"`
	// The ID of the account highlight.
	ID string `json:"id" url:"id"`
	// The timestamp of when the highlight was last updated.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*AccountHighlight) GetAccountID

func (a *AccountHighlight) GetAccountID() string

func (*AccountHighlight) GetContentHTML

func (a *AccountHighlight) GetContentHTML() string

func (*AccountHighlight) GetCreatedAt

func (a *AccountHighlight) GetCreatedAt() time.Time

func (*AccountHighlight) GetExpiresAt

func (a *AccountHighlight) GetExpiresAt() *time.Time

func (*AccountHighlight) GetExtraProperties

func (a *AccountHighlight) GetExtraProperties() map[string]interface{}

func (*AccountHighlight) GetID

func (a *AccountHighlight) GetID() string

func (*AccountHighlight) GetUpdatedAt

func (a *AccountHighlight) GetUpdatedAt() time.Time

func (*AccountHighlight) MarshalJSON

func (a *AccountHighlight) MarshalJSON() ([]byte, error)

func (*AccountHighlight) SetAccountID

func (a *AccountHighlight) SetAccountID(accountID string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountHighlight) SetContentHTML

func (a *AccountHighlight) SetContentHTML(contentHTML string)

SetContentHTML sets the ContentHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountHighlight) SetCreatedAt

func (a *AccountHighlight) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountHighlight) SetExpiresAt

func (a *AccountHighlight) SetExpiresAt(expiresAt *time.Time)

SetExpiresAt sets the ExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountHighlight) SetID

func (a *AccountHighlight) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountHighlight) SetUpdatedAt

func (a *AccountHighlight) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountHighlight) String

func (a *AccountHighlight) String() string

func (*AccountHighlight) UnmarshalJSON

func (a *AccountHighlight) UnmarshalJSON(data []byte) error

type AccountNotebookNote

type AccountNotebookNote struct {
	// The ID of the account that the note belongs to.
	AccountID string `json:"account_id" url:"account_id"`
	// The ID of the notebook block that contains the note.
	BlockID string `json:"block_id" url:"block_id"`
	// The HTML content of the note.
	ContentHTML string `json:"content_html" url:"content_html"`
	// The creation time of the note in RFC3339 format.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The ID of the user who created the note, if available.
	CreatedByUserID *string `json:"created_by_user_id,omitempty" url:"created_by_user_id,omitempty"`
	// The ID of the note.
	ID string `json:"id" url:"id"`
	// The optional title of the note.
	Title *string `json:"title,omitempty" url:"title,omitempty"`
	// The last update time of the note in RFC3339 format.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*AccountNotebookNote) GetAccountID

func (a *AccountNotebookNote) GetAccountID() string

func (*AccountNotebookNote) GetBlockID

func (a *AccountNotebookNote) GetBlockID() string

func (*AccountNotebookNote) GetContentHTML

func (a *AccountNotebookNote) GetContentHTML() string

func (*AccountNotebookNote) GetCreatedAt

func (a *AccountNotebookNote) GetCreatedAt() time.Time

func (*AccountNotebookNote) GetCreatedByUserID

func (a *AccountNotebookNote) GetCreatedByUserID() *string

func (*AccountNotebookNote) GetExtraProperties

func (a *AccountNotebookNote) GetExtraProperties() map[string]interface{}

func (*AccountNotebookNote) GetID

func (a *AccountNotebookNote) GetID() string

func (*AccountNotebookNote) GetTitle

func (a *AccountNotebookNote) GetTitle() *string

func (*AccountNotebookNote) GetUpdatedAt

func (a *AccountNotebookNote) GetUpdatedAt() time.Time

func (*AccountNotebookNote) MarshalJSON

func (a *AccountNotebookNote) MarshalJSON() ([]byte, error)

func (*AccountNotebookNote) SetAccountID

func (a *AccountNotebookNote) SetAccountID(accountID string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountNotebookNote) SetBlockID

func (a *AccountNotebookNote) SetBlockID(blockID string)

SetBlockID sets the BlockID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountNotebookNote) SetContentHTML

func (a *AccountNotebookNote) SetContentHTML(contentHTML string)

SetContentHTML sets the ContentHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountNotebookNote) SetCreatedAt

func (a *AccountNotebookNote) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountNotebookNote) SetCreatedByUserID

func (a *AccountNotebookNote) SetCreatedByUserID(createdByUserID *string)

SetCreatedByUserID sets the CreatedByUserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountNotebookNote) SetID

func (a *AccountNotebookNote) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountNotebookNote) SetTitle

func (a *AccountNotebookNote) SetTitle(title *string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountNotebookNote) SetUpdatedAt

func (a *AccountNotebookNote) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountNotebookNote) String

func (a *AccountNotebookNote) String() string

func (*AccountNotebookNote) UnmarshalJSON

func (a *AccountNotebookNote) UnmarshalJSON(data []byte) error

type AccountRelationship

type AccountRelationship struct {
	// The ID of the account on the child or client side of the relationship.
	ChildAccountID string `json:"child_account_id" url:"child_account_id"`
	// The creation time of the relationship.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The ID of the relationship.
	ID string `json:"id" url:"id"`
	// The ID of the account on the parent or partner side of the relationship.
	ParentAccountID string `json:"parent_account_id" url:"parent_account_id"`
	// The ID of the related parent or partner account.
	RelatedObjectID string `json:"related_object_id" url:"related_object_id"`
	// The relationship type. One of "parent_account" or "partner_account".
	RelationshipType string `json:"relationship_type" url:"relationship_type"`
	// The time the relationship was last updated.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*AccountRelationship) GetChildAccountID

func (a *AccountRelationship) GetChildAccountID() string

func (*AccountRelationship) GetCreatedAt

func (a *AccountRelationship) GetCreatedAt() time.Time

func (*AccountRelationship) GetExtraProperties

func (a *AccountRelationship) GetExtraProperties() map[string]interface{}

func (*AccountRelationship) GetID

func (a *AccountRelationship) GetID() string

func (*AccountRelationship) GetParentAccountID

func (a *AccountRelationship) GetParentAccountID() string

func (*AccountRelationship) GetRelatedObjectID

func (a *AccountRelationship) GetRelatedObjectID() string

func (*AccountRelationship) GetRelationshipType

func (a *AccountRelationship) GetRelationshipType() string

func (*AccountRelationship) GetUpdatedAt

func (a *AccountRelationship) GetUpdatedAt() time.Time

func (*AccountRelationship) MarshalJSON

func (a *AccountRelationship) MarshalJSON() ([]byte, error)

func (*AccountRelationship) SetChildAccountID

func (a *AccountRelationship) SetChildAccountID(childAccountID string)

SetChildAccountID sets the ChildAccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountRelationship) SetCreatedAt

func (a *AccountRelationship) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountRelationship) SetID

func (a *AccountRelationship) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountRelationship) SetParentAccountID

func (a *AccountRelationship) SetParentAccountID(parentAccountID string)

SetParentAccountID sets the ParentAccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountRelationship) SetRelatedObjectID

func (a *AccountRelationship) SetRelatedObjectID(relatedObjectID string)

SetRelatedObjectID sets the RelatedObjectID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountRelationship) SetRelationshipType

func (a *AccountRelationship) SetRelationshipType(relationshipType string)

SetRelationshipType sets the RelationshipType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountRelationship) SetUpdatedAt

func (a *AccountRelationship) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountRelationship) String

func (a *AccountRelationship) String() string

func (*AccountRelationship) UnmarshalJSON

func (a *AccountRelationship) UnmarshalJSON(data []byte) error

type AccountsBulkUpdateRequest

type AccountsBulkUpdateRequest struct {
	// The account IDs to update. The number of accounts to update must be between 1 and 100.
	AccountIDs []string `json:"account_ids" url:"-"`
	// The type of the account. Can only be changed to "customer" or "partner".
	AccountType *UpdateAccountsRequestAccountType `json:"account_type,omitempty" url:"-"`
	// An array of custom fields to be updated on the accounts.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// Whether the accounts are disabled.
	IsDisabled *bool `json:"is_disabled,omitempty" url:"-"`
	// The ID of the new owner. If empty string is passed in, the owner will be removed.
	OwnerID *string `json:"owner_id,omitempty" url:"-"`
	// An array of tags to be updated on the accounts.
	Tags []string `json:"tags,omitempty" url:"-"`
	// The mode for applying tags. Valid values: "append_only", "remove_only", "replace". Defaults to "replace".
	TagsApplyMode *UpdateAccountsRequestTagsApplyMode `json:"tags_apply_mode,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*AccountsBulkUpdateRequest) MarshalJSON

func (a *AccountsBulkUpdateRequest) MarshalJSON() ([]byte, error)

func (*AccountsBulkUpdateRequest) SetAccountIDs

func (a *AccountsBulkUpdateRequest) SetAccountIDs(accountIDs []string)

SetAccountIDs sets the AccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsBulkUpdateRequest) SetAccountType

func (a *AccountsBulkUpdateRequest) SetAccountType(accountType *UpdateAccountsRequestAccountType)

SetAccountType sets the AccountType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsBulkUpdateRequest) SetCustomFields

func (a *AccountsBulkUpdateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsBulkUpdateRequest) SetIsDisabled

func (a *AccountsBulkUpdateRequest) SetIsDisabled(isDisabled *bool)

SetIsDisabled sets the IsDisabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsBulkUpdateRequest) SetOwnerID

func (a *AccountsBulkUpdateRequest) SetOwnerID(ownerID *string)

SetOwnerID sets the OwnerID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsBulkUpdateRequest) SetTags

func (a *AccountsBulkUpdateRequest) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsBulkUpdateRequest) SetTagsApplyMode

func (a *AccountsBulkUpdateRequest) SetTagsApplyMode(tagsApplyMode *UpdateAccountsRequestTagsApplyMode)

SetTagsApplyMode sets the TagsApplyMode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsBulkUpdateRequest) UnmarshalJSON

func (a *AccountsBulkUpdateRequest) UnmarshalJSON(data []byte) error

type AccountsCreateRequest

type AccountsCreateRequest struct {
	// The type of the account. Must be one of "customer", "internal", "community", or "partner". Defaults to "customer" if not specified.
	AccountType *CreateAccountRequestAccountType `json:"account_type,omitempty" url:"-"`
	// An array of channels to be linked to this account.
	Channels []*Channel `json:"channels,omitempty" url:"-"`
	// An array of custom fields to be used on this account.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// Deprecated. Please use Domains and PrimaryDomain instead.
	Domain *string `json:"domain,omitempty" url:"-"`
	// The domains of the account, without any leading scheme, for example stripe.com. Must specify one domain as primary.
	Domains []string `json:"domains,omitempty" url:"-"`
	// An array of external IDs to be used on this account. If provided, the account's external IDs will be updated to the given external IDs.
	ExternalIDs []*ExternalID `json:"external_ids,omitempty" url:"-"`
	// The logo URL of the account. Must be a square .png, .jpg or .jpeg.
	LogoURL *string `json:"logo_url,omitempty" url:"-"`
	// The name of the account.
	Name string `json:"name" url:"-"`
	// The ID of the owner of the account.
	OwnerID *string `json:"owner_id,omitempty" url:"-"`
	// Must be in the list of domains. If there are any domains, there must be exactly one primary domain.
	PrimaryDomain *string `json:"primary_domain,omitempty" url:"-"`
	// An array of account IDs to be added as subaccounts to this account. For normal accounts, these represent subaccounts. For partner accounts, these represent associated accounts.
	SubaccountIDs []string `json:"subaccount_ids,omitempty" url:"-"`
	// An array of strings to use as tags on this account. If provided, the accounts tags will be updated to the given tags.
	Tags []string `json:"tags,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*AccountsCreateRequest) MarshalJSON

func (a *AccountsCreateRequest) MarshalJSON() ([]byte, error)

func (*AccountsCreateRequest) SetAccountType

func (a *AccountsCreateRequest) SetAccountType(accountType *CreateAccountRequestAccountType)

SetAccountType sets the AccountType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetChannels

func (a *AccountsCreateRequest) SetChannels(channels []*Channel)

SetChannels sets the Channels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetCustomFields

func (a *AccountsCreateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetDomain

func (a *AccountsCreateRequest) SetDomain(domain *string)

SetDomain sets the Domain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetDomains

func (a *AccountsCreateRequest) SetDomains(domains []string)

SetDomains sets the Domains field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetExternalIDs

func (a *AccountsCreateRequest) SetExternalIDs(externalIDs []*ExternalID)

SetExternalIDs sets the ExternalIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetLogoURL

func (a *AccountsCreateRequest) SetLogoURL(logoURL *string)

SetLogoURL sets the LogoURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetName

func (a *AccountsCreateRequest) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetOwnerID

func (a *AccountsCreateRequest) SetOwnerID(ownerID *string)

SetOwnerID sets the OwnerID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetPrimaryDomain

func (a *AccountsCreateRequest) SetPrimaryDomain(primaryDomain *string)

SetPrimaryDomain sets the PrimaryDomain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetSubaccountIDs

func (a *AccountsCreateRequest) SetSubaccountIDs(subaccountIDs []string)

SetSubaccountIDs sets the SubaccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) SetTags

func (a *AccountsCreateRequest) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsCreateRequest) UnmarshalJSON

func (a *AccountsCreateRequest) UnmarshalJSON(data []byte) error

type AccountsDeleteRequest

type AccountsDeleteRequest struct {
	// The ID or external ID of the account to delete.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*AccountsDeleteRequest) SetID

func (a *AccountsDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type AccountsGetRequest

type AccountsGetRequest struct {
	// The ID or external ID of the account to fetch.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*AccountsGetRequest) SetID

func (a *AccountsGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type AccountsListRequest

type AccountsListRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"-" url:"cursor,omitempty"`
	// The number of accounts to fetch. Defaults to 100. Must be greater than 0 and less than 1000.
	Limit *int64 `json:"-" url:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountsListRequest) SetCursor

func (a *AccountsListRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsListRequest) SetLimit

func (a *AccountsListRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type AccountsMergeRequest

type AccountsMergeRequest struct {
	// The IDs of the accounts to merge into the surviving account. These accounts are permanently deleted after their data is transferred. The number of accounts to merge must be between 1 and 100.
	MergeAccountIDs []string `json:"merge_account_ids" url:"-"`
	// The ID of the account that will survive the merge and receive the merged data.
	MergeIntoAccountID string `json:"merge_into_account_id" url:"-"`
	// contains filtered or unexported fields
}

func (*AccountsMergeRequest) MarshalJSON

func (a *AccountsMergeRequest) MarshalJSON() ([]byte, error)

func (*AccountsMergeRequest) SetMergeAccountIDs

func (a *AccountsMergeRequest) SetMergeAccountIDs(mergeAccountIDs []string)

SetMergeAccountIDs sets the MergeAccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsMergeRequest) SetMergeIntoAccountID

func (a *AccountsMergeRequest) SetMergeIntoAccountID(mergeIntoAccountID string)

SetMergeIntoAccountID sets the MergeIntoAccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsMergeRequest) UnmarshalJSON

func (a *AccountsMergeRequest) UnmarshalJSON(data []byte) error

type AccountsSearchRequest

type AccountsSearchRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of accounts to fetch. Defaults to 100. Must be between 1 and 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// Fuzzy text search. Results are intersected with any provided filter.
	SearchText *string `json:"search_text,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*AccountsSearchRequest) MarshalJSON

func (a *AccountsSearchRequest) MarshalJSON() ([]byte, error)

func (*AccountsSearchRequest) SetCursor

func (a *AccountsSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsSearchRequest) SetFilter

func (a *AccountsSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsSearchRequest) SetLimit

func (a *AccountsSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsSearchRequest) SetSearchText

func (a *AccountsSearchRequest) SetSearchText(searchText *string)

SetSearchText sets the SearchText field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsSearchRequest) UnmarshalJSON

func (a *AccountsSearchRequest) UnmarshalJSON(data []byte) error

type AccountsUpdateRequest

type AccountsUpdateRequest struct {
	// The ID or external ID of the account to update.
	ID string `json:"-" url:"-"`
	// The type of the account. Can only be changed to "customer" or "partner".
	AccountType *UpdateAccountRequestBodyAccountType `json:"account_type,omitempty" url:"-"`
	// An array of channels to be linked to this account. If provided, replaces the account's linked channels; channels you leave out are unlinked.
	Channels []*Channel `json:"channels,omitempty" url:"-"`
	// An array of custom fields to be used on this account.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// Domains of the account. Replaces the account's domains. Must specify one domain as primary.
	Domains []string `json:"domains,omitempty" url:"-"`
	// An array of external IDs to be used on this account. If provided, the account's external IDs will be updated to the given external IDs.
	ExternalIDs []*ExternalID `json:"external_ids,omitempty" url:"-"`
	// Whether the account is disabled.
	IsDisabled *bool `json:"is_disabled,omitempty" url:"-"`
	// Logo URL of the account.
	LogoURL *string `json:"logo_url,omitempty" url:"-"`
	// The name of the account.
	Name *string `json:"name,omitempty" url:"-"`
	// The ID of the owner of the account. If empty string is passed in, the owner will be removed.
	OwnerID *string `json:"owner_id,omitempty" url:"-"`
	// Must be in the list of domains. If there are any domains, there must be exactly one primary domain.
	PrimaryDomain *string `json:"primary_domain,omitempty" url:"-"`
	// An array of account IDs to set as this account's subaccounts. If provided, the account's subaccounts become exactly this list; accounts you leave out are detached.
	SubaccountIDs []string `json:"subaccount_ids,omitempty" url:"-"`
	// An array of strings to use as tags on this account. If provided, the accounts tags will be updated to the given tags.
	Tags []string `json:"tags,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*AccountsUpdateRequest) MarshalJSON

func (a *AccountsUpdateRequest) MarshalJSON() ([]byte, error)

func (*AccountsUpdateRequest) SetAccountType

func (a *AccountsUpdateRequest) SetAccountType(accountType *UpdateAccountRequestBodyAccountType)

SetAccountType sets the AccountType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetChannels

func (a *AccountsUpdateRequest) SetChannels(channels []*Channel)

SetChannels sets the Channels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetCustomFields

func (a *AccountsUpdateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetDomains

func (a *AccountsUpdateRequest) SetDomains(domains []string)

SetDomains sets the Domains field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetExternalIDs

func (a *AccountsUpdateRequest) SetExternalIDs(externalIDs []*ExternalID)

SetExternalIDs sets the ExternalIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetID

func (a *AccountsUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetIsDisabled

func (a *AccountsUpdateRequest) SetIsDisabled(isDisabled *bool)

SetIsDisabled sets the IsDisabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetLogoURL

func (a *AccountsUpdateRequest) SetLogoURL(logoURL *string)

SetLogoURL sets the LogoURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetName

func (a *AccountsUpdateRequest) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetOwnerID

func (a *AccountsUpdateRequest) SetOwnerID(ownerID *string)

SetOwnerID sets the OwnerID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetPrimaryDomain

func (a *AccountsUpdateRequest) SetPrimaryDomain(primaryDomain *string)

SetPrimaryDomain sets the PrimaryDomain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetSubaccountIDs

func (a *AccountsUpdateRequest) SetSubaccountIDs(subaccountIDs []string)

SetSubaccountIDs sets the SubaccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) SetTags

func (a *AccountsUpdateRequest) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUpdateRequest) UnmarshalJSON

func (a *AccountsUpdateRequest) UnmarshalJSON(data []byte) error

type AccountsUploadFileRequest

type AccountsUploadFileRequest struct {
	// The ID or external ID of the account to upload files to.
	AccountID string    `json:"-" url:"-"`
	File      io.Reader `json:"-" url:"-"`
	// The URL to fetch the file from, if the file is not provided.
	FileURL *string `json:"file_url,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*AccountsUploadFileRequest) MarshalJSON

func (a *AccountsUploadFileRequest) MarshalJSON() ([]byte, error)

func (*AccountsUploadFileRequest) SetAccountID

func (a *AccountsUploadFileRequest) SetAccountID(accountID string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccountsUploadFileRequest) UnmarshalJSON

func (a *AccountsUploadFileRequest) UnmarshalJSON(data []byte) error

type ActiveTimeByUser

type ActiveTimeByUser struct {
	// The user's active time on the issue in seconds.
	ActiveTimeSeconds int64 `json:"active_time_seconds" url:"active_time_seconds"`
	// The user's business-hours active time on the issue in seconds.
	BusinessHoursActiveTimeSeconds int64 `json:"business_hours_active_time_seconds" url:"business_hours_active_time_seconds"`
	// The ID of the user who spent the time.
	UserID string `json:"user_id" url:"user_id"`
	// contains filtered or unexported fields
}

func (*ActiveTimeByUser) GetActiveTimeSeconds

func (a *ActiveTimeByUser) GetActiveTimeSeconds() int64

func (*ActiveTimeByUser) GetBusinessHoursActiveTimeSeconds

func (a *ActiveTimeByUser) GetBusinessHoursActiveTimeSeconds() int64

func (*ActiveTimeByUser) GetExtraProperties

func (a *ActiveTimeByUser) GetExtraProperties() map[string]interface{}

func (*ActiveTimeByUser) GetUserID

func (a *ActiveTimeByUser) GetUserID() string

func (*ActiveTimeByUser) MarshalJSON

func (a *ActiveTimeByUser) MarshalJSON() ([]byte, error)

func (*ActiveTimeByUser) SetActiveTimeSeconds

func (a *ActiveTimeByUser) SetActiveTimeSeconds(activeTimeSeconds int64)

SetActiveTimeSeconds sets the ActiveTimeSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ActiveTimeByUser) SetBusinessHoursActiveTimeSeconds

func (a *ActiveTimeByUser) SetBusinessHoursActiveTimeSeconds(businessHoursActiveTimeSeconds int64)

SetBusinessHoursActiveTimeSeconds sets the BusinessHoursActiveTimeSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ActiveTimeByUser) SetUserID

func (a *ActiveTimeByUser) SetUserID(userID string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ActiveTimeByUser) String

func (a *ActiveTimeByUser) String() string

func (*ActiveTimeByUser) UnmarshalJSON

func (a *ActiveTimeByUser) UnmarshalJSON(data []byte) error

type ActivityType

type ActivityType struct {
	// The icon url of the activity type.
	IconURL string `json:"icon_url" url:"icon_url"`
	// The ID of the activity type.
	ID string `json:"id" url:"id"`
	// The label of the activity type.
	Label string `json:"label" url:"label"`
	// The slug of the activity type.
	Slug string `json:"slug" url:"slug"`
	// contains filtered or unexported fields
}

func (*ActivityType) GetExtraProperties

func (a *ActivityType) GetExtraProperties() map[string]interface{}

func (*ActivityType) GetID

func (a *ActivityType) GetID() string

func (*ActivityType) GetIconURL

func (a *ActivityType) GetIconURL() string

func (*ActivityType) GetLabel

func (a *ActivityType) GetLabel() string

func (*ActivityType) GetSlug

func (a *ActivityType) GetSlug() string

func (*ActivityType) MarshalJSON

func (a *ActivityType) MarshalJSON() ([]byte, error)

func (*ActivityType) SetID

func (a *ActivityType) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ActivityType) SetIconURL

func (a *ActivityType) SetIconURL(iconURL string)

SetIconURL sets the IconURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ActivityType) SetLabel

func (a *ActivityType) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ActivityType) SetSlug

func (a *ActivityType) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ActivityType) String

func (a *ActivityType) String() string

func (*ActivityType) UnmarshalJSON

func (a *ActivityType) UnmarshalJSON(data []byte) error

type Actor

type Actor struct {
	Contact *MiniContact `json:"contact,omitempty" url:"contact,omitempty"`
	User    *MiniUser    `json:"user,omitempty" url:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*Actor) GetContact

func (a *Actor) GetContact() *MiniContact

func (*Actor) GetExtraProperties

func (a *Actor) GetExtraProperties() map[string]interface{}

func (*Actor) GetUser

func (a *Actor) GetUser() *MiniUser

func (*Actor) MarshalJSON

func (a *Actor) MarshalJSON() ([]byte, error)

func (*Actor) SetContact

func (a *Actor) SetContact(contact *MiniContact)

SetContact sets the Contact field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Actor) SetUser

func (a *Actor) SetUser(user *MiniUser)

SetUser sets the User field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Actor) String

func (a *Actor) String() string

func (*Actor) UnmarshalJSON

func (a *Actor) UnmarshalJSON(data []byte) error

type AddIssueFollowersResponseBody

type AddIssueFollowersResponseBody struct {
	// The data payload of the response.
	Data []*Follower `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*AddIssueFollowersResponseBody) GetData

func (a *AddIssueFollowersResponseBody) GetData() []*Follower

func (*AddIssueFollowersResponseBody) GetExtraProperties

func (a *AddIssueFollowersResponseBody) GetExtraProperties() map[string]interface{}

func (*AddIssueFollowersResponseBody) GetRequestID

func (a *AddIssueFollowersResponseBody) GetRequestID() string

func (*AddIssueFollowersResponseBody) MarshalJSON

func (a *AddIssueFollowersResponseBody) MarshalJSON() ([]byte, error)

func (*AddIssueFollowersResponseBody) SetData

func (a *AddIssueFollowersResponseBody) SetData(data []*Follower)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AddIssueFollowersResponseBody) SetRequestID

func (a *AddIssueFollowersResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AddIssueFollowersResponseBody) String

func (*AddIssueFollowersResponseBody) UnmarshalJSON

func (a *AddIssueFollowersResponseBody) UnmarshalJSON(data []byte) error

type Article

type Article struct {
	ApprovalInfo *ArticleApprovalInfo `json:"approval_info,omitempty" url:"approval_info,omitempty"`
	// The ID of the user who authored the article.
	AuthorUserID *string `json:"author_user_id,omitempty" url:"author_user_id,omitempty"`
	// The ID of the collection this article belongs to, if any.
	CollectionID *string `json:"collection_id,omitempty" url:"collection_id,omitempty"`
	// The time the article was created.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The current draft content of the article in HTML. This is the latest version, which may differ from the published version.
	CurrentDraftContentHTML *string `json:"current_draft_content_html,omitempty" url:"current_draft_content_html,omitempty"`
	// The current draft content of the article in markdown. This is the latest version, which may differ from the published version.
	CurrentDraftContentMarkdown *string `json:"current_draft_content_markdown,omitempty" url:"current_draft_content_markdown,omitempty"`
	// The current published content of the article in HTML.
	CurrentPublishedContentHTML *string `json:"current_published_content_html,omitempty" url:"current_published_content_html,omitempty"`
	// The current published content of the article in markdown.
	CurrentPublishedContentMarkdown *string `json:"current_published_content_markdown,omitempty" url:"current_published_content_markdown,omitempty"`
	// The ID of the article.
	ID string `json:"id" url:"id"`
	// The identifier of the article
	Identifier string `json:"identifier" url:"identifier"`
	// IsPublished indicates if the article is published.
	IsPublished bool `json:"is_published" url:"is_published"`
	// Whether the article is accessible only via a direct link.
	IsUnlisted bool `json:"is_unlisted" url:"is_unlisted"`
	// The time the article content was last edited.
	LastEditedAt *time.Time `json:"last_edited_at,omitempty" url:"last_edited_at,omitempty"`
	// The last published at time of the article.
	LastPublishedAt *time.Time `json:"last_published_at,omitempty" url:"last_published_at,omitempty"`
	// The slug of the article.
	Slug string `json:"slug" url:"slug"`
	// Tags assigned to the article.
	Tags []*Tag `json:"tags,omitempty" url:"tags,omitempty"`
	// The name of the article.
	Title string `json:"title" url:"title"`
	// The URL of the article.
	URL              string                   `json:"url" url:"url"`
	VisibilityConfig *ArticleVisibilityConfig `json:"visibility_config,omitempty" url:"visibility_config,omitempty"`
	// contains filtered or unexported fields
}

func (*Article) GetApprovalInfo

func (a *Article) GetApprovalInfo() *ArticleApprovalInfo

func (*Article) GetAuthorUserID

func (a *Article) GetAuthorUserID() *string

func (*Article) GetCollectionID

func (a *Article) GetCollectionID() *string

func (*Article) GetCreatedAt

func (a *Article) GetCreatedAt() time.Time

func (*Article) GetCurrentDraftContentHTML

func (a *Article) GetCurrentDraftContentHTML() *string

func (*Article) GetCurrentDraftContentMarkdown

func (a *Article) GetCurrentDraftContentMarkdown() *string

func (*Article) GetCurrentPublishedContentHTML

func (a *Article) GetCurrentPublishedContentHTML() *string

func (*Article) GetCurrentPublishedContentMarkdown

func (a *Article) GetCurrentPublishedContentMarkdown() *string

func (*Article) GetExtraProperties

func (a *Article) GetExtraProperties() map[string]interface{}

func (*Article) GetID

func (a *Article) GetID() string

func (*Article) GetIdentifier

func (a *Article) GetIdentifier() string

func (*Article) GetIsPublished

func (a *Article) GetIsPublished() bool

func (*Article) GetIsUnlisted

func (a *Article) GetIsUnlisted() bool

func (*Article) GetLastEditedAt

func (a *Article) GetLastEditedAt() *time.Time

func (*Article) GetLastPublishedAt

func (a *Article) GetLastPublishedAt() *time.Time

func (*Article) GetSlug

func (a *Article) GetSlug() string

func (*Article) GetTags

func (a *Article) GetTags() []*Tag

func (*Article) GetTitle

func (a *Article) GetTitle() string

func (*Article) GetURL

func (a *Article) GetURL() string

func (*Article) GetVisibilityConfig

func (a *Article) GetVisibilityConfig() *ArticleVisibilityConfig

func (*Article) MarshalJSON

func (a *Article) MarshalJSON() ([]byte, error)

func (*Article) SetApprovalInfo

func (a *Article) SetApprovalInfo(approvalInfo *ArticleApprovalInfo)

SetApprovalInfo sets the ApprovalInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetAuthorUserID

func (a *Article) SetAuthorUserID(authorUserID *string)

SetAuthorUserID sets the AuthorUserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetCollectionID

func (a *Article) SetCollectionID(collectionID *string)

SetCollectionID sets the CollectionID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetCreatedAt

func (a *Article) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetCurrentDraftContentHTML

func (a *Article) SetCurrentDraftContentHTML(currentDraftContentHTML *string)

SetCurrentDraftContentHTML sets the CurrentDraftContentHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetCurrentDraftContentMarkdown

func (a *Article) SetCurrentDraftContentMarkdown(currentDraftContentMarkdown *string)

SetCurrentDraftContentMarkdown sets the CurrentDraftContentMarkdown field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetCurrentPublishedContentHTML

func (a *Article) SetCurrentPublishedContentHTML(currentPublishedContentHTML *string)

SetCurrentPublishedContentHTML sets the CurrentPublishedContentHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetCurrentPublishedContentMarkdown

func (a *Article) SetCurrentPublishedContentMarkdown(currentPublishedContentMarkdown *string)

SetCurrentPublishedContentMarkdown sets the CurrentPublishedContentMarkdown field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetID

func (a *Article) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetIdentifier

func (a *Article) SetIdentifier(identifier string)

SetIdentifier sets the Identifier field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetIsPublished

func (a *Article) SetIsPublished(isPublished bool)

SetIsPublished sets the IsPublished field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetIsUnlisted

func (a *Article) SetIsUnlisted(isUnlisted bool)

SetIsUnlisted sets the IsUnlisted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetLastEditedAt

func (a *Article) SetLastEditedAt(lastEditedAt *time.Time)

SetLastEditedAt sets the LastEditedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetLastPublishedAt

func (a *Article) SetLastPublishedAt(lastPublishedAt *time.Time)

SetLastPublishedAt sets the LastPublishedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetSlug

func (a *Article) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetTags

func (a *Article) SetTags(tags []*Tag)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetTitle

func (a *Article) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetURL

func (a *Article) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) SetVisibilityConfig

func (a *Article) SetVisibilityConfig(visibilityConfig *ArticleVisibilityConfig)

SetVisibilityConfig sets the VisibilityConfig field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Article) String

func (a *Article) String() string

func (*Article) UnmarshalJSON

func (a *Article) UnmarshalJSON(data []byte) error

type ArticleApprovalInfo

type ArticleApprovalInfo struct {
	// The time a review was requested. Null if no review has been requested.
	RequestedAt *time.Time `json:"requested_at,omitempty" url:"requested_at,omitempty"`
	// The time the current review decision was made. Null if no review decision has been made.
	ReviewedAt *time.Time `json:"reviewed_at,omitempty" url:"reviewed_at,omitempty"`
	// The ID of the user who made the current review decision. Null if no review decision has been made.
	ReviewedByUserID *string `json:"reviewed_by_user_id,omitempty" url:"reviewed_by_user_id,omitempty"`
	// The approval status. Possible values: needs_review, changes_requested, approved.
	Status string `json:"status" url:"status"`
	// contains filtered or unexported fields
}

func (*ArticleApprovalInfo) GetExtraProperties

func (a *ArticleApprovalInfo) GetExtraProperties() map[string]interface{}

func (*ArticleApprovalInfo) GetRequestedAt

func (a *ArticleApprovalInfo) GetRequestedAt() *time.Time

func (*ArticleApprovalInfo) GetReviewedAt

func (a *ArticleApprovalInfo) GetReviewedAt() *time.Time

func (*ArticleApprovalInfo) GetReviewedByUserID

func (a *ArticleApprovalInfo) GetReviewedByUserID() *string

func (*ArticleApprovalInfo) GetStatus

func (a *ArticleApprovalInfo) GetStatus() string

func (*ArticleApprovalInfo) MarshalJSON

func (a *ArticleApprovalInfo) MarshalJSON() ([]byte, error)

func (*ArticleApprovalInfo) SetRequestedAt

func (a *ArticleApprovalInfo) SetRequestedAt(requestedAt *time.Time)

SetRequestedAt sets the RequestedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleApprovalInfo) SetReviewedAt

func (a *ArticleApprovalInfo) SetReviewedAt(reviewedAt *time.Time)

SetReviewedAt sets the ReviewedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleApprovalInfo) SetReviewedByUserID

func (a *ArticleApprovalInfo) SetReviewedByUserID(reviewedByUserID *string)

SetReviewedByUserID sets the ReviewedByUserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleApprovalInfo) SetStatus

func (a *ArticleApprovalInfo) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleApprovalInfo) String

func (a *ArticleApprovalInfo) String() string

func (*ArticleApprovalInfo) UnmarshalJSON

func (a *ArticleApprovalInfo) UnmarshalJSON(data []byte) error

type ArticleFeedback

type ArticleFeedback struct {
	// The ID of the article that received the feedback.
	ArticleID string `json:"article_id" url:"article_id"`
	// The optional comment submitted with the feedback.
	Comment *string `json:"comment,omitempty" url:"comment,omitempty"`
	// The ID of the feedback submission.
	ID string `json:"id" url:"id"`
	// The ID of the knowledge base containing the article.
	KnowledgeBaseID string `json:"knowledge_base_id" url:"knowledge_base_id"`
	// The feedback score, from 1 (very unhelpful) to 5 (very helpful).
	Score int64 `json:"score" url:"score"`
	// The time the feedback was submitted, in RFC 3339 format.
	SubmittedAt time.Time `json:"submitted_at" url:"submitted_at"`
	Submitter   *Actor    `json:"submitter,omitempty" url:"submitter,omitempty"`
	// The time the feedback was last updated, in RFC 3339 format.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*ArticleFeedback) GetArticleID

func (a *ArticleFeedback) GetArticleID() string

func (*ArticleFeedback) GetComment

func (a *ArticleFeedback) GetComment() *string

func (*ArticleFeedback) GetExtraProperties

func (a *ArticleFeedback) GetExtraProperties() map[string]interface{}

func (*ArticleFeedback) GetID

func (a *ArticleFeedback) GetID() string

func (*ArticleFeedback) GetKnowledgeBaseID

func (a *ArticleFeedback) GetKnowledgeBaseID() string

func (*ArticleFeedback) GetScore

func (a *ArticleFeedback) GetScore() int64

func (*ArticleFeedback) GetSubmittedAt

func (a *ArticleFeedback) GetSubmittedAt() time.Time

func (*ArticleFeedback) GetSubmitter

func (a *ArticleFeedback) GetSubmitter() *Actor

func (*ArticleFeedback) GetUpdatedAt

func (a *ArticleFeedback) GetUpdatedAt() time.Time

func (*ArticleFeedback) MarshalJSON

func (a *ArticleFeedback) MarshalJSON() ([]byte, error)

func (*ArticleFeedback) SetArticleID

func (a *ArticleFeedback) SetArticleID(articleID string)

SetArticleID sets the ArticleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedback) SetComment

func (a *ArticleFeedback) SetComment(comment *string)

SetComment sets the Comment field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedback) SetID

func (a *ArticleFeedback) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedback) SetKnowledgeBaseID

func (a *ArticleFeedback) SetKnowledgeBaseID(knowledgeBaseID string)

SetKnowledgeBaseID sets the KnowledgeBaseID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedback) SetScore

func (a *ArticleFeedback) SetScore(score int64)

SetScore sets the Score field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedback) SetSubmittedAt

func (a *ArticleFeedback) SetSubmittedAt(submittedAt time.Time)

SetSubmittedAt sets the SubmittedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedback) SetSubmitter

func (a *ArticleFeedback) SetSubmitter(submitter *Actor)

SetSubmitter sets the Submitter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedback) SetUpdatedAt

func (a *ArticleFeedback) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedback) String

func (a *ArticleFeedback) String() string

func (*ArticleFeedback) UnmarshalJSON

func (a *ArticleFeedback) UnmarshalJSON(data []byte) error

type ArticleFeedbackListRequest

type ArticleFeedbackListRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"-" url:"cursor,omitempty"`
	// The number of feedback submissions to fetch. Defaults to 100. Must be greater than 0 and less than 1000.
	Limit *int64 `json:"-" url:"limit,omitempty"`
	// The ID of the knowledge base to filter by.
	KnowledgeBaseID *string `json:"-" url:"knowledge_base_id,omitempty"`
	// The ID of the article to filter by.
	ArticleID *string `json:"-" url:"article_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ArticleFeedbackListRequest) SetArticleID

func (a *ArticleFeedbackListRequest) SetArticleID(articleID *string)

SetArticleID sets the ArticleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedbackListRequest) SetCursor

func (a *ArticleFeedbackListRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedbackListRequest) SetKnowledgeBaseID

func (a *ArticleFeedbackListRequest) SetKnowledgeBaseID(knowledgeBaseID *string)

SetKnowledgeBaseID sets the KnowledgeBaseID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleFeedbackListRequest) SetLimit

func (a *ArticleFeedbackListRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ArticleTranslationInput

type ArticleTranslationInput struct {
	// The translated HTML body of the article. Required unless body_markdown is set.
	BodyHTML *string `json:"body_html,omitempty" url:"body_html,omitempty"`
	// The translated body of the article in markdown, instead of body_html.
	BodyMarkdown *string `json:"body_markdown,omitempty" url:"body_markdown,omitempty"`
	// The language code of the translation, for example `fr`, `pt-br`, or `zh-cn`. See https://docs.usepylon.com/pylon-docs/knowledge-base/translations.
	Language string `json:"language" url:"language"`
	// The translated title of the article.
	Title string `json:"title" url:"title"`
	// contains filtered or unexported fields
}

func (*ArticleTranslationInput) GetBodyHTML

func (a *ArticleTranslationInput) GetBodyHTML() *string

func (*ArticleTranslationInput) GetBodyMarkdown

func (a *ArticleTranslationInput) GetBodyMarkdown() *string

func (*ArticleTranslationInput) GetExtraProperties

func (a *ArticleTranslationInput) GetExtraProperties() map[string]interface{}

func (*ArticleTranslationInput) GetLanguage

func (a *ArticleTranslationInput) GetLanguage() string

func (*ArticleTranslationInput) GetTitle

func (a *ArticleTranslationInput) GetTitle() string

func (*ArticleTranslationInput) MarshalJSON

func (a *ArticleTranslationInput) MarshalJSON() ([]byte, error)

func (*ArticleTranslationInput) SetBodyHTML

func (a *ArticleTranslationInput) SetBodyHTML(bodyHTML *string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleTranslationInput) SetBodyMarkdown

func (a *ArticleTranslationInput) SetBodyMarkdown(bodyMarkdown *string)

SetBodyMarkdown sets the BodyMarkdown field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleTranslationInput) SetLanguage

func (a *ArticleTranslationInput) SetLanguage(language string)

SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleTranslationInput) SetTitle

func (a *ArticleTranslationInput) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleTranslationInput) String

func (a *ArticleTranslationInput) String() string

func (*ArticleTranslationInput) UnmarshalJSON

func (a *ArticleTranslationInput) UnmarshalJSON(data []byte) error

type ArticleVisibilityConfig

type ArticleVisibilityConfig struct {
	// AI agent access control. Defaults to inherit from the parent scope when omitted.
	AiAgentAccess *ArticleVisibilityConfigAiAgentAccess `json:"ai_agent_access,omitempty" url:"ai_agent_access,omitempty"`
	// List of AI agent IDs that may access this resource when ai_agent_access is set to "specific_agents".
	AllowedAgentIDs             []string `json:"allowed_agent_ids,omitempty" url:"allowed_agent_ids,omitempty"`
	CustomerVisibilityCondition *Filter  `json:"customer_visibility_condition,omitempty" url:"customer_visibility_condition,omitempty"`
	// The visibility setting.
	Visibility *ArticleVisibilityConfigVisibility `json:"visibility,omitempty" url:"visibility,omitempty"`
	// contains filtered or unexported fields
}

func (*ArticleVisibilityConfig) GetAiAgentAccess

func (*ArticleVisibilityConfig) GetAllowedAgentIDs

func (a *ArticleVisibilityConfig) GetAllowedAgentIDs() []string

func (*ArticleVisibilityConfig) GetCustomerVisibilityCondition

func (a *ArticleVisibilityConfig) GetCustomerVisibilityCondition() *Filter

func (*ArticleVisibilityConfig) GetExtraProperties

func (a *ArticleVisibilityConfig) GetExtraProperties() map[string]interface{}

func (*ArticleVisibilityConfig) GetVisibility

func (*ArticleVisibilityConfig) MarshalJSON

func (a *ArticleVisibilityConfig) MarshalJSON() ([]byte, error)

func (*ArticleVisibilityConfig) SetAiAgentAccess

func (a *ArticleVisibilityConfig) SetAiAgentAccess(aiAgentAccess *ArticleVisibilityConfigAiAgentAccess)

SetAiAgentAccess sets the AiAgentAccess field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleVisibilityConfig) SetAllowedAgentIDs

func (a *ArticleVisibilityConfig) SetAllowedAgentIDs(allowedAgentIDs []string)

SetAllowedAgentIDs sets the AllowedAgentIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleVisibilityConfig) SetCustomerVisibilityCondition

func (a *ArticleVisibilityConfig) SetCustomerVisibilityCondition(customerVisibilityCondition *Filter)

SetCustomerVisibilityCondition sets the CustomerVisibilityCondition field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleVisibilityConfig) SetVisibility

func (a *ArticleVisibilityConfig) SetVisibility(visibility *ArticleVisibilityConfigVisibility)

SetVisibility sets the Visibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ArticleVisibilityConfig) String

func (a *ArticleVisibilityConfig) String() string

func (*ArticleVisibilityConfig) UnmarshalJSON

func (a *ArticleVisibilityConfig) UnmarshalJSON(data []byte) error

type ArticleVisibilityConfigAiAgentAccess

type ArticleVisibilityConfigAiAgentAccess string

AI agent access control. Defaults to inherit from the parent scope when omitted.

const (
	ArticleVisibilityConfigAiAgentAccessInherit        ArticleVisibilityConfigAiAgentAccess = "inherit"
	ArticleVisibilityConfigAiAgentAccessNone           ArticleVisibilityConfigAiAgentAccess = "none"
	ArticleVisibilityConfigAiAgentAccessSpecificAgents ArticleVisibilityConfigAiAgentAccess = "specific_agents"
)

func NewArticleVisibilityConfigAiAgentAccessFromString

func NewArticleVisibilityConfigAiAgentAccessFromString(s string) (ArticleVisibilityConfigAiAgentAccess, error)

func (ArticleVisibilityConfigAiAgentAccess) Ptr

type ArticleVisibilityConfigVisibility

type ArticleVisibilityConfigVisibility string

The visibility setting.

const (
	ArticleVisibilityConfigVisibilityPublic       ArticleVisibilityConfigVisibility = "public"
	ArticleVisibilityConfigVisibilityCustomer     ArticleVisibilityConfigVisibility = "customer"
	ArticleVisibilityConfigVisibilityInternalOnly ArticleVisibilityConfigVisibility = "internal_only"
)

func NewArticleVisibilityConfigVisibilityFromString

func NewArticleVisibilityConfigVisibilityFromString(s string) (ArticleVisibilityConfigVisibility, error)

func (ArticleVisibilityConfigVisibility) Ptr

type Attachment

type Attachment struct {
	// The description of the attachment.
	Description string `json:"description" url:"description"`
	// The ID of the attachment.
	ID string `json:"id" url:"id"`
	// The name of the attachment.
	Name string `json:"name" url:"name"`
	// The URL of the attachment.
	URL string `json:"url" url:"url"`
	// contains filtered or unexported fields
}

func (*Attachment) GetDescription

func (a *Attachment) GetDescription() string

func (*Attachment) GetExtraProperties

func (a *Attachment) GetExtraProperties() map[string]interface{}

func (*Attachment) GetID

func (a *Attachment) GetID() string

func (*Attachment) GetName

func (a *Attachment) GetName() string

func (*Attachment) GetURL

func (a *Attachment) GetURL() string

func (*Attachment) MarshalJSON

func (a *Attachment) MarshalJSON() ([]byte, error)

func (*Attachment) SetDescription

func (a *Attachment) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Attachment) SetID

func (a *Attachment) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Attachment) SetName

func (a *Attachment) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Attachment) SetURL

func (a *Attachment) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Attachment) String

func (a *Attachment) String() string

func (*Attachment) UnmarshalJSON

func (a *Attachment) UnmarshalJSON(data []byte) error

type AttachmentsCreateRequest

type AttachmentsCreateRequest struct {
	File io.Reader `json:"-" url:"-"`
	// The description of the file.
	Description *string `json:"description,omitempty" url:"-"`
	// The URL to fetch the file from. Ignored when `file` is also sent. Fetched files up to 100 MB (104,857,600 bytes) are supported. Larger files may be rejected and should be shared using an externally hosted link.
	FileURL *string `json:"file_url,omitempty" url:"-"`
	// contains filtered or unexported fields
}

type AuditLog

type AuditLog struct {
	// The action that was performed.
	Action string `json:"action" url:"action"`
	// The time at which the action happened.
	ActionHappenedAt time.Time `json:"action_happened_at" url:"action_happened_at"`
	// The ID of the contact who performed the action, if applicable.
	ActorContactID *string `json:"actor_contact_id,omitempty" url:"actor_contact_id,omitempty"`
	// The ID of the user who performed the action, if applicable.
	ActorUserID *string `json:"actor_user_id,omitempty" url:"actor_user_id,omitempty"`
	// Key-value attributes associated with the audit log.
	Attributes map[string]string `json:"attributes,omitempty" url:"attributes,omitempty"`
	// The time at which the audit log was created.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The ID of the audit log.
	ID string `json:"id" url:"id"`
	// The link associated with the audit log, if applicable.
	Link *string `json:"link,omitempty" url:"link,omitempty"`
	// Additional metadata associated with the audit log. The structure varies based on the action type.
	Metadata map[string]any `json:"metadata,omitempty" url:"metadata,omitempty"`
	// The ID of the object that the audit log is for.
	ObjectID string `json:"object_id" url:"object_id"`
	// The type of object that the audit log is for.
	ObjectType string `json:"object_type" url:"object_type"`
	// The source of the audit log.
	Source string `json:"source" url:"source"`
	// contains filtered or unexported fields
}

func (*AuditLog) GetAction

func (a *AuditLog) GetAction() string

func (*AuditLog) GetActionHappenedAt

func (a *AuditLog) GetActionHappenedAt() time.Time

func (*AuditLog) GetActorContactID

func (a *AuditLog) GetActorContactID() *string

func (*AuditLog) GetActorUserID

func (a *AuditLog) GetActorUserID() *string

func (*AuditLog) GetAttributes

func (a *AuditLog) GetAttributes() map[string]string

func (*AuditLog) GetCreatedAt

func (a *AuditLog) GetCreatedAt() time.Time

func (*AuditLog) GetExtraProperties

func (a *AuditLog) GetExtraProperties() map[string]interface{}

func (*AuditLog) GetID

func (a *AuditLog) GetID() string
func (a *AuditLog) GetLink() *string

func (*AuditLog) GetMetadata

func (a *AuditLog) GetMetadata() map[string]any

func (*AuditLog) GetObjectID

func (a *AuditLog) GetObjectID() string

func (*AuditLog) GetObjectType

func (a *AuditLog) GetObjectType() string

func (*AuditLog) GetSource

func (a *AuditLog) GetSource() string

func (*AuditLog) MarshalJSON

func (a *AuditLog) MarshalJSON() ([]byte, error)

func (*AuditLog) SetAction

func (a *AuditLog) SetAction(action string)

SetAction sets the Action field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) SetActionHappenedAt

func (a *AuditLog) SetActionHappenedAt(actionHappenedAt time.Time)

SetActionHappenedAt sets the ActionHappenedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) SetActorContactID

func (a *AuditLog) SetActorContactID(actorContactID *string)

SetActorContactID sets the ActorContactID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) SetActorUserID

func (a *AuditLog) SetActorUserID(actorUserID *string)

SetActorUserID sets the ActorUserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) SetAttributes

func (a *AuditLog) SetAttributes(attributes map[string]string)

SetAttributes sets the Attributes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) SetCreatedAt

func (a *AuditLog) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) SetID

func (a *AuditLog) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (a *AuditLog) SetLink(link *string)

SetLink sets the Link field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) SetMetadata

func (a *AuditLog) SetMetadata(metadata map[string]any)

SetMetadata sets the Metadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) SetObjectID

func (a *AuditLog) SetObjectID(objectID string)

SetObjectID sets the ObjectID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) SetObjectType

func (a *AuditLog) SetObjectType(objectType string)

SetObjectType sets the ObjectType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) SetSource

func (a *AuditLog) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLog) String

func (a *AuditLog) String() string

func (*AuditLog) UnmarshalJSON

func (a *AuditLog) UnmarshalJSON(data []byte) error

type AuditLogsListRequest

type AuditLogsListRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"-" url:"cursor,omitempty"`
	// The number of audit logs to fetch. Defaults to 100. Must be greater than 0 and less than 1000.
	Limit *int64 `json:"-" url:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*AuditLogsListRequest) SetCursor

func (a *AuditLogsListRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLogsListRequest) SetLimit

func (a *AuditLogsListRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type AuditLogsSearchRequest

type AuditLogsSearchRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of audit logs to fetch. Defaults to 100. Must be greater than 0 and less than 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*AuditLogsSearchRequest) MarshalJSON

func (a *AuditLogsSearchRequest) MarshalJSON() ([]byte, error)

func (*AuditLogsSearchRequest) SetCursor

func (a *AuditLogsSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLogsSearchRequest) SetFilter

func (a *AuditLogsSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLogsSearchRequest) SetLimit

func (a *AuditLogsSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AuditLogsSearchRequest) UnmarshalJSON

func (a *AuditLogsSearchRequest) UnmarshalJSON(data []byte) error

type BadRequestError

type BadRequestError struct {
	*core.APIError
	Body *ErrorAPIResponseBody
}

The request was invalid or could not be completed.

func (*BadRequestError) GetBody

func (b *BadRequestError) GetBody() *ErrorAPIResponseBody

func (*BadRequestError) MarshalJSON

func (b *BadRequestError) MarshalJSON() ([]byte, error)

func (*BadRequestError) UnmarshalJSON

func (b *BadRequestError) UnmarshalJSON(data []byte) error

func (*BadRequestError) Unwrap

func (b *BadRequestError) Unwrap() error

type BulkIssueResult

type BulkIssueResult struct {
	// The issues the operation was not applied to, with the reason for each.
	SkippedIssues []*SkippedIssue `json:"skipped_issues,omitempty" url:"skipped_issues,omitempty"`
	// The issues the operation was applied to.
	SucceededIssueIDs []string `json:"succeeded_issue_ids,omitempty" url:"succeeded_issue_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkIssueResult) GetExtraProperties

func (b *BulkIssueResult) GetExtraProperties() map[string]interface{}

func (*BulkIssueResult) GetSkippedIssues

func (b *BulkIssueResult) GetSkippedIssues() []*SkippedIssue

func (*BulkIssueResult) GetSucceededIssueIDs

func (b *BulkIssueResult) GetSucceededIssueIDs() []string

func (*BulkIssueResult) MarshalJSON

func (b *BulkIssueResult) MarshalJSON() ([]byte, error)

func (*BulkIssueResult) SetSkippedIssues

func (b *BulkIssueResult) SetSkippedIssues(skippedIssues []*SkippedIssue)

SetSkippedIssues sets the SkippedIssues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BulkIssueResult) SetSucceededIssueIDs

func (b *BulkIssueResult) SetSucceededIssueIDs(succeededIssueIDs []string)

SetSucceededIssueIDs sets the SucceededIssueIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BulkIssueResult) String

func (b *BulkIssueResult) String() string

func (*BulkIssueResult) UnmarshalJSON

func (b *BulkIssueResult) UnmarshalJSON(data []byte) error

type CallRecording

type CallRecording struct {
	// The account ID associated with the call recording.
	AccountID *string `json:"account_id,omitempty" url:"account_id,omitempty"`
	// The calendar event ID associated with the call recording.
	CalendarEventID *string `json:"calendar_event_id,omitempty" url:"calendar_event_id,omitempty"`
	// The creation time of the call recording in RFC3339 format.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// Custom fields associated with the call recording.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// The duration of the call recording in milliseconds.
	DurationMs int64 `json:"duration_ms" url:"duration_ms"`
	// The end time of the call recording in RFC3339 format.
	EndTime time.Time `json:"end_time" url:"end_time"`
	// The external ID of the call recording from the source system.
	ExternalID string `json:"external_id" url:"external_id"`
	// The ID of the call recording.
	ID string `json:"id" url:"id"`
	// The participant emails of the call recording.
	ParticipantEmails []string `json:"participant_emails,omitempty" url:"participant_emails,omitempty"`
	// The source of the call recording (e.g. fathom, gong, grain, granola, custom_call_recorder).
	Source string `json:"source" url:"source"`
	// The start time of the call recording in RFC3339 format.
	StartTime time.Time `json:"start_time" url:"start_time"`
	// The summary of the call recording.
	Summary string `json:"summary" url:"summary"`
	// The title of the call recording.
	Title string `json:"title" url:"title"`
	// The last update time of the call recording in RFC3339 format.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// The URL of the call recording.
	URL string `json:"url" url:"url"`
	// contains filtered or unexported fields
}

func (*CallRecording) GetAccountID

func (c *CallRecording) GetAccountID() *string

func (*CallRecording) GetCalendarEventID

func (c *CallRecording) GetCalendarEventID() *string

func (*CallRecording) GetCreatedAt

func (c *CallRecording) GetCreatedAt() time.Time

func (*CallRecording) GetCustomFields

func (c *CallRecording) GetCustomFields() map[string]*CustomFieldValue

func (*CallRecording) GetDurationMs

func (c *CallRecording) GetDurationMs() int64

func (*CallRecording) GetEndTime

func (c *CallRecording) GetEndTime() time.Time

func (*CallRecording) GetExternalID

func (c *CallRecording) GetExternalID() string

func (*CallRecording) GetExtraProperties

func (c *CallRecording) GetExtraProperties() map[string]interface{}

func (*CallRecording) GetID

func (c *CallRecording) GetID() string

func (*CallRecording) GetParticipantEmails

func (c *CallRecording) GetParticipantEmails() []string

func (*CallRecording) GetSource

func (c *CallRecording) GetSource() string

func (*CallRecording) GetStartTime

func (c *CallRecording) GetStartTime() time.Time

func (*CallRecording) GetSummary

func (c *CallRecording) GetSummary() string

func (*CallRecording) GetTitle

func (c *CallRecording) GetTitle() string

func (*CallRecording) GetURL

func (c *CallRecording) GetURL() string

func (*CallRecording) GetUpdatedAt

func (c *CallRecording) GetUpdatedAt() time.Time

func (*CallRecording) MarshalJSON

func (c *CallRecording) MarshalJSON() ([]byte, error)

func (*CallRecording) SetAccountID

func (c *CallRecording) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetCalendarEventID

func (c *CallRecording) SetCalendarEventID(calendarEventID *string)

SetCalendarEventID sets the CalendarEventID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetCreatedAt

func (c *CallRecording) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetCustomFields

func (c *CallRecording) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetDurationMs

func (c *CallRecording) SetDurationMs(durationMs int64)

SetDurationMs sets the DurationMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetEndTime

func (c *CallRecording) SetEndTime(endTime time.Time)

SetEndTime sets the EndTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetExternalID

func (c *CallRecording) SetExternalID(externalID string)

SetExternalID sets the ExternalID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetID

func (c *CallRecording) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetParticipantEmails

func (c *CallRecording) SetParticipantEmails(participantEmails []string)

SetParticipantEmails sets the ParticipantEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetSource

func (c *CallRecording) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetStartTime

func (c *CallRecording) SetStartTime(startTime time.Time)

SetStartTime sets the StartTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetSummary

func (c *CallRecording) SetSummary(summary string)

SetSummary sets the Summary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetTitle

func (c *CallRecording) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetURL

func (c *CallRecording) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) SetUpdatedAt

func (c *CallRecording) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecording) String

func (c *CallRecording) String() string

func (*CallRecording) UnmarshalJSON

func (c *CallRecording) UnmarshalJSON(data []byte) error

type CallRecordingsCreateRequest

type CallRecordingsCreateRequest struct {
	// The ID of the account to link this call recording to. If provided, the participant emails are not used for account matching, and an unknown ID returns 400. If omitted, Pylon matches an account from the participant emails, ignoring your organization's own domains; the recording is created without an account if none matches.
	AccountID *string `json:"account_id,omitempty" url:"-"`
	// The source of the recording. Must be `custom_call_recorder`, which requires the Custom Call Recorder integration to be enabled.
	AppType CreateCallRecordingRequestAppType `json:"app_type" url:"-"`
	// The transcript, one entry per utterance. `custom_call_recorder` takes its transcript only from this field and ignores a plain-text transcript.
	CallRecordingMessages []*CreateCallRecordingMessageRequest `json:"call_recording_messages" url:"-"`
	// Custom fields to set on the call recording. Use slugs from GET /custom-fields?object_type=meeting. Each entry needs a slug and either value or values, not both.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// When the call ended, in RFC3339 format (e.g. 2025-01-01T01:00:00Z).
	EndTime time.Time `json:"end_time" url:"-"`
	// Comma-separated emails of everyone on the call (e.g. "alice@customer.com,bob@yourcompany.com"). Used to match the account when account_id is omitted. Every speaker_email in call_recording_messages must be in this list or match primary_user_email.
	ParticipantEmails *string `json:"participant_emails,omitempty" url:"-"`
	// The email of the Pylon user who owns the recording. Counted as a participant, so it does not need to be repeated in participant_emails.
	PrimaryUserEmail *string `json:"primary_user_email,omitempty" url:"-"`
	// Your unique ID for this recording. Pylon deduplicates on recording_id and app_type: a request that reuses a recording_id returns the existing recording unchanged. Send a unique value for every call; if you omit it, every request after the first returns the same recording.
	RecordingID *string `json:"recording_id,omitempty" url:"-"`
	// A link to the recording in your call recorder. Maximum 255 characters.
	RecordingURL *string `json:"recording_url,omitempty" url:"-"`
	// When the call started, in RFC3339 format (e.g. 2025-01-01T00:00:00Z).
	StartTime time.Time `json:"start_time" url:"-"`
	// The title of the call recording.
	Title *string `json:"title,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CallRecordingsCreateRequest) MarshalJSON

func (c *CallRecordingsCreateRequest) MarshalJSON() ([]byte, error)

func (*CallRecordingsCreateRequest) SetAccountID

func (c *CallRecordingsCreateRequest) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) SetAppType

SetAppType sets the AppType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) SetCallRecordingMessages

func (c *CallRecordingsCreateRequest) SetCallRecordingMessages(callRecordingMessages []*CreateCallRecordingMessageRequest)

SetCallRecordingMessages sets the CallRecordingMessages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) SetCustomFields

func (c *CallRecordingsCreateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) SetEndTime

func (c *CallRecordingsCreateRequest) SetEndTime(endTime time.Time)

SetEndTime sets the EndTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) SetParticipantEmails

func (c *CallRecordingsCreateRequest) SetParticipantEmails(participantEmails *string)

SetParticipantEmails sets the ParticipantEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) SetPrimaryUserEmail

func (c *CallRecordingsCreateRequest) SetPrimaryUserEmail(primaryUserEmail *string)

SetPrimaryUserEmail sets the PrimaryUserEmail field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) SetRecordingID

func (c *CallRecordingsCreateRequest) SetRecordingID(recordingID *string)

SetRecordingID sets the RecordingID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) SetRecordingURL

func (c *CallRecordingsCreateRequest) SetRecordingURL(recordingURL *string)

SetRecordingURL sets the RecordingURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) SetStartTime

func (c *CallRecordingsCreateRequest) SetStartTime(startTime time.Time)

SetStartTime sets the StartTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) SetTitle

func (c *CallRecordingsCreateRequest) SetTitle(title *string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsCreateRequest) UnmarshalJSON

func (c *CallRecordingsCreateRequest) UnmarshalJSON(data []byte) error

type CallRecordingsDeleteRequest

type CallRecordingsDeleteRequest struct {
	// The Pylon ID of the call recording to delete.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*CallRecordingsDeleteRequest) SetID

func (c *CallRecordingsDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type CallRecordingsGetRequest

type CallRecordingsGetRequest struct {
	// The ID of the call recording to fetch.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*CallRecordingsGetRequest) SetID

func (c *CallRecordingsGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type CallRecordingsSearchRequest

type CallRecordingsSearchRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of call recordings to fetch. Defaults to 100. Must be greater than 0 and less than or equal to 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CallRecordingsSearchRequest) MarshalJSON

func (c *CallRecordingsSearchRequest) MarshalJSON() ([]byte, error)

func (*CallRecordingsSearchRequest) SetCursor

func (c *CallRecordingsSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsSearchRequest) SetFilter

func (c *CallRecordingsSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsSearchRequest) SetLimit

func (c *CallRecordingsSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsSearchRequest) UnmarshalJSON

func (c *CallRecordingsSearchRequest) UnmarshalJSON(data []byte) error

type CallRecordingsUpdateRequest

type CallRecordingsUpdateRequest struct {
	// The ID of the call recording to update.
	ID string `json:"-" url:"-"`
	// The account ID to associate with the call recording. Pass an empty string to remove the account association.
	AccountID *string `json:"account_id,omitempty" url:"-"`
	// An array of custom fields to set on the call recording. Only passed in fields will be modified.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CallRecordingsUpdateRequest) MarshalJSON

func (c *CallRecordingsUpdateRequest) MarshalJSON() ([]byte, error)

func (*CallRecordingsUpdateRequest) SetAccountID

func (c *CallRecordingsUpdateRequest) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsUpdateRequest) SetCustomFields

func (c *CallRecordingsUpdateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsUpdateRequest) SetID

func (c *CallRecordingsUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallRecordingsUpdateRequest) UnmarshalJSON

func (c *CallRecordingsUpdateRequest) UnmarshalJSON(data []byte) error

type Channel

type Channel struct {
	// The ID of the channel. If this is a Microsoft Teams channel, the ID must be in the format of `{team_id}|{channel_id}`.
	ChannelID *string `json:"channel_id,omitempty" url:"channel_id,omitempty"`
	// The human-readable name of the channel. On account create or update, it is saved only for channels from a custom issue source and ignored for all other sources.
	ChannelName *string `json:"channel_name,omitempty" url:"channel_name,omitempty"`
	// The direct URL to the channel in its source app, if available.
	ChannelURL *string `json:"channel_url,omitempty" url:"channel_url,omitempty"`
	// Whether this is an internal channel (e.g., a triage channel) as opposed to a customer-facing channel.
	IsInternal *bool `json:"is_internal,omitempty" url:"is_internal,omitempty"`
	// Whether this channel is the primary channel for the account.
	IsPrimary *bool          `json:"is_primary,omitempty" url:"is_primary,omitempty"`
	MirrorTo  *MirrorChannel `json:"mirror_to,omitempty" url:"mirror_to,omitempty"`
	// The channel source. This can be any supported integration source, or a custom issue source's slug or ID. A custom issue source ID is stored and returned as the source's slug.
	Source *string `json:"source,omitempty" url:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*Channel) GetChannelID

func (c *Channel) GetChannelID() *string

func (*Channel) GetChannelName

func (c *Channel) GetChannelName() *string

func (*Channel) GetChannelURL

func (c *Channel) GetChannelURL() *string

func (*Channel) GetExtraProperties

func (c *Channel) GetExtraProperties() map[string]interface{}

func (*Channel) GetIsInternal

func (c *Channel) GetIsInternal() *bool

func (*Channel) GetIsPrimary

func (c *Channel) GetIsPrimary() *bool

func (*Channel) GetMirrorTo

func (c *Channel) GetMirrorTo() *MirrorChannel

func (*Channel) GetSource

func (c *Channel) GetSource() *string

func (*Channel) MarshalJSON

func (c *Channel) MarshalJSON() ([]byte, error)

func (*Channel) SetChannelID

func (c *Channel) SetChannelID(channelID *string)

SetChannelID sets the ChannelID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Channel) SetChannelName

func (c *Channel) SetChannelName(channelName *string)

SetChannelName sets the ChannelName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Channel) SetChannelURL

func (c *Channel) SetChannelURL(channelURL *string)

SetChannelURL sets the ChannelURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Channel) SetIsInternal

func (c *Channel) SetIsInternal(isInternal *bool)

SetIsInternal sets the IsInternal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Channel) SetIsPrimary

func (c *Channel) SetIsPrimary(isPrimary *bool)

SetIsPrimary sets the IsPrimary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Channel) SetMirrorTo

func (c *Channel) SetMirrorTo(mirrorTo *MirrorChannel)

SetMirrorTo sets the MirrorTo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Channel) SetSource

func (c *Channel) SetSource(source *string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Channel) String

func (c *Channel) String() string

func (*Channel) UnmarshalJSON

func (c *Channel) UnmarshalJSON(data []byte) error

type Collection

type Collection struct {
	// The created at time of the collection.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The description of the collection.
	Description string `json:"description" url:"description"`
	// The icon of the collection.
	Icon *string `json:"icon,omitempty" url:"icon,omitempty"`
	// The ID of the collection.
	ID string `json:"id" url:"id"`
	// The ID of the parent collection.
	ParentCollectionID *string `json:"parent_collection_id,omitempty" url:"parent_collection_id,omitempty"`
	// The slug of the collection.
	Slug string `json:"slug" url:"slug"`
	// The name of the collection.
	Title            string                      `json:"title" url:"title"`
	VisibilityConfig *CollectionVisibilityConfig `json:"visibility_config,omitempty" url:"visibility_config,omitempty"`
	// contains filtered or unexported fields
}

func (*Collection) GetCreatedAt

func (c *Collection) GetCreatedAt() time.Time

func (*Collection) GetDescription

func (c *Collection) GetDescription() string

func (*Collection) GetExtraProperties

func (c *Collection) GetExtraProperties() map[string]interface{}

func (*Collection) GetID

func (c *Collection) GetID() string

func (*Collection) GetIcon

func (c *Collection) GetIcon() *string

func (*Collection) GetParentCollectionID

func (c *Collection) GetParentCollectionID() *string

func (*Collection) GetSlug

func (c *Collection) GetSlug() string

func (*Collection) GetTitle

func (c *Collection) GetTitle() string

func (*Collection) GetVisibilityConfig

func (c *Collection) GetVisibilityConfig() *CollectionVisibilityConfig

func (*Collection) MarshalJSON

func (c *Collection) MarshalJSON() ([]byte, error)

func (*Collection) SetCreatedAt

func (c *Collection) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Collection) SetDescription

func (c *Collection) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Collection) SetID

func (c *Collection) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Collection) SetIcon

func (c *Collection) SetIcon(icon *string)

SetIcon sets the Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Collection) SetParentCollectionID

func (c *Collection) SetParentCollectionID(parentCollectionID *string)

SetParentCollectionID sets the ParentCollectionID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Collection) SetSlug

func (c *Collection) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Collection) SetTitle

func (c *Collection) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Collection) SetVisibilityConfig

func (c *Collection) SetVisibilityConfig(visibilityConfig *CollectionVisibilityConfig)

SetVisibilityConfig sets the VisibilityConfig field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Collection) String

func (c *Collection) String() string

func (*Collection) UnmarshalJSON

func (c *Collection) UnmarshalJSON(data []byte) error

type CollectionVisibilityConfig

type CollectionVisibilityConfig struct {
	// AI agent access control. Defaults to inherit from the parent scope when omitted.
	AiAgentAccess *CollectionVisibilityConfigAiAgentAccess `json:"ai_agent_access,omitempty" url:"ai_agent_access,omitempty"`
	// List of AI agent IDs that may access this resource when ai_agent_access is set to "specific_agents".
	AllowedAgentIDs []string `json:"allowed_agent_ids,omitempty" url:"allowed_agent_ids,omitempty"`
	// The visibility setting.
	Visibility *CollectionVisibilityConfigVisibility `json:"visibility,omitempty" url:"visibility,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionVisibilityConfig) GetAiAgentAccess

func (*CollectionVisibilityConfig) GetAllowedAgentIDs

func (c *CollectionVisibilityConfig) GetAllowedAgentIDs() []string

func (*CollectionVisibilityConfig) GetExtraProperties

func (c *CollectionVisibilityConfig) GetExtraProperties() map[string]interface{}

func (*CollectionVisibilityConfig) GetVisibility

func (*CollectionVisibilityConfig) MarshalJSON

func (c *CollectionVisibilityConfig) MarshalJSON() ([]byte, error)

func (*CollectionVisibilityConfig) SetAiAgentAccess

func (c *CollectionVisibilityConfig) SetAiAgentAccess(aiAgentAccess *CollectionVisibilityConfigAiAgentAccess)

SetAiAgentAccess sets the AiAgentAccess field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CollectionVisibilityConfig) SetAllowedAgentIDs

func (c *CollectionVisibilityConfig) SetAllowedAgentIDs(allowedAgentIDs []string)

SetAllowedAgentIDs sets the AllowedAgentIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CollectionVisibilityConfig) SetVisibility

SetVisibility sets the Visibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CollectionVisibilityConfig) String

func (c *CollectionVisibilityConfig) String() string

func (*CollectionVisibilityConfig) UnmarshalJSON

func (c *CollectionVisibilityConfig) UnmarshalJSON(data []byte) error

type CollectionVisibilityConfigAiAgentAccess

type CollectionVisibilityConfigAiAgentAccess string

AI agent access control. Defaults to inherit from the parent scope when omitted.

const (
	CollectionVisibilityConfigAiAgentAccessInherit        CollectionVisibilityConfigAiAgentAccess = "inherit"
	CollectionVisibilityConfigAiAgentAccessNone           CollectionVisibilityConfigAiAgentAccess = "none"
	CollectionVisibilityConfigAiAgentAccessSpecificAgents CollectionVisibilityConfigAiAgentAccess = "specific_agents"
)

func NewCollectionVisibilityConfigAiAgentAccessFromString

func NewCollectionVisibilityConfigAiAgentAccessFromString(s string) (CollectionVisibilityConfigAiAgentAccess, error)

func (CollectionVisibilityConfigAiAgentAccess) Ptr

type CollectionVisibilityConfigVisibility

type CollectionVisibilityConfigVisibility string

The visibility setting.

const (
	CollectionVisibilityConfigVisibilityPublic       CollectionVisibilityConfigVisibility = "public"
	CollectionVisibilityConfigVisibilityCustomer     CollectionVisibilityConfigVisibility = "customer"
	CollectionVisibilityConfigVisibilityInternalOnly CollectionVisibilityConfigVisibility = "internal_only"
)

func NewCollectionVisibilityConfigVisibilityFromString

func NewCollectionVisibilityConfigVisibilityFromString(s string) (CollectionVisibilityConfigVisibility, error)

func (CollectionVisibilityConfigVisibility) Ptr

type ConflictError

type ConflictError struct {
	*core.APIError
	Body *ErrorAPIResponseBody
}

func (*ConflictError) GetBody

func (c *ConflictError) GetBody() *ErrorAPIResponseBody

func (*ConflictError) MarshalJSON

func (c *ConflictError) MarshalJSON() ([]byte, error)

func (*ConflictError) UnmarshalJSON

func (c *ConflictError) UnmarshalJSON(data []byte) error

func (*ConflictError) Unwrap

func (c *ConflictError) Unwrap() error

type Contact

type Contact struct {
	Account *MiniAccount `json:"account,omitempty" url:"account,omitempty"`
	// Avatar URL of the contact.
	AvatarURL string `json:"avatar_url" url:"avatar_url"`
	// Custom field values associated with the contact.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// The primary email of the contact, if it exists.
	Email *string `json:"email,omitempty" url:"email,omitempty"`
	// The list of all emails of the contact.
	Emails []string `json:"emails,omitempty" url:"emails,omitempty"`
	// External IDs associated with the contact.
	ExternalIDs []*ExternalID `json:"external_ids,omitempty" url:"external_ids,omitempty"`
	// The ID of the contact.
	ID string `json:"id" url:"id"`
	// Integration user IDs linking this contact to external systems.
	IntegrationUserIDs []*IntegrationUserID `json:"integration_user_ids,omitempty" url:"integration_user_ids,omitempty"`
	// The name of the contact.
	Name string `json:"name" url:"name"`
	// The list of all phone numbers of the contact.
	PhoneNumbers []string `json:"phone_numbers,omitempty" url:"phone_numbers,omitempty"`
	// Portal role slug assigned to the contact. For backwards compatibility.
	//
	// Known values: `no_access`, `member`, `admin`. This list is not exhaustive.
	PortalRole string `json:"portal_role" url:"portal_role"`
	// The ID of the custom portal role assigned to the contact.
	PortalRoleID *string `json:"portal_role_id,omitempty" url:"portal_role_id,omitempty"`
	// The primary phone number of the contact, if it exists.
	PrimaryPhoneNumber *string `json:"primary_phone_number,omitempty" url:"primary_phone_number,omitempty"`
	// contains filtered or unexported fields
}

func (*Contact) GetAccount

func (c *Contact) GetAccount() *MiniAccount

func (*Contact) GetAvatarURL

func (c *Contact) GetAvatarURL() string

func (*Contact) GetCustomFields

func (c *Contact) GetCustomFields() map[string]*CustomFieldValue

func (*Contact) GetEmail

func (c *Contact) GetEmail() *string

func (*Contact) GetEmails

func (c *Contact) GetEmails() []string

func (*Contact) GetExternalIDs

func (c *Contact) GetExternalIDs() []*ExternalID

func (*Contact) GetExtraProperties

func (c *Contact) GetExtraProperties() map[string]interface{}

func (*Contact) GetID

func (c *Contact) GetID() string

func (*Contact) GetIntegrationUserIDs

func (c *Contact) GetIntegrationUserIDs() []*IntegrationUserID

func (*Contact) GetName

func (c *Contact) GetName() string

func (*Contact) GetPhoneNumbers

func (c *Contact) GetPhoneNumbers() []string

func (*Contact) GetPortalRole

func (c *Contact) GetPortalRole() string

func (*Contact) GetPortalRoleID

func (c *Contact) GetPortalRoleID() *string

func (*Contact) GetPrimaryPhoneNumber

func (c *Contact) GetPrimaryPhoneNumber() *string

func (*Contact) MarshalJSON

func (c *Contact) MarshalJSON() ([]byte, error)

func (*Contact) SetAccount

func (c *Contact) SetAccount(account *MiniAccount)

SetAccount sets the Account field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetAvatarURL

func (c *Contact) SetAvatarURL(avatarURL string)

SetAvatarURL sets the AvatarURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetCustomFields

func (c *Contact) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetEmail

func (c *Contact) SetEmail(email *string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetEmails

func (c *Contact) SetEmails(emails []string)

SetEmails sets the Emails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetExternalIDs

func (c *Contact) SetExternalIDs(externalIDs []*ExternalID)

SetExternalIDs sets the ExternalIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetID

func (c *Contact) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetIntegrationUserIDs

func (c *Contact) SetIntegrationUserIDs(integrationUserIDs []*IntegrationUserID)

SetIntegrationUserIDs sets the IntegrationUserIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetName

func (c *Contact) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetPhoneNumbers

func (c *Contact) SetPhoneNumbers(phoneNumbers []string)

SetPhoneNumbers sets the PhoneNumbers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetPortalRole

func (c *Contact) SetPortalRole(portalRole string)

SetPortalRole sets the PortalRole field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetPortalRoleID

func (c *Contact) SetPortalRoleID(portalRoleID *string)

SetPortalRoleID sets the PortalRoleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) SetPrimaryPhoneNumber

func (c *Contact) SetPrimaryPhoneNumber(primaryPhoneNumber *string)

SetPrimaryPhoneNumber sets the PrimaryPhoneNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Contact) String

func (c *Contact) String() string

func (*Contact) UnmarshalJSON

func (c *Contact) UnmarshalJSON(data []byte) error

type ContactsCreateRequest

type ContactsCreateRequest struct {
	// The external ID of the account that this contact belongs to. Cannot be used together with account_id.
	AccountExternalID *string `json:"account_external_id,omitempty" url:"-"`
	// The account that this contact belongs to.
	AccountID *string `json:"account_id,omitempty" url:"-"`
	// The avatar URL of the contact. Must be a square .png, .jpg or .jpeg.
	AvatarURL *string `json:"avatar_url,omitempty" url:"-"`
	// An array of custom fields to be applied to this contact.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// The email of the contact.
	Email *string `json:"email,omitempty" url:"-"`
	// An array of external IDs to be used on this contact.
	ExternalIDs []*ExternalID `json:"external_ids,omitempty" url:"-"`
	// The name of the contact.
	Name string `json:"name" url:"-"`
	// The phone numbers of the contact. Must contain only digits 0-9, optionally preceded by + (E.164, e.g. +4365446231), and be 15 digits or less. Include the + and country code for non-US numbers; a 10-digit number without + is treated as US.
	PhoneNumbers []string `json:"phone_numbers,omitempty" url:"-"`
	// The portal role to assign to the contact. If not provided uses the default portal role from the portal settings.
	//
	// Known values: `no_access`, `member`, `admin`. This list is not exhaustive.
	PortalRole *string `json:"portal_role,omitempty" url:"-"`
	// The ID of the custom portal role to assign to the contact. Takes precedence over portal_role if provided.
	PortalRoleID *string `json:"portal_role_id,omitempty" url:"-"`
	// The primary phone number. Must be in the list of phone_numbers. If there are any phone_numbers and this is not specified, the first phone number will be primary.
	PrimaryPhoneNumber *string `json:"primary_phone_number,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ContactsCreateRequest) MarshalJSON

func (c *ContactsCreateRequest) MarshalJSON() ([]byte, error)

func (*ContactsCreateRequest) SetAccountExternalID

func (c *ContactsCreateRequest) SetAccountExternalID(accountExternalID *string)

SetAccountExternalID sets the AccountExternalID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) SetAccountID

func (c *ContactsCreateRequest) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) SetAvatarURL

func (c *ContactsCreateRequest) SetAvatarURL(avatarURL *string)

SetAvatarURL sets the AvatarURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) SetCustomFields

func (c *ContactsCreateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) SetEmail

func (c *ContactsCreateRequest) SetEmail(email *string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) SetExternalIDs

func (c *ContactsCreateRequest) SetExternalIDs(externalIDs []*ExternalID)

SetExternalIDs sets the ExternalIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) SetName

func (c *ContactsCreateRequest) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) SetPhoneNumbers

func (c *ContactsCreateRequest) SetPhoneNumbers(phoneNumbers []string)

SetPhoneNumbers sets the PhoneNumbers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) SetPortalRole

func (c *ContactsCreateRequest) SetPortalRole(portalRole *string)

SetPortalRole sets the PortalRole field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) SetPortalRoleID

func (c *ContactsCreateRequest) SetPortalRoleID(portalRoleID *string)

SetPortalRoleID sets the PortalRoleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) SetPrimaryPhoneNumber

func (c *ContactsCreateRequest) SetPrimaryPhoneNumber(primaryPhoneNumber *string)

SetPrimaryPhoneNumber sets the PrimaryPhoneNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsCreateRequest) UnmarshalJSON

func (c *ContactsCreateRequest) UnmarshalJSON(data []byte) error

type ContactsDeleteRequest

type ContactsDeleteRequest struct {
	// The ID or external ID of the contact to delete.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*ContactsDeleteRequest) SetID

func (c *ContactsDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ContactsGetRequest

type ContactsGetRequest struct {
	// The ID or external ID of the contact.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*ContactsGetRequest) SetID

func (c *ContactsGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ContactsListRequest

type ContactsListRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"-" url:"cursor,omitempty"`
	// The number of contacts to fetch. Defaults to 100. Must be greater than 0 and less than 1000.
	Limit *int64 `json:"-" url:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ContactsListRequest) SetCursor

func (c *ContactsListRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsListRequest) SetLimit

func (c *ContactsListRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ContactsMergeRequest

type ContactsMergeRequest struct {
	// The ID of the contact to merge into the surviving contact. This contact is permanently deleted after its data is transferred.
	MergeContactID string `json:"merge_contact_id" url:"-"`
	// The ID of the contact that will survive the merge and receive the merged data. The contact must belong to an account.
	MergeIntoContactID string `json:"merge_into_contact_id" url:"-"`
	// contains filtered or unexported fields
}

func (*ContactsMergeRequest) MarshalJSON

func (c *ContactsMergeRequest) MarshalJSON() ([]byte, error)

func (*ContactsMergeRequest) SetMergeContactID

func (c *ContactsMergeRequest) SetMergeContactID(mergeContactID string)

SetMergeContactID sets the MergeContactID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsMergeRequest) SetMergeIntoContactID

func (c *ContactsMergeRequest) SetMergeIntoContactID(mergeIntoContactID string)

SetMergeIntoContactID sets the MergeIntoContactID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsMergeRequest) UnmarshalJSON

func (c *ContactsMergeRequest) UnmarshalJSON(data []byte) error

type ContactsSearchRequest

type ContactsSearchRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of contacts to fetch. Defaults to 100. Must be between 1 and 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// Text search across contact name, primary email, secondary emails, primary phone number, and secondary phone numbers. Results are intersected with any provided filter.
	SearchText *string `json:"search_text,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ContactsSearchRequest) MarshalJSON

func (c *ContactsSearchRequest) MarshalJSON() ([]byte, error)

func (*ContactsSearchRequest) SetCursor

func (c *ContactsSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsSearchRequest) SetFilter

func (c *ContactsSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsSearchRequest) SetLimit

func (c *ContactsSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsSearchRequest) SetSearchText

func (c *ContactsSearchRequest) SetSearchText(searchText *string)

SetSearchText sets the SearchText field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsSearchRequest) UnmarshalJSON

func (c *ContactsSearchRequest) UnmarshalJSON(data []byte) error

type ContactsUpdateRequest

type ContactsUpdateRequest struct {
	// The ID or external ID of the contact to update.
	ID string `json:"-" url:"-"`
	// The external ID of the account to move the contact to. Cannot be used together with account_id.
	AccountExternalID *string `json:"account_external_id,omitempty" url:"-"`
	// The account to move the contact to. If empty string is passed in, the contact will be removed from its account.
	AccountID *string `json:"account_id,omitempty" url:"-"`
	// The avatar URL of the contact. Must be a square .png, .jpg or .jpeg.
	AvatarURL *string `json:"avatar_url,omitempty" url:"-"`
	// An array of custom fields to be applied to this contact.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// The email of the contact. Replaces all of the contact's emails with this single email. Cannot be used together with the `emails` array field.
	Email *string `json:"email,omitempty" url:"-"`
	// The emails of the contact as an array. Cannot be used together with the singular `email` field.
	// Each entry must include an `email` string and an optional `is_primary` boolean.
	// If no email is marked as primary, the first email becomes the primary.
	Emails []*UpdateContactEmail `json:"emails,omitempty" url:"-"`
	// An array of external IDs to be used on this contact. If provided, the contact's external IDs will be updated to the given external IDs.
	ExternalIDs []*ExternalID `json:"external_ids,omitempty" url:"-"`
	// in: body
	// The name of the contact.
	Name *string `json:"name,omitempty" url:"-"`
	// The phone numbers of the contact. Must contain only digits 0-9, optionally preceded by + (E.164, e.g. +4365446231), and be 15 digits or less. Include the + and country code for non-US numbers; a 10-digit number without + is treated as US.
	PhoneNumbers []string `json:"phone_numbers,omitempty" url:"-"`
	// The portal role to assign to the contact. Can be one of `no_access`, `member`, or `admin`, or a custom role slug.
	//
	// Known values: `no_access`, `member`, `admin`. This list is not exhaustive.
	PortalRole *string `json:"portal_role,omitempty" url:"-"`
	// The ID of the custom portal role to assign to the contact. Takes precedence over portal_role if provided.
	PortalRoleID *string `json:"portal_role_id,omitempty" url:"-"`
	// The primary phone number. Must be in the list of phone_numbers. If there are any phone_numbers and this is not specified, the first phone number will be primary.
	PrimaryPhoneNumber *string `json:"primary_phone_number,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ContactsUpdateRequest) MarshalJSON

func (c *ContactsUpdateRequest) MarshalJSON() ([]byte, error)

func (*ContactsUpdateRequest) SetAccountExternalID

func (c *ContactsUpdateRequest) SetAccountExternalID(accountExternalID *string)

SetAccountExternalID sets the AccountExternalID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetAccountID

func (c *ContactsUpdateRequest) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetAvatarURL

func (c *ContactsUpdateRequest) SetAvatarURL(avatarURL *string)

SetAvatarURL sets the AvatarURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetCustomFields

func (c *ContactsUpdateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetEmail

func (c *ContactsUpdateRequest) SetEmail(email *string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetEmails

func (c *ContactsUpdateRequest) SetEmails(emails []*UpdateContactEmail)

SetEmails sets the Emails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetExternalIDs

func (c *ContactsUpdateRequest) SetExternalIDs(externalIDs []*ExternalID)

SetExternalIDs sets the ExternalIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetID

func (c *ContactsUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetName

func (c *ContactsUpdateRequest) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetPhoneNumbers

func (c *ContactsUpdateRequest) SetPhoneNumbers(phoneNumbers []string)

SetPhoneNumbers sets the PhoneNumbers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetPortalRole

func (c *ContactsUpdateRequest) SetPortalRole(portalRole *string)

SetPortalRole sets the PortalRole field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetPortalRoleID

func (c *ContactsUpdateRequest) SetPortalRoleID(portalRoleID *string)

SetPortalRoleID sets the PortalRoleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) SetPrimaryPhoneNumber

func (c *ContactsUpdateRequest) SetPrimaryPhoneNumber(primaryPhoneNumber *string)

SetPrimaryPhoneNumber sets the PrimaryPhoneNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ContactsUpdateRequest) UnmarshalJSON

func (c *ContactsUpdateRequest) UnmarshalJSON(data []byte) error

type ContentTooLargeError

type ContentTooLargeError struct {
	*core.APIError
	Body *ErrorAPIResponseBody
}

The uploaded file is too large.

func (*ContentTooLargeError) GetBody

func (*ContentTooLargeError) MarshalJSON

func (c *ContentTooLargeError) MarshalJSON() ([]byte, error)

func (*ContentTooLargeError) UnmarshalJSON

func (c *ContentTooLargeError) UnmarshalJSON(data []byte) error

func (*ContentTooLargeError) Unwrap

func (c *ContentTooLargeError) Unwrap() error

type CreateAccountHighlightResponseBody

type CreateAccountHighlightResponseBody struct {
	Data      *AccountHighlight `json:"data" url:"data"`
	RequestID string            `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateAccountHighlightResponseBody) GetData

func (*CreateAccountHighlightResponseBody) GetExtraProperties

func (c *CreateAccountHighlightResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateAccountHighlightResponseBody) GetRequestID

func (c *CreateAccountHighlightResponseBody) GetRequestID() string

func (*CreateAccountHighlightResponseBody) MarshalJSON

func (c *CreateAccountHighlightResponseBody) MarshalJSON() ([]byte, error)

func (*CreateAccountHighlightResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateAccountHighlightResponseBody) SetRequestID

func (c *CreateAccountHighlightResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateAccountHighlightResponseBody) String

func (*CreateAccountHighlightResponseBody) UnmarshalJSON

func (c *CreateAccountHighlightResponseBody) UnmarshalJSON(data []byte) error

type CreateAccountNotebookNoteResponseBody

type CreateAccountNotebookNoteResponseBody struct {
	Data *AccountNotebookNote `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateAccountNotebookNoteResponseBody) GetData

func (*CreateAccountNotebookNoteResponseBody) GetExtraProperties

func (c *CreateAccountNotebookNoteResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateAccountNotebookNoteResponseBody) GetRequestID

func (*CreateAccountNotebookNoteResponseBody) MarshalJSON

func (c *CreateAccountNotebookNoteResponseBody) MarshalJSON() ([]byte, error)

func (*CreateAccountNotebookNoteResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateAccountNotebookNoteResponseBody) SetRequestID

func (c *CreateAccountNotebookNoteResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateAccountNotebookNoteResponseBody) String

func (*CreateAccountNotebookNoteResponseBody) UnmarshalJSON

func (c *CreateAccountNotebookNoteResponseBody) UnmarshalJSON(data []byte) error

type CreateAccountRelationshipResponseBody

type CreateAccountRelationshipResponseBody struct {
	Data *AccountRelationship `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateAccountRelationshipResponseBody) GetData

func (*CreateAccountRelationshipResponseBody) GetExtraProperties

func (c *CreateAccountRelationshipResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateAccountRelationshipResponseBody) GetRequestID

func (*CreateAccountRelationshipResponseBody) MarshalJSON

func (c *CreateAccountRelationshipResponseBody) MarshalJSON() ([]byte, error)

func (*CreateAccountRelationshipResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateAccountRelationshipResponseBody) SetRequestID

func (c *CreateAccountRelationshipResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateAccountRelationshipResponseBody) String

func (*CreateAccountRelationshipResponseBody) UnmarshalJSON

func (c *CreateAccountRelationshipResponseBody) UnmarshalJSON(data []byte) error

type CreateAccountRequestAccountType

type CreateAccountRequestAccountType string

The type of the account. Must be one of "customer", "internal", "community", or "partner". Defaults to "customer" if not specified.

const (
	CreateAccountRequestAccountTypeCustomer  CreateAccountRequestAccountType = "customer"
	CreateAccountRequestAccountTypeInternal  CreateAccountRequestAccountType = "internal"
	CreateAccountRequestAccountTypeCommunity CreateAccountRequestAccountType = "community"
	CreateAccountRequestAccountTypePartner   CreateAccountRequestAccountType = "partner"
)

func NewCreateAccountRequestAccountTypeFromString

func NewCreateAccountRequestAccountTypeFromString(s string) (CreateAccountRequestAccountType, error)

func (CreateAccountRequestAccountType) Ptr

type CreateAccountResponseBody

type CreateAccountResponseBody struct {
	Data *Account `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateAccountResponseBody) GetData

func (c *CreateAccountResponseBody) GetData() *Account

func (*CreateAccountResponseBody) GetExtraProperties

func (c *CreateAccountResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateAccountResponseBody) GetRequestID

func (c *CreateAccountResponseBody) GetRequestID() string

func (*CreateAccountResponseBody) MarshalJSON

func (c *CreateAccountResponseBody) MarshalJSON() ([]byte, error)

func (*CreateAccountResponseBody) SetData

func (c *CreateAccountResponseBody) SetData(data *Account)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateAccountResponseBody) SetRequestID

func (c *CreateAccountResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateAccountResponseBody) String

func (c *CreateAccountResponseBody) String() string

func (*CreateAccountResponseBody) UnmarshalJSON

func (c *CreateAccountResponseBody) UnmarshalJSON(data []byte) error

type CreateActivityResponseBody

type CreateActivityResponseBody struct {
	Data      *CreateActivityResponseData `json:"data" url:"data"`
	RequestID string                      `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateActivityResponseBody) GetData

func (*CreateActivityResponseBody) GetExtraProperties

func (c *CreateActivityResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateActivityResponseBody) GetRequestID

func (c *CreateActivityResponseBody) GetRequestID() string

func (*CreateActivityResponseBody) MarshalJSON

func (c *CreateActivityResponseBody) MarshalJSON() ([]byte, error)

func (*CreateActivityResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateActivityResponseBody) SetRequestID

func (c *CreateActivityResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateActivityResponseBody) String

func (c *CreateActivityResponseBody) String() string

func (*CreateActivityResponseBody) UnmarshalJSON

func (c *CreateActivityResponseBody) UnmarshalJSON(data []byte) error

type CreateActivityResponseData

type CreateActivityResponseData struct {
	Success bool `json:"success" url:"success"`
	// contains filtered or unexported fields
}

func (*CreateActivityResponseData) GetExtraProperties

func (c *CreateActivityResponseData) GetExtraProperties() map[string]interface{}

func (*CreateActivityResponseData) GetSuccess

func (c *CreateActivityResponseData) GetSuccess() bool

func (*CreateActivityResponseData) MarshalJSON

func (c *CreateActivityResponseData) MarshalJSON() ([]byte, error)

func (*CreateActivityResponseData) SetSuccess

func (c *CreateActivityResponseData) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateActivityResponseData) String

func (c *CreateActivityResponseData) String() string

func (*CreateActivityResponseData) UnmarshalJSON

func (c *CreateActivityResponseData) UnmarshalJSON(data []byte) error

type CreateArticleResponseBody

type CreateArticleResponseBody struct {
	Data *Article `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateArticleResponseBody) GetData

func (c *CreateArticleResponseBody) GetData() *Article

func (*CreateArticleResponseBody) GetExtraProperties

func (c *CreateArticleResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateArticleResponseBody) GetRequestID

func (c *CreateArticleResponseBody) GetRequestID() string

func (*CreateArticleResponseBody) MarshalJSON

func (c *CreateArticleResponseBody) MarshalJSON() ([]byte, error)

func (*CreateArticleResponseBody) SetData

func (c *CreateArticleResponseBody) SetData(data *Article)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateArticleResponseBody) SetRequestID

func (c *CreateArticleResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateArticleResponseBody) String

func (c *CreateArticleResponseBody) String() string

func (*CreateArticleResponseBody) UnmarshalJSON

func (c *CreateArticleResponseBody) UnmarshalJSON(data []byte) error

type CreateAttachmentResponseBody

type CreateAttachmentResponseBody struct {
	Data *Attachment `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateAttachmentResponseBody) GetData

func (*CreateAttachmentResponseBody) GetExtraProperties

func (c *CreateAttachmentResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateAttachmentResponseBody) GetRequestID

func (c *CreateAttachmentResponseBody) GetRequestID() string

func (*CreateAttachmentResponseBody) MarshalJSON

func (c *CreateAttachmentResponseBody) MarshalJSON() ([]byte, error)

func (*CreateAttachmentResponseBody) SetData

func (c *CreateAttachmentResponseBody) SetData(data *Attachment)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateAttachmentResponseBody) SetRequestID

func (c *CreateAttachmentResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateAttachmentResponseBody) String

func (*CreateAttachmentResponseBody) UnmarshalJSON

func (c *CreateAttachmentResponseBody) UnmarshalJSON(data []byte) error

type CreateCallRecordingMessageRequest

type CreateCallRecordingMessageRequest struct {
	// When the message starts, in milliseconds from start_time. Must be zero or greater.
	MessageAtMs *int64 `json:"message_at_ms,omitempty" url:"message_at_ms,omitempty"`
	// What the speaker said. Must not be empty.
	MessageContent string `json:"message_content" url:"message_content"`
	// The speaker's email. Must appear in participant_emails or match primary_user_email (case-insensitive). Each message needs speaker_email, speaker_name, or both.
	SpeakerEmail *string `json:"speaker_email,omitempty" url:"speaker_email,omitempty"`
	// The speaker's display name. Each message needs speaker_email, speaker_name, or both.
	SpeakerName *string `json:"speaker_name,omitempty" url:"speaker_name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCallRecordingMessageRequest) GetExtraProperties

func (c *CreateCallRecordingMessageRequest) GetExtraProperties() map[string]interface{}

func (*CreateCallRecordingMessageRequest) GetMessageAtMs

func (c *CreateCallRecordingMessageRequest) GetMessageAtMs() *int64

func (*CreateCallRecordingMessageRequest) GetMessageContent

func (c *CreateCallRecordingMessageRequest) GetMessageContent() string

func (*CreateCallRecordingMessageRequest) GetSpeakerEmail

func (c *CreateCallRecordingMessageRequest) GetSpeakerEmail() *string

func (*CreateCallRecordingMessageRequest) GetSpeakerName

func (c *CreateCallRecordingMessageRequest) GetSpeakerName() *string

func (*CreateCallRecordingMessageRequest) MarshalJSON

func (c *CreateCallRecordingMessageRequest) MarshalJSON() ([]byte, error)

func (*CreateCallRecordingMessageRequest) SetMessageAtMs

func (c *CreateCallRecordingMessageRequest) SetMessageAtMs(messageAtMs *int64)

SetMessageAtMs sets the MessageAtMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCallRecordingMessageRequest) SetMessageContent

func (c *CreateCallRecordingMessageRequest) SetMessageContent(messageContent string)

SetMessageContent sets the MessageContent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCallRecordingMessageRequest) SetSpeakerEmail

func (c *CreateCallRecordingMessageRequest) SetSpeakerEmail(speakerEmail *string)

SetSpeakerEmail sets the SpeakerEmail field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCallRecordingMessageRequest) SetSpeakerName

func (c *CreateCallRecordingMessageRequest) SetSpeakerName(speakerName *string)

SetSpeakerName sets the SpeakerName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCallRecordingMessageRequest) String

func (*CreateCallRecordingMessageRequest) UnmarshalJSON

func (c *CreateCallRecordingMessageRequest) UnmarshalJSON(data []byte) error

type CreateCallRecordingRequestAppType

type CreateCallRecordingRequestAppType string

The source of the recording. Must be `custom_call_recorder`, which requires the Custom Call Recorder integration to be enabled.

const (
	CreateCallRecordingRequestAppTypeCustomCallRecorder CreateCallRecordingRequestAppType = "custom_call_recorder"
)

func NewCreateCallRecordingRequestAppTypeFromString

func NewCreateCallRecordingRequestAppTypeFromString(s string) (CreateCallRecordingRequestAppType, error)

func (CreateCallRecordingRequestAppType) Ptr

type CreateCallRecordingResponseBody

type CreateCallRecordingResponseBody struct {
	Data *CallRecording `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateCallRecordingResponseBody) GetData

func (*CreateCallRecordingResponseBody) GetExtraProperties

func (c *CreateCallRecordingResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateCallRecordingResponseBody) GetRequestID

func (c *CreateCallRecordingResponseBody) GetRequestID() string

func (*CreateCallRecordingResponseBody) MarshalJSON

func (c *CreateCallRecordingResponseBody) MarshalJSON() ([]byte, error)

func (*CreateCallRecordingResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCallRecordingResponseBody) SetRequestID

func (c *CreateCallRecordingResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCallRecordingResponseBody) String

func (*CreateCallRecordingResponseBody) UnmarshalJSON

func (c *CreateCallRecordingResponseBody) UnmarshalJSON(data []byte) error

type CreateCollectionResponseBody

type CreateCollectionResponseBody struct {
	Data *Collection `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateCollectionResponseBody) GetData

func (*CreateCollectionResponseBody) GetExtraProperties

func (c *CreateCollectionResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateCollectionResponseBody) GetRequestID

func (c *CreateCollectionResponseBody) GetRequestID() string

func (*CreateCollectionResponseBody) MarshalJSON

func (c *CreateCollectionResponseBody) MarshalJSON() ([]byte, error)

func (*CreateCollectionResponseBody) SetData

func (c *CreateCollectionResponseBody) SetData(data *Collection)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCollectionResponseBody) SetRequestID

func (c *CreateCollectionResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCollectionResponseBody) String

func (*CreateCollectionResponseBody) UnmarshalJSON

func (c *CreateCollectionResponseBody) UnmarshalJSON(data []byte) error

type CreateContactResponseBody

type CreateContactResponseBody struct {
	Data *Contact `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateContactResponseBody) GetData

func (c *CreateContactResponseBody) GetData() *Contact

func (*CreateContactResponseBody) GetExtraProperties

func (c *CreateContactResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateContactResponseBody) GetRequestID

func (c *CreateContactResponseBody) GetRequestID() string

func (*CreateContactResponseBody) MarshalJSON

func (c *CreateContactResponseBody) MarshalJSON() ([]byte, error)

func (*CreateContactResponseBody) SetData

func (c *CreateContactResponseBody) SetData(data *Contact)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateContactResponseBody) SetRequestID

func (c *CreateContactResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateContactResponseBody) String

func (c *CreateContactResponseBody) String() string

func (*CreateContactResponseBody) UnmarshalJSON

func (c *CreateContactResponseBody) UnmarshalJSON(data []byte) error

type CreateCustomFieldRequestBodyObjectType

type CreateCustomFieldRequestBodyObjectType string

The object type of the custom field. Can be "account", "issue", "contact", "task", "project", "meeting", or "opportunity".

const (
	CreateCustomFieldRequestBodyObjectTypeAccount     CreateCustomFieldRequestBodyObjectType = "account"
	CreateCustomFieldRequestBodyObjectTypeIssue       CreateCustomFieldRequestBodyObjectType = "issue"
	CreateCustomFieldRequestBodyObjectTypeContact     CreateCustomFieldRequestBodyObjectType = "contact"
	CreateCustomFieldRequestBodyObjectTypeTask        CreateCustomFieldRequestBodyObjectType = "task"
	CreateCustomFieldRequestBodyObjectTypeProject     CreateCustomFieldRequestBodyObjectType = "project"
	CreateCustomFieldRequestBodyObjectTypeMeeting     CreateCustomFieldRequestBodyObjectType = "meeting"
	CreateCustomFieldRequestBodyObjectTypeOpportunity CreateCustomFieldRequestBodyObjectType = "opportunity"
)

func NewCreateCustomFieldRequestBodyObjectTypeFromString

func NewCreateCustomFieldRequestBodyObjectTypeFromString(s string) (CreateCustomFieldRequestBodyObjectType, error)

func (CreateCustomFieldRequestBodyObjectType) Ptr

type CreateCustomFieldResponseBody

type CreateCustomFieldResponseBody struct {
	Data *CustomFieldDefinition `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateCustomFieldResponseBody) GetData

func (*CreateCustomFieldResponseBody) GetExtraProperties

func (c *CreateCustomFieldResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateCustomFieldResponseBody) GetRequestID

func (c *CreateCustomFieldResponseBody) GetRequestID() string

func (*CreateCustomFieldResponseBody) MarshalJSON

func (c *CreateCustomFieldResponseBody) MarshalJSON() ([]byte, error)

func (*CreateCustomFieldResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCustomFieldResponseBody) SetRequestID

func (c *CreateCustomFieldResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCustomFieldResponseBody) String

func (*CreateCustomFieldResponseBody) UnmarshalJSON

func (c *CreateCustomFieldResponseBody) UnmarshalJSON(data []byte) error

type CreateCustomFieldSelectOptionResponseBody

type CreateCustomFieldSelectOptionResponseBody struct {
	Data *CustomFieldDefinitionSelectOption `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateCustomFieldSelectOptionResponseBody) GetData

func (*CreateCustomFieldSelectOptionResponseBody) GetExtraProperties

func (c *CreateCustomFieldSelectOptionResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateCustomFieldSelectOptionResponseBody) GetRequestID

func (*CreateCustomFieldSelectOptionResponseBody) MarshalJSON

func (*CreateCustomFieldSelectOptionResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCustomFieldSelectOptionResponseBody) SetRequestID

func (c *CreateCustomFieldSelectOptionResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCustomFieldSelectOptionResponseBody) String

func (*CreateCustomFieldSelectOptionResponseBody) UnmarshalJSON

func (c *CreateCustomFieldSelectOptionResponseBody) UnmarshalJSON(data []byte) error

type CreateCustomObjectResponseBody

type CreateCustomObjectResponseBody struct {
	Data      *APICustomObject `json:"data" url:"data"`
	RequestID string           `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateCustomObjectResponseBody) GetData

func (*CreateCustomObjectResponseBody) GetExtraProperties

func (c *CreateCustomObjectResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateCustomObjectResponseBody) GetRequestID

func (c *CreateCustomObjectResponseBody) GetRequestID() string

func (*CreateCustomObjectResponseBody) MarshalJSON

func (c *CreateCustomObjectResponseBody) MarshalJSON() ([]byte, error)

func (*CreateCustomObjectResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCustomObjectResponseBody) SetRequestID

func (c *CreateCustomObjectResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateCustomObjectResponseBody) String

func (*CreateCustomObjectResponseBody) UnmarshalJSON

func (c *CreateCustomObjectResponseBody) UnmarshalJSON(data []byte) error

type CreateFeatureRequestEvidenceResponseBody

type CreateFeatureRequestEvidenceResponseBody struct {
	Data      *FeatureRequestEvidence `json:"data" url:"data"`
	RequestID string                  `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateFeatureRequestEvidenceResponseBody) GetData

func (*CreateFeatureRequestEvidenceResponseBody) GetExtraProperties

func (c *CreateFeatureRequestEvidenceResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateFeatureRequestEvidenceResponseBody) GetRequestID

func (*CreateFeatureRequestEvidenceResponseBody) MarshalJSON

func (c *CreateFeatureRequestEvidenceResponseBody) MarshalJSON() ([]byte, error)

func (*CreateFeatureRequestEvidenceResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateFeatureRequestEvidenceResponseBody) SetRequestID

func (c *CreateFeatureRequestEvidenceResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateFeatureRequestEvidenceResponseBody) String

func (*CreateFeatureRequestEvidenceResponseBody) UnmarshalJSON

func (c *CreateFeatureRequestEvidenceResponseBody) UnmarshalJSON(data []byte) error

type CreateFeatureRequestResponseBody

type CreateFeatureRequestResponseBody struct {
	Data      *FeatureRequest `json:"data" url:"data"`
	RequestID string          `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateFeatureRequestResponseBody) GetData

func (*CreateFeatureRequestResponseBody) GetExtraProperties

func (c *CreateFeatureRequestResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateFeatureRequestResponseBody) GetRequestID

func (c *CreateFeatureRequestResponseBody) GetRequestID() string

func (*CreateFeatureRequestResponseBody) MarshalJSON

func (c *CreateFeatureRequestResponseBody) MarshalJSON() ([]byte, error)

func (*CreateFeatureRequestResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateFeatureRequestResponseBody) SetRequestID

func (c *CreateFeatureRequestResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateFeatureRequestResponseBody) String

func (*CreateFeatureRequestResponseBody) UnmarshalJSON

func (c *CreateFeatureRequestResponseBody) UnmarshalJSON(data []byte) error

type CreateIssueAiResponseResponseBody

type CreateIssueAiResponseResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// The HTML content of the AI response.
	ResponseHTML string `json:"response_html" url:"response_html"`
	// Whether the AI was able to answer the question.
	ResponseValid bool `json:"response_valid" url:"response_valid"`
	// contains filtered or unexported fields
}

func (*CreateIssueAiResponseResponseBody) GetExtraProperties

func (c *CreateIssueAiResponseResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateIssueAiResponseResponseBody) GetRequestID

func (c *CreateIssueAiResponseResponseBody) GetRequestID() string

func (*CreateIssueAiResponseResponseBody) GetResponseHTML

func (c *CreateIssueAiResponseResponseBody) GetResponseHTML() string

func (*CreateIssueAiResponseResponseBody) GetResponseValid

func (c *CreateIssueAiResponseResponseBody) GetResponseValid() bool

func (*CreateIssueAiResponseResponseBody) MarshalJSON

func (c *CreateIssueAiResponseResponseBody) MarshalJSON() ([]byte, error)

func (*CreateIssueAiResponseResponseBody) SetRequestID

func (c *CreateIssueAiResponseResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueAiResponseResponseBody) SetResponseHTML

func (c *CreateIssueAiResponseResponseBody) SetResponseHTML(responseHTML string)

SetResponseHTML sets the ResponseHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueAiResponseResponseBody) SetResponseValid

func (c *CreateIssueAiResponseResponseBody) SetResponseValid(responseValid bool)

SetResponseValid sets the ResponseValid field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueAiResponseResponseBody) String

func (*CreateIssueAiResponseResponseBody) UnmarshalJSON

func (c *CreateIssueAiResponseResponseBody) UnmarshalJSON(data []byte) error

type CreateIssueDraftReplyResponseBody

type CreateIssueDraftReplyResponseBody struct {
	Data *CreateIssueDraftReplyResponseData `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateIssueDraftReplyResponseBody) GetData

func (*CreateIssueDraftReplyResponseBody) GetExtraProperties

func (c *CreateIssueDraftReplyResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateIssueDraftReplyResponseBody) GetRequestID

func (c *CreateIssueDraftReplyResponseBody) GetRequestID() string

func (*CreateIssueDraftReplyResponseBody) MarshalJSON

func (c *CreateIssueDraftReplyResponseBody) MarshalJSON() ([]byte, error)

func (*CreateIssueDraftReplyResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueDraftReplyResponseBody) SetRequestID

func (c *CreateIssueDraftReplyResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueDraftReplyResponseBody) String

func (*CreateIssueDraftReplyResponseBody) UnmarshalJSON

func (c *CreateIssueDraftReplyResponseBody) UnmarshalJSON(data []byte) error

type CreateIssueDraftReplyResponseData

type CreateIssueDraftReplyResponseData struct {
	// The ID of the draft.
	ID string `json:"id" url:"id"`
	// The ID of the issue.
	IssueID string `json:"issue_id" url:"issue_id"`
	// Whether the endpoint created or updated the draft.
	//
	// Known values: `created`, `updated`. This list is not exhaustive.
	Status string `json:"status" url:"status"`
	// The time the draft was last updated.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// The ID of the Pylon user who owns and can see the draft.
	UserID string `json:"user_id" url:"user_id"`
	// contains filtered or unexported fields
}

func (*CreateIssueDraftReplyResponseData) GetExtraProperties

func (c *CreateIssueDraftReplyResponseData) GetExtraProperties() map[string]interface{}

func (*CreateIssueDraftReplyResponseData) GetID

func (*CreateIssueDraftReplyResponseData) GetIssueID

func (c *CreateIssueDraftReplyResponseData) GetIssueID() string

func (*CreateIssueDraftReplyResponseData) GetStatus

func (*CreateIssueDraftReplyResponseData) GetUpdatedAt

func (c *CreateIssueDraftReplyResponseData) GetUpdatedAt() time.Time

func (*CreateIssueDraftReplyResponseData) GetUserID

func (*CreateIssueDraftReplyResponseData) MarshalJSON

func (c *CreateIssueDraftReplyResponseData) MarshalJSON() ([]byte, error)

func (*CreateIssueDraftReplyResponseData) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueDraftReplyResponseData) SetIssueID

func (c *CreateIssueDraftReplyResponseData) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueDraftReplyResponseData) SetStatus

func (c *CreateIssueDraftReplyResponseData) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueDraftReplyResponseData) SetUpdatedAt

func (c *CreateIssueDraftReplyResponseData) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueDraftReplyResponseData) SetUserID

func (c *CreateIssueDraftReplyResponseData) SetUserID(userID string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueDraftReplyResponseData) String

func (*CreateIssueDraftReplyResponseData) UnmarshalJSON

func (c *CreateIssueDraftReplyResponseData) UnmarshalJSON(data []byte) error

type CreateIssueGroupResponseBody

type CreateIssueGroupResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateIssueGroupResponseBody) GetData

func (c *CreateIssueGroupResponseBody) GetData() *Issue

func (*CreateIssueGroupResponseBody) GetExtraProperties

func (c *CreateIssueGroupResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateIssueGroupResponseBody) GetRequestID

func (c *CreateIssueGroupResponseBody) GetRequestID() string

func (*CreateIssueGroupResponseBody) MarshalJSON

func (c *CreateIssueGroupResponseBody) MarshalJSON() ([]byte, error)

func (*CreateIssueGroupResponseBody) SetData

func (c *CreateIssueGroupResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueGroupResponseBody) SetRequestID

func (c *CreateIssueGroupResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueGroupResponseBody) String

func (*CreateIssueGroupResponseBody) UnmarshalJSON

func (c *CreateIssueGroupResponseBody) UnmarshalJSON(data []byte) error

type CreateIssueNoteResponseBody

type CreateIssueNoteResponseBody struct {
	Data *CreateIssueNoteResponseData `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateIssueNoteResponseBody) GetData

func (*CreateIssueNoteResponseBody) GetExtraProperties

func (c *CreateIssueNoteResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateIssueNoteResponseBody) GetRequestID

func (c *CreateIssueNoteResponseBody) GetRequestID() string

func (*CreateIssueNoteResponseBody) MarshalJSON

func (c *CreateIssueNoteResponseBody) MarshalJSON() ([]byte, error)

func (*CreateIssueNoteResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueNoteResponseBody) SetRequestID

func (c *CreateIssueNoteResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueNoteResponseBody) String

func (c *CreateIssueNoteResponseBody) String() string

func (*CreateIssueNoteResponseBody) UnmarshalJSON

func (c *CreateIssueNoteResponseBody) UnmarshalJSON(data []byte) error

type CreateIssueNoteResponseData

type CreateIssueNoteResponseData struct {
	// The ID of the message.
	ID string `json:"id" url:"id"`
	// The ID of the issue.
	IssueID string `json:"issue_id" url:"issue_id"`
	// contains filtered or unexported fields
}

func (*CreateIssueNoteResponseData) GetExtraProperties

func (c *CreateIssueNoteResponseData) GetExtraProperties() map[string]interface{}

func (*CreateIssueNoteResponseData) GetID

func (*CreateIssueNoteResponseData) GetIssueID

func (c *CreateIssueNoteResponseData) GetIssueID() string

func (*CreateIssueNoteResponseData) MarshalJSON

func (c *CreateIssueNoteResponseData) MarshalJSON() ([]byte, error)

func (*CreateIssueNoteResponseData) SetID

func (c *CreateIssueNoteResponseData) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueNoteResponseData) SetIssueID

func (c *CreateIssueNoteResponseData) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueNoteResponseData) String

func (c *CreateIssueNoteResponseData) String() string

func (*CreateIssueNoteResponseData) UnmarshalJSON

func (c *CreateIssueNoteResponseData) UnmarshalJSON(data []byte) error

type CreateIssueReplyEmailInfo

type CreateIssueReplyEmailInfo struct {
	// The blind-carbon-copy recipients of the email reply.
	BccEmails []string `json:"bcc_emails,omitempty" url:"bcc_emails,omitempty"`
	// The carbon-copy recipients of the email reply.
	CcEmails []string `json:"cc_emails,omitempty" url:"cc_emails,omitempty"`
	// The primary recipients of the email reply.
	ToEmails []string `json:"to_emails,omitempty" url:"to_emails,omitempty"`
	// contains filtered or unexported fields
}

Recipient information for replies to email conversations. Provide at least one address across to_emails, cc_emails, and bcc_emails. Recipients are not inferred from the referenced message.

func (*CreateIssueReplyEmailInfo) GetBccEmails

func (c *CreateIssueReplyEmailInfo) GetBccEmails() []string

func (*CreateIssueReplyEmailInfo) GetCcEmails

func (c *CreateIssueReplyEmailInfo) GetCcEmails() []string

func (*CreateIssueReplyEmailInfo) GetExtraProperties

func (c *CreateIssueReplyEmailInfo) GetExtraProperties() map[string]interface{}

func (*CreateIssueReplyEmailInfo) GetToEmails

func (c *CreateIssueReplyEmailInfo) GetToEmails() []string

func (*CreateIssueReplyEmailInfo) MarshalJSON

func (c *CreateIssueReplyEmailInfo) MarshalJSON() ([]byte, error)

func (*CreateIssueReplyEmailInfo) SetBccEmails

func (c *CreateIssueReplyEmailInfo) SetBccEmails(bccEmails []string)

SetBccEmails sets the BccEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueReplyEmailInfo) SetCcEmails

func (c *CreateIssueReplyEmailInfo) SetCcEmails(ccEmails []string)

SetCcEmails sets the CcEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueReplyEmailInfo) SetToEmails

func (c *CreateIssueReplyEmailInfo) SetToEmails(toEmails []string)

SetToEmails sets the ToEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueReplyEmailInfo) String

func (c *CreateIssueReplyEmailInfo) String() string

func (*CreateIssueReplyEmailInfo) UnmarshalJSON

func (c *CreateIssueReplyEmailInfo) UnmarshalJSON(data []byte) error

type CreateIssueReplyResponseBody

type CreateIssueReplyResponseBody struct {
	Data *CreateIssueReplyResponseData `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateIssueReplyResponseBody) GetData

func (*CreateIssueReplyResponseBody) GetExtraProperties

func (c *CreateIssueReplyResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateIssueReplyResponseBody) GetRequestID

func (c *CreateIssueReplyResponseBody) GetRequestID() string

func (*CreateIssueReplyResponseBody) MarshalJSON

func (c *CreateIssueReplyResponseBody) MarshalJSON() ([]byte, error)

func (*CreateIssueReplyResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueReplyResponseBody) SetRequestID

func (c *CreateIssueReplyResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueReplyResponseBody) String

func (*CreateIssueReplyResponseBody) UnmarshalJSON

func (c *CreateIssueReplyResponseBody) UnmarshalJSON(data []byte) error

type CreateIssueReplyResponseData

type CreateIssueReplyResponseData struct {
	// The ID of the message.
	ID string `json:"id" url:"id"`
	// The ID of the issue.
	IssueID string `json:"issue_id" url:"issue_id"`
	// contains filtered or unexported fields
}

func (*CreateIssueReplyResponseData) GetExtraProperties

func (c *CreateIssueReplyResponseData) GetExtraProperties() map[string]interface{}

func (*CreateIssueReplyResponseData) GetID

func (*CreateIssueReplyResponseData) GetIssueID

func (c *CreateIssueReplyResponseData) GetIssueID() string

func (*CreateIssueReplyResponseData) MarshalJSON

func (c *CreateIssueReplyResponseData) MarshalJSON() ([]byte, error)

func (*CreateIssueReplyResponseData) SetID

func (c *CreateIssueReplyResponseData) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueReplyResponseData) SetIssueID

func (c *CreateIssueReplyResponseData) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueReplyResponseData) String

func (*CreateIssueReplyResponseData) UnmarshalJSON

func (c *CreateIssueReplyResponseData) UnmarshalJSON(data []byte) error

type CreateIssueRequestPriority

type CreateIssueRequestPriority string

The priority of the issue. Can be one of: urgent, high, medium, or low.

const (
	CreateIssueRequestPriorityUrgent CreateIssueRequestPriority = "urgent"
	CreateIssueRequestPriorityHigh   CreateIssueRequestPriority = "high"
	CreateIssueRequestPriorityMedium CreateIssueRequestPriority = "medium"
	CreateIssueRequestPriorityLow    CreateIssueRequestPriority = "low"
)

func NewCreateIssueRequestPriorityFromString

func NewCreateIssueRequestPriorityFromString(s string) (CreateIssueRequestPriority, error)

func (CreateIssueRequestPriority) Ptr

type CreateIssueResponseBody

type CreateIssueResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateIssueResponseBody) GetData

func (c *CreateIssueResponseBody) GetData() *Issue

func (*CreateIssueResponseBody) GetExtraProperties

func (c *CreateIssueResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateIssueResponseBody) GetRequestID

func (c *CreateIssueResponseBody) GetRequestID() string

func (*CreateIssueResponseBody) MarshalJSON

func (c *CreateIssueResponseBody) MarshalJSON() ([]byte, error)

func (*CreateIssueResponseBody) SetData

func (c *CreateIssueResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueResponseBody) SetRequestID

func (c *CreateIssueResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueResponseBody) String

func (c *CreateIssueResponseBody) String() string

func (*CreateIssueResponseBody) UnmarshalJSON

func (c *CreateIssueResponseBody) UnmarshalJSON(data []byte) error

type CreateIssueThreadResponseBody

type CreateIssueThreadResponseBody struct {
	Data *IssueThread `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateIssueThreadResponseBody) GetData

func (*CreateIssueThreadResponseBody) GetExtraProperties

func (c *CreateIssueThreadResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateIssueThreadResponseBody) GetRequestID

func (c *CreateIssueThreadResponseBody) GetRequestID() string

func (*CreateIssueThreadResponseBody) MarshalJSON

func (c *CreateIssueThreadResponseBody) MarshalJSON() ([]byte, error)

func (*CreateIssueThreadResponseBody) SetData

func (c *CreateIssueThreadResponseBody) SetData(data *IssueThread)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueThreadResponseBody) SetRequestID

func (c *CreateIssueThreadResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIssueThreadResponseBody) String

func (*CreateIssueThreadResponseBody) UnmarshalJSON

func (c *CreateIssueThreadResponseBody) UnmarshalJSON(data []byte) error

type CreateMacroResponseBody

type CreateMacroResponseBody struct {
	Data *Macro `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateMacroResponseBody) GetData

func (c *CreateMacroResponseBody) GetData() *Macro

func (*CreateMacroResponseBody) GetExtraProperties

func (c *CreateMacroResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateMacroResponseBody) GetRequestID

func (c *CreateMacroResponseBody) GetRequestID() string

func (*CreateMacroResponseBody) MarshalJSON

func (c *CreateMacroResponseBody) MarshalJSON() ([]byte, error)

func (*CreateMacroResponseBody) SetData

func (c *CreateMacroResponseBody) SetData(data *Macro)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateMacroResponseBody) SetRequestID

func (c *CreateMacroResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateMacroResponseBody) String

func (c *CreateMacroResponseBody) String() string

func (*CreateMacroResponseBody) UnmarshalJSON

func (c *CreateMacroResponseBody) UnmarshalJSON(data []byte) error

type CreateMilestoneResponseBody

type CreateMilestoneResponseBody struct {
	Data *Milestone `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateMilestoneResponseBody) GetData

func (c *CreateMilestoneResponseBody) GetData() *Milestone

func (*CreateMilestoneResponseBody) GetExtraProperties

func (c *CreateMilestoneResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateMilestoneResponseBody) GetRequestID

func (c *CreateMilestoneResponseBody) GetRequestID() string

func (*CreateMilestoneResponseBody) MarshalJSON

func (c *CreateMilestoneResponseBody) MarshalJSON() ([]byte, error)

func (*CreateMilestoneResponseBody) SetData

func (c *CreateMilestoneResponseBody) SetData(data *Milestone)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateMilestoneResponseBody) SetRequestID

func (c *CreateMilestoneResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateMilestoneResponseBody) String

func (c *CreateMilestoneResponseBody) String() string

func (*CreateMilestoneResponseBody) UnmarshalJSON

func (c *CreateMilestoneResponseBody) UnmarshalJSON(data []byte) error

type CreateProjectResponseBody

type CreateProjectResponseBody struct {
	Data *Project `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateProjectResponseBody) GetData

func (c *CreateProjectResponseBody) GetData() *Project

func (*CreateProjectResponseBody) GetExtraProperties

func (c *CreateProjectResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateProjectResponseBody) GetRequestID

func (c *CreateProjectResponseBody) GetRequestID() string

func (*CreateProjectResponseBody) MarshalJSON

func (c *CreateProjectResponseBody) MarshalJSON() ([]byte, error)

func (*CreateProjectResponseBody) SetData

func (c *CreateProjectResponseBody) SetData(data *Project)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateProjectResponseBody) SetRequestID

func (c *CreateProjectResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateProjectResponseBody) String

func (c *CreateProjectResponseBody) String() string

func (*CreateProjectResponseBody) UnmarshalJSON

func (c *CreateProjectResponseBody) UnmarshalJSON(data []byte) error

type CreateRouteRedirectResponseBody

type CreateRouteRedirectResponseBody struct {
	Data *RouteRedirect `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateRouteRedirectResponseBody) GetData

func (*CreateRouteRedirectResponseBody) GetExtraProperties

func (c *CreateRouteRedirectResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateRouteRedirectResponseBody) GetRequestID

func (c *CreateRouteRedirectResponseBody) GetRequestID() string

func (*CreateRouteRedirectResponseBody) MarshalJSON

func (c *CreateRouteRedirectResponseBody) MarshalJSON() ([]byte, error)

func (*CreateRouteRedirectResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateRouteRedirectResponseBody) SetRequestID

func (c *CreateRouteRedirectResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateRouteRedirectResponseBody) String

func (*CreateRouteRedirectResponseBody) UnmarshalJSON

func (c *CreateRouteRedirectResponseBody) UnmarshalJSON(data []byte) error

type CreateTagRequestBodyObjectType

type CreateTagRequestBodyObjectType string

The object type of the associated object. Can be "account", "article", or "issue".

const (
	CreateTagRequestBodyObjectTypeAccount CreateTagRequestBodyObjectType = "account"
	CreateTagRequestBodyObjectTypeArticle CreateTagRequestBodyObjectType = "article"
	CreateTagRequestBodyObjectTypeIssue   CreateTagRequestBodyObjectType = "issue"
)

func NewCreateTagRequestBodyObjectTypeFromString

func NewCreateTagRequestBodyObjectTypeFromString(s string) (CreateTagRequestBodyObjectType, error)

func (CreateTagRequestBodyObjectType) Ptr

type CreateTagResponseBody

type CreateTagResponseBody struct {
	Data *Tag `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateTagResponseBody) GetData

func (c *CreateTagResponseBody) GetData() *Tag

func (*CreateTagResponseBody) GetExtraProperties

func (c *CreateTagResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateTagResponseBody) GetRequestID

func (c *CreateTagResponseBody) GetRequestID() string

func (*CreateTagResponseBody) MarshalJSON

func (c *CreateTagResponseBody) MarshalJSON() ([]byte, error)

func (*CreateTagResponseBody) SetData

func (c *CreateTagResponseBody) SetData(data *Tag)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateTagResponseBody) SetRequestID

func (c *CreateTagResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateTagResponseBody) String

func (c *CreateTagResponseBody) String() string

func (*CreateTagResponseBody) UnmarshalJSON

func (c *CreateTagResponseBody) UnmarshalJSON(data []byte) error

type CreateTaskCommentResponseBody

type CreateTaskCommentResponseBody struct {
	Data *TaskComment `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateTaskCommentResponseBody) GetData

func (*CreateTaskCommentResponseBody) GetExtraProperties

func (c *CreateTaskCommentResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateTaskCommentResponseBody) GetRequestID

func (c *CreateTaskCommentResponseBody) GetRequestID() string

func (*CreateTaskCommentResponseBody) MarshalJSON

func (c *CreateTaskCommentResponseBody) MarshalJSON() ([]byte, error)

func (*CreateTaskCommentResponseBody) SetData

func (c *CreateTaskCommentResponseBody) SetData(data *TaskComment)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateTaskCommentResponseBody) SetRequestID

func (c *CreateTaskCommentResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateTaskCommentResponseBody) String

func (*CreateTaskCommentResponseBody) UnmarshalJSON

func (c *CreateTaskCommentResponseBody) UnmarshalJSON(data []byte) error

type CreateTaskResponseBody

type CreateTaskResponseBody struct {
	Data *Task `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateTaskResponseBody) GetData

func (c *CreateTaskResponseBody) GetData() *Task

func (*CreateTaskResponseBody) GetExtraProperties

func (c *CreateTaskResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateTaskResponseBody) GetRequestID

func (c *CreateTaskResponseBody) GetRequestID() string

func (*CreateTaskResponseBody) MarshalJSON

func (c *CreateTaskResponseBody) MarshalJSON() ([]byte, error)

func (*CreateTaskResponseBody) SetData

func (c *CreateTaskResponseBody) SetData(data *Task)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateTaskResponseBody) SetRequestID

func (c *CreateTaskResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateTaskResponseBody) String

func (c *CreateTaskResponseBody) String() string

func (*CreateTaskResponseBody) UnmarshalJSON

func (c *CreateTaskResponseBody) UnmarshalJSON(data []byte) error

type CreateTeamResponseBody

type CreateTeamResponseBody struct {
	Data *Team `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateTeamResponseBody) GetData

func (c *CreateTeamResponseBody) GetData() *Team

func (*CreateTeamResponseBody) GetExtraProperties

func (c *CreateTeamResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateTeamResponseBody) GetRequestID

func (c *CreateTeamResponseBody) GetRequestID() string

func (*CreateTeamResponseBody) MarshalJSON

func (c *CreateTeamResponseBody) MarshalJSON() ([]byte, error)

func (*CreateTeamResponseBody) SetData

func (c *CreateTeamResponseBody) SetData(data *Team)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateTeamResponseBody) SetRequestID

func (c *CreateTeamResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateTeamResponseBody) String

func (c *CreateTeamResponseBody) String() string

func (*CreateTeamResponseBody) UnmarshalJSON

func (c *CreateTeamResponseBody) UnmarshalJSON(data []byte) error

type CreateTrainingDataRequestBodyVisibility

type CreateTrainingDataRequestBodyVisibility string

The visibility of the training data. Defaults to "everyone". Valid values: "everyone", "user_only", "ai_agent_only"

const (
	CreateTrainingDataRequestBodyVisibilityEveryone    CreateTrainingDataRequestBodyVisibility = "everyone"
	CreateTrainingDataRequestBodyVisibilityUserOnly    CreateTrainingDataRequestBodyVisibility = "user_only"
	CreateTrainingDataRequestBodyVisibilityAiAgentOnly CreateTrainingDataRequestBodyVisibility = "ai_agent_only"
)

func NewCreateTrainingDataRequestBodyVisibilityFromString

func NewCreateTrainingDataRequestBodyVisibilityFromString(s string) (CreateTrainingDataRequestBodyVisibility, error)

func (CreateTrainingDataRequestBodyVisibility) Ptr

type CreateTrainingDataResponseBody

type CreateTrainingDataResponseBody struct {
	Data      *TrainingData `json:"data" url:"data"`
	RequestID string        `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*CreateTrainingDataResponseBody) GetData

func (*CreateTrainingDataResponseBody) GetExtraProperties

func (c *CreateTrainingDataResponseBody) GetExtraProperties() map[string]interface{}

func (*CreateTrainingDataResponseBody) GetRequestID

func (c *CreateTrainingDataResponseBody) GetRequestID() string

func (*CreateTrainingDataResponseBody) MarshalJSON

func (c *CreateTrainingDataResponseBody) MarshalJSON() ([]byte, error)

func (*CreateTrainingDataResponseBody) SetData

func (c *CreateTrainingDataResponseBody) SetData(data *TrainingData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateTrainingDataResponseBody) SetRequestID

func (c *CreateTrainingDataResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateTrainingDataResponseBody) String

func (*CreateTrainingDataResponseBody) UnmarshalJSON

func (c *CreateTrainingDataResponseBody) UnmarshalJSON(data []byte) error

type CrmDetails

type CrmDetails struct {
	// The ID of the CRM for that source.
	ID string `json:"id" url:"id"`
	// The source of the CRM.
	Source string `json:"source" url:"source"`
	// contains filtered or unexported fields
}

func (*CrmDetails) GetExtraProperties

func (c *CrmDetails) GetExtraProperties() map[string]interface{}

func (*CrmDetails) GetID

func (c *CrmDetails) GetID() string

func (*CrmDetails) GetSource

func (c *CrmDetails) GetSource() string

func (*CrmDetails) MarshalJSON

func (c *CrmDetails) MarshalJSON() ([]byte, error)

func (*CrmDetails) SetID

func (c *CrmDetails) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CrmDetails) SetSource

func (c *CrmDetails) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CrmDetails) String

func (c *CrmDetails) String() string

func (*CrmDetails) UnmarshalJSON

func (c *CrmDetails) UnmarshalJSON(data []byte) error

type CrmSettings

type CrmSettings struct {
	// List of all CRM details for the account.
	Details []*CrmDetails `json:"details,omitempty" url:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*CrmSettings) GetDetails

func (c *CrmSettings) GetDetails() []*CrmDetails

func (*CrmSettings) GetExtraProperties

func (c *CrmSettings) GetExtraProperties() map[string]interface{}

func (*CrmSettings) MarshalJSON

func (c *CrmSettings) MarshalJSON() ([]byte, error)

func (*CrmSettings) SetDetails

func (c *CrmSettings) SetDetails(details []*CrmDetails)

SetDetails sets the Details field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CrmSettings) String

func (c *CrmSettings) String() string

func (*CrmSettings) UnmarshalJSON

func (c *CrmSettings) UnmarshalJSON(data []byte) error

type CsatResponse

type CsatResponse struct {
	// The comment of the CSAT response.
	Comment *string `json:"comment,omitempty" url:"comment,omitempty"`
	// The score of the CSAT response.
	Score int64 `json:"score" url:"score"`
	// contains filtered or unexported fields
}

func (*CsatResponse) GetComment

func (c *CsatResponse) GetComment() *string

func (*CsatResponse) GetExtraProperties

func (c *CsatResponse) GetExtraProperties() map[string]interface{}

func (*CsatResponse) GetScore

func (c *CsatResponse) GetScore() int64

func (*CsatResponse) MarshalJSON

func (c *CsatResponse) MarshalJSON() ([]byte, error)

func (*CsatResponse) SetComment

func (c *CsatResponse) SetComment(comment *string)

SetComment sets the Comment field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CsatResponse) SetScore

func (c *CsatResponse) SetScore(score int64)

SetScore sets the Score field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CsatResponse) String

func (c *CsatResponse) String() string

func (*CsatResponse) UnmarshalJSON

func (c *CsatResponse) UnmarshalJSON(data []byte) error

type CustomActivity

type CustomActivity struct {
	// The ID of the account that the activity belongs to.
	AccountID    string        `json:"account_id" url:"account_id"`
	ActivityType *ActivityType `json:"activity_type,omitempty" url:"activity_type,omitempty"`
	// The HTML content displayed in the activity.
	BodyHTML *string `json:"body_html,omitempty" url:"body_html,omitempty"`
	// The ID of the contact who performed the activity, if applicable.
	ContactID *string `json:"contact_id,omitempty" url:"contact_id,omitempty"`
	// The creation time of the activity in RFC3339 format.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The timestamp (RFC3339) when the activity happened.
	HappenedAt time.Time `json:"happened_at" url:"happened_at"`
	// The ID of the activity.
	ID string `json:"id" url:"id"`
	// The link associated with the activity.
	Link *string `json:"link,omitempty" url:"link,omitempty"`
	// The text displayed for the activity link.
	LinkText *string `json:"link_text,omitempty" url:"link_text,omitempty"`
	// The last update time of the activity in RFC3339 format.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// The ID of the user who performed the activity, if applicable.
	UserID *string `json:"user_id,omitempty" url:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomActivity) GetAccountID

func (c *CustomActivity) GetAccountID() string

func (*CustomActivity) GetActivityType

func (c *CustomActivity) GetActivityType() *ActivityType

func (*CustomActivity) GetBodyHTML

func (c *CustomActivity) GetBodyHTML() *string

func (*CustomActivity) GetContactID

func (c *CustomActivity) GetContactID() *string

func (*CustomActivity) GetCreatedAt

func (c *CustomActivity) GetCreatedAt() time.Time

func (*CustomActivity) GetExtraProperties

func (c *CustomActivity) GetExtraProperties() map[string]interface{}

func (*CustomActivity) GetHappenedAt

func (c *CustomActivity) GetHappenedAt() time.Time

func (*CustomActivity) GetID

func (c *CustomActivity) GetID() string
func (c *CustomActivity) GetLink() *string

func (*CustomActivity) GetLinkText

func (c *CustomActivity) GetLinkText() *string

func (*CustomActivity) GetUpdatedAt

func (c *CustomActivity) GetUpdatedAt() time.Time

func (*CustomActivity) GetUserID

func (c *CustomActivity) GetUserID() *string

func (*CustomActivity) MarshalJSON

func (c *CustomActivity) MarshalJSON() ([]byte, error)

func (*CustomActivity) SetAccountID

func (c *CustomActivity) SetAccountID(accountID string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomActivity) SetActivityType

func (c *CustomActivity) SetActivityType(activityType *ActivityType)

SetActivityType sets the ActivityType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomActivity) SetBodyHTML

func (c *CustomActivity) SetBodyHTML(bodyHTML *string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomActivity) SetContactID

func (c *CustomActivity) SetContactID(contactID *string)

SetContactID sets the ContactID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomActivity) SetCreatedAt

func (c *CustomActivity) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomActivity) SetHappenedAt

func (c *CustomActivity) SetHappenedAt(happenedAt time.Time)

SetHappenedAt sets the HappenedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomActivity) SetID

func (c *CustomActivity) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (c *CustomActivity) SetLink(link *string)

SetLink sets the Link field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomActivity) SetLinkText

func (c *CustomActivity) SetLinkText(linkText *string)

SetLinkText sets the LinkText field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomActivity) SetUpdatedAt

func (c *CustomActivity) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomActivity) SetUserID

func (c *CustomActivity) SetUserID(userID *string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomActivity) String

func (c *CustomActivity) String() string

func (*CustomActivity) UnmarshalJSON

func (c *CustomActivity) UnmarshalJSON(data []byte) error

type CustomFieldDefinition

type CustomFieldDefinition struct {
	// When the custom field was created.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The default value for single-valued custom fields.
	DefaultValue *string `json:"default_value,omitempty" url:"default_value,omitempty"`
	// The default values for multi-valued custom fields.
	DefaultValues []string `json:"default_values,omitempty" url:"default_values,omitempty"`
	// The description of the custom field.
	Description string `json:"description" url:"description"`
	// The ID of the custom field.
	ID string `json:"id" url:"id"`
	// Whether the custom field is read only. Fields synced from apps and integrations are read-only.
	IsReadOnly bool `json:"is_read_only" url:"is_read_only"`
	// The label of the custom field.
	Label          string          `json:"label" url:"label"`
	NumberMetadata *NumberMetadata `json:"number_metadata,omitempty" url:"number_metadata,omitempty"`
	// The type of object this custom field is for. This can be a built-in or custom object type.
	ObjectType     string          `json:"object_type" url:"object_type"`
	SelectMetadata *SelectMetadata `json:"select_metadata,omitempty" url:"select_metadata,omitempty"`
	// The slug of the custom field.
	Slug string `json:"slug" url:"slug"`
	// The source of the custom field.
	Source string `json:"source" url:"source"`
	// The type of the custom field.
	Type string `json:"type" url:"type"`
	// When the custom field was last updated.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*CustomFieldDefinition) GetCreatedAt

func (c *CustomFieldDefinition) GetCreatedAt() time.Time

func (*CustomFieldDefinition) GetDefaultValue

func (c *CustomFieldDefinition) GetDefaultValue() *string

func (*CustomFieldDefinition) GetDefaultValues

func (c *CustomFieldDefinition) GetDefaultValues() []string

func (*CustomFieldDefinition) GetDescription

func (c *CustomFieldDefinition) GetDescription() string

func (*CustomFieldDefinition) GetExtraProperties

func (c *CustomFieldDefinition) GetExtraProperties() map[string]interface{}

func (*CustomFieldDefinition) GetID

func (c *CustomFieldDefinition) GetID() string

func (*CustomFieldDefinition) GetIsReadOnly

func (c *CustomFieldDefinition) GetIsReadOnly() bool

func (*CustomFieldDefinition) GetLabel

func (c *CustomFieldDefinition) GetLabel() string

func (*CustomFieldDefinition) GetNumberMetadata

func (c *CustomFieldDefinition) GetNumberMetadata() *NumberMetadata

func (*CustomFieldDefinition) GetObjectType

func (c *CustomFieldDefinition) GetObjectType() string

func (*CustomFieldDefinition) GetSelectMetadata

func (c *CustomFieldDefinition) GetSelectMetadata() *SelectMetadata

func (*CustomFieldDefinition) GetSlug

func (c *CustomFieldDefinition) GetSlug() string

func (*CustomFieldDefinition) GetSource

func (c *CustomFieldDefinition) GetSource() string

func (*CustomFieldDefinition) GetType

func (c *CustomFieldDefinition) GetType() string

func (*CustomFieldDefinition) GetUpdatedAt

func (c *CustomFieldDefinition) GetUpdatedAt() time.Time

func (*CustomFieldDefinition) MarshalJSON

func (c *CustomFieldDefinition) MarshalJSON() ([]byte, error)

func (*CustomFieldDefinition) SetCreatedAt

func (c *CustomFieldDefinition) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetDefaultValue

func (c *CustomFieldDefinition) SetDefaultValue(defaultValue *string)

SetDefaultValue sets the DefaultValue field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetDefaultValues

func (c *CustomFieldDefinition) SetDefaultValues(defaultValues []string)

SetDefaultValues sets the DefaultValues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetDescription

func (c *CustomFieldDefinition) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetID

func (c *CustomFieldDefinition) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetIsReadOnly

func (c *CustomFieldDefinition) SetIsReadOnly(isReadOnly bool)

SetIsReadOnly sets the IsReadOnly field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetLabel

func (c *CustomFieldDefinition) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetNumberMetadata

func (c *CustomFieldDefinition) SetNumberMetadata(numberMetadata *NumberMetadata)

SetNumberMetadata sets the NumberMetadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetObjectType

func (c *CustomFieldDefinition) SetObjectType(objectType string)

SetObjectType sets the ObjectType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetSelectMetadata

func (c *CustomFieldDefinition) SetSelectMetadata(selectMetadata *SelectMetadata)

SetSelectMetadata sets the SelectMetadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetSlug

func (c *CustomFieldDefinition) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetSource

func (c *CustomFieldDefinition) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetType

func (c *CustomFieldDefinition) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) SetUpdatedAt

func (c *CustomFieldDefinition) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinition) String

func (c *CustomFieldDefinition) String() string

func (*CustomFieldDefinition) UnmarshalJSON

func (c *CustomFieldDefinition) UnmarshalJSON(data []byte) error

type CustomFieldDefinitionSelectOption

type CustomFieldDefinitionSelectOption struct {
	// The AI description of the option. This is used to help the AI understand when to select this option.
	AiDescription *string `json:"ai_description,omitempty" url:"ai_description,omitempty"`
	// The label of the option.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// The slug of the option.
	Slug *string `json:"slug,omitempty" url:"slug,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomFieldDefinitionSelectOption) GetAiDescription

func (c *CustomFieldDefinitionSelectOption) GetAiDescription() *string

func (*CustomFieldDefinitionSelectOption) GetExtraProperties

func (c *CustomFieldDefinitionSelectOption) GetExtraProperties() map[string]interface{}

func (*CustomFieldDefinitionSelectOption) GetLabel

func (*CustomFieldDefinitionSelectOption) GetSlug

func (*CustomFieldDefinitionSelectOption) MarshalJSON

func (c *CustomFieldDefinitionSelectOption) MarshalJSON() ([]byte, error)

func (*CustomFieldDefinitionSelectOption) SetAiDescription

func (c *CustomFieldDefinitionSelectOption) SetAiDescription(aiDescription *string)

SetAiDescription sets the AiDescription field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinitionSelectOption) SetLabel

func (c *CustomFieldDefinitionSelectOption) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinitionSelectOption) SetSlug

func (c *CustomFieldDefinitionSelectOption) SetSlug(slug *string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldDefinitionSelectOption) String

func (*CustomFieldDefinitionSelectOption) UnmarshalJSON

func (c *CustomFieldDefinitionSelectOption) UnmarshalJSON(data []byte) error

type CustomFieldValue

type CustomFieldValue struct {
	// The slug of the custom field.
	Slug *string `json:"slug,omitempty" url:"slug,omitempty"`
	// The value of the custom field. Only to be used for single-valued custom fields. If unset, the custom field will be unset. If the custom field is a select field, the value must be the select option slug, which you can find from the GET /custom-fields endpoint. If the custom field is a relationship field, the value must be the related object ID.
	Value *string `json:"value,omitempty" url:"value,omitempty"`
	// The values of the custom field. Only to be used for multi-valued custom fields (ex. multiselect). Replaces the full selection; it does not add to or remove from the existing values. If unset, the custom field will be unset. If the custom field is a multiselect field, the values must be the select option slugs which you can find from the GET /custom-fields endpoint.
	Values []string `json:"values,omitempty" url:"values,omitempty"`
	// contains filtered or unexported fields
}

A custom field value to set. Custom fields not listed in a write request are left unchanged.

func (*CustomFieldValue) GetExtraProperties

func (c *CustomFieldValue) GetExtraProperties() map[string]interface{}

func (*CustomFieldValue) GetSlug

func (c *CustomFieldValue) GetSlug() *string

func (*CustomFieldValue) GetValue

func (c *CustomFieldValue) GetValue() *string

func (*CustomFieldValue) GetValues

func (c *CustomFieldValue) GetValues() []string

func (*CustomFieldValue) MarshalJSON

func (c *CustomFieldValue) MarshalJSON() ([]byte, error)

func (*CustomFieldValue) SetSlug

func (c *CustomFieldValue) SetSlug(slug *string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldValue) SetValue

func (c *CustomFieldValue) SetValue(value *string)

SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldValue) SetValues

func (c *CustomFieldValue) SetValues(values []string)

SetValues sets the Values field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldValue) String

func (c *CustomFieldValue) String() string

func (*CustomFieldValue) UnmarshalJSON

func (c *CustomFieldValue) UnmarshalJSON(data []byte) error

type CustomFieldsCreateRequest

type CustomFieldsCreateRequest struct {
	// The default value for single-valued custom fields.
	DefaultValue *string `json:"default_value,omitempty" url:"-"`
	// The default values for multi-valued custom fields.
	DefaultValues []string `json:"default_values,omitempty" url:"-"`
	// The description of the custom field.
	Description *string `json:"description,omitempty" url:"-"`
	// The label of the custom field.
	Label string `json:"label" url:"-"`
	// The object type of the custom field. Can be "account", "issue", "contact", "task", "project", "meeting", or "opportunity".
	ObjectType CreateCustomFieldRequestBodyObjectType `json:"object_type" url:"-"`
	// The list options of the select custom field. This is only present for select and multiselect custom fields.
	SelectOptions []*CustomFieldDefinitionSelectOption `json:"select_options,omitempty" url:"-"`
	// The slug of the custom field.
	Slug *string `json:"slug,omitempty" url:"-"`
	// The type of the custom field. Can be one of `text`, `number`, `decimal`, `boolean`, `date`, `datetime`, `user`, `url`, `select`, or `multiselect`.
	Type string `json:"type" url:"-"`
	// contains filtered or unexported fields
}

func (*CustomFieldsCreateRequest) MarshalJSON

func (c *CustomFieldsCreateRequest) MarshalJSON() ([]byte, error)

func (*CustomFieldsCreateRequest) SetDefaultValue

func (c *CustomFieldsCreateRequest) SetDefaultValue(defaultValue *string)

SetDefaultValue sets the DefaultValue field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsCreateRequest) SetDefaultValues

func (c *CustomFieldsCreateRequest) SetDefaultValues(defaultValues []string)

SetDefaultValues sets the DefaultValues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsCreateRequest) SetDescription

func (c *CustomFieldsCreateRequest) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsCreateRequest) SetLabel

func (c *CustomFieldsCreateRequest) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsCreateRequest) SetObjectType

SetObjectType sets the ObjectType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsCreateRequest) SetSelectOptions

func (c *CustomFieldsCreateRequest) SetSelectOptions(selectOptions []*CustomFieldDefinitionSelectOption)

SetSelectOptions sets the SelectOptions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsCreateRequest) SetSlug

func (c *CustomFieldsCreateRequest) SetSlug(slug *string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsCreateRequest) SetType

func (c *CustomFieldsCreateRequest) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsCreateRequest) UnmarshalJSON

func (c *CustomFieldsCreateRequest) UnmarshalJSON(data []byte) error

type CustomFieldsGetRequest

type CustomFieldsGetRequest struct {
	// The ID of the custom field.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*CustomFieldsGetRequest) SetID

func (c *CustomFieldsGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type CustomFieldsListRequest

type CustomFieldsListRequest struct {
	// The object type of the custom fields. Can be "account", "issue", "contact", "task", "project", "meeting", or "opportunity".
	ObjectType ListCustomFieldsRequestObjectType `json:"-" url:"object_type"`
	// contains filtered or unexported fields
}

func (*CustomFieldsListRequest) SetObjectType

func (c *CustomFieldsListRequest) SetObjectType(objectType ListCustomFieldsRequestObjectType)

SetObjectType sets the ObjectType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type CustomFieldsUpdateRequest

type CustomFieldsUpdateRequest struct {
	// The ID of the custom field.
	ID string `json:"-" url:"-"`
	// The default value for single-valued custom fields.
	DefaultValue *string `json:"default_value,omitempty" url:"-"`
	// The default values for multi-valued custom fields.
	DefaultValues []string `json:"default_values,omitempty" url:"-"`
	// The description of the custom field.
	Description *string `json:"description,omitempty" url:"-"`
	// The label of the custom field.
	Label *string `json:"label,omitempty" url:"-"`
	// The complete list of options for a select or multiselect custom field. Options missing from the list are deleted and their stored values are cleared asynchronously. Prefer the dedicated select option endpoints, which can rename an option without losing stored values.
	SelectOptions []*CustomFieldDefinitionSelectOption `json:"select_options,omitempty" url:"-"`
	// The slug of the custom field.
	Slug *string `json:"slug,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CustomFieldsUpdateRequest) MarshalJSON

func (c *CustomFieldsUpdateRequest) MarshalJSON() ([]byte, error)

func (*CustomFieldsUpdateRequest) SetDefaultValue

func (c *CustomFieldsUpdateRequest) SetDefaultValue(defaultValue *string)

SetDefaultValue sets the DefaultValue field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsUpdateRequest) SetDefaultValues

func (c *CustomFieldsUpdateRequest) SetDefaultValues(defaultValues []string)

SetDefaultValues sets the DefaultValues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsUpdateRequest) SetDescription

func (c *CustomFieldsUpdateRequest) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsUpdateRequest) SetID

func (c *CustomFieldsUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsUpdateRequest) SetLabel

func (c *CustomFieldsUpdateRequest) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsUpdateRequest) SetSelectOptions

func (c *CustomFieldsUpdateRequest) SetSelectOptions(selectOptions []*CustomFieldDefinitionSelectOption)

SetSelectOptions sets the SelectOptions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsUpdateRequest) SetSlug

func (c *CustomFieldsUpdateRequest) SetSlug(slug *string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomFieldsUpdateRequest) UnmarshalJSON

func (c *CustomFieldsUpdateRequest) UnmarshalJSON(data []byte) error

type CustomObjectsBulkUpdateRequest

type CustomObjectsBulkUpdateRequest struct {
	// The type slug of the custom object (e.g. "opportunity").
	Type string `json:"-" url:"-"`
	// Custom field values to apply to every listed custom object, keyed by field slug. To unset a field, pass its slug with an empty value.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// The IDs of the custom objects to update. Must be between 1 and 100 IDs.
	IDs []string `json:"ids" url:"-"`
	// contains filtered or unexported fields
}

func (*CustomObjectsBulkUpdateRequest) MarshalJSON

func (c *CustomObjectsBulkUpdateRequest) MarshalJSON() ([]byte, error)

func (*CustomObjectsBulkUpdateRequest) SetCustomFields

func (c *CustomObjectsBulkUpdateRequest) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsBulkUpdateRequest) SetIDs

func (c *CustomObjectsBulkUpdateRequest) SetIDs(ids []string)

SetIDs sets the IDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsBulkUpdateRequest) SetType

func (c *CustomObjectsBulkUpdateRequest) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsBulkUpdateRequest) UnmarshalJSON

func (c *CustomObjectsBulkUpdateRequest) UnmarshalJSON(data []byte) error

type CustomObjectsCreateRequest

type CustomObjectsCreateRequest struct {
	// The type slug of the custom object (e.g. "companies").
	Type string `json:"-" url:"-"`
	// Custom field values to set on the object, keyed by field slug. To link the object to an account, pass the built-in Account relationship field as `custom_fields.account.value`, for example `{"custom_fields":{"account":{"value":"account_uuid"}}}`.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// The name of the custom object.
	Name string `json:"name" url:"-"`
	// contains filtered or unexported fields
}

func (*CustomObjectsCreateRequest) MarshalJSON

func (c *CustomObjectsCreateRequest) MarshalJSON() ([]byte, error)

func (*CustomObjectsCreateRequest) SetCustomFields

func (c *CustomObjectsCreateRequest) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsCreateRequest) SetName

func (c *CustomObjectsCreateRequest) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsCreateRequest) SetType

func (c *CustomObjectsCreateRequest) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsCreateRequest) UnmarshalJSON

func (c *CustomObjectsCreateRequest) UnmarshalJSON(data []byte) error

type CustomObjectsDeleteRequest

type CustomObjectsDeleteRequest struct {
	// The type slug of the custom object (e.g. "companies").
	Type string `json:"-" url:"-"`
	// The ID of the custom object.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*CustomObjectsDeleteRequest) SetID

func (c *CustomObjectsDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsDeleteRequest) SetType

func (c *CustomObjectsDeleteRequest) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type CustomObjectsGetRequest

type CustomObjectsGetRequest struct {
	// The type slug of the custom object (e.g. "companies").
	Type string `json:"-" url:"-"`
	// The ID of the custom object.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*CustomObjectsGetRequest) SetID

func (c *CustomObjectsGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsGetRequest) SetType

func (c *CustomObjectsGetRequest) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type CustomObjectsListRequest

type CustomObjectsListRequest struct {
	// The type slug of the custom object (e.g. "companies").
	Type string `json:"-" url:"-"`
	// Pagination cursor for the next page.
	Cursor *string `json:"-" url:"cursor,omitempty"`
	// Number of results per page. Defaults to 25, max 100.
	Limit *int64 `json:"-" url:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomObjectsListRequest) SetCursor

func (c *CustomObjectsListRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsListRequest) SetLimit

func (c *CustomObjectsListRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsListRequest) SetType

func (c *CustomObjectsListRequest) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type CustomObjectsSearchRequest

type CustomObjectsSearchRequest struct {
	// The type slug of the custom object (e.g. "companies").
	Type string `json:"-" url:"-"`
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of results to fetch. Defaults to 25, max 100.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CustomObjectsSearchRequest) MarshalJSON

func (c *CustomObjectsSearchRequest) MarshalJSON() ([]byte, error)

func (*CustomObjectsSearchRequest) SetCursor

func (c *CustomObjectsSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsSearchRequest) SetFilter

func (c *CustomObjectsSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsSearchRequest) SetLimit

func (c *CustomObjectsSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsSearchRequest) SetType

func (c *CustomObjectsSearchRequest) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsSearchRequest) UnmarshalJSON

func (c *CustomObjectsSearchRequest) UnmarshalJSON(data []byte) error

type CustomObjectsUpdateRequest

type CustomObjectsUpdateRequest struct {
	// The type slug of the custom object (e.g. "companies").
	Type string `json:"-" url:"-"`
	// The ID of the custom object.
	ID string `json:"-" url:"-"`
	// Custom field values to set on the object, keyed by field slug. To update the linked account, pass the built-in Account relationship field as `custom_fields.account.value`, for example `{"custom_fields":{"account":{"value":"account_uuid"}}}`.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// The name of the custom object.
	Name *string `json:"name,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CustomObjectsUpdateRequest) MarshalJSON

func (c *CustomObjectsUpdateRequest) MarshalJSON() ([]byte, error)

func (*CustomObjectsUpdateRequest) SetCustomFields

func (c *CustomObjectsUpdateRequest) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsUpdateRequest) SetID

func (c *CustomObjectsUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsUpdateRequest) SetName

func (c *CustomObjectsUpdateRequest) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsUpdateRequest) SetType

func (c *CustomObjectsUpdateRequest) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomObjectsUpdateRequest) UnmarshalJSON

func (c *CustomObjectsUpdateRequest) UnmarshalJSON(data []byte) error

type CustomSourceInfo

type CustomSourceInfo struct {
	// The timestamp of when the message was created in the external system. (RFC3339)
	CreatedAt *time.Time `json:"created_at,omitempty" url:"created_at,omitempty"`
	// The external ID of this message in the custom system. Unique per custom source: retrying a reply with the same external_id on the same issue returns the existing message instead of creating a duplicate.
	ExternalID string `json:"external_id" url:"external_id"`
	// Arbitrary metadata to store with the message.
	Metadata map[string]any `json:"metadata,omitempty" url:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomSourceInfo) GetCreatedAt

func (c *CustomSourceInfo) GetCreatedAt() *time.Time

func (*CustomSourceInfo) GetExternalID

func (c *CustomSourceInfo) GetExternalID() string

func (*CustomSourceInfo) GetExtraProperties

func (c *CustomSourceInfo) GetExtraProperties() map[string]interface{}

func (*CustomSourceInfo) GetMetadata

func (c *CustomSourceInfo) GetMetadata() map[string]any

func (*CustomSourceInfo) MarshalJSON

func (c *CustomSourceInfo) MarshalJSON() ([]byte, error)

func (*CustomSourceInfo) SetCreatedAt

func (c *CustomSourceInfo) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomSourceInfo) SetExternalID

func (c *CustomSourceInfo) SetExternalID(externalID string)

SetExternalID sets the ExternalID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomSourceInfo) SetMetadata

func (c *CustomSourceInfo) SetMetadata(metadata map[string]any)

SetMetadata sets the Metadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CustomSourceInfo) String

func (c *CustomSourceInfo) String() string

func (*CustomSourceInfo) UnmarshalJSON

func (c *CustomSourceInfo) UnmarshalJSON(data []byte) error

type DeleteAccountHighlightResponseBody

type DeleteAccountHighlightResponseBody struct {
	Data      *DeleteAccountHighlightResponseData `json:"data" url:"data"`
	RequestID string                              `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteAccountHighlightResponseBody) GetData

func (*DeleteAccountHighlightResponseBody) GetExtraProperties

func (d *DeleteAccountHighlightResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteAccountHighlightResponseBody) GetRequestID

func (d *DeleteAccountHighlightResponseBody) GetRequestID() string

func (*DeleteAccountHighlightResponseBody) MarshalJSON

func (d *DeleteAccountHighlightResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteAccountHighlightResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteAccountHighlightResponseBody) SetRequestID

func (d *DeleteAccountHighlightResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteAccountHighlightResponseBody) String

func (*DeleteAccountHighlightResponseBody) UnmarshalJSON

func (d *DeleteAccountHighlightResponseBody) UnmarshalJSON(data []byte) error

type DeleteAccountHighlightResponseData

type DeleteAccountHighlightResponseData struct {
	Success bool `json:"success" url:"success"`
	// contains filtered or unexported fields
}

func (*DeleteAccountHighlightResponseData) GetExtraProperties

func (d *DeleteAccountHighlightResponseData) GetExtraProperties() map[string]interface{}

func (*DeleteAccountHighlightResponseData) GetSuccess

func (d *DeleteAccountHighlightResponseData) GetSuccess() bool

func (*DeleteAccountHighlightResponseData) MarshalJSON

func (d *DeleteAccountHighlightResponseData) MarshalJSON() ([]byte, error)

func (*DeleteAccountHighlightResponseData) SetSuccess

func (d *DeleteAccountHighlightResponseData) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteAccountHighlightResponseData) String

func (*DeleteAccountHighlightResponseData) UnmarshalJSON

func (d *DeleteAccountHighlightResponseData) UnmarshalJSON(data []byte) error

type DeleteAccountRelationshipResponseBody

type DeleteAccountRelationshipResponseBody struct {
	Data *AccountRelationship `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteAccountRelationshipResponseBody) GetData

func (*DeleteAccountRelationshipResponseBody) GetExtraProperties

func (d *DeleteAccountRelationshipResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteAccountRelationshipResponseBody) GetRequestID

func (*DeleteAccountRelationshipResponseBody) MarshalJSON

func (d *DeleteAccountRelationshipResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteAccountRelationshipResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteAccountRelationshipResponseBody) SetRequestID

func (d *DeleteAccountRelationshipResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteAccountRelationshipResponseBody) String

func (*DeleteAccountRelationshipResponseBody) UnmarshalJSON

func (d *DeleteAccountRelationshipResponseBody) UnmarshalJSON(data []byte) error

type DeleteAccountResponseBody

type DeleteAccountResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteAccountResponseBody) GetExtraProperties

func (d *DeleteAccountResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteAccountResponseBody) GetRequestID

func (d *DeleteAccountResponseBody) GetRequestID() string

func (*DeleteAccountResponseBody) MarshalJSON

func (d *DeleteAccountResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteAccountResponseBody) SetRequestID

func (d *DeleteAccountResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteAccountResponseBody) String

func (d *DeleteAccountResponseBody) String() string

func (*DeleteAccountResponseBody) UnmarshalJSON

func (d *DeleteAccountResponseBody) UnmarshalJSON(data []byte) error

type DeleteArticleResponseBody

type DeleteArticleResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteArticleResponseBody) GetExtraProperties

func (d *DeleteArticleResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteArticleResponseBody) GetRequestID

func (d *DeleteArticleResponseBody) GetRequestID() string

func (*DeleteArticleResponseBody) MarshalJSON

func (d *DeleteArticleResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteArticleResponseBody) SetRequestID

func (d *DeleteArticleResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteArticleResponseBody) String

func (d *DeleteArticleResponseBody) String() string

func (*DeleteArticleResponseBody) UnmarshalJSON

func (d *DeleteArticleResponseBody) UnmarshalJSON(data []byte) error

type DeleteCallRecordingResponseBody

type DeleteCallRecordingResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteCallRecordingResponseBody) GetExtraProperties

func (d *DeleteCallRecordingResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteCallRecordingResponseBody) GetRequestID

func (d *DeleteCallRecordingResponseBody) GetRequestID() string

func (*DeleteCallRecordingResponseBody) MarshalJSON

func (d *DeleteCallRecordingResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteCallRecordingResponseBody) SetRequestID

func (d *DeleteCallRecordingResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteCallRecordingResponseBody) String

func (*DeleteCallRecordingResponseBody) UnmarshalJSON

func (d *DeleteCallRecordingResponseBody) UnmarshalJSON(data []byte) error

type DeleteCollectionResponseBody

type DeleteCollectionResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteCollectionResponseBody) GetExtraProperties

func (d *DeleteCollectionResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteCollectionResponseBody) GetRequestID

func (d *DeleteCollectionResponseBody) GetRequestID() string

func (*DeleteCollectionResponseBody) MarshalJSON

func (d *DeleteCollectionResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteCollectionResponseBody) SetRequestID

func (d *DeleteCollectionResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteCollectionResponseBody) String

func (*DeleteCollectionResponseBody) UnmarshalJSON

func (d *DeleteCollectionResponseBody) UnmarshalJSON(data []byte) error

type DeleteContactResponseBody

type DeleteContactResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteContactResponseBody) GetExtraProperties

func (d *DeleteContactResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteContactResponseBody) GetRequestID

func (d *DeleteContactResponseBody) GetRequestID() string

func (*DeleteContactResponseBody) MarshalJSON

func (d *DeleteContactResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteContactResponseBody) SetRequestID

func (d *DeleteContactResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteContactResponseBody) String

func (d *DeleteContactResponseBody) String() string

func (*DeleteContactResponseBody) UnmarshalJSON

func (d *DeleteContactResponseBody) UnmarshalJSON(data []byte) error

type DeleteCustomFieldSelectOptionResponseBody

type DeleteCustomFieldSelectOptionResponseBody struct {
	Data *DeleteCustomFieldSelectOptionResponseData `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteCustomFieldSelectOptionResponseBody) GetData

func (*DeleteCustomFieldSelectOptionResponseBody) GetExtraProperties

func (d *DeleteCustomFieldSelectOptionResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteCustomFieldSelectOptionResponseBody) GetRequestID

func (*DeleteCustomFieldSelectOptionResponseBody) MarshalJSON

func (*DeleteCustomFieldSelectOptionResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteCustomFieldSelectOptionResponseBody) SetRequestID

func (d *DeleteCustomFieldSelectOptionResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteCustomFieldSelectOptionResponseBody) String

func (*DeleteCustomFieldSelectOptionResponseBody) UnmarshalJSON

func (d *DeleteCustomFieldSelectOptionResponseBody) UnmarshalJSON(data []byte) error

type DeleteCustomFieldSelectOptionResponseData

type DeleteCustomFieldSelectOptionResponseData struct {
	Success bool `json:"success" url:"success"`
	// contains filtered or unexported fields
}

func (*DeleteCustomFieldSelectOptionResponseData) GetExtraProperties

func (d *DeleteCustomFieldSelectOptionResponseData) GetExtraProperties() map[string]interface{}

func (*DeleteCustomFieldSelectOptionResponseData) GetSuccess

func (*DeleteCustomFieldSelectOptionResponseData) MarshalJSON

func (*DeleteCustomFieldSelectOptionResponseData) SetSuccess

func (d *DeleteCustomFieldSelectOptionResponseData) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteCustomFieldSelectOptionResponseData) String

func (*DeleteCustomFieldSelectOptionResponseData) UnmarshalJSON

func (d *DeleteCustomFieldSelectOptionResponseData) UnmarshalJSON(data []byte) error

type DeleteCustomObjectResponseBody

type DeleteCustomObjectResponseBody struct {
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteCustomObjectResponseBody) GetExtraProperties

func (d *DeleteCustomObjectResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteCustomObjectResponseBody) GetRequestID

func (d *DeleteCustomObjectResponseBody) GetRequestID() string

func (*DeleteCustomObjectResponseBody) MarshalJSON

func (d *DeleteCustomObjectResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteCustomObjectResponseBody) SetRequestID

func (d *DeleteCustomObjectResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteCustomObjectResponseBody) String

func (*DeleteCustomObjectResponseBody) UnmarshalJSON

func (d *DeleteCustomObjectResponseBody) UnmarshalJSON(data []byte) error

type DeleteEmailSuppressionResponseBody

type DeleteEmailSuppressionResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteEmailSuppressionResponseBody) GetExtraProperties

func (d *DeleteEmailSuppressionResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteEmailSuppressionResponseBody) GetRequestID

func (d *DeleteEmailSuppressionResponseBody) GetRequestID() string

func (*DeleteEmailSuppressionResponseBody) MarshalJSON

func (d *DeleteEmailSuppressionResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteEmailSuppressionResponseBody) SetRequestID

func (d *DeleteEmailSuppressionResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteEmailSuppressionResponseBody) String

func (*DeleteEmailSuppressionResponseBody) UnmarshalJSON

func (d *DeleteEmailSuppressionResponseBody) UnmarshalJSON(data []byte) error

type DeleteFeatureRequestResponseBody

type DeleteFeatureRequestResponseBody struct {
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteFeatureRequestResponseBody) GetExtraProperties

func (d *DeleteFeatureRequestResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteFeatureRequestResponseBody) GetRequestID

func (d *DeleteFeatureRequestResponseBody) GetRequestID() string

func (*DeleteFeatureRequestResponseBody) MarshalJSON

func (d *DeleteFeatureRequestResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteFeatureRequestResponseBody) SetRequestID

func (d *DeleteFeatureRequestResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteFeatureRequestResponseBody) String

func (*DeleteFeatureRequestResponseBody) UnmarshalJSON

func (d *DeleteFeatureRequestResponseBody) UnmarshalJSON(data []byte) error

type DeleteIssueResponseBody

type DeleteIssueResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteIssueResponseBody) GetExtraProperties

func (d *DeleteIssueResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteIssueResponseBody) GetRequestID

func (d *DeleteIssueResponseBody) GetRequestID() string

func (*DeleteIssueResponseBody) MarshalJSON

func (d *DeleteIssueResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteIssueResponseBody) SetRequestID

func (d *DeleteIssueResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteIssueResponseBody) String

func (d *DeleteIssueResponseBody) String() string

func (*DeleteIssueResponseBody) UnmarshalJSON

func (d *DeleteIssueResponseBody) UnmarshalJSON(data []byte) error

type DeleteMacroResponseBody

type DeleteMacroResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteMacroResponseBody) GetExtraProperties

func (d *DeleteMacroResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteMacroResponseBody) GetRequestID

func (d *DeleteMacroResponseBody) GetRequestID() string

func (*DeleteMacroResponseBody) MarshalJSON

func (d *DeleteMacroResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteMacroResponseBody) SetRequestID

func (d *DeleteMacroResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteMacroResponseBody) String

func (d *DeleteMacroResponseBody) String() string

func (*DeleteMacroResponseBody) UnmarshalJSON

func (d *DeleteMacroResponseBody) UnmarshalJSON(data []byte) error

type DeleteMessageResponseBody

type DeleteMessageResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteMessageResponseBody) GetExtraProperties

func (d *DeleteMessageResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteMessageResponseBody) GetRequestID

func (d *DeleteMessageResponseBody) GetRequestID() string

func (*DeleteMessageResponseBody) MarshalJSON

func (d *DeleteMessageResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteMessageResponseBody) SetRequestID

func (d *DeleteMessageResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteMessageResponseBody) String

func (d *DeleteMessageResponseBody) String() string

func (*DeleteMessageResponseBody) UnmarshalJSON

func (d *DeleteMessageResponseBody) UnmarshalJSON(data []byte) error

type DeleteMilestoneResponseBody

type DeleteMilestoneResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteMilestoneResponseBody) GetExtraProperties

func (d *DeleteMilestoneResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteMilestoneResponseBody) GetRequestID

func (d *DeleteMilestoneResponseBody) GetRequestID() string

func (*DeleteMilestoneResponseBody) MarshalJSON

func (d *DeleteMilestoneResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteMilestoneResponseBody) SetRequestID

func (d *DeleteMilestoneResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteMilestoneResponseBody) String

func (d *DeleteMilestoneResponseBody) String() string

func (*DeleteMilestoneResponseBody) UnmarshalJSON

func (d *DeleteMilestoneResponseBody) UnmarshalJSON(data []byte) error

type DeleteProjectResponseBody

type DeleteProjectResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteProjectResponseBody) GetExtraProperties

func (d *DeleteProjectResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteProjectResponseBody) GetRequestID

func (d *DeleteProjectResponseBody) GetRequestID() string

func (*DeleteProjectResponseBody) MarshalJSON

func (d *DeleteProjectResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteProjectResponseBody) SetRequestID

func (d *DeleteProjectResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteProjectResponseBody) String

func (d *DeleteProjectResponseBody) String() string

func (*DeleteProjectResponseBody) UnmarshalJSON

func (d *DeleteProjectResponseBody) UnmarshalJSON(data []byte) error

type DeleteTagResponseBody

type DeleteTagResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteTagResponseBody) GetExtraProperties

func (d *DeleteTagResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteTagResponseBody) GetRequestID

func (d *DeleteTagResponseBody) GetRequestID() string

func (*DeleteTagResponseBody) MarshalJSON

func (d *DeleteTagResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteTagResponseBody) SetRequestID

func (d *DeleteTagResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteTagResponseBody) String

func (d *DeleteTagResponseBody) String() string

func (*DeleteTagResponseBody) UnmarshalJSON

func (d *DeleteTagResponseBody) UnmarshalJSON(data []byte) error

type DeleteTaskCommentResponseBody

type DeleteTaskCommentResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteTaskCommentResponseBody) GetExtraProperties

func (d *DeleteTaskCommentResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteTaskCommentResponseBody) GetRequestID

func (d *DeleteTaskCommentResponseBody) GetRequestID() string

func (*DeleteTaskCommentResponseBody) MarshalJSON

func (d *DeleteTaskCommentResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteTaskCommentResponseBody) SetRequestID

func (d *DeleteTaskCommentResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteTaskCommentResponseBody) String

func (*DeleteTaskCommentResponseBody) UnmarshalJSON

func (d *DeleteTaskCommentResponseBody) UnmarshalJSON(data []byte) error

type DeleteTaskResponseBody

type DeleteTaskResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteTaskResponseBody) GetExtraProperties

func (d *DeleteTaskResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteTaskResponseBody) GetRequestID

func (d *DeleteTaskResponseBody) GetRequestID() string

func (*DeleteTaskResponseBody) MarshalJSON

func (d *DeleteTaskResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteTaskResponseBody) SetRequestID

func (d *DeleteTaskResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteTaskResponseBody) String

func (d *DeleteTaskResponseBody) String() string

func (*DeleteTaskResponseBody) UnmarshalJSON

func (d *DeleteTaskResponseBody) UnmarshalJSON(data []byte) error

type DeleteTrainingDataDocumentsResponseBody

type DeleteTrainingDataDocumentsResponseBody struct {
	DeletedCount int64  `json:"deleted_count" url:"deleted_count"`
	RequestID    string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*DeleteTrainingDataDocumentsResponseBody) GetDeletedCount

func (d *DeleteTrainingDataDocumentsResponseBody) GetDeletedCount() int64

func (*DeleteTrainingDataDocumentsResponseBody) GetExtraProperties

func (d *DeleteTrainingDataDocumentsResponseBody) GetExtraProperties() map[string]interface{}

func (*DeleteTrainingDataDocumentsResponseBody) GetRequestID

func (*DeleteTrainingDataDocumentsResponseBody) MarshalJSON

func (d *DeleteTrainingDataDocumentsResponseBody) MarshalJSON() ([]byte, error)

func (*DeleteTrainingDataDocumentsResponseBody) SetDeletedCount

func (d *DeleteTrainingDataDocumentsResponseBody) SetDeletedCount(deletedCount int64)

SetDeletedCount sets the DeletedCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteTrainingDataDocumentsResponseBody) SetRequestID

func (d *DeleteTrainingDataDocumentsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteTrainingDataDocumentsResponseBody) String

func (*DeleteTrainingDataDocumentsResponseBody) UnmarshalJSON

func (d *DeleteTrainingDataDocumentsResponseBody) UnmarshalJSON(data []byte) error

type DestinationMetadata

type DestinationMetadata struct {
	// The ID of the chat widget app to use for in-app chat.
	ChatWidgetAppID *string `json:"chat_widget_app_id,omitempty" url:"chat_widget_app_id,omitempty"`
	// The destination type of the issue. Can be "email", "slack", "in_app_chat", "customer_portal", "sms", "whatsapp", or "internal". Required when destination_metadata is provided. Use "customer_portal" for a customer-visible issue with no external delivery; Customer Portal must be enabled for the organization. To create an internal issue, omit destination_metadata or set this field to "internal".
	Destination DestinationMetadataDestination `json:"destination" url:"destination"`
	// The email that emails to the requester will be sent from. You must configure an email app in Pylon with this address.
	Email *string `json:"email,omitempty" url:"email,omitempty"`
	// Emails that will be BCCed on emails to the requester.
	EmailBccs []string `json:"email_bccs,omitempty" url:"email_bccs,omitempty"`
	// Emails that will be CCed on emails to the requester.
	EmailCcs []string `json:"email_ccs,omitempty" url:"email_ccs,omitempty"`
	// The Pylon phone number to send SMS from, in E.164 format. Required if destination is "sms" unless from_sms_phone_number_id is provided.
	FromSmsPhoneNumber *string `json:"from_sms_phone_number,omitempty" url:"from_sms_phone_number,omitempty"`
	// The ID of the Pylon phone number to send SMS from. Required if destination is "sms" unless from_sms_phone_number is provided. Deprecated: Use from_sms_phone_number instead.
	FromSmsPhoneNumberID *string `json:"from_sms_phone_number_id,omitempty" url:"from_sms_phone_number_id,omitempty"`
	// The configured WhatsApp phone number to send messages from. Required if destination is "whatsapp" unless whatsapp_app_id is provided. The number is normalized and used to resolve the WhatsApp app within the organization.
	FromWhatsappPhoneNumber *string `json:"from_whatsapp_phone_number,omitempty" url:"from_whatsapp_phone_number,omitempty"`
	// The ID of the WhatsApp app to send messages from. Required if destination is "whatsapp" unless from_whatsapp_phone_number is provided. Deprecated: Use from_whatsapp_phone_number instead.
	WhatsappAppID *string `json:"whatsapp_app_id,omitempty" url:"whatsapp_app_id,omitempty"`
	// The language of the WhatsApp message template to use. Required if destination is "whatsapp".
	WhatsappMessageTemplateLanguage *string `json:"whatsapp_message_template_language,omitempty" url:"whatsapp_message_template_language,omitempty"`
	// The name of the WhatsApp message template to use. Required if destination is "whatsapp".
	WhatsappMessageTemplateName *string `json:"whatsapp_message_template_name,omitempty" url:"whatsapp_message_template_name,omitempty"`
	// contains filtered or unexported fields
}

Specifies if/how communication will be delivered to the customer. You can configure the issue to contact the requester via email, Slack, in-app chat, SMS, WhatsApp, make it available only in the customer portal, or keep it internal. If an external destination is specified, a message with the issue's BodyHTML will be delivered to the requester. The `customer_portal` destination requires Customer Portal to be enabled and creates a customer-visible message without external delivery. To avoid contacting the requester, omit destination_metadata from the create-issue request or specify the `internal` destination. If destination_metadata is provided, destination is required.

func (*DestinationMetadata) GetChatWidgetAppID

func (d *DestinationMetadata) GetChatWidgetAppID() *string

func (*DestinationMetadata) GetDestination

func (*DestinationMetadata) GetEmail

func (d *DestinationMetadata) GetEmail() *string

func (*DestinationMetadata) GetEmailBccs

func (d *DestinationMetadata) GetEmailBccs() []string

func (*DestinationMetadata) GetEmailCcs

func (d *DestinationMetadata) GetEmailCcs() []string

func (*DestinationMetadata) GetExtraProperties

func (d *DestinationMetadata) GetExtraProperties() map[string]interface{}

func (*DestinationMetadata) GetFromSmsPhoneNumber

func (d *DestinationMetadata) GetFromSmsPhoneNumber() *string

func (*DestinationMetadata) GetFromSmsPhoneNumberID

func (d *DestinationMetadata) GetFromSmsPhoneNumberID() *string

func (*DestinationMetadata) GetFromWhatsappPhoneNumber

func (d *DestinationMetadata) GetFromWhatsappPhoneNumber() *string

func (*DestinationMetadata) GetWhatsappAppID

func (d *DestinationMetadata) GetWhatsappAppID() *string

func (*DestinationMetadata) GetWhatsappMessageTemplateLanguage

func (d *DestinationMetadata) GetWhatsappMessageTemplateLanguage() *string

func (*DestinationMetadata) GetWhatsappMessageTemplateName

func (d *DestinationMetadata) GetWhatsappMessageTemplateName() *string

func (*DestinationMetadata) MarshalJSON

func (d *DestinationMetadata) MarshalJSON() ([]byte, error)

func (*DestinationMetadata) SetChatWidgetAppID

func (d *DestinationMetadata) SetChatWidgetAppID(chatWidgetAppID *string)

SetChatWidgetAppID sets the ChatWidgetAppID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) SetDestination

func (d *DestinationMetadata) SetDestination(destination DestinationMetadataDestination)

SetDestination sets the Destination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) SetEmail

func (d *DestinationMetadata) SetEmail(email *string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) SetEmailBccs

func (d *DestinationMetadata) SetEmailBccs(emailBccs []string)

SetEmailBccs sets the EmailBccs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) SetEmailCcs

func (d *DestinationMetadata) SetEmailCcs(emailCcs []string)

SetEmailCcs sets the EmailCcs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) SetFromSmsPhoneNumber

func (d *DestinationMetadata) SetFromSmsPhoneNumber(fromSmsPhoneNumber *string)

SetFromSmsPhoneNumber sets the FromSmsPhoneNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) SetFromSmsPhoneNumberID

func (d *DestinationMetadata) SetFromSmsPhoneNumberID(fromSmsPhoneNumberID *string)

SetFromSmsPhoneNumberID sets the FromSmsPhoneNumberID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) SetFromWhatsappPhoneNumber

func (d *DestinationMetadata) SetFromWhatsappPhoneNumber(fromWhatsappPhoneNumber *string)

SetFromWhatsappPhoneNumber sets the FromWhatsappPhoneNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) SetWhatsappAppID

func (d *DestinationMetadata) SetWhatsappAppID(whatsappAppID *string)

SetWhatsappAppID sets the WhatsappAppID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) SetWhatsappMessageTemplateLanguage

func (d *DestinationMetadata) SetWhatsappMessageTemplateLanguage(whatsappMessageTemplateLanguage *string)

SetWhatsappMessageTemplateLanguage sets the WhatsappMessageTemplateLanguage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) SetWhatsappMessageTemplateName

func (d *DestinationMetadata) SetWhatsappMessageTemplateName(whatsappMessageTemplateName *string)

SetWhatsappMessageTemplateName sets the WhatsappMessageTemplateName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DestinationMetadata) String

func (d *DestinationMetadata) String() string

func (*DestinationMetadata) UnmarshalJSON

func (d *DestinationMetadata) UnmarshalJSON(data []byte) error

type DestinationMetadataDestination

type DestinationMetadataDestination string

The destination type of the issue. Can be "email", "slack", "in_app_chat", "customer_portal", "sms", "whatsapp", or "internal". Required when destination_metadata is provided. Use "customer_portal" for a customer-visible issue with no external delivery; Customer Portal must be enabled for the organization. To create an internal issue, omit destination_metadata or set this field to "internal".

const (
	DestinationMetadataDestinationSlack          DestinationMetadataDestination = "slack"
	DestinationMetadataDestinationEmail          DestinationMetadataDestination = "email"
	DestinationMetadataDestinationInAppChat      DestinationMetadataDestination = "in_app_chat"
	DestinationMetadataDestinationCustomerPortal DestinationMetadataDestination = "customer_portal"
	DestinationMetadataDestinationInternal       DestinationMetadataDestination = "internal"
	DestinationMetadataDestinationSms            DestinationMetadataDestination = "sms"
	DestinationMetadataDestinationWhatsapp       DestinationMetadataDestination = "whatsapp"
)

func NewDestinationMetadataDestinationFromString

func NewDestinationMetadataDestinationFromString(s string) (DestinationMetadataDestination, error)

func (DestinationMetadataDestination) Ptr

type EmailActivity

type EmailActivity struct {
	// The ID of the account that the activity belongs to.
	AccountID string `json:"account_id" url:"account_id"`
	// The timestamp (RFC3339) when the thread's latest email was sent. A thread moves forward as it gets replies.
	HappenedAt time.Time `json:"happened_at" url:"happened_at"`
	// The ID of the activity.
	ID string `json:"id" url:"id"`
	// The thread's emails sent from or to an account you can read, oldest first. Emails only between teammates are omitted.
	Messages []*EmailActivityMessage `json:"messages" url:"messages"`
	// contains filtered or unexported fields
}

func (*EmailActivity) GetAccountID

func (e *EmailActivity) GetAccountID() string

func (*EmailActivity) GetExtraProperties

func (e *EmailActivity) GetExtraProperties() map[string]interface{}

func (*EmailActivity) GetHappenedAt

func (e *EmailActivity) GetHappenedAt() time.Time

func (*EmailActivity) GetID

func (e *EmailActivity) GetID() string

func (*EmailActivity) GetMessages

func (e *EmailActivity) GetMessages() []*EmailActivityMessage

func (*EmailActivity) MarshalJSON

func (e *EmailActivity) MarshalJSON() ([]byte, error)

func (*EmailActivity) SetAccountID

func (e *EmailActivity) SetAccountID(accountID string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivity) SetHappenedAt

func (e *EmailActivity) SetHappenedAt(happenedAt time.Time)

SetHappenedAt sets the HappenedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivity) SetID

func (e *EmailActivity) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivity) SetMessages

func (e *EmailActivity) SetMessages(messages []*EmailActivityMessage)

SetMessages sets the Messages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivity) String

func (e *EmailActivity) String() string

func (*EmailActivity) UnmarshalJSON

func (e *EmailActivity) UnmarshalJSON(data []byte) error

type EmailActivityMessage

type EmailActivityMessage struct {
	// The ID of the contact who sent the email, if the sender is a contact.
	ContactID *string           `json:"contact_id,omitempty" url:"contact_id,omitempty"`
	EmailInfo *EmailMessageInfo `json:"email_info" url:"email_info"`
	// The ID of the email message.
	ID string `json:"id" url:"id"`
	// The ID of the issue this email is on, if any. The issue messages endpoint also returns issue emails; match them by email_info.message_id.
	IssueID *string `json:"issue_id,omitempty" url:"issue_id,omitempty"`
	// The HTML body of the email.
	MessageHTML string `json:"message_html" url:"message_html"`
	// The subject of the email.
	Subject string `json:"subject" url:"subject"`
	// The time the email was sent.
	Timestamp time.Time `json:"timestamp" url:"timestamp"`
	// The ID of the user who sent the email, if the sender is a Pylon user.
	UserID *string `json:"user_id,omitempty" url:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*EmailActivityMessage) GetContactID

func (e *EmailActivityMessage) GetContactID() *string

func (*EmailActivityMessage) GetEmailInfo

func (e *EmailActivityMessage) GetEmailInfo() *EmailMessageInfo

func (*EmailActivityMessage) GetExtraProperties

func (e *EmailActivityMessage) GetExtraProperties() map[string]interface{}

func (*EmailActivityMessage) GetID

func (e *EmailActivityMessage) GetID() string

func (*EmailActivityMessage) GetIssueID

func (e *EmailActivityMessage) GetIssueID() *string

func (*EmailActivityMessage) GetMessageHTML

func (e *EmailActivityMessage) GetMessageHTML() string

func (*EmailActivityMessage) GetSubject

func (e *EmailActivityMessage) GetSubject() string

func (*EmailActivityMessage) GetTimestamp

func (e *EmailActivityMessage) GetTimestamp() time.Time

func (*EmailActivityMessage) GetUserID

func (e *EmailActivityMessage) GetUserID() *string

func (*EmailActivityMessage) MarshalJSON

func (e *EmailActivityMessage) MarshalJSON() ([]byte, error)

func (*EmailActivityMessage) SetContactID

func (e *EmailActivityMessage) SetContactID(contactID *string)

SetContactID sets the ContactID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivityMessage) SetEmailInfo

func (e *EmailActivityMessage) SetEmailInfo(emailInfo *EmailMessageInfo)

SetEmailInfo sets the EmailInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivityMessage) SetID

func (e *EmailActivityMessage) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivityMessage) SetIssueID

func (e *EmailActivityMessage) SetIssueID(issueID *string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivityMessage) SetMessageHTML

func (e *EmailActivityMessage) SetMessageHTML(messageHTML string)

SetMessageHTML sets the MessageHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivityMessage) SetSubject

func (e *EmailActivityMessage) SetSubject(subject string)

SetSubject sets the Subject field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivityMessage) SetTimestamp

func (e *EmailActivityMessage) SetTimestamp(timestamp time.Time)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivityMessage) SetUserID

func (e *EmailActivityMessage) SetUserID(userID *string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailActivityMessage) String

func (e *EmailActivityMessage) String() string

func (*EmailActivityMessage) UnmarshalJSON

func (e *EmailActivityMessage) UnmarshalJSON(data []byte) error

type EmailEvent

type EmailEvent struct {
	// The email address of the recipient the event applies to.
	Email string `json:"email" url:"email"`
	// When the event happened, in RFC 3339 format.
	Time string `json:"time" url:"time"`
	// contains filtered or unexported fields
}

func (*EmailEvent) GetEmail

func (e *EmailEvent) GetEmail() string

func (*EmailEvent) GetExtraProperties

func (e *EmailEvent) GetExtraProperties() map[string]interface{}

func (*EmailEvent) GetTime

func (e *EmailEvent) GetTime() string

func (*EmailEvent) MarshalJSON

func (e *EmailEvent) MarshalJSON() ([]byte, error)

func (*EmailEvent) SetEmail

func (e *EmailEvent) SetEmail(email string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailEvent) SetTime

func (e *EmailEvent) SetTime(time string)

SetTime sets the Time field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailEvent) String

func (e *EmailEvent) String() string

func (*EmailEvent) UnmarshalJSON

func (e *EmailEvent) UnmarshalJSON(data []byte) error

type EmailMessageInfo

type EmailMessageInfo struct {
	// The email addresses of the BCC recipients of the message.
	BccEmails []string `json:"bcc_emails,omitempty" url:"bcc_emails,omitempty"`
	// The email addresses of the CC recipients of the message.
	CcEmails []string `json:"cc_emails,omitempty" url:"cc_emails,omitempty"`
	// The email address of the sender of the message.
	FromEmail string `json:"from_email" url:"from_email"`
	// The RFC 5322 Message-ID header value for this email. This is a provider-specific identifier, not the top-level Pylon message ID, and cannot be used as message_id when posting a reply or internal note.
	MessageID string `json:"message_id" url:"message_id"`
	// When each recipient first opened an email Pylon sent, at most one entry per recipient.
	// Always empty for inbound mail and for mail sent through a connected personal email account.
	// Open tracking is approximate: clients that prefetch images (such as Apple Mail Privacy Protection)
	// can report opens that never happened, and clients that block images report none.
	Opens []*EmailEvent `json:"opens,omitempty" url:"opens,omitempty"`
	// The SPF/DKIM sender authentication result recorded by Pylon's inbound mail provider.
	// One of "pass", "fail", or "unknown".
	// "fail" means SPF failed outright, or the message carried a DKIM signature that did not validate.
	// "pass" means SPF passed, or a DKIM signature validated.
	// "unknown" means nothing vouched for the sender and must not be read as a pass. It covers
	// mail Pylon sent, mail synced from a personal email integration, submissions stored as email
	// messages, and senders whose domain published no SPF or DKIM records to check against.
	SenderAuthenticationStatus string `json:"sender_authentication_status" url:"sender_authentication_status"`
	// The email addresses of the recipients of the message.
	ToEmails []string `json:"to_emails,omitempty" url:"to_emails,omitempty"`
	// contains filtered or unexported fields
}

func (*EmailMessageInfo) GetBccEmails

func (e *EmailMessageInfo) GetBccEmails() []string

func (*EmailMessageInfo) GetCcEmails

func (e *EmailMessageInfo) GetCcEmails() []string

func (*EmailMessageInfo) GetExtraProperties

func (e *EmailMessageInfo) GetExtraProperties() map[string]interface{}

func (*EmailMessageInfo) GetFromEmail

func (e *EmailMessageInfo) GetFromEmail() string

func (*EmailMessageInfo) GetMessageID

func (e *EmailMessageInfo) GetMessageID() string

func (*EmailMessageInfo) GetOpens

func (e *EmailMessageInfo) GetOpens() []*EmailEvent

func (*EmailMessageInfo) GetSenderAuthenticationStatus

func (e *EmailMessageInfo) GetSenderAuthenticationStatus() string

func (*EmailMessageInfo) GetToEmails

func (e *EmailMessageInfo) GetToEmails() []string

func (*EmailMessageInfo) MarshalJSON

func (e *EmailMessageInfo) MarshalJSON() ([]byte, error)

func (*EmailMessageInfo) SetBccEmails

func (e *EmailMessageInfo) SetBccEmails(bccEmails []string)

SetBccEmails sets the BccEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailMessageInfo) SetCcEmails

func (e *EmailMessageInfo) SetCcEmails(ccEmails []string)

SetCcEmails sets the CcEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailMessageInfo) SetFromEmail

func (e *EmailMessageInfo) SetFromEmail(fromEmail string)

SetFromEmail sets the FromEmail field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailMessageInfo) SetMessageID

func (e *EmailMessageInfo) SetMessageID(messageID string)

SetMessageID sets the MessageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailMessageInfo) SetOpens

func (e *EmailMessageInfo) SetOpens(opens []*EmailEvent)

SetOpens sets the Opens field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailMessageInfo) SetSenderAuthenticationStatus

func (e *EmailMessageInfo) SetSenderAuthenticationStatus(senderAuthenticationStatus string)

SetSenderAuthenticationStatus sets the SenderAuthenticationStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailMessageInfo) SetToEmails

func (e *EmailMessageInfo) SetToEmails(toEmails []string)

SetToEmails sets the ToEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailMessageInfo) String

func (e *EmailMessageInfo) String() string

func (*EmailMessageInfo) UnmarshalJSON

func (e *EmailMessageInfo) UnmarshalJSON(data []byte) error

type EmailSuppression

type EmailSuppression struct {
	// The SMTP diagnostic from the receiving server, when Pylon observed the bounce.
	BounceDetails *string `json:"bounce_details,omitempty" url:"bounce_details,omitempty"`
	// When the address was suppressed, in RFC3339 format.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The suppressed email address.
	Email string `json:"email" url:"email"`
	// The ID of the email suppression.
	ID string `json:"id" url:"id"`
	// Why the address is suppressed.
	//
	// Known values: `hard_bounce`, `manual`. This list is not exhaustive.
	Reason string `json:"reason" url:"reason"`
	// contains filtered or unexported fields
}

func (*EmailSuppression) GetBounceDetails

func (e *EmailSuppression) GetBounceDetails() *string

func (*EmailSuppression) GetCreatedAt

func (e *EmailSuppression) GetCreatedAt() time.Time

func (*EmailSuppression) GetEmail

func (e *EmailSuppression) GetEmail() string

func (*EmailSuppression) GetExtraProperties

func (e *EmailSuppression) GetExtraProperties() map[string]interface{}

func (*EmailSuppression) GetID

func (e *EmailSuppression) GetID() string

func (*EmailSuppression) GetReason

func (e *EmailSuppression) GetReason() string

func (*EmailSuppression) MarshalJSON

func (e *EmailSuppression) MarshalJSON() ([]byte, error)

func (*EmailSuppression) SetBounceDetails

func (e *EmailSuppression) SetBounceDetails(bounceDetails *string)

SetBounceDetails sets the BounceDetails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailSuppression) SetCreatedAt

func (e *EmailSuppression) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailSuppression) SetEmail

func (e *EmailSuppression) SetEmail(email string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailSuppression) SetID

func (e *EmailSuppression) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailSuppression) SetReason

func (e *EmailSuppression) SetReason(reason string)

SetReason sets the Reason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailSuppression) String

func (e *EmailSuppression) String() string

func (*EmailSuppression) UnmarshalJSON

func (e *EmailSuppression) UnmarshalJSON(data []byte) error

type EmailSuppressionsDeleteRequest

type EmailSuppressionsDeleteRequest struct {
	// The ID of the email suppression to remove.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*EmailSuppressionsDeleteRequest) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type EmailSuppressionsListRequest

type EmailSuppressionsListRequest struct {
	// Only return the suppression for this email address, if one exists.
	Email *string `json:"-" url:"email,omitempty"`
	// The cursor to use for pagination.
	Cursor *string `json:"-" url:"cursor,omitempty"`
	// The number of suppressions to fetch. Defaults to 100. Must be greater than 0 and less than or equal to 1000.
	Limit *int64 `json:"-" url:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*EmailSuppressionsListRequest) SetCursor

func (e *EmailSuppressionsListRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailSuppressionsListRequest) SetEmail

func (e *EmailSuppressionsListRequest) SetEmail(email *string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EmailSuppressionsListRequest) SetLimit

func (e *EmailSuppressionsListRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ErrorAPIResponseBody

type ErrorAPIResponseBody struct {
	// A stable machine-readable identifier for this failure, safe to branch on
	// instead of the message text. Omitted when the failure has no assigned code.
	//
	// Known values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`. This list is not exhaustive.
	Code *string `json:"code,omitempty" url:"code,omitempty"`
	// The list of errors.
	Errors []string `json:"errors,omitempty" url:"errors,omitempty"`
	// The ID of the object that already exists if this is a duplicate object error.
	ExistsID *string `json:"exists_id,omitempty" url:"exists_id,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*ErrorAPIResponseBody) GetCode

func (e *ErrorAPIResponseBody) GetCode() *string

func (*ErrorAPIResponseBody) GetErrors

func (e *ErrorAPIResponseBody) GetErrors() []string

func (*ErrorAPIResponseBody) GetExistsID

func (e *ErrorAPIResponseBody) GetExistsID() *string

func (*ErrorAPIResponseBody) GetExtraProperties

func (e *ErrorAPIResponseBody) GetExtraProperties() map[string]interface{}

func (*ErrorAPIResponseBody) GetRequestID

func (e *ErrorAPIResponseBody) GetRequestID() string

func (*ErrorAPIResponseBody) MarshalJSON

func (e *ErrorAPIResponseBody) MarshalJSON() ([]byte, error)

func (*ErrorAPIResponseBody) SetCode

func (e *ErrorAPIResponseBody) SetCode(code *string)

SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ErrorAPIResponseBody) SetErrors

func (e *ErrorAPIResponseBody) SetErrors(errors []string)

SetErrors sets the Errors field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ErrorAPIResponseBody) SetExistsID

func (e *ErrorAPIResponseBody) SetExistsID(existsID *string)

SetExistsID sets the ExistsID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ErrorAPIResponseBody) SetRequestID

func (e *ErrorAPIResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ErrorAPIResponseBody) String

func (e *ErrorAPIResponseBody) String() string

func (*ErrorAPIResponseBody) UnmarshalJSON

func (e *ErrorAPIResponseBody) UnmarshalJSON(data []byte) error

type ExternalID

type ExternalID struct {
	// The external ID. Must be unique per object type (ex. account).
	ExternalID *string `json:"external_id,omitempty" url:"external_id,omitempty"`
	// The label of the external ID. Must be unique per object.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*ExternalID) GetExternalID

func (e *ExternalID) GetExternalID() *string

func (*ExternalID) GetExtraProperties

func (e *ExternalID) GetExtraProperties() map[string]interface{}

func (*ExternalID) GetLabel

func (e *ExternalID) GetLabel() *string

func (*ExternalID) MarshalJSON

func (e *ExternalID) MarshalJSON() ([]byte, error)

func (*ExternalID) SetExternalID

func (e *ExternalID) SetExternalID(externalID *string)

SetExternalID sets the ExternalID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ExternalID) SetLabel

func (e *ExternalID) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ExternalID) String

func (e *ExternalID) String() string

func (*ExternalID) UnmarshalJSON

func (e *ExternalID) UnmarshalJSON(data []byte) error

type ExternalIncident

type ExternalIncident struct {
	// The incident system's own ID for the incident, when known.
	ExternalID *string `json:"external_id,omitempty" url:"external_id,omitempty"`
	// Link to the incident, when known.
	Link *string `json:"link,omitempty" url:"link,omitempty"`
	// The incident's reference in the incident system, such as INC-123 or ROOT-123.
	Reference string `json:"reference" url:"reference"`
	// The incident system the incident belongs to.
	//
	// Known values: `incident_io`, `rootly`. This list is not exhaustive.
	Source string `json:"source" url:"source"`
	// contains filtered or unexported fields
}

func (*ExternalIncident) GetExternalID

func (e *ExternalIncident) GetExternalID() *string

func (*ExternalIncident) GetExtraProperties

func (e *ExternalIncident) GetExtraProperties() map[string]interface{}
func (e *ExternalIncident) GetLink() *string

func (*ExternalIncident) GetReference

func (e *ExternalIncident) GetReference() string

func (*ExternalIncident) GetSource

func (e *ExternalIncident) GetSource() string

func (*ExternalIncident) MarshalJSON

func (e *ExternalIncident) MarshalJSON() ([]byte, error)

func (*ExternalIncident) SetExternalID

func (e *ExternalIncident) SetExternalID(externalID *string)

SetExternalID sets the ExternalID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (e *ExternalIncident) SetLink(link *string)

SetLink sets the Link field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ExternalIncident) SetReference

func (e *ExternalIncident) SetReference(reference string)

SetReference sets the Reference field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ExternalIncident) SetSource

func (e *ExternalIncident) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ExternalIncident) String

func (e *ExternalIncident) String() string

func (*ExternalIncident) UnmarshalJSON

func (e *ExternalIncident) UnmarshalJSON(data []byte) error

type ExternalIssue

type ExternalIssue struct {
	// The external ID of the external issue.
	// Jira: ID of the issue (autoincrementing number from 10000).
	// GitHub: Owner/Repo/IssueID.
	// Linear: ID of the issue (UUID).
	// Asana: ID of the task (Long number).
	ExternalID string `json:"external_id" url:"external_id"`
	// Link to the product issue.
	Link string `json:"link" url:"link"`
	// The source of the external issue.
	Source string `json:"source" url:"source"`
	// contains filtered or unexported fields
}

func (*ExternalIssue) GetExternalID

func (e *ExternalIssue) GetExternalID() string

func (*ExternalIssue) GetExtraProperties

func (e *ExternalIssue) GetExtraProperties() map[string]interface{}
func (e *ExternalIssue) GetLink() string

func (*ExternalIssue) GetSource

func (e *ExternalIssue) GetSource() string

func (*ExternalIssue) MarshalJSON

func (e *ExternalIssue) MarshalJSON() ([]byte, error)

func (*ExternalIssue) SetExternalID

func (e *ExternalIssue) SetExternalID(externalID string)

SetExternalID sets the ExternalID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (e *ExternalIssue) SetLink(link string)

SetLink sets the Link field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ExternalIssue) SetSource

func (e *ExternalIssue) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ExternalIssue) String

func (e *ExternalIssue) String() string

func (*ExternalIssue) UnmarshalJSON

func (e *ExternalIssue) UnmarshalJSON(data []byte) error

type FeatureRequest

type FeatureRequest struct {
	// The time the feature request was created (RFC3339).
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// Custom field values associated with the feature request, keyed by custom field slug.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// The description of the feature request.
	Description string `json:"description" url:"description"`
	// Evidence items linked to this feature request. Only populated when fetch_evidence=true.
	Evidence []*FeatureRequestEvidence `json:"evidence,omitempty" url:"evidence,omitempty"`
	// The number of evidence items (excluding irrelevant) linked to this feature request.
	EvidenceCount int64 `json:"evidence_count" url:"evidence_count"`
	// The external product issues associated with the feature request, if any.
	ExternalIssues []*ExternalIssue `json:"external_issues,omitempty" url:"external_issues,omitempty"`
	// The ID of the feature request.
	ID string `json:"id" url:"id"`
	// Account IDs that can see this feature request in the customer portal. Empty means hidden from all accounts. Only takes effect when the Feature Requests tab is enabled in portal settings.
	PortalVisibleToAccountIDs []string `json:"portal_visible_to_account_ids,omitempty" url:"portal_visible_to_account_ids,omitempty"`
	// The status of the feature request. Can be a built-in status (new, in_progress, closed, archived) or a custom status slug.
	RequestStatus *string `json:"request_status,omitempty" url:"request_status,omitempty"`
	// The title of the feature request.
	Title string `json:"title" url:"title"`
	// The time the feature request was last updated (RFC3339).
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*FeatureRequest) GetCreatedAt

func (f *FeatureRequest) GetCreatedAt() time.Time

func (*FeatureRequest) GetCustomFields

func (f *FeatureRequest) GetCustomFields() map[string]*CustomFieldValue

func (*FeatureRequest) GetDescription

func (f *FeatureRequest) GetDescription() string

func (*FeatureRequest) GetEvidence

func (f *FeatureRequest) GetEvidence() []*FeatureRequestEvidence

func (*FeatureRequest) GetEvidenceCount

func (f *FeatureRequest) GetEvidenceCount() int64

func (*FeatureRequest) GetExternalIssues

func (f *FeatureRequest) GetExternalIssues() []*ExternalIssue

func (*FeatureRequest) GetExtraProperties

func (f *FeatureRequest) GetExtraProperties() map[string]interface{}

func (*FeatureRequest) GetID

func (f *FeatureRequest) GetID() string

func (*FeatureRequest) GetPortalVisibleToAccountIDs

func (f *FeatureRequest) GetPortalVisibleToAccountIDs() []string

func (*FeatureRequest) GetRequestStatus

func (f *FeatureRequest) GetRequestStatus() *string

func (*FeatureRequest) GetTitle

func (f *FeatureRequest) GetTitle() string

func (*FeatureRequest) GetUpdatedAt

func (f *FeatureRequest) GetUpdatedAt() time.Time

func (*FeatureRequest) MarshalJSON

func (f *FeatureRequest) MarshalJSON() ([]byte, error)

func (*FeatureRequest) SetCreatedAt

func (f *FeatureRequest) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) SetCustomFields

func (f *FeatureRequest) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) SetDescription

func (f *FeatureRequest) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) SetEvidence

func (f *FeatureRequest) SetEvidence(evidence []*FeatureRequestEvidence)

SetEvidence sets the Evidence field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) SetEvidenceCount

func (f *FeatureRequest) SetEvidenceCount(evidenceCount int64)

SetEvidenceCount sets the EvidenceCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) SetExternalIssues

func (f *FeatureRequest) SetExternalIssues(externalIssues []*ExternalIssue)

SetExternalIssues sets the ExternalIssues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) SetID

func (f *FeatureRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) SetPortalVisibleToAccountIDs

func (f *FeatureRequest) SetPortalVisibleToAccountIDs(portalVisibleToAccountIDs []string)

SetPortalVisibleToAccountIDs sets the PortalVisibleToAccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) SetRequestStatus

func (f *FeatureRequest) SetRequestStatus(requestStatus *string)

SetRequestStatus sets the RequestStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) SetTitle

func (f *FeatureRequest) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) SetUpdatedAt

func (f *FeatureRequest) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequest) String

func (f *FeatureRequest) String() string

func (*FeatureRequest) UnmarshalJSON

func (f *FeatureRequest) UnmarshalJSON(data []byte) error

type FeatureRequestEvidence

type FeatureRequestEvidence struct {
	// The ID of the customer account that submitted this evidence (e.g. the account whose issue or call recording is linked), if available.
	AccountID *string `json:"account_id,omitempty" url:"account_id,omitempty"`
	// The time when the evidence was created, in RFC 3339 format.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The URL of the evidence in the external system (e.g. Fathom, Gong). Only included for call recording evidence when the value is known; omitted for other evidence sources.
	ExternalURL *string `json:"external_url,omitempty" url:"external_url,omitempty"`
	// The ID of the evidence record.
	ID string `json:"id" url:"id"`
	// The ID of the linked issue. Only present for issue evidence.
	SourceID *string `json:"source_id,omitempty" url:"source_id,omitempty"`
	// The source type of the evidence (e.g. 'issue', 'call_recording', 'survey_response', 'manual').
	SourceType string `json:"source_type" url:"source_type"`
	// A summary of why this evidence supports the feature request.
	Summary *string `json:"summary,omitempty" url:"summary,omitempty"`
	// contains filtered or unexported fields
}

func (*FeatureRequestEvidence) GetAccountID

func (f *FeatureRequestEvidence) GetAccountID() *string

func (*FeatureRequestEvidence) GetCreatedAt

func (f *FeatureRequestEvidence) GetCreatedAt() time.Time

func (*FeatureRequestEvidence) GetExternalURL

func (f *FeatureRequestEvidence) GetExternalURL() *string

func (*FeatureRequestEvidence) GetExtraProperties

func (f *FeatureRequestEvidence) GetExtraProperties() map[string]interface{}

func (*FeatureRequestEvidence) GetID

func (f *FeatureRequestEvidence) GetID() string

func (*FeatureRequestEvidence) GetSourceID

func (f *FeatureRequestEvidence) GetSourceID() *string

func (*FeatureRequestEvidence) GetSourceType

func (f *FeatureRequestEvidence) GetSourceType() string

func (*FeatureRequestEvidence) GetSummary

func (f *FeatureRequestEvidence) GetSummary() *string

func (*FeatureRequestEvidence) MarshalJSON

func (f *FeatureRequestEvidence) MarshalJSON() ([]byte, error)

func (*FeatureRequestEvidence) SetAccountID

func (f *FeatureRequestEvidence) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestEvidence) SetCreatedAt

func (f *FeatureRequestEvidence) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestEvidence) SetExternalURL

func (f *FeatureRequestEvidence) SetExternalURL(externalURL *string)

SetExternalURL sets the ExternalURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestEvidence) SetID

func (f *FeatureRequestEvidence) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestEvidence) SetSourceID

func (f *FeatureRequestEvidence) SetSourceID(sourceID *string)

SetSourceID sets the SourceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestEvidence) SetSourceType

func (f *FeatureRequestEvidence) SetSourceType(sourceType string)

SetSourceType sets the SourceType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestEvidence) SetSummary

func (f *FeatureRequestEvidence) SetSummary(summary *string)

SetSummary sets the Summary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestEvidence) String

func (f *FeatureRequestEvidence) String() string

func (*FeatureRequestEvidence) UnmarshalJSON

func (f *FeatureRequestEvidence) UnmarshalJSON(data []byte) error

type FeatureRequestSearchResult

type FeatureRequestSearchResult struct {
	// IDs of customer accounts that have requested this feature, resolved via the evidence chain.
	AccountIDs []string `json:"account_ids,omitempty" url:"account_ids,omitempty"`
	// The time the feature request was created (RFC3339).
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// Custom field values associated with the feature request, keyed by custom field slug.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// The description of the feature request.
	Description string `json:"description" url:"description"`
	// The number of evidence items (excluding irrelevant) linked to this feature request.
	EvidenceCount int64 `json:"evidence_count" url:"evidence_count"`
	// The external product issues associated with the feature request, if any.
	ExternalIssues []*ExternalIssue `json:"external_issues,omitempty" url:"external_issues,omitempty"`
	// The ID of the feature request.
	ID string `json:"id" url:"id"`
	// Account IDs that can see this feature request in the customer portal. Empty means hidden from all accounts. Only takes effect when the Feature Requests tab is enabled in portal settings.
	PortalVisibleToAccountIDs []string `json:"portal_visible_to_account_ids,omitempty" url:"portal_visible_to_account_ids,omitempty"`
	// The status of the feature request. Can be a built-in status (new, in_progress, closed, archived) or a custom status slug.
	RequestStatus *string `json:"request_status,omitempty" url:"request_status,omitempty"`
	// The title of the feature request.
	Title string `json:"title" url:"title"`
	// The time the feature request was last updated (RFC3339).
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*FeatureRequestSearchResult) GetAccountIDs

func (f *FeatureRequestSearchResult) GetAccountIDs() []string

func (*FeatureRequestSearchResult) GetCreatedAt

func (f *FeatureRequestSearchResult) GetCreatedAt() time.Time

func (*FeatureRequestSearchResult) GetCustomFields

func (f *FeatureRequestSearchResult) GetCustomFields() map[string]*CustomFieldValue

func (*FeatureRequestSearchResult) GetDescription

func (f *FeatureRequestSearchResult) GetDescription() string

func (*FeatureRequestSearchResult) GetEvidenceCount

func (f *FeatureRequestSearchResult) GetEvidenceCount() int64

func (*FeatureRequestSearchResult) GetExternalIssues

func (f *FeatureRequestSearchResult) GetExternalIssues() []*ExternalIssue

func (*FeatureRequestSearchResult) GetExtraProperties

func (f *FeatureRequestSearchResult) GetExtraProperties() map[string]interface{}

func (*FeatureRequestSearchResult) GetID

func (*FeatureRequestSearchResult) GetPortalVisibleToAccountIDs

func (f *FeatureRequestSearchResult) GetPortalVisibleToAccountIDs() []string

func (*FeatureRequestSearchResult) GetRequestStatus

func (f *FeatureRequestSearchResult) GetRequestStatus() *string

func (*FeatureRequestSearchResult) GetTitle

func (f *FeatureRequestSearchResult) GetTitle() string

func (*FeatureRequestSearchResult) GetUpdatedAt

func (f *FeatureRequestSearchResult) GetUpdatedAt() time.Time

func (*FeatureRequestSearchResult) MarshalJSON

func (f *FeatureRequestSearchResult) MarshalJSON() ([]byte, error)

func (*FeatureRequestSearchResult) SetAccountIDs

func (f *FeatureRequestSearchResult) SetAccountIDs(accountIDs []string)

SetAccountIDs sets the AccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) SetCreatedAt

func (f *FeatureRequestSearchResult) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) SetCustomFields

func (f *FeatureRequestSearchResult) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) SetDescription

func (f *FeatureRequestSearchResult) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) SetEvidenceCount

func (f *FeatureRequestSearchResult) SetEvidenceCount(evidenceCount int64)

SetEvidenceCount sets the EvidenceCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) SetExternalIssues

func (f *FeatureRequestSearchResult) SetExternalIssues(externalIssues []*ExternalIssue)

SetExternalIssues sets the ExternalIssues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) SetID

func (f *FeatureRequestSearchResult) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) SetPortalVisibleToAccountIDs

func (f *FeatureRequestSearchResult) SetPortalVisibleToAccountIDs(portalVisibleToAccountIDs []string)

SetPortalVisibleToAccountIDs sets the PortalVisibleToAccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) SetRequestStatus

func (f *FeatureRequestSearchResult) SetRequestStatus(requestStatus *string)

SetRequestStatus sets the RequestStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) SetTitle

func (f *FeatureRequestSearchResult) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) SetUpdatedAt

func (f *FeatureRequestSearchResult) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestSearchResult) String

func (f *FeatureRequestSearchResult) String() string

func (*FeatureRequestSearchResult) UnmarshalJSON

func (f *FeatureRequestSearchResult) UnmarshalJSON(data []byte) error

type FeatureRequestsAddEvidenceRequest

type FeatureRequestsAddEvidenceRequest struct {
	// The ID of the feature request.
	FeatureRequestID string `json:"-" url:"-"`
	// The ID of the customer account to link to the feature request.
	AccountID string `json:"account_id" url:"-"`
	// A summary explaining why this account is linked. Defaults to "Account manually linked via API."
	Summary *string `json:"summary,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*FeatureRequestsAddEvidenceRequest) MarshalJSON

func (f *FeatureRequestsAddEvidenceRequest) MarshalJSON() ([]byte, error)

func (*FeatureRequestsAddEvidenceRequest) SetAccountID

func (f *FeatureRequestsAddEvidenceRequest) SetAccountID(accountID string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsAddEvidenceRequest) SetFeatureRequestID

func (f *FeatureRequestsAddEvidenceRequest) SetFeatureRequestID(featureRequestID string)

SetFeatureRequestID sets the FeatureRequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsAddEvidenceRequest) SetSummary

func (f *FeatureRequestsAddEvidenceRequest) SetSummary(summary *string)

SetSummary sets the Summary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsAddEvidenceRequest) UnmarshalJSON

func (f *FeatureRequestsAddEvidenceRequest) UnmarshalJSON(data []byte) error

type FeatureRequestsCreateRequest

type FeatureRequestsCreateRequest struct {
	// The description of the feature request. Ignored when should_auto_fetch_evidence is true, since the description is then generated from gathered evidence.
	Description *string `json:"description,omitempty" url:"-"`
	// When true, asynchronously gathers supporting evidence and generates a description, mirroring the in-app experience. Defaults to false, which creates the feature request as-is.
	ShouldAutoFetchEvidence *bool `json:"should_auto_fetch_evidence,omitempty" url:"-"`
	// The title of the feature request.
	Title string `json:"title" url:"-"`
	// contains filtered or unexported fields
}

func (*FeatureRequestsCreateRequest) MarshalJSON

func (f *FeatureRequestsCreateRequest) MarshalJSON() ([]byte, error)

func (*FeatureRequestsCreateRequest) SetDescription

func (f *FeatureRequestsCreateRequest) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsCreateRequest) SetShouldAutoFetchEvidence

func (f *FeatureRequestsCreateRequest) SetShouldAutoFetchEvidence(shouldAutoFetchEvidence *bool)

SetShouldAutoFetchEvidence sets the ShouldAutoFetchEvidence field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsCreateRequest) SetTitle

func (f *FeatureRequestsCreateRequest) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsCreateRequest) UnmarshalJSON

func (f *FeatureRequestsCreateRequest) UnmarshalJSON(data []byte) error

type FeatureRequestsDeleteRequest

type FeatureRequestsDeleteRequest struct {
	// The ID of the feature request to delete.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*FeatureRequestsDeleteRequest) SetID

func (f *FeatureRequestsDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type FeatureRequestsGetRequest

type FeatureRequestsGetRequest struct {
	// The ID of the feature request to fetch.
	ID string `json:"-" url:"-"`
	// Whether to include evidence items in the response. Defaults to false.
	FetchEvidence *bool `json:"-" url:"fetch_evidence,omitempty"`
	// contains filtered or unexported fields
}

func (*FeatureRequestsGetRequest) SetFetchEvidence

func (f *FeatureRequestsGetRequest) SetFetchEvidence(fetchEvidence *bool)

SetFetchEvidence sets the FetchEvidence field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsGetRequest) SetID

func (f *FeatureRequestsGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type FeatureRequestsLinkExternalIssueRequest

type FeatureRequestsLinkExternalIssueRequest struct {
	// The ID of the feature request to link an external issue to.
	FeatureRequestID string `json:"-" url:"-"`
	// The ID or human-readable key of the external issue in the source system.
	ExternalIssueID string `json:"external_issue_id" url:"-"`
	// Operation to perform. Use "link" to link the issue (default) or "unlink" to unlink it.
	Operation *string `json:"operation,omitempty" url:"-"`
	// The source system of the external issue (e.g., "linear", "asana", "jira", "github", "shortcut").
	Source string `json:"source" url:"-"`
	// contains filtered or unexported fields
}

func (*FeatureRequestsLinkExternalIssueRequest) MarshalJSON

func (f *FeatureRequestsLinkExternalIssueRequest) MarshalJSON() ([]byte, error)

func (*FeatureRequestsLinkExternalIssueRequest) SetExternalIssueID

func (f *FeatureRequestsLinkExternalIssueRequest) SetExternalIssueID(externalIssueID string)

SetExternalIssueID sets the ExternalIssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsLinkExternalIssueRequest) SetFeatureRequestID

func (f *FeatureRequestsLinkExternalIssueRequest) SetFeatureRequestID(featureRequestID string)

SetFeatureRequestID sets the FeatureRequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsLinkExternalIssueRequest) SetOperation

func (f *FeatureRequestsLinkExternalIssueRequest) SetOperation(operation *string)

SetOperation sets the Operation field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsLinkExternalIssueRequest) SetSource

func (f *FeatureRequestsLinkExternalIssueRequest) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsLinkExternalIssueRequest) UnmarshalJSON

func (f *FeatureRequestsLinkExternalIssueRequest) UnmarshalJSON(data []byte) error

type FeatureRequestsMergeRequest

type FeatureRequestsMergeRequest struct {
	// The IDs of the Feature Requests to merge into the surviving Feature Request. Must contain between 1 and 100 unique IDs.
	MergeFeatureRequestIDs []string `json:"merge_feature_request_ids" url:"-"`
	// The ID of the Feature Request that will survive the merge.
	MergeIntoFeatureRequestID string `json:"merge_into_feature_request_id" url:"-"`
	// contains filtered or unexported fields
}

func (*FeatureRequestsMergeRequest) MarshalJSON

func (f *FeatureRequestsMergeRequest) MarshalJSON() ([]byte, error)

func (*FeatureRequestsMergeRequest) SetMergeFeatureRequestIDs

func (f *FeatureRequestsMergeRequest) SetMergeFeatureRequestIDs(mergeFeatureRequestIDs []string)

SetMergeFeatureRequestIDs sets the MergeFeatureRequestIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsMergeRequest) SetMergeIntoFeatureRequestID

func (f *FeatureRequestsMergeRequest) SetMergeIntoFeatureRequestID(mergeIntoFeatureRequestID string)

SetMergeIntoFeatureRequestID sets the MergeIntoFeatureRequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsMergeRequest) UnmarshalJSON

func (f *FeatureRequestsMergeRequest) UnmarshalJSON(data []byte) error

type FeatureRequestsSearchRequest

type FeatureRequestsSearchRequest struct {
	// Filter by one or more account IDs. Returns only feature requests with evidence linked to any of the given accounts.
	AccountIDs []string `json:"account_ids,omitempty" url:"-"`
	// The maximum number of feature requests to return. Defaults to 100, max 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// A search query string for semantic and keyword matching. If omitted, all feature requests are returned (subject to other filters and limit).
	Query *string `json:"query,omitempty" url:"-"`
	// Filter by one or more request statuses. Each value can be a built-in status (new, in_progress, closed, archived) or a custom status slug.
	RequestStatuses []string `json:"request_statuses,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*FeatureRequestsSearchRequest) MarshalJSON

func (f *FeatureRequestsSearchRequest) MarshalJSON() ([]byte, error)

func (*FeatureRequestsSearchRequest) SetAccountIDs

func (f *FeatureRequestsSearchRequest) SetAccountIDs(accountIDs []string)

SetAccountIDs sets the AccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsSearchRequest) SetLimit

func (f *FeatureRequestsSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsSearchRequest) SetQuery

func (f *FeatureRequestsSearchRequest) SetQuery(query *string)

SetQuery sets the Query field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsSearchRequest) SetRequestStatuses

func (f *FeatureRequestsSearchRequest) SetRequestStatuses(requestStatuses []string)

SetRequestStatuses sets the RequestStatuses field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsSearchRequest) UnmarshalJSON

func (f *FeatureRequestsSearchRequest) UnmarshalJSON(data []byte) error

type FeatureRequestsSetPortalVisibilityRequest

type FeatureRequestsSetPortalVisibilityRequest struct {
	// The ID of the feature request.
	FeatureRequestID string `json:"-" url:"-"`
	// The account IDs to add or remove portal visibility for.
	AccountIDs []string `json:"account_ids" url:"-"`
	// Whether the specified accounts should be able to see this feature request in the portal. True to add visibility, false to remove.
	Visible bool `json:"visible" url:"-"`
	// contains filtered or unexported fields
}

func (*FeatureRequestsSetPortalVisibilityRequest) MarshalJSON

func (*FeatureRequestsSetPortalVisibilityRequest) SetAccountIDs

func (f *FeatureRequestsSetPortalVisibilityRequest) SetAccountIDs(accountIDs []string)

SetAccountIDs sets the AccountIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsSetPortalVisibilityRequest) SetFeatureRequestID

func (f *FeatureRequestsSetPortalVisibilityRequest) SetFeatureRequestID(featureRequestID string)

SetFeatureRequestID sets the FeatureRequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsSetPortalVisibilityRequest) SetVisible

func (f *FeatureRequestsSetPortalVisibilityRequest) SetVisible(visible bool)

SetVisible sets the Visible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsSetPortalVisibilityRequest) UnmarshalJSON

func (f *FeatureRequestsSetPortalVisibilityRequest) UnmarshalJSON(data []byte) error

type FeatureRequestsUpdateRequest

type FeatureRequestsUpdateRequest struct {
	// The ID of the feature request to update.
	ID string `json:"-" url:"-"`
	// An array of custom fields to set. Only passed-in fields will be modified.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// The new request status. Can be a built-in status (new, in_progress, closed, archived) or a custom status slug.
	RequestStatus *string `json:"request_status,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*FeatureRequestsUpdateRequest) MarshalJSON

func (f *FeatureRequestsUpdateRequest) MarshalJSON() ([]byte, error)

func (*FeatureRequestsUpdateRequest) SetCustomFields

func (f *FeatureRequestsUpdateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsUpdateRequest) SetID

func (f *FeatureRequestsUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsUpdateRequest) SetRequestStatus

func (f *FeatureRequestsUpdateRequest) SetRequestStatus(requestStatus *string)

SetRequestStatus sets the RequestStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FeatureRequestsUpdateRequest) UnmarshalJSON

func (f *FeatureRequestsUpdateRequest) UnmarshalJSON(data []byte) error

type FileParam

type FileParam struct {
	io.Reader
	// contains filtered or unexported fields
}

FileParam is a file type suitable for multipart/form-data uploads.

func NewFileParam

func NewFileParam(
	reader io.Reader,
	filename string,
	contentType string,
	opts ...FileParamOption,
) *FileParam

NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.

However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.

func (*FileParam) ContentType

func (f *FileParam) ContentType() string

func (*FileParam) Name

func (f *FileParam) Name() string

type FileParamOption

type FileParamOption interface {
	// contains filtered or unexported methods
}

FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.

type Filter

type Filter struct {
	// The field for this filter.  For allowed fields, see the documentation for
	// the specific endpoint you are using.
	// For non-compound filters (any operators other than "and" or "or"),
	// field must be set, along with either value or values, depending on the operator.
	Field *string `json:"field,omitempty" url:"field,omitempty"`
	// The operator for this filter.
	Operator FilterOperator `json:"operator" url:"operator"`
	// Sub-filters for this filter.  Valid only when operator is "and" or "or".
	// The maximum allowed depth for a tree of filters is 3, counting the top-level filter.
	Subfilters []*Filter `json:"subfilters,omitempty" url:"subfilters,omitempty"`
	// The value for this filter. Used by single-valued operators: "equals", "not_equals",
	// "contains", "does_not_contain", "string_contains", "string_does_not_contain",
	// "starts_with", "ends_with", "time_is_after", "time_is_before", "greater_than",
	// "less_than", "greater_than_or_equals", and "less_than_or_equals".
	Value *string `json:"value,omitempty" url:"value,omitempty"`
	// The values for this filter. Used by multi-valued operators: "in", "not_in", and
	// "includes_all_of". For "time_range", set to [start, end].
	Values []string `json:"values,omitempty" url:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) GetExtraProperties

func (f *Filter) GetExtraProperties() map[string]interface{}

func (*Filter) GetField

func (f *Filter) GetField() *string

func (*Filter) GetOperator

func (f *Filter) GetOperator() FilterOperator

func (*Filter) GetSubfilters

func (f *Filter) GetSubfilters() []*Filter

func (*Filter) GetValue

func (f *Filter) GetValue() *string

func (*Filter) GetValues

func (f *Filter) GetValues() []string

func (*Filter) MarshalJSON

func (f *Filter) MarshalJSON() ([]byte, error)

func (*Filter) SetField

func (f *Filter) SetField(field *string)

SetField sets the Field field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Filter) SetOperator

func (f *Filter) SetOperator(operator FilterOperator)

SetOperator sets the Operator field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Filter) SetSubfilters

func (f *Filter) SetSubfilters(subfilters []*Filter)

SetSubfilters sets the Subfilters field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Filter) SetValue

func (f *Filter) SetValue(value *string)

SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Filter) SetValues

func (f *Filter) SetValues(values []string)

SetValues sets the Values field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Filter) String

func (f *Filter) String() string

func (*Filter) UnmarshalJSON

func (f *Filter) UnmarshalJSON(data []byte) error

type FilterOperator

type FilterOperator string

The operator for this filter.

const (
	FilterOperatorEquals               FilterOperator = "equals"
	FilterOperatorNotEquals            FilterOperator = "not_equals"
	FilterOperatorContains             FilterOperator = "contains"
	FilterOperatorDoesNotContain       FilterOperator = "does_not_contain"
	FilterOperatorIn                   FilterOperator = "in"
	FilterOperatorNotIn                FilterOperator = "not_in"
	FilterOperatorAnd                  FilterOperator = "and"
	FilterOperatorOr                   FilterOperator = "or"
	FilterOperatorTimeIsAfter          FilterOperator = "time_is_after"
	FilterOperatorTimeIsBefore         FilterOperator = "time_is_before"
	FilterOperatorTimeRange            FilterOperator = "time_range"
	FilterOperatorStringContains       FilterOperator = "string_contains"
	FilterOperatorStringDoesNotContain FilterOperator = "string_does_not_contain"
	FilterOperatorIsSet                FilterOperator = "is_set"
	FilterOperatorIsUnset              FilterOperator = "is_unset"
	FilterOperatorGreaterThan          FilterOperator = "greater_than"
	FilterOperatorLessThan             FilterOperator = "less_than"
	FilterOperatorGreaterThanOrEquals  FilterOperator = "greater_than_or_equals"
	FilterOperatorLessThanOrEquals     FilterOperator = "less_than_or_equals"
	FilterOperatorIncludesAllOf        FilterOperator = "includes_all_of"
	FilterOperatorStartsWith           FilterOperator = "starts_with"
	FilterOperatorEndsWith             FilterOperator = "ends_with"
)

func NewFilterOperatorFromString

func NewFilterOperatorFromString(s string) (FilterOperator, error)

func (FilterOperator) Ptr

func (f FilterOperator) Ptr() *FilterOperator

type Follower

type Follower struct {
	// The ID of the follower. Either a user or contact ID.
	ID string `json:"id" url:"id"`
	// The type of follower. Either "user" or "contact".
	//
	// Known values: `user`, `contact`. This list is not exhaustive.
	Type string `json:"type" url:"type"`
	// contains filtered or unexported fields
}

func (*Follower) GetExtraProperties

func (f *Follower) GetExtraProperties() map[string]interface{}

func (*Follower) GetID

func (f *Follower) GetID() string

func (*Follower) GetType

func (f *Follower) GetType() string

func (*Follower) MarshalJSON

func (f *Follower) MarshalJSON() ([]byte, error)

func (*Follower) SetID

func (f *Follower) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Follower) SetType

func (f *Follower) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Follower) String

func (f *Follower) String() string

func (*Follower) UnmarshalJSON

func (f *Follower) UnmarshalJSON(data []byte) error

type ForbiddenError

type ForbiddenError struct {
	*core.APIError
	Body *ErrorAPIResponseBody
}

The authenticated caller or organization is not allowed to access this endpoint or operation.

func (*ForbiddenError) GetBody

func (f *ForbiddenError) GetBody() *ErrorAPIResponseBody

func (*ForbiddenError) MarshalJSON

func (f *ForbiddenError) MarshalJSON() ([]byte, error)

func (*ForbiddenError) UnmarshalJSON

func (f *ForbiddenError) UnmarshalJSON(data []byte) error

func (*ForbiddenError) Unwrap

func (f *ForbiddenError) Unwrap() error

type GetAccountNotebookNotesResponseBody

type GetAccountNotebookNotesResponseBody struct {
	// The data payload of the response.
	Data       []*AccountNotebookNote `json:"data" url:"data"`
	Pagination *Pagination            `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetAccountNotebookNotesResponseBody) GetData

func (*GetAccountNotebookNotesResponseBody) GetExtraProperties

func (g *GetAccountNotebookNotesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetAccountNotebookNotesResponseBody) GetPagination

func (g *GetAccountNotebookNotesResponseBody) GetPagination() *Pagination

func (*GetAccountNotebookNotesResponseBody) GetRequestID

func (g *GetAccountNotebookNotesResponseBody) GetRequestID() string

func (*GetAccountNotebookNotesResponseBody) MarshalJSON

func (g *GetAccountNotebookNotesResponseBody) MarshalJSON() ([]byte, error)

func (*GetAccountNotebookNotesResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountNotebookNotesResponseBody) SetPagination

func (g *GetAccountNotebookNotesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountNotebookNotesResponseBody) SetRequestID

func (g *GetAccountNotebookNotesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountNotebookNotesResponseBody) String

func (*GetAccountNotebookNotesResponseBody) UnmarshalJSON

func (g *GetAccountNotebookNotesResponseBody) UnmarshalJSON(data []byte) error

type GetAccountRelationshipsResponseBody

type GetAccountRelationshipsResponseBody struct {
	// The data payload of the response.
	Data []*AccountRelationship `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetAccountRelationshipsResponseBody) GetData

func (*GetAccountRelationshipsResponseBody) GetExtraProperties

func (g *GetAccountRelationshipsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetAccountRelationshipsResponseBody) GetRequestID

func (g *GetAccountRelationshipsResponseBody) GetRequestID() string

func (*GetAccountRelationshipsResponseBody) MarshalJSON

func (g *GetAccountRelationshipsResponseBody) MarshalJSON() ([]byte, error)

func (*GetAccountRelationshipsResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountRelationshipsResponseBody) SetRequestID

func (g *GetAccountRelationshipsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountRelationshipsResponseBody) String

func (*GetAccountRelationshipsResponseBody) UnmarshalJSON

func (g *GetAccountRelationshipsResponseBody) UnmarshalJSON(data []byte) error

type GetAccountResponseBody

type GetAccountResponseBody struct {
	Data *Account `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetAccountResponseBody) GetData

func (g *GetAccountResponseBody) GetData() *Account

func (*GetAccountResponseBody) GetExtraProperties

func (g *GetAccountResponseBody) GetExtraProperties() map[string]interface{}

func (*GetAccountResponseBody) GetRequestID

func (g *GetAccountResponseBody) GetRequestID() string

func (*GetAccountResponseBody) MarshalJSON

func (g *GetAccountResponseBody) MarshalJSON() ([]byte, error)

func (*GetAccountResponseBody) SetData

func (g *GetAccountResponseBody) SetData(data *Account)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountResponseBody) SetRequestID

func (g *GetAccountResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountResponseBody) String

func (g *GetAccountResponseBody) String() string

func (*GetAccountResponseBody) UnmarshalJSON

func (g *GetAccountResponseBody) UnmarshalJSON(data []byte) error

type GetAccountsResponseBody

type GetAccountsResponseBody struct {
	// The data payload of the response.
	Data       []*Account  `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetAccountsResponseBody) GetData

func (g *GetAccountsResponseBody) GetData() []*Account

func (*GetAccountsResponseBody) GetExtraProperties

func (g *GetAccountsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetAccountsResponseBody) GetPagination

func (g *GetAccountsResponseBody) GetPagination() *Pagination

func (*GetAccountsResponseBody) GetRequestID

func (g *GetAccountsResponseBody) GetRequestID() string

func (*GetAccountsResponseBody) MarshalJSON

func (g *GetAccountsResponseBody) MarshalJSON() ([]byte, error)

func (*GetAccountsResponseBody) SetData

func (g *GetAccountsResponseBody) SetData(data []*Account)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountsResponseBody) SetPagination

func (g *GetAccountsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountsResponseBody) SetRequestID

func (g *GetAccountsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountsResponseBody) String

func (g *GetAccountsResponseBody) String() string

func (*GetAccountsResponseBody) UnmarshalJSON

func (g *GetAccountsResponseBody) UnmarshalJSON(data []byte) error

type GetActivitiesResponseBody

type GetActivitiesResponseBody struct {
	// The data payload of the response.
	Data       []*CustomActivity `json:"data" url:"data"`
	Pagination *Pagination       `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetActivitiesResponseBody) GetData

func (g *GetActivitiesResponseBody) GetData() []*CustomActivity

func (*GetActivitiesResponseBody) GetExtraProperties

func (g *GetActivitiesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetActivitiesResponseBody) GetPagination

func (g *GetActivitiesResponseBody) GetPagination() *Pagination

func (*GetActivitiesResponseBody) GetRequestID

func (g *GetActivitiesResponseBody) GetRequestID() string

func (*GetActivitiesResponseBody) MarshalJSON

func (g *GetActivitiesResponseBody) MarshalJSON() ([]byte, error)

func (*GetActivitiesResponseBody) SetData

func (g *GetActivitiesResponseBody) SetData(data []*CustomActivity)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetActivitiesResponseBody) SetPagination

func (g *GetActivitiesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetActivitiesResponseBody) SetRequestID

func (g *GetActivitiesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetActivitiesResponseBody) String

func (g *GetActivitiesResponseBody) String() string

func (*GetActivitiesResponseBody) UnmarshalJSON

func (g *GetActivitiesResponseBody) UnmarshalJSON(data []byte) error

type GetActivityTypesResponseBody

type GetActivityTypesResponseBody struct {
	// The data payload of the response.
	Data       []*ActivityType `json:"data" url:"data"`
	Pagination *Pagination     `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetActivityTypesResponseBody) GetData

func (*GetActivityTypesResponseBody) GetExtraProperties

func (g *GetActivityTypesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetActivityTypesResponseBody) GetPagination

func (g *GetActivityTypesResponseBody) GetPagination() *Pagination

func (*GetActivityTypesResponseBody) GetRequestID

func (g *GetActivityTypesResponseBody) GetRequestID() string

func (*GetActivityTypesResponseBody) MarshalJSON

func (g *GetActivityTypesResponseBody) MarshalJSON() ([]byte, error)

func (*GetActivityTypesResponseBody) SetData

func (g *GetActivityTypesResponseBody) SetData(data []*ActivityType)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetActivityTypesResponseBody) SetPagination

func (g *GetActivityTypesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetActivityTypesResponseBody) SetRequestID

func (g *GetActivityTypesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetActivityTypesResponseBody) String

func (*GetActivityTypesResponseBody) UnmarshalJSON

func (g *GetActivityTypesResponseBody) UnmarshalJSON(data []byte) error

type GetArticleFeedbackResponseBody

type GetArticleFeedbackResponseBody struct {
	// The data payload of the response.
	Data       []*ArticleFeedback `json:"data" url:"data"`
	Pagination *Pagination        `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetArticleFeedbackResponseBody) GetData

func (*GetArticleFeedbackResponseBody) GetExtraProperties

func (g *GetArticleFeedbackResponseBody) GetExtraProperties() map[string]interface{}

func (*GetArticleFeedbackResponseBody) GetPagination

func (g *GetArticleFeedbackResponseBody) GetPagination() *Pagination

func (*GetArticleFeedbackResponseBody) GetRequestID

func (g *GetArticleFeedbackResponseBody) GetRequestID() string

func (*GetArticleFeedbackResponseBody) MarshalJSON

func (g *GetArticleFeedbackResponseBody) MarshalJSON() ([]byte, error)

func (*GetArticleFeedbackResponseBody) SetData

func (g *GetArticleFeedbackResponseBody) SetData(data []*ArticleFeedback)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetArticleFeedbackResponseBody) SetPagination

func (g *GetArticleFeedbackResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetArticleFeedbackResponseBody) SetRequestID

func (g *GetArticleFeedbackResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetArticleFeedbackResponseBody) String

func (*GetArticleFeedbackResponseBody) UnmarshalJSON

func (g *GetArticleFeedbackResponseBody) UnmarshalJSON(data []byte) error

type GetArticleResponseBody

type GetArticleResponseBody struct {
	Data *Article `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetArticleResponseBody) GetData

func (g *GetArticleResponseBody) GetData() *Article

func (*GetArticleResponseBody) GetExtraProperties

func (g *GetArticleResponseBody) GetExtraProperties() map[string]interface{}

func (*GetArticleResponseBody) GetRequestID

func (g *GetArticleResponseBody) GetRequestID() string

func (*GetArticleResponseBody) MarshalJSON

func (g *GetArticleResponseBody) MarshalJSON() ([]byte, error)

func (*GetArticleResponseBody) SetData

func (g *GetArticleResponseBody) SetData(data *Article)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetArticleResponseBody) SetRequestID

func (g *GetArticleResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetArticleResponseBody) String

func (g *GetArticleResponseBody) String() string

func (*GetArticleResponseBody) UnmarshalJSON

func (g *GetArticleResponseBody) UnmarshalJSON(data []byte) error

type GetArticlesResponseBody

type GetArticlesResponseBody struct {
	// The data payload of the response.
	Data       []*Article  `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetArticlesResponseBody) GetData

func (g *GetArticlesResponseBody) GetData() []*Article

func (*GetArticlesResponseBody) GetExtraProperties

func (g *GetArticlesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetArticlesResponseBody) GetPagination

func (g *GetArticlesResponseBody) GetPagination() *Pagination

func (*GetArticlesResponseBody) GetRequestID

func (g *GetArticlesResponseBody) GetRequestID() string

func (*GetArticlesResponseBody) MarshalJSON

func (g *GetArticlesResponseBody) MarshalJSON() ([]byte, error)

func (*GetArticlesResponseBody) SetData

func (g *GetArticlesResponseBody) SetData(data []*Article)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetArticlesResponseBody) SetPagination

func (g *GetArticlesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetArticlesResponseBody) SetRequestID

func (g *GetArticlesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetArticlesResponseBody) String

func (g *GetArticlesResponseBody) String() string

func (*GetArticlesResponseBody) UnmarshalJSON

func (g *GetArticlesResponseBody) UnmarshalJSON(data []byte) error

type GetAuditLogsResponseBody

type GetAuditLogsResponseBody struct {
	// The data payload of the response.
	Data       []*AuditLog `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetAuditLogsResponseBody) GetData

func (g *GetAuditLogsResponseBody) GetData() []*AuditLog

func (*GetAuditLogsResponseBody) GetExtraProperties

func (g *GetAuditLogsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetAuditLogsResponseBody) GetPagination

func (g *GetAuditLogsResponseBody) GetPagination() *Pagination

func (*GetAuditLogsResponseBody) GetRequestID

func (g *GetAuditLogsResponseBody) GetRequestID() string

func (*GetAuditLogsResponseBody) MarshalJSON

func (g *GetAuditLogsResponseBody) MarshalJSON() ([]byte, error)

func (*GetAuditLogsResponseBody) SetData

func (g *GetAuditLogsResponseBody) SetData(data []*AuditLog)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAuditLogsResponseBody) SetPagination

func (g *GetAuditLogsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAuditLogsResponseBody) SetRequestID

func (g *GetAuditLogsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAuditLogsResponseBody) String

func (g *GetAuditLogsResponseBody) String() string

func (*GetAuditLogsResponseBody) UnmarshalJSON

func (g *GetAuditLogsResponseBody) UnmarshalJSON(data []byte) error

type GetCallRecordingResponseBody

type GetCallRecordingResponseBody struct {
	Data *CallRecording `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetCallRecordingResponseBody) GetData

func (*GetCallRecordingResponseBody) GetExtraProperties

func (g *GetCallRecordingResponseBody) GetExtraProperties() map[string]interface{}

func (*GetCallRecordingResponseBody) GetRequestID

func (g *GetCallRecordingResponseBody) GetRequestID() string

func (*GetCallRecordingResponseBody) MarshalJSON

func (g *GetCallRecordingResponseBody) MarshalJSON() ([]byte, error)

func (*GetCallRecordingResponseBody) SetData

func (g *GetCallRecordingResponseBody) SetData(data *CallRecording)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCallRecordingResponseBody) SetRequestID

func (g *GetCallRecordingResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCallRecordingResponseBody) String

func (*GetCallRecordingResponseBody) UnmarshalJSON

func (g *GetCallRecordingResponseBody) UnmarshalJSON(data []byte) error

type GetCollectionResponseBody

type GetCollectionResponseBody struct {
	Data *Collection `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetCollectionResponseBody) GetData

func (g *GetCollectionResponseBody) GetData() *Collection

func (*GetCollectionResponseBody) GetExtraProperties

func (g *GetCollectionResponseBody) GetExtraProperties() map[string]interface{}

func (*GetCollectionResponseBody) GetRequestID

func (g *GetCollectionResponseBody) GetRequestID() string

func (*GetCollectionResponseBody) MarshalJSON

func (g *GetCollectionResponseBody) MarshalJSON() ([]byte, error)

func (*GetCollectionResponseBody) SetData

func (g *GetCollectionResponseBody) SetData(data *Collection)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCollectionResponseBody) SetRequestID

func (g *GetCollectionResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCollectionResponseBody) String

func (g *GetCollectionResponseBody) String() string

func (*GetCollectionResponseBody) UnmarshalJSON

func (g *GetCollectionResponseBody) UnmarshalJSON(data []byte) error

type GetCollectionsResponseBody

type GetCollectionsResponseBody struct {
	// The data payload of the response.
	Data []*Collection `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetCollectionsResponseBody) GetData

func (g *GetCollectionsResponseBody) GetData() []*Collection

func (*GetCollectionsResponseBody) GetExtraProperties

func (g *GetCollectionsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetCollectionsResponseBody) GetRequestID

func (g *GetCollectionsResponseBody) GetRequestID() string

func (*GetCollectionsResponseBody) MarshalJSON

func (g *GetCollectionsResponseBody) MarshalJSON() ([]byte, error)

func (*GetCollectionsResponseBody) SetData

func (g *GetCollectionsResponseBody) SetData(data []*Collection)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCollectionsResponseBody) SetRequestID

func (g *GetCollectionsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCollectionsResponseBody) String

func (g *GetCollectionsResponseBody) String() string

func (*GetCollectionsResponseBody) UnmarshalJSON

func (g *GetCollectionsResponseBody) UnmarshalJSON(data []byte) error

type GetContactResponseBody

type GetContactResponseBody struct {
	Data *Contact `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetContactResponseBody) GetData

func (g *GetContactResponseBody) GetData() *Contact

func (*GetContactResponseBody) GetExtraProperties

func (g *GetContactResponseBody) GetExtraProperties() map[string]interface{}

func (*GetContactResponseBody) GetRequestID

func (g *GetContactResponseBody) GetRequestID() string

func (*GetContactResponseBody) MarshalJSON

func (g *GetContactResponseBody) MarshalJSON() ([]byte, error)

func (*GetContactResponseBody) SetData

func (g *GetContactResponseBody) SetData(data *Contact)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetContactResponseBody) SetRequestID

func (g *GetContactResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetContactResponseBody) String

func (g *GetContactResponseBody) String() string

func (*GetContactResponseBody) UnmarshalJSON

func (g *GetContactResponseBody) UnmarshalJSON(data []byte) error

type GetContactsResponseBody

type GetContactsResponseBody struct {
	// The data payload of the response.
	Data       []*Contact  `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetContactsResponseBody) GetData

func (g *GetContactsResponseBody) GetData() []*Contact

func (*GetContactsResponseBody) GetExtraProperties

func (g *GetContactsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetContactsResponseBody) GetPagination

func (g *GetContactsResponseBody) GetPagination() *Pagination

func (*GetContactsResponseBody) GetRequestID

func (g *GetContactsResponseBody) GetRequestID() string

func (*GetContactsResponseBody) MarshalJSON

func (g *GetContactsResponseBody) MarshalJSON() ([]byte, error)

func (*GetContactsResponseBody) SetData

func (g *GetContactsResponseBody) SetData(data []*Contact)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetContactsResponseBody) SetPagination

func (g *GetContactsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetContactsResponseBody) SetRequestID

func (g *GetContactsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetContactsResponseBody) String

func (g *GetContactsResponseBody) String() string

func (*GetContactsResponseBody) UnmarshalJSON

func (g *GetContactsResponseBody) UnmarshalJSON(data []byte) error

type GetCustomFieldResponseBody

type GetCustomFieldResponseBody struct {
	Data *CustomFieldDefinition `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetCustomFieldResponseBody) GetData

func (*GetCustomFieldResponseBody) GetExtraProperties

func (g *GetCustomFieldResponseBody) GetExtraProperties() map[string]interface{}

func (*GetCustomFieldResponseBody) GetRequestID

func (g *GetCustomFieldResponseBody) GetRequestID() string

func (*GetCustomFieldResponseBody) MarshalJSON

func (g *GetCustomFieldResponseBody) MarshalJSON() ([]byte, error)

func (*GetCustomFieldResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCustomFieldResponseBody) SetRequestID

func (g *GetCustomFieldResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCustomFieldResponseBody) String

func (g *GetCustomFieldResponseBody) String() string

func (*GetCustomFieldResponseBody) UnmarshalJSON

func (g *GetCustomFieldResponseBody) UnmarshalJSON(data []byte) error

type GetCustomFieldsResponseBody

type GetCustomFieldsResponseBody struct {
	// The data payload of the response.
	Data       []*CustomFieldDefinition `json:"data" url:"data"`
	Pagination *Pagination              `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetCustomFieldsResponseBody) GetData

func (*GetCustomFieldsResponseBody) GetExtraProperties

func (g *GetCustomFieldsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetCustomFieldsResponseBody) GetPagination

func (g *GetCustomFieldsResponseBody) GetPagination() *Pagination

func (*GetCustomFieldsResponseBody) GetRequestID

func (g *GetCustomFieldsResponseBody) GetRequestID() string

func (*GetCustomFieldsResponseBody) MarshalJSON

func (g *GetCustomFieldsResponseBody) MarshalJSON() ([]byte, error)

func (*GetCustomFieldsResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCustomFieldsResponseBody) SetPagination

func (g *GetCustomFieldsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCustomFieldsResponseBody) SetRequestID

func (g *GetCustomFieldsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCustomFieldsResponseBody) String

func (g *GetCustomFieldsResponseBody) String() string

func (*GetCustomFieldsResponseBody) UnmarshalJSON

func (g *GetCustomFieldsResponseBody) UnmarshalJSON(data []byte) error

type GetCustomObjectResponseBody

type GetCustomObjectResponseBody struct {
	Data      *APICustomObject `json:"data" url:"data"`
	RequestID string           `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetCustomObjectResponseBody) GetData

func (*GetCustomObjectResponseBody) GetExtraProperties

func (g *GetCustomObjectResponseBody) GetExtraProperties() map[string]interface{}

func (*GetCustomObjectResponseBody) GetRequestID

func (g *GetCustomObjectResponseBody) GetRequestID() string

func (*GetCustomObjectResponseBody) MarshalJSON

func (g *GetCustomObjectResponseBody) MarshalJSON() ([]byte, error)

func (*GetCustomObjectResponseBody) SetData

func (g *GetCustomObjectResponseBody) SetData(data *APICustomObject)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCustomObjectResponseBody) SetRequestID

func (g *GetCustomObjectResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCustomObjectResponseBody) String

func (g *GetCustomObjectResponseBody) String() string

func (*GetCustomObjectResponseBody) UnmarshalJSON

func (g *GetCustomObjectResponseBody) UnmarshalJSON(data []byte) error

type GetCustomObjectsResponseBody

type GetCustomObjectsResponseBody struct {
	Data       []*APICustomObject `json:"data" url:"data"`
	Pagination *Pagination        `json:"pagination,omitempty" url:"pagination,omitempty"`
	RequestID  string             `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetCustomObjectsResponseBody) GetData

func (*GetCustomObjectsResponseBody) GetExtraProperties

func (g *GetCustomObjectsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetCustomObjectsResponseBody) GetPagination

func (g *GetCustomObjectsResponseBody) GetPagination() *Pagination

func (*GetCustomObjectsResponseBody) GetRequestID

func (g *GetCustomObjectsResponseBody) GetRequestID() string

func (*GetCustomObjectsResponseBody) MarshalJSON

func (g *GetCustomObjectsResponseBody) MarshalJSON() ([]byte, error)

func (*GetCustomObjectsResponseBody) SetData

func (g *GetCustomObjectsResponseBody) SetData(data []*APICustomObject)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCustomObjectsResponseBody) SetPagination

func (g *GetCustomObjectsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCustomObjectsResponseBody) SetRequestID

func (g *GetCustomObjectsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCustomObjectsResponseBody) String

func (*GetCustomObjectsResponseBody) UnmarshalJSON

func (g *GetCustomObjectsResponseBody) UnmarshalJSON(data []byte) error

type GetEmailActivitiesResponseBody

type GetEmailActivitiesResponseBody struct {
	// The data payload of the response.
	Data       []*EmailActivity `json:"data" url:"data"`
	Pagination *Pagination      `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetEmailActivitiesResponseBody) GetData

func (*GetEmailActivitiesResponseBody) GetExtraProperties

func (g *GetEmailActivitiesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetEmailActivitiesResponseBody) GetPagination

func (g *GetEmailActivitiesResponseBody) GetPagination() *Pagination

func (*GetEmailActivitiesResponseBody) GetRequestID

func (g *GetEmailActivitiesResponseBody) GetRequestID() string

func (*GetEmailActivitiesResponseBody) MarshalJSON

func (g *GetEmailActivitiesResponseBody) MarshalJSON() ([]byte, error)

func (*GetEmailActivitiesResponseBody) SetData

func (g *GetEmailActivitiesResponseBody) SetData(data []*EmailActivity)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetEmailActivitiesResponseBody) SetPagination

func (g *GetEmailActivitiesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetEmailActivitiesResponseBody) SetRequestID

func (g *GetEmailActivitiesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetEmailActivitiesResponseBody) String

func (*GetEmailActivitiesResponseBody) UnmarshalJSON

func (g *GetEmailActivitiesResponseBody) UnmarshalJSON(data []byte) error

type GetEmailSuppressionsResponseBody

type GetEmailSuppressionsResponseBody struct {
	// The data payload of the response.
	Data       []*EmailSuppression `json:"data" url:"data"`
	Pagination *Pagination         `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetEmailSuppressionsResponseBody) GetData

func (*GetEmailSuppressionsResponseBody) GetExtraProperties

func (g *GetEmailSuppressionsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetEmailSuppressionsResponseBody) GetPagination

func (g *GetEmailSuppressionsResponseBody) GetPagination() *Pagination

func (*GetEmailSuppressionsResponseBody) GetRequestID

func (g *GetEmailSuppressionsResponseBody) GetRequestID() string

func (*GetEmailSuppressionsResponseBody) MarshalJSON

func (g *GetEmailSuppressionsResponseBody) MarshalJSON() ([]byte, error)

func (*GetEmailSuppressionsResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetEmailSuppressionsResponseBody) SetPagination

func (g *GetEmailSuppressionsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetEmailSuppressionsResponseBody) SetRequestID

func (g *GetEmailSuppressionsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetEmailSuppressionsResponseBody) String

func (*GetEmailSuppressionsResponseBody) UnmarshalJSON

func (g *GetEmailSuppressionsResponseBody) UnmarshalJSON(data []byte) error

type GetFeatureRequestResponseBody

type GetFeatureRequestResponseBody struct {
	Data      *FeatureRequest `json:"data" url:"data"`
	RequestID string          `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetFeatureRequestResponseBody) GetData

func (*GetFeatureRequestResponseBody) GetExtraProperties

func (g *GetFeatureRequestResponseBody) GetExtraProperties() map[string]interface{}

func (*GetFeatureRequestResponseBody) GetRequestID

func (g *GetFeatureRequestResponseBody) GetRequestID() string

func (*GetFeatureRequestResponseBody) MarshalJSON

func (g *GetFeatureRequestResponseBody) MarshalJSON() ([]byte, error)

func (*GetFeatureRequestResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetFeatureRequestResponseBody) SetRequestID

func (g *GetFeatureRequestResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetFeatureRequestResponseBody) String

func (*GetFeatureRequestResponseBody) UnmarshalJSON

func (g *GetFeatureRequestResponseBody) UnmarshalJSON(data []byte) error

type GetIssueFollowersResponseBody

type GetIssueFollowersResponseBody struct {
	// The data payload of the response.
	Data []*Follower `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetIssueFollowersResponseBody) GetData

func (g *GetIssueFollowersResponseBody) GetData() []*Follower

func (*GetIssueFollowersResponseBody) GetExtraProperties

func (g *GetIssueFollowersResponseBody) GetExtraProperties() map[string]interface{}

func (*GetIssueFollowersResponseBody) GetRequestID

func (g *GetIssueFollowersResponseBody) GetRequestID() string

func (*GetIssueFollowersResponseBody) MarshalJSON

func (g *GetIssueFollowersResponseBody) MarshalJSON() ([]byte, error)

func (*GetIssueFollowersResponseBody) SetData

func (g *GetIssueFollowersResponseBody) SetData(data []*Follower)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueFollowersResponseBody) SetRequestID

func (g *GetIssueFollowersResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueFollowersResponseBody) String

func (*GetIssueFollowersResponseBody) UnmarshalJSON

func (g *GetIssueFollowersResponseBody) UnmarshalJSON(data []byte) error

type GetIssueMessagesResponseBody

type GetIssueMessagesResponseBody struct {
	// The data payload of the response.
	Data       []*Message  `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetIssueMessagesResponseBody) GetData

func (g *GetIssueMessagesResponseBody) GetData() []*Message

func (*GetIssueMessagesResponseBody) GetExtraProperties

func (g *GetIssueMessagesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetIssueMessagesResponseBody) GetPagination

func (g *GetIssueMessagesResponseBody) GetPagination() *Pagination

func (*GetIssueMessagesResponseBody) GetRequestID

func (g *GetIssueMessagesResponseBody) GetRequestID() string

func (*GetIssueMessagesResponseBody) MarshalJSON

func (g *GetIssueMessagesResponseBody) MarshalJSON() ([]byte, error)

func (*GetIssueMessagesResponseBody) SetData

func (g *GetIssueMessagesResponseBody) SetData(data []*Message)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueMessagesResponseBody) SetPagination

func (g *GetIssueMessagesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueMessagesResponseBody) SetRequestID

func (g *GetIssueMessagesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueMessagesResponseBody) String

func (*GetIssueMessagesResponseBody) UnmarshalJSON

func (g *GetIssueMessagesResponseBody) UnmarshalJSON(data []byte) error

type GetIssueResponseBody

type GetIssueResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetIssueResponseBody) GetData

func (g *GetIssueResponseBody) GetData() *Issue

func (*GetIssueResponseBody) GetExtraProperties

func (g *GetIssueResponseBody) GetExtraProperties() map[string]interface{}

func (*GetIssueResponseBody) GetRequestID

func (g *GetIssueResponseBody) GetRequestID() string

func (*GetIssueResponseBody) MarshalJSON

func (g *GetIssueResponseBody) MarshalJSON() ([]byte, error)

func (*GetIssueResponseBody) SetData

func (g *GetIssueResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueResponseBody) SetRequestID

func (g *GetIssueResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueResponseBody) String

func (g *GetIssueResponseBody) String() string

func (*GetIssueResponseBody) UnmarshalJSON

func (g *GetIssueResponseBody) UnmarshalJSON(data []byte) error

type GetIssueStatusesResponseBody

type GetIssueStatusesResponseBody struct {
	// The data payload of the response.
	Data       []*IssueStatus `json:"data" url:"data"`
	Pagination *Pagination    `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetIssueStatusesResponseBody) GetData

func (g *GetIssueStatusesResponseBody) GetData() []*IssueStatus

func (*GetIssueStatusesResponseBody) GetExtraProperties

func (g *GetIssueStatusesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetIssueStatusesResponseBody) GetPagination

func (g *GetIssueStatusesResponseBody) GetPagination() *Pagination

func (*GetIssueStatusesResponseBody) GetRequestID

func (g *GetIssueStatusesResponseBody) GetRequestID() string

func (*GetIssueStatusesResponseBody) MarshalJSON

func (g *GetIssueStatusesResponseBody) MarshalJSON() ([]byte, error)

func (*GetIssueStatusesResponseBody) SetData

func (g *GetIssueStatusesResponseBody) SetData(data []*IssueStatus)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueStatusesResponseBody) SetPagination

func (g *GetIssueStatusesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueStatusesResponseBody) SetRequestID

func (g *GetIssueStatusesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueStatusesResponseBody) String

func (*GetIssueStatusesResponseBody) UnmarshalJSON

func (g *GetIssueStatusesResponseBody) UnmarshalJSON(data []byte) error

type GetIssueSurveyResponsesResponseBody

type GetIssueSurveyResponsesResponseBody struct {
	// The data payload of the response.
	Data []*SurveyResponse `json:"data" url:"data"`
	// The canonical issue ID.
	IssueID    string      `json:"issue_id" url:"issue_id"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetIssueSurveyResponsesResponseBody) GetData

func (*GetIssueSurveyResponsesResponseBody) GetExtraProperties

func (g *GetIssueSurveyResponsesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetIssueSurveyResponsesResponseBody) GetIssueID

func (*GetIssueSurveyResponsesResponseBody) GetPagination

func (g *GetIssueSurveyResponsesResponseBody) GetPagination() *Pagination

func (*GetIssueSurveyResponsesResponseBody) GetRequestID

func (g *GetIssueSurveyResponsesResponseBody) GetRequestID() string

func (*GetIssueSurveyResponsesResponseBody) MarshalJSON

func (g *GetIssueSurveyResponsesResponseBody) MarshalJSON() ([]byte, error)

func (*GetIssueSurveyResponsesResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueSurveyResponsesResponseBody) SetIssueID

func (g *GetIssueSurveyResponsesResponseBody) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueSurveyResponsesResponseBody) SetPagination

func (g *GetIssueSurveyResponsesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueSurveyResponsesResponseBody) SetRequestID

func (g *GetIssueSurveyResponsesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueSurveyResponsesResponseBody) String

func (*GetIssueSurveyResponsesResponseBody) UnmarshalJSON

func (g *GetIssueSurveyResponsesResponseBody) UnmarshalJSON(data []byte) error

type GetIssueThreadsResponseBody

type GetIssueThreadsResponseBody struct {
	// The data payload of the response.
	Data []*IssueThread `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetIssueThreadsResponseBody) GetData

func (g *GetIssueThreadsResponseBody) GetData() []*IssueThread

func (*GetIssueThreadsResponseBody) GetExtraProperties

func (g *GetIssueThreadsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetIssueThreadsResponseBody) GetRequestID

func (g *GetIssueThreadsResponseBody) GetRequestID() string

func (*GetIssueThreadsResponseBody) MarshalJSON

func (g *GetIssueThreadsResponseBody) MarshalJSON() ([]byte, error)

func (*GetIssueThreadsResponseBody) SetData

func (g *GetIssueThreadsResponseBody) SetData(data []*IssueThread)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueThreadsResponseBody) SetRequestID

func (g *GetIssueThreadsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueThreadsResponseBody) String

func (g *GetIssueThreadsResponseBody) String() string

func (*GetIssueThreadsResponseBody) UnmarshalJSON

func (g *GetIssueThreadsResponseBody) UnmarshalJSON(data []byte) error

type GetIssueVoiceCallsResponseBody

type GetIssueVoiceCallsResponseBody struct {
	// The voice calls associated with the issue, including recordings and transcripts.
	Data []*VoiceCall `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetIssueVoiceCallsResponseBody) GetData

func (g *GetIssueVoiceCallsResponseBody) GetData() []*VoiceCall

func (*GetIssueVoiceCallsResponseBody) GetExtraProperties

func (g *GetIssueVoiceCallsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetIssueVoiceCallsResponseBody) GetRequestID

func (g *GetIssueVoiceCallsResponseBody) GetRequestID() string

func (*GetIssueVoiceCallsResponseBody) MarshalJSON

func (g *GetIssueVoiceCallsResponseBody) MarshalJSON() ([]byte, error)

func (*GetIssueVoiceCallsResponseBody) SetData

func (g *GetIssueVoiceCallsResponseBody) SetData(data []*VoiceCall)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueVoiceCallsResponseBody) SetRequestID

func (g *GetIssueVoiceCallsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssueVoiceCallsResponseBody) String

func (*GetIssueVoiceCallsResponseBody) UnmarshalJSON

func (g *GetIssueVoiceCallsResponseBody) UnmarshalJSON(data []byte) error

type GetIssuesResponseBody

type GetIssuesResponseBody struct {
	// The data payload of the response.
	Data       []*Issue    `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetIssuesResponseBody) GetData

func (g *GetIssuesResponseBody) GetData() []*Issue

func (*GetIssuesResponseBody) GetExtraProperties

func (g *GetIssuesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetIssuesResponseBody) GetPagination

func (g *GetIssuesResponseBody) GetPagination() *Pagination

func (*GetIssuesResponseBody) GetRequestID

func (g *GetIssuesResponseBody) GetRequestID() string

func (*GetIssuesResponseBody) MarshalJSON

func (g *GetIssuesResponseBody) MarshalJSON() ([]byte, error)

func (*GetIssuesResponseBody) SetData

func (g *GetIssuesResponseBody) SetData(data []*Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssuesResponseBody) SetPagination

func (g *GetIssuesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssuesResponseBody) SetRequestID

func (g *GetIssuesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetIssuesResponseBody) String

func (g *GetIssuesResponseBody) String() string

func (*GetIssuesResponseBody) UnmarshalJSON

func (g *GetIssuesResponseBody) UnmarshalJSON(data []byte) error

type GetKnowledgeBaseResponseBody

type GetKnowledgeBaseResponseBody struct {
	Data *KnowledgeBase `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetKnowledgeBaseResponseBody) GetData

func (*GetKnowledgeBaseResponseBody) GetExtraProperties

func (g *GetKnowledgeBaseResponseBody) GetExtraProperties() map[string]interface{}

func (*GetKnowledgeBaseResponseBody) GetRequestID

func (g *GetKnowledgeBaseResponseBody) GetRequestID() string

func (*GetKnowledgeBaseResponseBody) MarshalJSON

func (g *GetKnowledgeBaseResponseBody) MarshalJSON() ([]byte, error)

func (*GetKnowledgeBaseResponseBody) SetData

func (g *GetKnowledgeBaseResponseBody) SetData(data *KnowledgeBase)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetKnowledgeBaseResponseBody) SetRequestID

func (g *GetKnowledgeBaseResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetKnowledgeBaseResponseBody) String

func (*GetKnowledgeBaseResponseBody) UnmarshalJSON

func (g *GetKnowledgeBaseResponseBody) UnmarshalJSON(data []byte) error

type GetKnowledgeBaseThemeResponseBody

type GetKnowledgeBaseThemeResponseBody struct {
	Data *KnowledgeBaseTheme `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetKnowledgeBaseThemeResponseBody) GetData

func (*GetKnowledgeBaseThemeResponseBody) GetExtraProperties

func (g *GetKnowledgeBaseThemeResponseBody) GetExtraProperties() map[string]interface{}

func (*GetKnowledgeBaseThemeResponseBody) GetRequestID

func (g *GetKnowledgeBaseThemeResponseBody) GetRequestID() string

func (*GetKnowledgeBaseThemeResponseBody) MarshalJSON

func (g *GetKnowledgeBaseThemeResponseBody) MarshalJSON() ([]byte, error)

func (*GetKnowledgeBaseThemeResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetKnowledgeBaseThemeResponseBody) SetRequestID

func (g *GetKnowledgeBaseThemeResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetKnowledgeBaseThemeResponseBody) String

func (*GetKnowledgeBaseThemeResponseBody) UnmarshalJSON

func (g *GetKnowledgeBaseThemeResponseBody) UnmarshalJSON(data []byte) error

type GetKnowledgeBasesResponseBody

type GetKnowledgeBasesResponseBody struct {
	// The data payload of the response.
	Data       []*KnowledgeBase `json:"data" url:"data"`
	Pagination *Pagination      `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetKnowledgeBasesResponseBody) GetData

func (*GetKnowledgeBasesResponseBody) GetExtraProperties

func (g *GetKnowledgeBasesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetKnowledgeBasesResponseBody) GetPagination

func (g *GetKnowledgeBasesResponseBody) GetPagination() *Pagination

func (*GetKnowledgeBasesResponseBody) GetRequestID

func (g *GetKnowledgeBasesResponseBody) GetRequestID() string

func (*GetKnowledgeBasesResponseBody) MarshalJSON

func (g *GetKnowledgeBasesResponseBody) MarshalJSON() ([]byte, error)

func (*GetKnowledgeBasesResponseBody) SetData

func (g *GetKnowledgeBasesResponseBody) SetData(data []*KnowledgeBase)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetKnowledgeBasesResponseBody) SetPagination

func (g *GetKnowledgeBasesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetKnowledgeBasesResponseBody) SetRequestID

func (g *GetKnowledgeBasesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetKnowledgeBasesResponseBody) String

func (*GetKnowledgeBasesResponseBody) UnmarshalJSON

func (g *GetKnowledgeBasesResponseBody) UnmarshalJSON(data []byte) error

type GetMacroGroupsResponseBody

type GetMacroGroupsResponseBody struct {
	// The data payload of the response.
	Data []*MacroGroup `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetMacroGroupsResponseBody) GetData

func (g *GetMacroGroupsResponseBody) GetData() []*MacroGroup

func (*GetMacroGroupsResponseBody) GetExtraProperties

func (g *GetMacroGroupsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetMacroGroupsResponseBody) GetRequestID

func (g *GetMacroGroupsResponseBody) GetRequestID() string

func (*GetMacroGroupsResponseBody) MarshalJSON

func (g *GetMacroGroupsResponseBody) MarshalJSON() ([]byte, error)

func (*GetMacroGroupsResponseBody) SetData

func (g *GetMacroGroupsResponseBody) SetData(data []*MacroGroup)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMacroGroupsResponseBody) SetRequestID

func (g *GetMacroGroupsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMacroGroupsResponseBody) String

func (g *GetMacroGroupsResponseBody) String() string

func (*GetMacroGroupsResponseBody) UnmarshalJSON

func (g *GetMacroGroupsResponseBody) UnmarshalJSON(data []byte) error

type GetMacroResponseBody

type GetMacroResponseBody struct {
	Data *Macro `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetMacroResponseBody) GetData

func (g *GetMacroResponseBody) GetData() *Macro

func (*GetMacroResponseBody) GetExtraProperties

func (g *GetMacroResponseBody) GetExtraProperties() map[string]interface{}

func (*GetMacroResponseBody) GetRequestID

func (g *GetMacroResponseBody) GetRequestID() string

func (*GetMacroResponseBody) MarshalJSON

func (g *GetMacroResponseBody) MarshalJSON() ([]byte, error)

func (*GetMacroResponseBody) SetData

func (g *GetMacroResponseBody) SetData(data *Macro)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMacroResponseBody) SetRequestID

func (g *GetMacroResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMacroResponseBody) String

func (g *GetMacroResponseBody) String() string

func (*GetMacroResponseBody) UnmarshalJSON

func (g *GetMacroResponseBody) UnmarshalJSON(data []byte) error

type GetMacrosResponseBody

type GetMacrosResponseBody struct {
	// The data payload of the response.
	Data []*Macro `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetMacrosResponseBody) GetData

func (g *GetMacrosResponseBody) GetData() []*Macro

func (*GetMacrosResponseBody) GetExtraProperties

func (g *GetMacrosResponseBody) GetExtraProperties() map[string]interface{}

func (*GetMacrosResponseBody) GetRequestID

func (g *GetMacrosResponseBody) GetRequestID() string

func (*GetMacrosResponseBody) MarshalJSON

func (g *GetMacrosResponseBody) MarshalJSON() ([]byte, error)

func (*GetMacrosResponseBody) SetData

func (g *GetMacrosResponseBody) SetData(data []*Macro)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMacrosResponseBody) SetRequestID

func (g *GetMacrosResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMacrosResponseBody) String

func (g *GetMacrosResponseBody) String() string

func (*GetMacrosResponseBody) UnmarshalJSON

func (g *GetMacrosResponseBody) UnmarshalJSON(data []byte) error

type GetMeResponseBody

type GetMeResponseBody struct {
	Data *Me `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetMeResponseBody) GetData

func (g *GetMeResponseBody) GetData() *Me

func (*GetMeResponseBody) GetExtraProperties

func (g *GetMeResponseBody) GetExtraProperties() map[string]interface{}

func (*GetMeResponseBody) GetRequestID

func (g *GetMeResponseBody) GetRequestID() string

func (*GetMeResponseBody) MarshalJSON

func (g *GetMeResponseBody) MarshalJSON() ([]byte, error)

func (*GetMeResponseBody) SetData

func (g *GetMeResponseBody) SetData(data *Me)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMeResponseBody) SetRequestID

func (g *GetMeResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMeResponseBody) String

func (g *GetMeResponseBody) String() string

func (*GetMeResponseBody) UnmarshalJSON

func (g *GetMeResponseBody) UnmarshalJSON(data []byte) error

type GetMilestoneResponseBody

type GetMilestoneResponseBody struct {
	Data *Milestone `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetMilestoneResponseBody) GetData

func (g *GetMilestoneResponseBody) GetData() *Milestone

func (*GetMilestoneResponseBody) GetExtraProperties

func (g *GetMilestoneResponseBody) GetExtraProperties() map[string]interface{}

func (*GetMilestoneResponseBody) GetRequestID

func (g *GetMilestoneResponseBody) GetRequestID() string

func (*GetMilestoneResponseBody) MarshalJSON

func (g *GetMilestoneResponseBody) MarshalJSON() ([]byte, error)

func (*GetMilestoneResponseBody) SetData

func (g *GetMilestoneResponseBody) SetData(data *Milestone)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMilestoneResponseBody) SetRequestID

func (g *GetMilestoneResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMilestoneResponseBody) String

func (g *GetMilestoneResponseBody) String() string

func (*GetMilestoneResponseBody) UnmarshalJSON

func (g *GetMilestoneResponseBody) UnmarshalJSON(data []byte) error

type GetProjectResponseBody

type GetProjectResponseBody struct {
	Data *Project `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetProjectResponseBody) GetData

func (g *GetProjectResponseBody) GetData() *Project

func (*GetProjectResponseBody) GetExtraProperties

func (g *GetProjectResponseBody) GetExtraProperties() map[string]interface{}

func (*GetProjectResponseBody) GetRequestID

func (g *GetProjectResponseBody) GetRequestID() string

func (*GetProjectResponseBody) MarshalJSON

func (g *GetProjectResponseBody) MarshalJSON() ([]byte, error)

func (*GetProjectResponseBody) SetData

func (g *GetProjectResponseBody) SetData(data *Project)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetProjectResponseBody) SetRequestID

func (g *GetProjectResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetProjectResponseBody) String

func (g *GetProjectResponseBody) String() string

func (*GetProjectResponseBody) UnmarshalJSON

func (g *GetProjectResponseBody) UnmarshalJSON(data []byte) error

type GetSurveyResponseBody

type GetSurveyResponseBody struct {
	Data *Survey `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetSurveyResponseBody) GetData

func (g *GetSurveyResponseBody) GetData() *Survey

func (*GetSurveyResponseBody) GetExtraProperties

func (g *GetSurveyResponseBody) GetExtraProperties() map[string]interface{}

func (*GetSurveyResponseBody) GetRequestID

func (g *GetSurveyResponseBody) GetRequestID() string

func (*GetSurveyResponseBody) MarshalJSON

func (g *GetSurveyResponseBody) MarshalJSON() ([]byte, error)

func (*GetSurveyResponseBody) SetData

func (g *GetSurveyResponseBody) SetData(data *Survey)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetSurveyResponseBody) SetRequestID

func (g *GetSurveyResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetSurveyResponseBody) String

func (g *GetSurveyResponseBody) String() string

func (*GetSurveyResponseBody) UnmarshalJSON

func (g *GetSurveyResponseBody) UnmarshalJSON(data []byte) error

type GetSurveyResponsesResponseBody

type GetSurveyResponsesResponseBody struct {
	// The data payload of the response.
	Data       []*SurveyResponse `json:"data" url:"data"`
	Pagination *Pagination       `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetSurveyResponsesResponseBody) GetData

func (*GetSurveyResponsesResponseBody) GetExtraProperties

func (g *GetSurveyResponsesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetSurveyResponsesResponseBody) GetPagination

func (g *GetSurveyResponsesResponseBody) GetPagination() *Pagination

func (*GetSurveyResponsesResponseBody) GetRequestID

func (g *GetSurveyResponsesResponseBody) GetRequestID() string

func (*GetSurveyResponsesResponseBody) MarshalJSON

func (g *GetSurveyResponsesResponseBody) MarshalJSON() ([]byte, error)

func (*GetSurveyResponsesResponseBody) SetData

func (g *GetSurveyResponsesResponseBody) SetData(data []*SurveyResponse)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetSurveyResponsesResponseBody) SetPagination

func (g *GetSurveyResponsesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetSurveyResponsesResponseBody) SetRequestID

func (g *GetSurveyResponsesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetSurveyResponsesResponseBody) String

func (*GetSurveyResponsesResponseBody) UnmarshalJSON

func (g *GetSurveyResponsesResponseBody) UnmarshalJSON(data []byte) error

type GetSurveysResponseBody

type GetSurveysResponseBody struct {
	// The data payload of the response.
	Data []*Survey `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetSurveysResponseBody) GetData

func (g *GetSurveysResponseBody) GetData() []*Survey

func (*GetSurveysResponseBody) GetExtraProperties

func (g *GetSurveysResponseBody) GetExtraProperties() map[string]interface{}

func (*GetSurveysResponseBody) GetRequestID

func (g *GetSurveysResponseBody) GetRequestID() string

func (*GetSurveysResponseBody) MarshalJSON

func (g *GetSurveysResponseBody) MarshalJSON() ([]byte, error)

func (*GetSurveysResponseBody) SetData

func (g *GetSurveysResponseBody) SetData(data []*Survey)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetSurveysResponseBody) SetRequestID

func (g *GetSurveysResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetSurveysResponseBody) String

func (g *GetSurveysResponseBody) String() string

func (*GetSurveysResponseBody) UnmarshalJSON

func (g *GetSurveysResponseBody) UnmarshalJSON(data []byte) error

type GetTagResponseBody

type GetTagResponseBody struct {
	Data *Tag `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTagResponseBody) GetData

func (g *GetTagResponseBody) GetData() *Tag

func (*GetTagResponseBody) GetExtraProperties

func (g *GetTagResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTagResponseBody) GetRequestID

func (g *GetTagResponseBody) GetRequestID() string

func (*GetTagResponseBody) MarshalJSON

func (g *GetTagResponseBody) MarshalJSON() ([]byte, error)

func (*GetTagResponseBody) SetData

func (g *GetTagResponseBody) SetData(data *Tag)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTagResponseBody) SetRequestID

func (g *GetTagResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTagResponseBody) String

func (g *GetTagResponseBody) String() string

func (*GetTagResponseBody) UnmarshalJSON

func (g *GetTagResponseBody) UnmarshalJSON(data []byte) error

type GetTagsResponseBody

type GetTagsResponseBody struct {
	// The data payload of the response.
	Data       []*Tag      `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTagsResponseBody) GetData

func (g *GetTagsResponseBody) GetData() []*Tag

func (*GetTagsResponseBody) GetExtraProperties

func (g *GetTagsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTagsResponseBody) GetPagination

func (g *GetTagsResponseBody) GetPagination() *Pagination

func (*GetTagsResponseBody) GetRequestID

func (g *GetTagsResponseBody) GetRequestID() string

func (*GetTagsResponseBody) MarshalJSON

func (g *GetTagsResponseBody) MarshalJSON() ([]byte, error)

func (*GetTagsResponseBody) SetData

func (g *GetTagsResponseBody) SetData(data []*Tag)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTagsResponseBody) SetPagination

func (g *GetTagsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTagsResponseBody) SetRequestID

func (g *GetTagsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTagsResponseBody) String

func (g *GetTagsResponseBody) String() string

func (*GetTagsResponseBody) UnmarshalJSON

func (g *GetTagsResponseBody) UnmarshalJSON(data []byte) error

type GetTaskCommentsResponseBody

type GetTaskCommentsResponseBody struct {
	// The data payload of the response.
	Data []*TaskComment `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTaskCommentsResponseBody) GetData

func (g *GetTaskCommentsResponseBody) GetData() []*TaskComment

func (*GetTaskCommentsResponseBody) GetExtraProperties

func (g *GetTaskCommentsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTaskCommentsResponseBody) GetRequestID

func (g *GetTaskCommentsResponseBody) GetRequestID() string

func (*GetTaskCommentsResponseBody) MarshalJSON

func (g *GetTaskCommentsResponseBody) MarshalJSON() ([]byte, error)

func (*GetTaskCommentsResponseBody) SetData

func (g *GetTaskCommentsResponseBody) SetData(data []*TaskComment)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTaskCommentsResponseBody) SetRequestID

func (g *GetTaskCommentsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTaskCommentsResponseBody) String

func (g *GetTaskCommentsResponseBody) String() string

func (*GetTaskCommentsResponseBody) UnmarshalJSON

func (g *GetTaskCommentsResponseBody) UnmarshalJSON(data []byte) error

type GetTaskResponseBody

type GetTaskResponseBody struct {
	Data *Task `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTaskResponseBody) GetData

func (g *GetTaskResponseBody) GetData() *Task

func (*GetTaskResponseBody) GetExtraProperties

func (g *GetTaskResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTaskResponseBody) GetRequestID

func (g *GetTaskResponseBody) GetRequestID() string

func (*GetTaskResponseBody) MarshalJSON

func (g *GetTaskResponseBody) MarshalJSON() ([]byte, error)

func (*GetTaskResponseBody) SetData

func (g *GetTaskResponseBody) SetData(data *Task)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTaskResponseBody) SetRequestID

func (g *GetTaskResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTaskResponseBody) String

func (g *GetTaskResponseBody) String() string

func (*GetTaskResponseBody) UnmarshalJSON

func (g *GetTaskResponseBody) UnmarshalJSON(data []byte) error

type GetTaskStatusesResponseBody

type GetTaskStatusesResponseBody struct {
	// The data payload of the response.
	Data       []*TaskStatusDetails `json:"data" url:"data"`
	Pagination *Pagination          `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTaskStatusesResponseBody) GetData

func (*GetTaskStatusesResponseBody) GetExtraProperties

func (g *GetTaskStatusesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTaskStatusesResponseBody) GetPagination

func (g *GetTaskStatusesResponseBody) GetPagination() *Pagination

func (*GetTaskStatusesResponseBody) GetRequestID

func (g *GetTaskStatusesResponseBody) GetRequestID() string

func (*GetTaskStatusesResponseBody) MarshalJSON

func (g *GetTaskStatusesResponseBody) MarshalJSON() ([]byte, error)

func (*GetTaskStatusesResponseBody) SetData

func (g *GetTaskStatusesResponseBody) SetData(data []*TaskStatusDetails)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTaskStatusesResponseBody) SetPagination

func (g *GetTaskStatusesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTaskStatusesResponseBody) SetRequestID

func (g *GetTaskStatusesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTaskStatusesResponseBody) String

func (g *GetTaskStatusesResponseBody) String() string

func (*GetTaskStatusesResponseBody) UnmarshalJSON

func (g *GetTaskStatusesResponseBody) UnmarshalJSON(data []byte) error

type GetTasksResponseBody

type GetTasksResponseBody struct {
	// The data payload of the response.
	Data       []*Task     `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTasksResponseBody) GetData

func (g *GetTasksResponseBody) GetData() []*Task

func (*GetTasksResponseBody) GetExtraProperties

func (g *GetTasksResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTasksResponseBody) GetPagination

func (g *GetTasksResponseBody) GetPagination() *Pagination

func (*GetTasksResponseBody) GetRequestID

func (g *GetTasksResponseBody) GetRequestID() string

func (*GetTasksResponseBody) MarshalJSON

func (g *GetTasksResponseBody) MarshalJSON() ([]byte, error)

func (*GetTasksResponseBody) SetData

func (g *GetTasksResponseBody) SetData(data []*Task)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTasksResponseBody) SetPagination

func (g *GetTasksResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTasksResponseBody) SetRequestID

func (g *GetTasksResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTasksResponseBody) String

func (g *GetTasksResponseBody) String() string

func (*GetTasksResponseBody) UnmarshalJSON

func (g *GetTasksResponseBody) UnmarshalJSON(data []byte) error

type GetTeamResponseBody

type GetTeamResponseBody struct {
	Data *Team `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTeamResponseBody) GetData

func (g *GetTeamResponseBody) GetData() *Team

func (*GetTeamResponseBody) GetExtraProperties

func (g *GetTeamResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTeamResponseBody) GetRequestID

func (g *GetTeamResponseBody) GetRequestID() string

func (*GetTeamResponseBody) MarshalJSON

func (g *GetTeamResponseBody) MarshalJSON() ([]byte, error)

func (*GetTeamResponseBody) SetData

func (g *GetTeamResponseBody) SetData(data *Team)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTeamResponseBody) SetRequestID

func (g *GetTeamResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTeamResponseBody) String

func (g *GetTeamResponseBody) String() string

func (*GetTeamResponseBody) UnmarshalJSON

func (g *GetTeamResponseBody) UnmarshalJSON(data []byte) error

type GetTeamsResponseBody

type GetTeamsResponseBody struct {
	// The data payload of the response.
	Data       []*Team     `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTeamsResponseBody) GetData

func (g *GetTeamsResponseBody) GetData() []*Team

func (*GetTeamsResponseBody) GetExtraProperties

func (g *GetTeamsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTeamsResponseBody) GetPagination

func (g *GetTeamsResponseBody) GetPagination() *Pagination

func (*GetTeamsResponseBody) GetRequestID

func (g *GetTeamsResponseBody) GetRequestID() string

func (*GetTeamsResponseBody) MarshalJSON

func (g *GetTeamsResponseBody) MarshalJSON() ([]byte, error)

func (*GetTeamsResponseBody) SetData

func (g *GetTeamsResponseBody) SetData(data []*Team)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTeamsResponseBody) SetPagination

func (g *GetTeamsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTeamsResponseBody) SetRequestID

func (g *GetTeamsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTeamsResponseBody) String

func (g *GetTeamsResponseBody) String() string

func (*GetTeamsResponseBody) UnmarshalJSON

func (g *GetTeamsResponseBody) UnmarshalJSON(data []byte) error

type GetTicketFormResponseBody

type GetTicketFormResponseBody struct {
	Data *TicketForm `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTicketFormResponseBody) GetData

func (g *GetTicketFormResponseBody) GetData() *TicketForm

func (*GetTicketFormResponseBody) GetExtraProperties

func (g *GetTicketFormResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTicketFormResponseBody) GetRequestID

func (g *GetTicketFormResponseBody) GetRequestID() string

func (*GetTicketFormResponseBody) MarshalJSON

func (g *GetTicketFormResponseBody) MarshalJSON() ([]byte, error)

func (*GetTicketFormResponseBody) SetData

func (g *GetTicketFormResponseBody) SetData(data *TicketForm)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTicketFormResponseBody) SetRequestID

func (g *GetTicketFormResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTicketFormResponseBody) String

func (g *GetTicketFormResponseBody) String() string

func (*GetTicketFormResponseBody) UnmarshalJSON

func (g *GetTicketFormResponseBody) UnmarshalJSON(data []byte) error

type GetTicketFormsResponseBody

type GetTicketFormsResponseBody struct {
	// The data payload of the response.
	Data       []*TicketForm `json:"data" url:"data"`
	Pagination *Pagination   `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTicketFormsResponseBody) GetData

func (g *GetTicketFormsResponseBody) GetData() []*TicketForm

func (*GetTicketFormsResponseBody) GetExtraProperties

func (g *GetTicketFormsResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTicketFormsResponseBody) GetPagination

func (g *GetTicketFormsResponseBody) GetPagination() *Pagination

func (*GetTicketFormsResponseBody) GetRequestID

func (g *GetTicketFormsResponseBody) GetRequestID() string

func (*GetTicketFormsResponseBody) MarshalJSON

func (g *GetTicketFormsResponseBody) MarshalJSON() ([]byte, error)

func (*GetTicketFormsResponseBody) SetData

func (g *GetTicketFormsResponseBody) SetData(data []*TicketForm)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTicketFormsResponseBody) SetPagination

func (g *GetTicketFormsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTicketFormsResponseBody) SetRequestID

func (g *GetTicketFormsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTicketFormsResponseBody) String

func (g *GetTicketFormsResponseBody) String() string

func (*GetTicketFormsResponseBody) UnmarshalJSON

func (g *GetTicketFormsResponseBody) UnmarshalJSON(data []byte) error

type GetTrainingDataResponseBody

type GetTrainingDataResponseBody struct {
	Data      *TrainingData `json:"data" url:"data"`
	RequestID string        `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetTrainingDataResponseBody) GetData

func (*GetTrainingDataResponseBody) GetExtraProperties

func (g *GetTrainingDataResponseBody) GetExtraProperties() map[string]interface{}

func (*GetTrainingDataResponseBody) GetRequestID

func (g *GetTrainingDataResponseBody) GetRequestID() string

func (*GetTrainingDataResponseBody) MarshalJSON

func (g *GetTrainingDataResponseBody) MarshalJSON() ([]byte, error)

func (*GetTrainingDataResponseBody) SetData

func (g *GetTrainingDataResponseBody) SetData(data *TrainingData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTrainingDataResponseBody) SetRequestID

func (g *GetTrainingDataResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTrainingDataResponseBody) String

func (g *GetTrainingDataResponseBody) String() string

func (*GetTrainingDataResponseBody) UnmarshalJSON

func (g *GetTrainingDataResponseBody) UnmarshalJSON(data []byte) error

type GetUserResponseBody

type GetUserResponseBody struct {
	Data *User `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetUserResponseBody) GetData

func (g *GetUserResponseBody) GetData() *User

func (*GetUserResponseBody) GetExtraProperties

func (g *GetUserResponseBody) GetExtraProperties() map[string]interface{}

func (*GetUserResponseBody) GetRequestID

func (g *GetUserResponseBody) GetRequestID() string

func (*GetUserResponseBody) MarshalJSON

func (g *GetUserResponseBody) MarshalJSON() ([]byte, error)

func (*GetUserResponseBody) SetData

func (g *GetUserResponseBody) SetData(data *User)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetUserResponseBody) SetRequestID

func (g *GetUserResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetUserResponseBody) String

func (g *GetUserResponseBody) String() string

func (*GetUserResponseBody) UnmarshalJSON

func (g *GetUserResponseBody) UnmarshalJSON(data []byte) error

type GetUserRolesResponseBody

type GetUserRolesResponseBody struct {
	// The data payload of the response.
	Data       []*UserRole `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetUserRolesResponseBody) GetData

func (g *GetUserRolesResponseBody) GetData() []*UserRole

func (*GetUserRolesResponseBody) GetExtraProperties

func (g *GetUserRolesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetUserRolesResponseBody) GetPagination

func (g *GetUserRolesResponseBody) GetPagination() *Pagination

func (*GetUserRolesResponseBody) GetRequestID

func (g *GetUserRolesResponseBody) GetRequestID() string

func (*GetUserRolesResponseBody) MarshalJSON

func (g *GetUserRolesResponseBody) MarshalJSON() ([]byte, error)

func (*GetUserRolesResponseBody) SetData

func (g *GetUserRolesResponseBody) SetData(data []*UserRole)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetUserRolesResponseBody) SetPagination

func (g *GetUserRolesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetUserRolesResponseBody) SetRequestID

func (g *GetUserRolesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetUserRolesResponseBody) String

func (g *GetUserRolesResponseBody) String() string

func (*GetUserRolesResponseBody) UnmarshalJSON

func (g *GetUserRolesResponseBody) UnmarshalJSON(data []byte) error

type GetUserStatusesResponseBody

type GetUserStatusesResponseBody struct {
	// The data payload of the response.
	Data []*UserStatus `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetUserStatusesResponseBody) GetData

func (g *GetUserStatusesResponseBody) GetData() []*UserStatus

func (*GetUserStatusesResponseBody) GetExtraProperties

func (g *GetUserStatusesResponseBody) GetExtraProperties() map[string]interface{}

func (*GetUserStatusesResponseBody) GetRequestID

func (g *GetUserStatusesResponseBody) GetRequestID() string

func (*GetUserStatusesResponseBody) MarshalJSON

func (g *GetUserStatusesResponseBody) MarshalJSON() ([]byte, error)

func (*GetUserStatusesResponseBody) SetData

func (g *GetUserStatusesResponseBody) SetData(data []*UserStatus)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetUserStatusesResponseBody) SetRequestID

func (g *GetUserStatusesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetUserStatusesResponseBody) String

func (g *GetUserStatusesResponseBody) String() string

func (*GetUserStatusesResponseBody) UnmarshalJSON

func (g *GetUserStatusesResponseBody) UnmarshalJSON(data []byte) error

type GetUsersResponseBody

type GetUsersResponseBody struct {
	// The data payload of the response.
	Data       []*User     `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*GetUsersResponseBody) GetData

func (g *GetUsersResponseBody) GetData() []*User

func (*GetUsersResponseBody) GetExtraProperties

func (g *GetUsersResponseBody) GetExtraProperties() map[string]interface{}

func (*GetUsersResponseBody) GetPagination

func (g *GetUsersResponseBody) GetPagination() *Pagination

func (*GetUsersResponseBody) GetRequestID

func (g *GetUsersResponseBody) GetRequestID() string

func (*GetUsersResponseBody) MarshalJSON

func (g *GetUsersResponseBody) MarshalJSON() ([]byte, error)

func (*GetUsersResponseBody) SetData

func (g *GetUsersResponseBody) SetData(data []*User)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetUsersResponseBody) SetPagination

func (g *GetUsersResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetUsersResponseBody) SetRequestID

func (g *GetUsersResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetUsersResponseBody) String

func (g *GetUsersResponseBody) String() string

func (*GetUsersResponseBody) UnmarshalJSON

func (g *GetUsersResponseBody) UnmarshalJSON(data []byte) error

type ImportContactRequestBody

type ImportContactRequestBody struct {
	// The account that this contact belongs to.
	AccountID *string `json:"account_id,omitempty" url:"account_id,omitempty"`
	// The avatar URL of the contact. Must be a square .png, .jpg or .jpeg.
	AvatarURL *string `json:"avatar_url,omitempty" url:"avatar_url,omitempty"`
	// An array of custom fields to be applied to this contact.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// The email of the contact.
	Email string `json:"email" url:"email"`
	// The name of the contact.
	Name string `json:"name" url:"name"`
	// The phone numbers of the contact. Must contain only digits 0-9, optionally preceded by + (E.164, e.g. +4365446231), and be 15 digits or less. Include the + and country code for non-US numbers; a 10-digit number without + is treated as US.
	PhoneNumbers []string `json:"phone_numbers,omitempty" url:"phone_numbers,omitempty"`
	// The portal role to assign to the contact. If not provided uses the default portal role from the portal settings.
	PortalRole *ImportContactRequestBodyPortalRole `json:"portal_role,omitempty" url:"portal_role,omitempty"`
	// The primary phone number. Must be in the list of phone_numbers. If there are any phone_numbers and this is not specified, the first phone number will be primary.
	PrimaryPhoneNumber *string `json:"primary_phone_number,omitempty" url:"primary_phone_number,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportContactRequestBody) GetAccountID

func (i *ImportContactRequestBody) GetAccountID() *string

func (*ImportContactRequestBody) GetAvatarURL

func (i *ImportContactRequestBody) GetAvatarURL() *string

func (*ImportContactRequestBody) GetCustomFields

func (i *ImportContactRequestBody) GetCustomFields() []*CustomFieldValue

func (*ImportContactRequestBody) GetEmail

func (i *ImportContactRequestBody) GetEmail() string

func (*ImportContactRequestBody) GetExtraProperties

func (i *ImportContactRequestBody) GetExtraProperties() map[string]interface{}

func (*ImportContactRequestBody) GetName

func (i *ImportContactRequestBody) GetName() string

func (*ImportContactRequestBody) GetPhoneNumbers

func (i *ImportContactRequestBody) GetPhoneNumbers() []string

func (*ImportContactRequestBody) GetPortalRole

func (*ImportContactRequestBody) GetPrimaryPhoneNumber

func (i *ImportContactRequestBody) GetPrimaryPhoneNumber() *string

func (*ImportContactRequestBody) MarshalJSON

func (i *ImportContactRequestBody) MarshalJSON() ([]byte, error)

func (*ImportContactRequestBody) SetAccountID

func (i *ImportContactRequestBody) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportContactRequestBody) SetAvatarURL

func (i *ImportContactRequestBody) SetAvatarURL(avatarURL *string)

SetAvatarURL sets the AvatarURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportContactRequestBody) SetCustomFields

func (i *ImportContactRequestBody) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportContactRequestBody) SetEmail

func (i *ImportContactRequestBody) SetEmail(email string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportContactRequestBody) SetName

func (i *ImportContactRequestBody) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportContactRequestBody) SetPhoneNumbers

func (i *ImportContactRequestBody) SetPhoneNumbers(phoneNumbers []string)

SetPhoneNumbers sets the PhoneNumbers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportContactRequestBody) SetPortalRole

func (i *ImportContactRequestBody) SetPortalRole(portalRole *ImportContactRequestBodyPortalRole)

SetPortalRole sets the PortalRole field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportContactRequestBody) SetPrimaryPhoneNumber

func (i *ImportContactRequestBody) SetPrimaryPhoneNumber(primaryPhoneNumber *string)

SetPrimaryPhoneNumber sets the PrimaryPhoneNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportContactRequestBody) String

func (i *ImportContactRequestBody) String() string

func (*ImportContactRequestBody) UnmarshalJSON

func (i *ImportContactRequestBody) UnmarshalJSON(data []byte) error

type ImportContactRequestBodyPortalRole

type ImportContactRequestBodyPortalRole string

The portal role to assign to the contact. If not provided uses the default portal role from the portal settings.

const (
	ImportContactRequestBodyPortalRoleNoAccess ImportContactRequestBodyPortalRole = "no_access"
	ImportContactRequestBodyPortalRoleMember   ImportContactRequestBodyPortalRole = "member"
	ImportContactRequestBodyPortalRoleAdmin    ImportContactRequestBodyPortalRole = "admin"
)

func NewImportContactRequestBodyPortalRoleFromString

func NewImportContactRequestBodyPortalRoleFromString(s string) (ImportContactRequestBodyPortalRole, error)

func (ImportContactRequestBodyPortalRole) Ptr

type ImportContactResponseBody

type ImportContactResponseBody struct {
	Data *Contact `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*ImportContactResponseBody) GetData

func (i *ImportContactResponseBody) GetData() *Contact

func (*ImportContactResponseBody) GetExtraProperties

func (i *ImportContactResponseBody) GetExtraProperties() map[string]interface{}

func (*ImportContactResponseBody) GetRequestID

func (i *ImportContactResponseBody) GetRequestID() string

func (*ImportContactResponseBody) MarshalJSON

func (i *ImportContactResponseBody) MarshalJSON() ([]byte, error)

func (*ImportContactResponseBody) SetData

func (i *ImportContactResponseBody) SetData(data *Contact)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportContactResponseBody) SetRequestID

func (i *ImportContactResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportContactResponseBody) String

func (i *ImportContactResponseBody) String() string

func (*ImportContactResponseBody) UnmarshalJSON

func (i *ImportContactResponseBody) UnmarshalJSON(data []byte) error

type ImportExternalIssue

type ImportExternalIssue struct {
	// The ID of the external issue in the source system.
	ExternalIssueID string `json:"external_issue_id" url:"external_issue_id"`
	// The source system of the external issue (e.g., "linear", "asana", "jira", "github").
	Source string `json:"source" url:"source"`
	// contains filtered or unexported fields
}

func (*ImportExternalIssue) GetExternalIssueID

func (i *ImportExternalIssue) GetExternalIssueID() string

func (*ImportExternalIssue) GetExtraProperties

func (i *ImportExternalIssue) GetExtraProperties() map[string]interface{}

func (*ImportExternalIssue) GetSource

func (i *ImportExternalIssue) GetSource() string

func (*ImportExternalIssue) MarshalJSON

func (i *ImportExternalIssue) MarshalJSON() ([]byte, error)

func (*ImportExternalIssue) SetExternalIssueID

func (i *ImportExternalIssue) SetExternalIssueID(externalIssueID string)

SetExternalIssueID sets the ExternalIssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportExternalIssue) SetSource

func (i *ImportExternalIssue) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportExternalIssue) String

func (i *ImportExternalIssue) String() string

func (*ImportExternalIssue) UnmarshalJSON

func (i *ImportExternalIssue) UnmarshalJSON(data []byte) error

type ImportIssueExternalRefs

type ImportIssueExternalRefs struct {
	// The Intercom conversation ID associated with this issue, if any.
	IntercomConversationID *string `json:"intercom_conversation_id,omitempty" url:"intercom_conversation_id,omitempty"`
	// The Zendesk ticket ID associated with this issue, if any.
	ZendeskTicketID *string `json:"zendesk_ticket_id,omitempty" url:"zendesk_ticket_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportIssueExternalRefs) GetExtraProperties

func (i *ImportIssueExternalRefs) GetExtraProperties() map[string]interface{}

func (*ImportIssueExternalRefs) GetIntercomConversationID

func (i *ImportIssueExternalRefs) GetIntercomConversationID() *string

func (*ImportIssueExternalRefs) GetZendeskTicketID

func (i *ImportIssueExternalRefs) GetZendeskTicketID() *string

func (*ImportIssueExternalRefs) MarshalJSON

func (i *ImportIssueExternalRefs) MarshalJSON() ([]byte, error)

func (*ImportIssueExternalRefs) SetIntercomConversationID

func (i *ImportIssueExternalRefs) SetIntercomConversationID(intercomConversationID *string)

SetIntercomConversationID sets the IntercomConversationID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueExternalRefs) SetZendeskTicketID

func (i *ImportIssueExternalRefs) SetZendeskTicketID(zendeskTicketID *string)

SetZendeskTicketID sets the ZendeskTicketID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueExternalRefs) String

func (i *ImportIssueExternalRefs) String() string

func (*ImportIssueExternalRefs) UnmarshalJSON

func (i *ImportIssueExternalRefs) UnmarshalJSON(data []byte) error

type ImportIssueMessage

type ImportIssueMessage struct {
	// An array of attachment URLs to attach to this message.
	AttachmentURLs []string `json:"attachment_urls,omitempty" url:"attachment_urls,omitempty"`
	// The HTML content of the message.
	BodyHTML string `json:"body_html" url:"body_html"`
	// The contact that sent the message. Only one of user_id or contact_id can be specified.
	ContactID *string `json:"contact_id,omitempty" url:"contact_id,omitempty"`
	// CreatedAt is the time the message was created (RFC3339).
	CreatedAt *time.Time `json:"created_at,omitempty" url:"created_at,omitempty"`
	// Whether the message is private.
	IsPrivate bool `json:"is_private" url:"is_private"`
	// The user that sent the message. Only one of user_id or contact_id can be specified.
	UserID *string `json:"user_id,omitempty" url:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportIssueMessage) GetAttachmentURLs

func (i *ImportIssueMessage) GetAttachmentURLs() []string

func (*ImportIssueMessage) GetBodyHTML

func (i *ImportIssueMessage) GetBodyHTML() string

func (*ImportIssueMessage) GetContactID

func (i *ImportIssueMessage) GetContactID() *string

func (*ImportIssueMessage) GetCreatedAt

func (i *ImportIssueMessage) GetCreatedAt() *time.Time

func (*ImportIssueMessage) GetExtraProperties

func (i *ImportIssueMessage) GetExtraProperties() map[string]interface{}

func (*ImportIssueMessage) GetIsPrivate

func (i *ImportIssueMessage) GetIsPrivate() bool

func (*ImportIssueMessage) GetUserID

func (i *ImportIssueMessage) GetUserID() *string

func (*ImportIssueMessage) MarshalJSON

func (i *ImportIssueMessage) MarshalJSON() ([]byte, error)

func (*ImportIssueMessage) SetAttachmentURLs

func (i *ImportIssueMessage) SetAttachmentURLs(attachmentURLs []string)

SetAttachmentURLs sets the AttachmentURLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueMessage) SetBodyHTML

func (i *ImportIssueMessage) SetBodyHTML(bodyHTML string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueMessage) SetContactID

func (i *ImportIssueMessage) SetContactID(contactID *string)

SetContactID sets the ContactID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueMessage) SetCreatedAt

func (i *ImportIssueMessage) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueMessage) SetIsPrivate

func (i *ImportIssueMessage) SetIsPrivate(isPrivate bool)

SetIsPrivate sets the IsPrivate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueMessage) SetUserID

func (i *ImportIssueMessage) SetUserID(userID *string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueMessage) String

func (i *ImportIssueMessage) String() string

func (*ImportIssueMessage) UnmarshalJSON

func (i *ImportIssueMessage) UnmarshalJSON(data []byte) error

type ImportIssueRequest

type ImportIssueRequest struct {
	// AccountID that the issue should belong to.
	AccountID *string `json:"account_id,omitempty" url:"account_id,omitempty"`
	// UserID that the issue should be assigned to.
	AssigneeID *string `json:"assignee_id,omitempty" url:"assignee_id,omitempty"`
	// An array of attachment URLs to attach to this issue.
	AttachmentURLs []string `json:"attachment_urls,omitempty" url:"attachment_urls,omitempty"`
	// CreatedAt is the time the issue was created (RFC3339).
	CreatedAt *time.Time `json:"created_at,omitempty" url:"created_at,omitempty"`
	// An array of custom fields to be used on this issue.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// External issues to link to this issue.
	ExternalIssues []*ImportExternalIssue   `json:"external_issues,omitempty" url:"external_issues,omitempty"`
	ExternalRefs   *ImportIssueExternalRefs `json:"external_refs,omitempty" url:"external_refs,omitempty"`
	// FirstResponseTime is the time the issue was first responded to (RFC3339).
	FirstResponseTime *time.Time `json:"first_response_time,omitempty" url:"first_response_time,omitempty"`
	// An optional issue number to preserve from the platform the issue is being imported from.
	// Usually, do not set this field. Pylon normally assigns its own auto-incrementing ticket numbers.
	// Use it only for customers who require their historical ticket numbers to be preserved.
	// When set, it must be positive and lower than the organization's current ticket number counter.
	IssueNumber *int64 `json:"issue_number,omitempty" url:"issue_number,omitempty"`
	// Messages to be imported for this issue. At least one message is required.
	Messages []*ImportIssueMessage `json:"messages" url:"messages"`
	// The ID of a partner account that serves account_id. Requires account_id.
	PartnerAccountID *string `json:"partner_account_id,omitempty" url:"partner_account_id,omitempty"`
	// ContactID that the issue should be on behalf of. If omitted, the issue has no requester.
	RequesterID *string `json:"requester_id,omitempty" url:"requester_id,omitempty"`
	// ResolutionTime is the time the issue was resolved (RFC3339).
	ResolutionTime *time.Time `json:"resolution_time,omitempty" url:"resolution_time,omitempty"`
	// The state of the issue. Standard values are `new`, `waiting_on_you`, `waiting_on_customer`, `on_hold`, and `closed`; custom status slugs are also supported.
	State string `json:"state" url:"state"`
	// An array of strings to use as tags on this issue.
	Tags []string `json:"tags,omitempty" url:"tags,omitempty"`
	// TeamID that the issue should be assigned to.
	TeamID *string `json:"team_id,omitempty" url:"team_id,omitempty"`
	// The title of the issue.
	Title string `json:"title" url:"title"`
	// UpdatedAt is the time the issue was last updated (RFC3339).
	UpdatedAt *time.Time `json:"updated_at,omitempty" url:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportIssueRequest) GetAccountID

func (i *ImportIssueRequest) GetAccountID() *string

func (*ImportIssueRequest) GetAssigneeID

func (i *ImportIssueRequest) GetAssigneeID() *string

func (*ImportIssueRequest) GetAttachmentURLs

func (i *ImportIssueRequest) GetAttachmentURLs() []string

func (*ImportIssueRequest) GetCreatedAt

func (i *ImportIssueRequest) GetCreatedAt() *time.Time

func (*ImportIssueRequest) GetCustomFields

func (i *ImportIssueRequest) GetCustomFields() []*CustomFieldValue

func (*ImportIssueRequest) GetExternalIssues

func (i *ImportIssueRequest) GetExternalIssues() []*ImportExternalIssue

func (*ImportIssueRequest) GetExternalRefs

func (i *ImportIssueRequest) GetExternalRefs() *ImportIssueExternalRefs

func (*ImportIssueRequest) GetExtraProperties

func (i *ImportIssueRequest) GetExtraProperties() map[string]interface{}

func (*ImportIssueRequest) GetFirstResponseTime

func (i *ImportIssueRequest) GetFirstResponseTime() *time.Time

func (*ImportIssueRequest) GetIssueNumber

func (i *ImportIssueRequest) GetIssueNumber() *int64

func (*ImportIssueRequest) GetMessages

func (i *ImportIssueRequest) GetMessages() []*ImportIssueMessage

func (*ImportIssueRequest) GetPartnerAccountID

func (i *ImportIssueRequest) GetPartnerAccountID() *string

func (*ImportIssueRequest) GetRequesterID

func (i *ImportIssueRequest) GetRequesterID() *string

func (*ImportIssueRequest) GetResolutionTime

func (i *ImportIssueRequest) GetResolutionTime() *time.Time

func (*ImportIssueRequest) GetState

func (i *ImportIssueRequest) GetState() string

func (*ImportIssueRequest) GetTags

func (i *ImportIssueRequest) GetTags() []string

func (*ImportIssueRequest) GetTeamID

func (i *ImportIssueRequest) GetTeamID() *string

func (*ImportIssueRequest) GetTitle

func (i *ImportIssueRequest) GetTitle() string

func (*ImportIssueRequest) GetUpdatedAt

func (i *ImportIssueRequest) GetUpdatedAt() *time.Time

func (*ImportIssueRequest) MarshalJSON

func (i *ImportIssueRequest) MarshalJSON() ([]byte, error)

func (*ImportIssueRequest) SetAccountID

func (i *ImportIssueRequest) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetAssigneeID

func (i *ImportIssueRequest) SetAssigneeID(assigneeID *string)

SetAssigneeID sets the AssigneeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetAttachmentURLs

func (i *ImportIssueRequest) SetAttachmentURLs(attachmentURLs []string)

SetAttachmentURLs sets the AttachmentURLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetCreatedAt

func (i *ImportIssueRequest) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetCustomFields

func (i *ImportIssueRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetExternalIssues

func (i *ImportIssueRequest) SetExternalIssues(externalIssues []*ImportExternalIssue)

SetExternalIssues sets the ExternalIssues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetExternalRefs

func (i *ImportIssueRequest) SetExternalRefs(externalRefs *ImportIssueExternalRefs)

SetExternalRefs sets the ExternalRefs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetFirstResponseTime

func (i *ImportIssueRequest) SetFirstResponseTime(firstResponseTime *time.Time)

SetFirstResponseTime sets the FirstResponseTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetIssueNumber

func (i *ImportIssueRequest) SetIssueNumber(issueNumber *int64)

SetIssueNumber sets the IssueNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetMessages

func (i *ImportIssueRequest) SetMessages(messages []*ImportIssueMessage)

SetMessages sets the Messages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetPartnerAccountID

func (i *ImportIssueRequest) SetPartnerAccountID(partnerAccountID *string)

SetPartnerAccountID sets the PartnerAccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetRequesterID

func (i *ImportIssueRequest) SetRequesterID(requesterID *string)

SetRequesterID sets the RequesterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetResolutionTime

func (i *ImportIssueRequest) SetResolutionTime(resolutionTime *time.Time)

SetResolutionTime sets the ResolutionTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetState

func (i *ImportIssueRequest) SetState(state string)

SetState sets the State field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetTags

func (i *ImportIssueRequest) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetTeamID

func (i *ImportIssueRequest) SetTeamID(teamID *string)

SetTeamID sets the TeamID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetTitle

func (i *ImportIssueRequest) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) SetUpdatedAt

func (i *ImportIssueRequest) SetUpdatedAt(updatedAt *time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueRequest) String

func (i *ImportIssueRequest) String() string

func (*ImportIssueRequest) UnmarshalJSON

func (i *ImportIssueRequest) UnmarshalJSON(data []byte) error

type ImportIssueResponseBody

type ImportIssueResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string          `json:"request_id" url:"request_id"`
	Warnings  *ImportWarnings `json:"warnings,omitempty" url:"warnings,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportIssueResponseBody) GetData

func (i *ImportIssueResponseBody) GetData() *Issue

func (*ImportIssueResponseBody) GetExtraProperties

func (i *ImportIssueResponseBody) GetExtraProperties() map[string]interface{}

func (*ImportIssueResponseBody) GetRequestID

func (i *ImportIssueResponseBody) GetRequestID() string

func (*ImportIssueResponseBody) GetWarnings

func (i *ImportIssueResponseBody) GetWarnings() *ImportWarnings

func (*ImportIssueResponseBody) MarshalJSON

func (i *ImportIssueResponseBody) MarshalJSON() ([]byte, error)

func (*ImportIssueResponseBody) SetData

func (i *ImportIssueResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueResponseBody) SetRequestID

func (i *ImportIssueResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueResponseBody) SetWarnings

func (i *ImportIssueResponseBody) SetWarnings(warnings *ImportWarnings)

SetWarnings sets the Warnings field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportIssueResponseBody) String

func (i *ImportIssueResponseBody) String() string

func (*ImportIssueResponseBody) UnmarshalJSON

func (i *ImportIssueResponseBody) UnmarshalJSON(data []byte) error

type ImportMessagesRequest

type ImportMessagesRequest struct {
	// Messages to be imported for this issue. At least one message is required.
	Messages []*ImportIssueMessage `json:"messages" url:"messages"`
	// contains filtered or unexported fields
}

func (*ImportMessagesRequest) GetExtraProperties

func (i *ImportMessagesRequest) GetExtraProperties() map[string]interface{}

func (*ImportMessagesRequest) GetMessages

func (i *ImportMessagesRequest) GetMessages() []*ImportIssueMessage

func (*ImportMessagesRequest) MarshalJSON

func (i *ImportMessagesRequest) MarshalJSON() ([]byte, error)

func (*ImportMessagesRequest) SetMessages

func (i *ImportMessagesRequest) SetMessages(messages []*ImportIssueMessage)

SetMessages sets the Messages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportMessagesRequest) String

func (i *ImportMessagesRequest) String() string

func (*ImportMessagesRequest) UnmarshalJSON

func (i *ImportMessagesRequest) UnmarshalJSON(data []byte) error

type ImportMessagesResponseBody

type ImportMessagesResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string          `json:"request_id" url:"request_id"`
	Warnings  *ImportWarnings `json:"warnings,omitempty" url:"warnings,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportMessagesResponseBody) GetData

func (i *ImportMessagesResponseBody) GetData() *Issue

func (*ImportMessagesResponseBody) GetExtraProperties

func (i *ImportMessagesResponseBody) GetExtraProperties() map[string]interface{}

func (*ImportMessagesResponseBody) GetRequestID

func (i *ImportMessagesResponseBody) GetRequestID() string

func (*ImportMessagesResponseBody) GetWarnings

func (i *ImportMessagesResponseBody) GetWarnings() *ImportWarnings

func (*ImportMessagesResponseBody) MarshalJSON

func (i *ImportMessagesResponseBody) MarshalJSON() ([]byte, error)

func (*ImportMessagesResponseBody) SetData

func (i *ImportMessagesResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportMessagesResponseBody) SetRequestID

func (i *ImportMessagesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportMessagesResponseBody) SetWarnings

func (i *ImportMessagesResponseBody) SetWarnings(warnings *ImportWarnings)

SetWarnings sets the Warnings field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportMessagesResponseBody) String

func (i *ImportMessagesResponseBody) String() string

func (*ImportMessagesResponseBody) UnmarshalJSON

func (i *ImportMessagesResponseBody) UnmarshalJSON(data []byte) error

type ImportProjectRequestBody

type ImportProjectRequestBody struct {
	// The ID of the account this project belongs to.
	AccountID string `json:"account_id" url:"account_id"`
	// The time the project was created in the system it is being imported from, in RFC 3339 format.
	// Defaults to now.
	CreatedAt *time.Time `json:"created_at,omitempty" url:"created_at,omitempty"`
	// An array of custom fields to be used on this project. Values that cannot be applied are skipped
	// and reported under warnings rather than failing the import.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// Whether the project is visible in the customer portal. Defaults to false.
	CustomerPortalVisible *bool `json:"customer_portal_visible,omitempty" url:"customer_portal_visible,omitempty"`
	// Description HTML for this project.
	DescriptionHTML *string `json:"description_html,omitempty" url:"description_html,omitempty"`
	// End date for this project, in RFC 3339 format.
	EndDate *time.Time `json:"end_date,omitempty" url:"end_date,omitempty"`
	// The name of the project.
	Name string `json:"name" url:"name"`
	// The ID of the user who owns this project.
	OwnerID *string `json:"owner_id,omitempty" url:"owner_id,omitempty"`
	// Start date for this project, in RFC 3339 format.
	StartDate *time.Time `json:"start_date,omitempty" url:"start_date,omitempty"`
	// The status of the project. One of not_started, in_progress, or completed. Defaults to not_started.
	Status *string `json:"status,omitempty" url:"status,omitempty"`
	// The time the project was last updated in the system it is being imported from, in RFC 3339 format.
	// Defaults to now.
	UpdatedAt *time.Time `json:"updated_at,omitempty" url:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportProjectRequestBody) GetAccountID

func (i *ImportProjectRequestBody) GetAccountID() string

func (*ImportProjectRequestBody) GetCreatedAt

func (i *ImportProjectRequestBody) GetCreatedAt() *time.Time

func (*ImportProjectRequestBody) GetCustomFields

func (i *ImportProjectRequestBody) GetCustomFields() []*CustomFieldValue

func (*ImportProjectRequestBody) GetCustomerPortalVisible

func (i *ImportProjectRequestBody) GetCustomerPortalVisible() *bool

func (*ImportProjectRequestBody) GetDescriptionHTML

func (i *ImportProjectRequestBody) GetDescriptionHTML() *string

func (*ImportProjectRequestBody) GetEndDate

func (i *ImportProjectRequestBody) GetEndDate() *time.Time

func (*ImportProjectRequestBody) GetExtraProperties

func (i *ImportProjectRequestBody) GetExtraProperties() map[string]interface{}

func (*ImportProjectRequestBody) GetName

func (i *ImportProjectRequestBody) GetName() string

func (*ImportProjectRequestBody) GetOwnerID

func (i *ImportProjectRequestBody) GetOwnerID() *string

func (*ImportProjectRequestBody) GetStartDate

func (i *ImportProjectRequestBody) GetStartDate() *time.Time

func (*ImportProjectRequestBody) GetStatus

func (i *ImportProjectRequestBody) GetStatus() *string

func (*ImportProjectRequestBody) GetUpdatedAt

func (i *ImportProjectRequestBody) GetUpdatedAt() *time.Time

func (*ImportProjectRequestBody) MarshalJSON

func (i *ImportProjectRequestBody) MarshalJSON() ([]byte, error)

func (*ImportProjectRequestBody) SetAccountID

func (i *ImportProjectRequestBody) SetAccountID(accountID string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) SetCreatedAt

func (i *ImportProjectRequestBody) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) SetCustomFields

func (i *ImportProjectRequestBody) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) SetCustomerPortalVisible

func (i *ImportProjectRequestBody) SetCustomerPortalVisible(customerPortalVisible *bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) SetDescriptionHTML

func (i *ImportProjectRequestBody) SetDescriptionHTML(descriptionHTML *string)

SetDescriptionHTML sets the DescriptionHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) SetEndDate

func (i *ImportProjectRequestBody) SetEndDate(endDate *time.Time)

SetEndDate sets the EndDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) SetName

func (i *ImportProjectRequestBody) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) SetOwnerID

func (i *ImportProjectRequestBody) SetOwnerID(ownerID *string)

SetOwnerID sets the OwnerID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) SetStartDate

func (i *ImportProjectRequestBody) SetStartDate(startDate *time.Time)

SetStartDate sets the StartDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) SetStatus

func (i *ImportProjectRequestBody) SetStatus(status *string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) SetUpdatedAt

func (i *ImportProjectRequestBody) SetUpdatedAt(updatedAt *time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectRequestBody) String

func (i *ImportProjectRequestBody) String() string

func (*ImportProjectRequestBody) UnmarshalJSON

func (i *ImportProjectRequestBody) UnmarshalJSON(data []byte) error

type ImportProjectResponseBody

type ImportProjectResponseBody struct {
	Data *Project `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string          `json:"request_id" url:"request_id"`
	Warnings  *ImportWarnings `json:"warnings,omitempty" url:"warnings,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportProjectResponseBody) GetData

func (i *ImportProjectResponseBody) GetData() *Project

func (*ImportProjectResponseBody) GetExtraProperties

func (i *ImportProjectResponseBody) GetExtraProperties() map[string]interface{}

func (*ImportProjectResponseBody) GetRequestID

func (i *ImportProjectResponseBody) GetRequestID() string

func (*ImportProjectResponseBody) GetWarnings

func (i *ImportProjectResponseBody) GetWarnings() *ImportWarnings

func (*ImportProjectResponseBody) MarshalJSON

func (i *ImportProjectResponseBody) MarshalJSON() ([]byte, error)

func (*ImportProjectResponseBody) SetData

func (i *ImportProjectResponseBody) SetData(data *Project)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectResponseBody) SetRequestID

func (i *ImportProjectResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectResponseBody) SetWarnings

func (i *ImportProjectResponseBody) SetWarnings(warnings *ImportWarnings)

SetWarnings sets the Warnings field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportProjectResponseBody) String

func (i *ImportProjectResponseBody) String() string

func (*ImportProjectResponseBody) UnmarshalJSON

func (i *ImportProjectResponseBody) UnmarshalJSON(data []byte) error

type ImportTaskRequestBody

type ImportTaskRequestBody struct {
	// Account ID for this task.
	AccountID *string `json:"account_id,omitempty" url:"account_id,omitempty"`
	// Assignee ID for this task. May be a user or a contact.
	AssigneeID *string `json:"assignee_id,omitempty" url:"assignee_id,omitempty"`
	// Body HTML for this task.
	BodyHTML *string `json:"body_html,omitempty" url:"body_html,omitempty"`
	// The time the task was completed, in RFC 3339 format. Must be empty when status is not started.
	CompletedAt *time.Time `json:"completed_at,omitempty" url:"completed_at,omitempty"`
	// The time the task was created in the system it is being imported from, in RFC 3339 format.
	// Defaults to now.
	CreatedAt *time.Time `json:"created_at,omitempty" url:"created_at,omitempty"`
	// An array of custom fields to be used on this task. Values that cannot be applied are skipped
	// and reported under warnings rather than failing the import.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// Whether the task is visible in the customer portal. Defaults to false.
	CustomerPortalVisible *bool `json:"customer_portal_visible,omitempty" url:"customer_portal_visible,omitempty"`
	// Due date for this task, in RFC 3339 format.
	DueDate *time.Time `json:"due_date,omitempty" url:"due_date,omitempty"`
	// Milestone ID for this task.
	MilestoneID *string `json:"milestone_id,omitempty" url:"milestone_id,omitempty"`
	// Parent task ID, to import this task as a subtask.
	ParentTaskID *string `json:"parent_task_id,omitempty" url:"parent_task_id,omitempty"`
	// Project ID for this task.
	ProjectID *string `json:"project_id,omitempty" url:"project_id,omitempty"`
	// The time work started on the task, in RFC 3339 format. Must be empty when status is not started.
	StartedAt *time.Time `json:"started_at,omitempty" url:"started_at,omitempty"`
	// Status for this task. Accepts the default statuses or a custom status slug. Defaults to not_started.
	Status *string `json:"status,omitempty" url:"status,omitempty"`
	// Title for this task.
	Title string `json:"title" url:"title"`
	// The time the task was last updated in the system it is being imported from, in RFC 3339 format.
	// Defaults to now.
	UpdatedAt *time.Time `json:"updated_at,omitempty" url:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportTaskRequestBody) GetAccountID

func (i *ImportTaskRequestBody) GetAccountID() *string

func (*ImportTaskRequestBody) GetAssigneeID

func (i *ImportTaskRequestBody) GetAssigneeID() *string

func (*ImportTaskRequestBody) GetBodyHTML

func (i *ImportTaskRequestBody) GetBodyHTML() *string

func (*ImportTaskRequestBody) GetCompletedAt

func (i *ImportTaskRequestBody) GetCompletedAt() *time.Time

func (*ImportTaskRequestBody) GetCreatedAt

func (i *ImportTaskRequestBody) GetCreatedAt() *time.Time

func (*ImportTaskRequestBody) GetCustomFields

func (i *ImportTaskRequestBody) GetCustomFields() []*CustomFieldValue

func (*ImportTaskRequestBody) GetCustomerPortalVisible

func (i *ImportTaskRequestBody) GetCustomerPortalVisible() *bool

func (*ImportTaskRequestBody) GetDueDate

func (i *ImportTaskRequestBody) GetDueDate() *time.Time

func (*ImportTaskRequestBody) GetExtraProperties

func (i *ImportTaskRequestBody) GetExtraProperties() map[string]interface{}

func (*ImportTaskRequestBody) GetMilestoneID

func (i *ImportTaskRequestBody) GetMilestoneID() *string

func (*ImportTaskRequestBody) GetParentTaskID

func (i *ImportTaskRequestBody) GetParentTaskID() *string

func (*ImportTaskRequestBody) GetProjectID

func (i *ImportTaskRequestBody) GetProjectID() *string

func (*ImportTaskRequestBody) GetStartedAt

func (i *ImportTaskRequestBody) GetStartedAt() *time.Time

func (*ImportTaskRequestBody) GetStatus

func (i *ImportTaskRequestBody) GetStatus() *string

func (*ImportTaskRequestBody) GetTitle

func (i *ImportTaskRequestBody) GetTitle() string

func (*ImportTaskRequestBody) GetUpdatedAt

func (i *ImportTaskRequestBody) GetUpdatedAt() *time.Time

func (*ImportTaskRequestBody) MarshalJSON

func (i *ImportTaskRequestBody) MarshalJSON() ([]byte, error)

func (*ImportTaskRequestBody) SetAccountID

func (i *ImportTaskRequestBody) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetAssigneeID

func (i *ImportTaskRequestBody) SetAssigneeID(assigneeID *string)

SetAssigneeID sets the AssigneeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetBodyHTML

func (i *ImportTaskRequestBody) SetBodyHTML(bodyHTML *string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetCompletedAt

func (i *ImportTaskRequestBody) SetCompletedAt(completedAt *time.Time)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetCreatedAt

func (i *ImportTaskRequestBody) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetCustomFields

func (i *ImportTaskRequestBody) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetCustomerPortalVisible

func (i *ImportTaskRequestBody) SetCustomerPortalVisible(customerPortalVisible *bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetDueDate

func (i *ImportTaskRequestBody) SetDueDate(dueDate *time.Time)

SetDueDate sets the DueDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetMilestoneID

func (i *ImportTaskRequestBody) SetMilestoneID(milestoneID *string)

SetMilestoneID sets the MilestoneID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetParentTaskID

func (i *ImportTaskRequestBody) SetParentTaskID(parentTaskID *string)

SetParentTaskID sets the ParentTaskID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetProjectID

func (i *ImportTaskRequestBody) SetProjectID(projectID *string)

SetProjectID sets the ProjectID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetStartedAt

func (i *ImportTaskRequestBody) SetStartedAt(startedAt *time.Time)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetStatus

func (i *ImportTaskRequestBody) SetStatus(status *string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetTitle

func (i *ImportTaskRequestBody) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) SetUpdatedAt

func (i *ImportTaskRequestBody) SetUpdatedAt(updatedAt *time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskRequestBody) String

func (i *ImportTaskRequestBody) String() string

func (*ImportTaskRequestBody) UnmarshalJSON

func (i *ImportTaskRequestBody) UnmarshalJSON(data []byte) error

type ImportTaskResponseBody

type ImportTaskResponseBody struct {
	Data *Task `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string          `json:"request_id" url:"request_id"`
	Warnings  *ImportWarnings `json:"warnings,omitempty" url:"warnings,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportTaskResponseBody) GetData

func (i *ImportTaskResponseBody) GetData() *Task

func (*ImportTaskResponseBody) GetExtraProperties

func (i *ImportTaskResponseBody) GetExtraProperties() map[string]interface{}

func (*ImportTaskResponseBody) GetRequestID

func (i *ImportTaskResponseBody) GetRequestID() string

func (*ImportTaskResponseBody) GetWarnings

func (i *ImportTaskResponseBody) GetWarnings() *ImportWarnings

func (*ImportTaskResponseBody) MarshalJSON

func (i *ImportTaskResponseBody) MarshalJSON() ([]byte, error)

func (*ImportTaskResponseBody) SetData

func (i *ImportTaskResponseBody) SetData(data *Task)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskResponseBody) SetRequestID

func (i *ImportTaskResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskResponseBody) SetWarnings

func (i *ImportTaskResponseBody) SetWarnings(warnings *ImportWarnings)

SetWarnings sets the Warnings field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportTaskResponseBody) String

func (i *ImportTaskResponseBody) String() string

func (*ImportTaskResponseBody) UnmarshalJSON

func (i *ImportTaskResponseBody) UnmarshalJSON(data []byte) error

type ImportWarnings

type ImportWarnings struct {
	// Attachment URLs that were skipped because they failed security validation. Present only when at least one was skipped.
	SkippedAttachments []string `json:"skipped_attachments,omitempty" url:"skipped_attachments,omitempty"`
	// Custom field slugs that were skipped because they are unknown, belong to another object type, or are read-only. Present only when at least one was skipped.
	SkippedCustomFields []string `json:"skipped_custom_fields,omitempty" url:"skipped_custom_fields,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportWarnings) GetExtraProperties

func (i *ImportWarnings) GetExtraProperties() map[string]interface{}

func (*ImportWarnings) GetSkippedAttachments

func (i *ImportWarnings) GetSkippedAttachments() []string

func (*ImportWarnings) GetSkippedCustomFields

func (i *ImportWarnings) GetSkippedCustomFields() []string

func (*ImportWarnings) MarshalJSON

func (i *ImportWarnings) MarshalJSON() ([]byte, error)

func (*ImportWarnings) SetSkippedAttachments

func (i *ImportWarnings) SetSkippedAttachments(skippedAttachments []string)

SetSkippedAttachments sets the SkippedAttachments field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportWarnings) SetSkippedCustomFields

func (i *ImportWarnings) SetSkippedCustomFields(skippedCustomFields []string)

SetSkippedCustomFields sets the SkippedCustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImportWarnings) String

func (i *ImportWarnings) String() string

func (*ImportWarnings) UnmarshalJSON

func (i *ImportWarnings) UnmarshalJSON(data []byte) error

type IntegrationUserID

type IntegrationUserID struct {
	// The user ID in the external system.
	ID string `json:"id" url:"id"`
	// The integration source (e.g., "slack", "intercom", "hubspot").
	Source string `json:"source" url:"source"`
	// contains filtered or unexported fields
}

func (*IntegrationUserID) GetExtraProperties

func (i *IntegrationUserID) GetExtraProperties() map[string]interface{}

func (*IntegrationUserID) GetID

func (i *IntegrationUserID) GetID() string

func (*IntegrationUserID) GetSource

func (i *IntegrationUserID) GetSource() string

func (*IntegrationUserID) MarshalJSON

func (i *IntegrationUserID) MarshalJSON() ([]byte, error)

func (*IntegrationUserID) SetID

func (i *IntegrationUserID) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IntegrationUserID) SetSource

func (i *IntegrationUserID) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IntegrationUserID) String

func (i *IntegrationUserID) String() string

func (*IntegrationUserID) UnmarshalJSON

func (i *IntegrationUserID) UnmarshalJSON(data []byte) error

type InternalServerError

type InternalServerError struct {
	*core.APIError
	Body *ErrorAPIResponseBody
}

An unexpected internal error occurred.

func (*InternalServerError) GetBody

func (*InternalServerError) MarshalJSON

func (i *InternalServerError) MarshalJSON() ([]byte, error)

func (*InternalServerError) UnmarshalJSON

func (i *InternalServerError) UnmarshalJSON(data []byte) error

func (*InternalServerError) Unwrap

func (i *InternalServerError) Unwrap() error

type Issue

type Issue struct {
	Account *MiniAccount `json:"account,omitempty" url:"account,omitempty"`
	// Active time spent on the issue broken down per user, if any.
	ActiveTimeByUser []*ActiveTimeByUser `json:"active_time_by_user,omitempty" url:"active_time_by_user,omitempty"`
	// The total active time spent on the issue in seconds, if any. Equals the sum of the per-user active time.
	ActiveTimeSeconds *int64    `json:"active_time_seconds,omitempty" url:"active_time_seconds,omitempty"`
	Assignee          *MiniUser `json:"assignee,omitempty" url:"assignee,omitempty"`
	// The attachment URLs attached to this issue, if any. Signed download URLs. Fetch with a plain GET, no Authorization header.
	AttachmentURLs []string `json:"attachment_urls,omitempty" url:"attachment_urls,omitempty"`
	// Whether any message on the issue has an unverified author identity. True if any message author's identity has NOT been verified (e.g., from public forms).
	AuthorUnverified *bool `json:"author_unverified,omitempty" url:"author_unverified,omitempty"`
	// The body of the issue in HTML format.
	BodyHTML string `json:"body_html" url:"body_html"`
	// The total business-hours active time spent on the issue in seconds, if any. Equals the sum of the per-user business-hours active time.
	BusinessHoursActiveTimeSeconds *int64 `json:"business_hours_active_time_seconds,omitempty" url:"business_hours_active_time_seconds,omitempty"`
	// The business hours time in seconds it took for the first response to the issue, if any.
	BusinessHoursFirstResponseSeconds *int64 `json:"business_hours_first_response_seconds,omitempty" url:"business_hours_first_response_seconds,omitempty"`
	// The business hours time in seconds it took for the issue to be resolved, if any.
	BusinessHoursResolutionSeconds *int64 `json:"business_hours_resolution_seconds,omitempty" url:"business_hours_resolution_seconds,omitempty"`
	// A map of status slug to the business hours time in seconds the issue has spent in that status. Includes both base statuses (e.g. "new", "waiting_on_you") and custom statuses.
	BusinessHoursTimeInStatusSeconds map[string]int64     `json:"business_hours_time_in_status_seconds,omitempty" url:"business_hours_time_in_status_seconds,omitempty"`
	ChatWidgetInfo                   *IssueChatWidgetInfo `json:"chat_widget_info,omitempty" url:"chat_widget_info,omitempty"`
	// The child issues in this group, if this issue is an issue group.
	ChildIssues []*MiniIssue `json:"child_issues,omitempty" url:"child_issues,omitempty"`
	// The time the issue was created.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The CSAT responses of the issue, if any.
	CsatResponses []*CsatResponse `json:"csat_responses,omitempty" url:"csat_responses,omitempty"`
	// Custom field values associated with the issue.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// Whether the issue is visible in the customer portal.
	CustomerPortalVisible bool `json:"customer_portal_visible" url:"customer_portal_visible"`
	// Incidents from incident.io or Rootly linked to this issue.
	ExternalIncidents []*ExternalIncident `json:"external_incidents,omitempty" url:"external_incidents,omitempty"`
	// The external issues associated with the issue, if any.
	ExternalIssues []*ExternalIssue `json:"external_issues,omitempty" url:"external_issues,omitempty"`
	// The time of the first resolution of the issue, if any. Frozen at the issue's first resolution and never updated on reopen/re-resolve.
	FirstResolutionTime *time.Time `json:"first_resolution_time,omitempty" url:"first_resolution_time,omitempty"`
	// The ID of the user the issue was assigned to when its first response SLA breached, if it breached.
	FirstResponseAssigneeIDAtBreach *string `json:"first_response_assignee_id_at_breach,omitempty" url:"first_response_assignee_id_at_breach,omitempty"`
	// The time by which the issue's first response SLA will breach, if any. Only present for issues with an active first response SLA.
	FirstResponseBreachTime *time.Time `json:"first_response_breach_time,omitempty" url:"first_response_breach_time,omitempty"`
	// The ID of the user whose action resolved the issue's first response SLA. Absent when resolved by a contact or automation.
	FirstResponseResolvingUserID *string `json:"first_response_resolving_user_id,omitempty" url:"first_response_resolving_user_id,omitempty"`
	// The time in seconds it took for the first response to the issue, if any.
	FirstResponseSeconds *int64 `json:"first_response_seconds,omitempty" url:"first_response_seconds,omitempty"`
	// The time of the first response to the issue, if any.
	FirstResponseTime *time.Time `json:"first_response_time,omitempty" url:"first_response_time,omitempty"`
	FollowUp          *SLATimes  `json:"follow_up,omitempty" url:"follow_up,omitempty"`
	// The ID of the issue.
	ID string `json:"id" url:"id"`
	// Whether this issue is an issue group.
	IsIssueGroup bool `json:"is_issue_group" url:"is_issue_group"`
	// The time of the latest message in the issue, if any.
	LatestMessageTime *time.Time `json:"latest_message_time,omitempty" url:"latest_message_time,omitempty"`
	// The link to the issue in Pylon.
	Link      string    `json:"link" url:"link"`
	NextReply *SLATimes `json:"next_reply,omitempty" url:"next_reply,omitempty"`
	// The number of the issue.
	Number int64 `json:"number" url:"number"`
	// The number of times the issue has been touched.
	NumberOfTouches  int64        `json:"number_of_touches" url:"number_of_touches"`
	ParentIssueGroup *MiniIssue   `json:"parent_issue_group,omitempty" url:"parent_issue_group,omitempty"`
	Requester        *MiniContact `json:"requester,omitempty" url:"requester,omitempty"`
	// The ID of the user the issue was assigned to when its resolution SLA breached, if it breached.
	ResolutionAssigneeIDAtBreach *string `json:"resolution_assignee_id_at_breach,omitempty" url:"resolution_assignee_id_at_breach,omitempty"`
	// The time by which the issue's resolution SLA will breach, if any. Only present for open issues with an active resolution SLA.
	ResolutionBreachTime *time.Time `json:"resolution_breach_time,omitempty" url:"resolution_breach_time,omitempty"`
	// The ID of the user whose action resolved the issue's resolution SLA. Absent when resolved by a contact or automation.
	ResolutionResolvingUserID *string `json:"resolution_resolving_user_id,omitempty" url:"resolution_resolving_user_id,omitempty"`
	// The time in seconds it took for the issue to be resolved, if any.
	ResolutionSeconds *int64 `json:"resolution_seconds,omitempty" url:"resolution_seconds,omitempty"`
	// The time of the resolution of the issue, if any.
	ResolutionTime *time.Time `json:"resolution_time,omitempty" url:"resolution_time,omitempty"`
	Slack          *SlackInfo `json:"slack,omitempty" url:"slack,omitempty"`
	// The time the issue was snoozed until in RFC3339 format, if any.
	SnoozedUntilTime *time.Time `json:"snoozed_until_time,omitempty" url:"snoozed_until_time,omitempty"`
	// The source of the issue.
	//
	// Known values: `slack`, `microsoft_teams`, `microsoft_teams_chat`, `chat_widget`, `customer_portal`, `email`, `manual`, `form`, `discord`, `google_chat`, `whatsapp`, `sms`, `telegram`, `phone`. This list is not exhaustive.
	Source string `json:"source" url:"source"`
	// The state of the issue. Standard values are `new`, `waiting_on_you`, `waiting_on_customer`, `on_hold`, and `closed`; custom status slugs are also supported.
	State string `json:"state" url:"state"`
	// Tags associated with the issue.
	Tags []string  `json:"tags,omitempty" url:"tags,omitempty"`
	Team *MiniTeam `json:"team,omitempty" url:"team,omitempty"`
	// The team-scoped SLAs on the issue, if any. One entry per team, mirroring the issue-level first response and resolution SLA fields.
	TeamSlas []*TeamSLA `json:"team_slas,omitempty" url:"team_slas,omitempty"`
	// A map of status slug to the time in seconds the issue has spent in that status. Includes both base statuses (e.g. "new", "waiting_on_you") and custom statuses.
	TimeInStatusSeconds map[string]int64 `json:"time_in_status_seconds,omitempty" url:"time_in_status_seconds,omitempty"`
	// The title of the issue.
	Title string `json:"title" url:"title"`
	// The type of the issue.
	//
	// Known values: `conversation`, `ticket`. This list is not exhaustive.
	Type string `json:"type" url:"type"`
	// The time the issue was last updated.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// The email address connected to the Pylon workspace through which the issue's email conversation is routed. For inbound issues, this is the address that received the original email.
	WorkspaceEmail *string `json:"workspace_email,omitempty" url:"workspace_email,omitempty"`
	// The WhatsApp, SMS, or voice phone number connected to the Pylon workspace through which the issue's conversation is routed. For inbound issues, this is the number the customer messaged or called.
	WorkspacePhoneNumber *string `json:"workspace_phone_number,omitempty" url:"workspace_phone_number,omitempty"`
	// contains filtered or unexported fields
}

func (*Issue) GetAccount

func (i *Issue) GetAccount() *MiniAccount

func (*Issue) GetActiveTimeByUser

func (i *Issue) GetActiveTimeByUser() []*ActiveTimeByUser

func (*Issue) GetActiveTimeSeconds

func (i *Issue) GetActiveTimeSeconds() *int64

func (*Issue) GetAssignee

func (i *Issue) GetAssignee() *MiniUser

func (*Issue) GetAttachmentURLs

func (i *Issue) GetAttachmentURLs() []string

func (*Issue) GetAuthorUnverified

func (i *Issue) GetAuthorUnverified() *bool

func (*Issue) GetBodyHTML

func (i *Issue) GetBodyHTML() string

func (*Issue) GetBusinessHoursActiveTimeSeconds

func (i *Issue) GetBusinessHoursActiveTimeSeconds() *int64

func (*Issue) GetBusinessHoursFirstResponseSeconds

func (i *Issue) GetBusinessHoursFirstResponseSeconds() *int64

func (*Issue) GetBusinessHoursResolutionSeconds

func (i *Issue) GetBusinessHoursResolutionSeconds() *int64

func (*Issue) GetBusinessHoursTimeInStatusSeconds

func (i *Issue) GetBusinessHoursTimeInStatusSeconds() map[string]int64

func (*Issue) GetChatWidgetInfo

func (i *Issue) GetChatWidgetInfo() *IssueChatWidgetInfo

func (*Issue) GetChildIssues

func (i *Issue) GetChildIssues() []*MiniIssue

func (*Issue) GetCreatedAt

func (i *Issue) GetCreatedAt() time.Time

func (*Issue) GetCsatResponses

func (i *Issue) GetCsatResponses() []*CsatResponse

func (*Issue) GetCustomFields

func (i *Issue) GetCustomFields() map[string]*CustomFieldValue

func (*Issue) GetCustomerPortalVisible

func (i *Issue) GetCustomerPortalVisible() bool

func (*Issue) GetExternalIncidents

func (i *Issue) GetExternalIncidents() []*ExternalIncident

func (*Issue) GetExternalIssues

func (i *Issue) GetExternalIssues() []*ExternalIssue

func (*Issue) GetExtraProperties

func (i *Issue) GetExtraProperties() map[string]interface{}

func (*Issue) GetFirstResolutionTime

func (i *Issue) GetFirstResolutionTime() *time.Time

func (*Issue) GetFirstResponseAssigneeIDAtBreach

func (i *Issue) GetFirstResponseAssigneeIDAtBreach() *string

func (*Issue) GetFirstResponseBreachTime

func (i *Issue) GetFirstResponseBreachTime() *time.Time

func (*Issue) GetFirstResponseResolvingUserID

func (i *Issue) GetFirstResponseResolvingUserID() *string

func (*Issue) GetFirstResponseSeconds

func (i *Issue) GetFirstResponseSeconds() *int64

func (*Issue) GetFirstResponseTime

func (i *Issue) GetFirstResponseTime() *time.Time

func (*Issue) GetFollowUp

func (i *Issue) GetFollowUp() *SLATimes

func (*Issue) GetID

func (i *Issue) GetID() string

func (*Issue) GetIsIssueGroup

func (i *Issue) GetIsIssueGroup() bool

func (*Issue) GetLatestMessageTime

func (i *Issue) GetLatestMessageTime() *time.Time
func (i *Issue) GetLink() string

func (*Issue) GetNextReply

func (i *Issue) GetNextReply() *SLATimes

func (*Issue) GetNumber

func (i *Issue) GetNumber() int64

func (*Issue) GetNumberOfTouches

func (i *Issue) GetNumberOfTouches() int64

func (*Issue) GetParentIssueGroup

func (i *Issue) GetParentIssueGroup() *MiniIssue

func (*Issue) GetRequester

func (i *Issue) GetRequester() *MiniContact

func (*Issue) GetResolutionAssigneeIDAtBreach

func (i *Issue) GetResolutionAssigneeIDAtBreach() *string

func (*Issue) GetResolutionBreachTime

func (i *Issue) GetResolutionBreachTime() *time.Time

func (*Issue) GetResolutionResolvingUserID

func (i *Issue) GetResolutionResolvingUserID() *string

func (*Issue) GetResolutionSeconds

func (i *Issue) GetResolutionSeconds() *int64

func (*Issue) GetResolutionTime

func (i *Issue) GetResolutionTime() *time.Time

func (*Issue) GetSlack

func (i *Issue) GetSlack() *SlackInfo

func (*Issue) GetSnoozedUntilTime

func (i *Issue) GetSnoozedUntilTime() *time.Time

func (*Issue) GetSource

func (i *Issue) GetSource() string

func (*Issue) GetState

func (i *Issue) GetState() string

func (*Issue) GetTags

func (i *Issue) GetTags() []string

func (*Issue) GetTeam

func (i *Issue) GetTeam() *MiniTeam

func (*Issue) GetTeamSlas

func (i *Issue) GetTeamSlas() []*TeamSLA

func (*Issue) GetTimeInStatusSeconds

func (i *Issue) GetTimeInStatusSeconds() map[string]int64

func (*Issue) GetTitle

func (i *Issue) GetTitle() string

func (*Issue) GetType

func (i *Issue) GetType() string

func (*Issue) GetUpdatedAt

func (i *Issue) GetUpdatedAt() time.Time

func (*Issue) GetWorkspaceEmail

func (i *Issue) GetWorkspaceEmail() *string

func (*Issue) GetWorkspacePhoneNumber

func (i *Issue) GetWorkspacePhoneNumber() *string

func (*Issue) MarshalJSON

func (i *Issue) MarshalJSON() ([]byte, error)

func (*Issue) SetAccount

func (i *Issue) SetAccount(account *MiniAccount)

SetAccount sets the Account field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetActiveTimeByUser

func (i *Issue) SetActiveTimeByUser(activeTimeByUser []*ActiveTimeByUser)

SetActiveTimeByUser sets the ActiveTimeByUser field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetActiveTimeSeconds

func (i *Issue) SetActiveTimeSeconds(activeTimeSeconds *int64)

SetActiveTimeSeconds sets the ActiveTimeSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetAssignee

func (i *Issue) SetAssignee(assignee *MiniUser)

SetAssignee sets the Assignee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetAttachmentURLs

func (i *Issue) SetAttachmentURLs(attachmentURLs []string)

SetAttachmentURLs sets the AttachmentURLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetAuthorUnverified

func (i *Issue) SetAuthorUnverified(authorUnverified *bool)

SetAuthorUnverified sets the AuthorUnverified field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetBodyHTML

func (i *Issue) SetBodyHTML(bodyHTML string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetBusinessHoursActiveTimeSeconds

func (i *Issue) SetBusinessHoursActiveTimeSeconds(businessHoursActiveTimeSeconds *int64)

SetBusinessHoursActiveTimeSeconds sets the BusinessHoursActiveTimeSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetBusinessHoursFirstResponseSeconds

func (i *Issue) SetBusinessHoursFirstResponseSeconds(businessHoursFirstResponseSeconds *int64)

SetBusinessHoursFirstResponseSeconds sets the BusinessHoursFirstResponseSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetBusinessHoursResolutionSeconds

func (i *Issue) SetBusinessHoursResolutionSeconds(businessHoursResolutionSeconds *int64)

SetBusinessHoursResolutionSeconds sets the BusinessHoursResolutionSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetBusinessHoursTimeInStatusSeconds

func (i *Issue) SetBusinessHoursTimeInStatusSeconds(businessHoursTimeInStatusSeconds map[string]int64)

SetBusinessHoursTimeInStatusSeconds sets the BusinessHoursTimeInStatusSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetChatWidgetInfo

func (i *Issue) SetChatWidgetInfo(chatWidgetInfo *IssueChatWidgetInfo)

SetChatWidgetInfo sets the ChatWidgetInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetChildIssues

func (i *Issue) SetChildIssues(childIssues []*MiniIssue)

SetChildIssues sets the ChildIssues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetCreatedAt

func (i *Issue) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetCsatResponses

func (i *Issue) SetCsatResponses(csatResponses []*CsatResponse)

SetCsatResponses sets the CsatResponses field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetCustomFields

func (i *Issue) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetCustomerPortalVisible

func (i *Issue) SetCustomerPortalVisible(customerPortalVisible bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetExternalIncidents

func (i *Issue) SetExternalIncidents(externalIncidents []*ExternalIncident)

SetExternalIncidents sets the ExternalIncidents field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetExternalIssues

func (i *Issue) SetExternalIssues(externalIssues []*ExternalIssue)

SetExternalIssues sets the ExternalIssues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetFirstResolutionTime

func (i *Issue) SetFirstResolutionTime(firstResolutionTime *time.Time)

SetFirstResolutionTime sets the FirstResolutionTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetFirstResponseAssigneeIDAtBreach

func (i *Issue) SetFirstResponseAssigneeIDAtBreach(firstResponseAssigneeIDAtBreach *string)

SetFirstResponseAssigneeIDAtBreach sets the FirstResponseAssigneeIDAtBreach field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetFirstResponseBreachTime

func (i *Issue) SetFirstResponseBreachTime(firstResponseBreachTime *time.Time)

SetFirstResponseBreachTime sets the FirstResponseBreachTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetFirstResponseResolvingUserID

func (i *Issue) SetFirstResponseResolvingUserID(firstResponseResolvingUserID *string)

SetFirstResponseResolvingUserID sets the FirstResponseResolvingUserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetFirstResponseSeconds

func (i *Issue) SetFirstResponseSeconds(firstResponseSeconds *int64)

SetFirstResponseSeconds sets the FirstResponseSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetFirstResponseTime

func (i *Issue) SetFirstResponseTime(firstResponseTime *time.Time)

SetFirstResponseTime sets the FirstResponseTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetFollowUp

func (i *Issue) SetFollowUp(followUp *SLATimes)

SetFollowUp sets the FollowUp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetID

func (i *Issue) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetIsIssueGroup

func (i *Issue) SetIsIssueGroup(isIssueGroup bool)

SetIsIssueGroup sets the IsIssueGroup field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetLatestMessageTime

func (i *Issue) SetLatestMessageTime(latestMessageTime *time.Time)

SetLatestMessageTime sets the LatestMessageTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (i *Issue) SetLink(link string)

SetLink sets the Link field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetNextReply

func (i *Issue) SetNextReply(nextReply *SLATimes)

SetNextReply sets the NextReply field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetNumber

func (i *Issue) SetNumber(number int64)

SetNumber sets the Number field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetNumberOfTouches

func (i *Issue) SetNumberOfTouches(numberOfTouches int64)

SetNumberOfTouches sets the NumberOfTouches field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetParentIssueGroup

func (i *Issue) SetParentIssueGroup(parentIssueGroup *MiniIssue)

SetParentIssueGroup sets the ParentIssueGroup field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetRequester

func (i *Issue) SetRequester(requester *MiniContact)

SetRequester sets the Requester field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetResolutionAssigneeIDAtBreach

func (i *Issue) SetResolutionAssigneeIDAtBreach(resolutionAssigneeIDAtBreach *string)

SetResolutionAssigneeIDAtBreach sets the ResolutionAssigneeIDAtBreach field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetResolutionBreachTime

func (i *Issue) SetResolutionBreachTime(resolutionBreachTime *time.Time)

SetResolutionBreachTime sets the ResolutionBreachTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetResolutionResolvingUserID

func (i *Issue) SetResolutionResolvingUserID(resolutionResolvingUserID *string)

SetResolutionResolvingUserID sets the ResolutionResolvingUserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetResolutionSeconds

func (i *Issue) SetResolutionSeconds(resolutionSeconds *int64)

SetResolutionSeconds sets the ResolutionSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetResolutionTime

func (i *Issue) SetResolutionTime(resolutionTime *time.Time)

SetResolutionTime sets the ResolutionTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetSlack

func (i *Issue) SetSlack(slack *SlackInfo)

SetSlack sets the Slack field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetSnoozedUntilTime

func (i *Issue) SetSnoozedUntilTime(snoozedUntilTime *time.Time)

SetSnoozedUntilTime sets the SnoozedUntilTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetSource

func (i *Issue) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetState

func (i *Issue) SetState(state string)

SetState sets the State field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetTags

func (i *Issue) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetTeam

func (i *Issue) SetTeam(team *MiniTeam)

SetTeam sets the Team field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetTeamSlas

func (i *Issue) SetTeamSlas(teamSlas []*TeamSLA)

SetTeamSlas sets the TeamSlas field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetTimeInStatusSeconds

func (i *Issue) SetTimeInStatusSeconds(timeInStatusSeconds map[string]int64)

SetTimeInStatusSeconds sets the TimeInStatusSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetTitle

func (i *Issue) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetType

func (i *Issue) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetUpdatedAt

func (i *Issue) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetWorkspaceEmail

func (i *Issue) SetWorkspaceEmail(workspaceEmail *string)

SetWorkspaceEmail sets the WorkspaceEmail field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) SetWorkspacePhoneNumber

func (i *Issue) SetWorkspacePhoneNumber(workspacePhoneNumber *string)

SetWorkspacePhoneNumber sets the WorkspacePhoneNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Issue) String

func (i *Issue) String() string

func (*Issue) UnmarshalJSON

func (i *Issue) UnmarshalJSON(data []byte) error

type IssueChatWidgetInfo

type IssueChatWidgetInfo struct {
	// The URL of the page that the user was on when they started the chat widget issue.
	PageURL string `json:"page_url" url:"page_url"`
	// contains filtered or unexported fields
}

func (*IssueChatWidgetInfo) GetExtraProperties

func (i *IssueChatWidgetInfo) GetExtraProperties() map[string]interface{}

func (*IssueChatWidgetInfo) GetPageURL

func (i *IssueChatWidgetInfo) GetPageURL() string

func (*IssueChatWidgetInfo) MarshalJSON

func (i *IssueChatWidgetInfo) MarshalJSON() ([]byte, error)

func (*IssueChatWidgetInfo) SetPageURL

func (i *IssueChatWidgetInfo) SetPageURL(pageURL string)

SetPageURL sets the PageURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueChatWidgetInfo) String

func (i *IssueChatWidgetInfo) String() string

func (*IssueChatWidgetInfo) UnmarshalJSON

func (i *IssueChatWidgetInfo) UnmarshalJSON(data []byte) error

type IssueGroupMutationResponseBody

type IssueGroupMutationResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// Whether the mutation succeeded.
	Success bool `json:"success" url:"success"`
	// contains filtered or unexported fields
}

func (*IssueGroupMutationResponseBody) GetExtraProperties

func (i *IssueGroupMutationResponseBody) GetExtraProperties() map[string]interface{}

func (*IssueGroupMutationResponseBody) GetRequestID

func (i *IssueGroupMutationResponseBody) GetRequestID() string

func (*IssueGroupMutationResponseBody) GetSuccess

func (i *IssueGroupMutationResponseBody) GetSuccess() bool

func (*IssueGroupMutationResponseBody) MarshalJSON

func (i *IssueGroupMutationResponseBody) MarshalJSON() ([]byte, error)

func (*IssueGroupMutationResponseBody) SetRequestID

func (i *IssueGroupMutationResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueGroupMutationResponseBody) SetSuccess

func (i *IssueGroupMutationResponseBody) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueGroupMutationResponseBody) String

func (*IssueGroupMutationResponseBody) UnmarshalJSON

func (i *IssueGroupMutationResponseBody) UnmarshalJSON(data []byte) error

type IssueGroupsCreateRequest

type IssueGroupsCreateRequest struct {
	// The IDs of the issues to include in the group. At least one is required.
	ChildIssueIDs []string `json:"child_issue_ids" url:"-"`
	// The title of the issue group.
	Title string `json:"title" url:"-"`
	// contains filtered or unexported fields
}

func (*IssueGroupsCreateRequest) MarshalJSON

func (i *IssueGroupsCreateRequest) MarshalJSON() ([]byte, error)

func (*IssueGroupsCreateRequest) SetChildIssueIDs

func (i *IssueGroupsCreateRequest) SetChildIssueIDs(childIssueIDs []string)

SetChildIssueIDs sets the ChildIssueIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueGroupsCreateRequest) SetTitle

func (i *IssueGroupsCreateRequest) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueGroupsCreateRequest) UnmarshalJSON

func (i *IssueGroupsCreateRequest) UnmarshalJSON(data []byte) error

type IssueStatus

type IssueStatus struct {
	// The category of the issue status.
	Category string `json:"category" url:"category"`
	// Indicates if the issue status is archived.
	IsArchived bool `json:"is_archived" url:"is_archived"`
	// Indicates if the issue status is a default status.
	IsDefaultStatus bool `json:"is_default_status" url:"is_default_status"`
	// The label of the issue status.
	Label string `json:"label" url:"label"`
	// The slug of the issue status.
	Slug string `json:"slug" url:"slug"`
	// contains filtered or unexported fields
}

func (*IssueStatus) GetCategory

func (i *IssueStatus) GetCategory() string

func (*IssueStatus) GetExtraProperties

func (i *IssueStatus) GetExtraProperties() map[string]interface{}

func (*IssueStatus) GetIsArchived

func (i *IssueStatus) GetIsArchived() bool

func (*IssueStatus) GetIsDefaultStatus

func (i *IssueStatus) GetIsDefaultStatus() bool

func (*IssueStatus) GetLabel

func (i *IssueStatus) GetLabel() string

func (*IssueStatus) GetSlug

func (i *IssueStatus) GetSlug() string

func (*IssueStatus) MarshalJSON

func (i *IssueStatus) MarshalJSON() ([]byte, error)

func (*IssueStatus) SetCategory

func (i *IssueStatus) SetCategory(category string)

SetCategory sets the Category field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueStatus) SetIsArchived

func (i *IssueStatus) SetIsArchived(isArchived bool)

SetIsArchived sets the IsArchived field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueStatus) SetIsDefaultStatus

func (i *IssueStatus) SetIsDefaultStatus(isDefaultStatus bool)

SetIsDefaultStatus sets the IsDefaultStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueStatus) SetLabel

func (i *IssueStatus) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueStatus) SetSlug

func (i *IssueStatus) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueStatus) String

func (i *IssueStatus) String() string

func (*IssueStatus) UnmarshalJSON

func (i *IssueStatus) UnmarshalJSON(data []byte) error

type IssueThread

type IssueThread struct {
	// The ID of the channel that the thread belongs to, if the thread is being synced with a chat platform.
	ChannelID *string `json:"channel_id,omitempty" url:"channel_id,omitempty"`
	// The ID of the thread.
	ID string `json:"id" url:"id"`
	// The issue ID that the thread belongs to.
	IssueID string `json:"issue_id" url:"issue_id"`
	// The name of the thread.
	Name string `json:"name" url:"name"`
	// The source of the thread.
	Source *string `json:"source,omitempty" url:"source,omitempty"`
	// The ID of the thread that the thread belongs to, if the thread is being synced with a chat platform. A thread ID for Slack would be the thread timestamp.
	ThreadID *string `json:"thread_id,omitempty" url:"thread_id,omitempty"`
	// contains filtered or unexported fields
}

A thread of notes on an issue, for internal discussions not visible to the customer. Threads can be created manually through the UI or from triggers. If a channel ID is set, this thread is being synced with a chat platform.

func (*IssueThread) GetChannelID

func (i *IssueThread) GetChannelID() *string

func (*IssueThread) GetExtraProperties

func (i *IssueThread) GetExtraProperties() map[string]interface{}

func (*IssueThread) GetID

func (i *IssueThread) GetID() string

func (*IssueThread) GetIssueID

func (i *IssueThread) GetIssueID() string

func (*IssueThread) GetName

func (i *IssueThread) GetName() string

func (*IssueThread) GetSource

func (i *IssueThread) GetSource() *string

func (*IssueThread) GetThreadID

func (i *IssueThread) GetThreadID() *string

func (*IssueThread) MarshalJSON

func (i *IssueThread) MarshalJSON() ([]byte, error)

func (*IssueThread) SetChannelID

func (i *IssueThread) SetChannelID(channelID *string)

SetChannelID sets the ChannelID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueThread) SetID

func (i *IssueThread) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueThread) SetIssueID

func (i *IssueThread) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueThread) SetName

func (i *IssueThread) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueThread) SetSource

func (i *IssueThread) SetSource(source *string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueThread) SetThreadID

func (i *IssueThread) SetThreadID(threadID *string)

SetThreadID sets the ThreadID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssueThread) String

func (i *IssueThread) String() string

func (*IssueThread) UnmarshalJSON

func (i *IssueThread) UnmarshalJSON(data []byte) error

type IssuesBulkUpdateRequest

type IssuesBulkUpdateRequest struct {
	// The ID of the user to assign the issues to. If empty string is passed in, the issues will be unassigned.
	AssigneeID *string `json:"assignee_id,omitempty" url:"-"`
	// Custom fields to set on the issues. Only passed in fields are modified. Clearing a custom field is not supported in bulk; use PATCH /issues/{id}.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// Whether the issues should be visible in the customer portal.
	CustomerPortalVisible *bool `json:"customer_portal_visible,omitempty" url:"-"`
	// The IDs of the issues to update. Must contain between 1 and 100 IDs.
	IssueIDs []string `json:"issue_ids" url:"-"`
	// The state to move the issues to. Standard values are `new`, `waiting_on_you`, `waiting_on_customer`, `on_hold`, and `closed`; custom status slugs are also supported.
	State *string `json:"state,omitempty" url:"-"`
	// Tags to apply to the issues, according to tags_apply_mode.
	Tags []string `json:"tags,omitempty" url:"-"`
	// The mode for applying tags. Valid values: "append_only", "remove_only", "replace". Defaults to "replace".
	TagsApplyMode *UpdateIssuesRequestTagsApplyMode `json:"tags_apply_mode,omitempty" url:"-"`
	// The ID of the team to assign the issues to. If empty string is passed in, the team will be removed. Team assignment is applied asynchronously.
	TeamID *string `json:"team_id,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesBulkUpdateRequest) MarshalJSON

func (i *IssuesBulkUpdateRequest) MarshalJSON() ([]byte, error)

func (*IssuesBulkUpdateRequest) SetAssigneeID

func (i *IssuesBulkUpdateRequest) SetAssigneeID(assigneeID *string)

SetAssigneeID sets the AssigneeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesBulkUpdateRequest) SetCustomFields

func (i *IssuesBulkUpdateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesBulkUpdateRequest) SetCustomerPortalVisible

func (i *IssuesBulkUpdateRequest) SetCustomerPortalVisible(customerPortalVisible *bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesBulkUpdateRequest) SetIssueIDs

func (i *IssuesBulkUpdateRequest) SetIssueIDs(issueIDs []string)

SetIssueIDs sets the IssueIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesBulkUpdateRequest) SetState

func (i *IssuesBulkUpdateRequest) SetState(state *string)

SetState sets the State field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesBulkUpdateRequest) SetTags

func (i *IssuesBulkUpdateRequest) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesBulkUpdateRequest) SetTagsApplyMode

func (i *IssuesBulkUpdateRequest) SetTagsApplyMode(tagsApplyMode *UpdateIssuesRequestTagsApplyMode)

SetTagsApplyMode sets the TagsApplyMode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesBulkUpdateRequest) SetTeamID

func (i *IssuesBulkUpdateRequest) SetTeamID(teamID *string)

SetTeamID sets the TeamID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesBulkUpdateRequest) UnmarshalJSON

func (i *IssuesBulkUpdateRequest) UnmarshalJSON(data []byte) error

type IssuesCreateAiResponseRequest

type IssuesCreateAiResponseRequest struct {
	// The ID or number of the issue to create an AI response for.
	IssueID string `json:"-" url:"-"`
	// The ID of the AI agent to use to create the AI response.
	AiAgentID string `json:"ai_agent_id" url:"-"`
	// Whether to post the AI response as an internal note on the issue.
	PostAsInternalNote *bool `json:"post_as_internal_note,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesCreateAiResponseRequest) MarshalJSON

func (i *IssuesCreateAiResponseRequest) MarshalJSON() ([]byte, error)

func (*IssuesCreateAiResponseRequest) SetAiAgentID

func (i *IssuesCreateAiResponseRequest) SetAiAgentID(aiAgentID string)

SetAiAgentID sets the AiAgentID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateAiResponseRequest) SetIssueID

func (i *IssuesCreateAiResponseRequest) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateAiResponseRequest) SetPostAsInternalNote

func (i *IssuesCreateAiResponseRequest) SetPostAsInternalNote(postAsInternalNote *bool)

SetPostAsInternalNote sets the PostAsInternalNote field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateAiResponseRequest) UnmarshalJSON

func (i *IssuesCreateAiResponseRequest) UnmarshalJSON(data []byte) error

type IssuesCreateDraftReplyRequest

type IssuesCreateDraftReplyRequest struct {
	// The ID of the issue.
	IssueID string `json:"-" url:"-"`
	// The draft's BCC recipients. See to_emails.
	BccEmails []string `json:"bcc_emails,omitempty" url:"-"`
	// The draft body in HTML.
	BodyHTML string `json:"body_html" url:"-"`
	// The draft's CC recipients. See to_emails.
	CcEmails []string `json:"cc_emails,omitempty" url:"-"`
	// The draft's To recipients. If any of to_emails, cc_emails, or bcc_emails is provided, the draft uses exactly those lists and an omitted list is saved empty; omit all three to use the composer's default recipients.
	ToEmails []string `json:"to_emails,omitempty" url:"-"`
	// The active Pylon user who should own and see the draft. Defaults to the API-token user when it is a human Pylon user; required for unlinked or service API tokens.
	UserID *string `json:"user_id,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesCreateDraftReplyRequest) MarshalJSON

func (i *IssuesCreateDraftReplyRequest) MarshalJSON() ([]byte, error)

func (*IssuesCreateDraftReplyRequest) SetBccEmails

func (i *IssuesCreateDraftReplyRequest) SetBccEmails(bccEmails []string)

SetBccEmails sets the BccEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateDraftReplyRequest) SetBodyHTML

func (i *IssuesCreateDraftReplyRequest) SetBodyHTML(bodyHTML string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateDraftReplyRequest) SetCcEmails

func (i *IssuesCreateDraftReplyRequest) SetCcEmails(ccEmails []string)

SetCcEmails sets the CcEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateDraftReplyRequest) SetIssueID

func (i *IssuesCreateDraftReplyRequest) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateDraftReplyRequest) SetToEmails

func (i *IssuesCreateDraftReplyRequest) SetToEmails(toEmails []string)

SetToEmails sets the ToEmails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateDraftReplyRequest) SetUserID

func (i *IssuesCreateDraftReplyRequest) SetUserID(userID *string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateDraftReplyRequest) UnmarshalJSON

func (i *IssuesCreateDraftReplyRequest) UnmarshalJSON(data []byte) error

type IssuesCreateNoteRequest

type IssuesCreateNoteRequest struct {
	// The ID of the issue.
	IssueID string `json:"-" url:"-"`
	// URLs of files to attach to this internal note.
	AttachmentURLs []string `json:"attachment_urls,omitempty" url:"-"`
	// The body of the message in HTML.
	BodyHTML string `json:"body_html" url:"-"`
	// The ID of an internal note whose thread should receive the new note. Use the top-level `id` from GET /issues/{id}/messages. Cannot be combined with thread_id.
	MessageID *string `json:"message_id,omitempty" url:"-"`
	// The ID of the internal thread to post the note to. Use the `id` field (not `thread_id`) from GET /issues/{id}/threads. Cannot be combined with message_id.
	ThreadID *string `json:"thread_id,omitempty" url:"-"`
	// Optional name for a new Pylon-only internal thread. Used only when neither thread_id nor message_id is provided and no Slack-backed internal thread exists.
	ThreadName *string `json:"thread_name,omitempty" url:"-"`
	// Optional user ID to post the message as. If not provided, the API token user will be used.
	UserID *string `json:"user_id,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesCreateNoteRequest) MarshalJSON

func (i *IssuesCreateNoteRequest) MarshalJSON() ([]byte, error)

func (*IssuesCreateNoteRequest) SetAttachmentURLs

func (i *IssuesCreateNoteRequest) SetAttachmentURLs(attachmentURLs []string)

SetAttachmentURLs sets the AttachmentURLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateNoteRequest) SetBodyHTML

func (i *IssuesCreateNoteRequest) SetBodyHTML(bodyHTML string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateNoteRequest) SetIssueID

func (i *IssuesCreateNoteRequest) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateNoteRequest) SetMessageID

func (i *IssuesCreateNoteRequest) SetMessageID(messageID *string)

SetMessageID sets the MessageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateNoteRequest) SetThreadID

func (i *IssuesCreateNoteRequest) SetThreadID(threadID *string)

SetThreadID sets the ThreadID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateNoteRequest) SetThreadName

func (i *IssuesCreateNoteRequest) SetThreadName(threadName *string)

SetThreadName sets the ThreadName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateNoteRequest) SetUserID

func (i *IssuesCreateNoteRequest) SetUserID(userID *string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateNoteRequest) UnmarshalJSON

func (i *IssuesCreateNoteRequest) UnmarshalJSON(data []byte) error

type IssuesCreateRequest

type IssuesCreateRequest struct {
	// The account that this issue belongs to. If requester_id is also provided, the requester must belong to this account. If requester_email is provided, the contact is found or created in this account.
	AccountID *string `json:"account_id,omitempty" url:"-"`
	// The user the issue should be assigned to.
	AssigneeID *string `json:"assignee_id,omitempty" url:"-"`
	// URLs of files to attach to the issue's first message.
	AttachmentURLs []string `json:"attachment_urls,omitempty" url:"-"`
	// Whether the requester's identity has NOT been verified. Defaults to false (verified).
	AuthorUnverified *bool `json:"author_unverified,omitempty" url:"-"`
	// The HTML content of the body of the issue.
	BodyHTML string `json:"body_html" url:"-"`
	// The contact to attribute the first message to. This controls the message author, not the issue requester. Makes the message appear as a customer message rather than an internal note. Only one of user_id or contact_id can be provided. Requires destination_metadata.
	ContactID *string `json:"contact_id,omitempty" url:"-"`
	// Timestamp of when the issue was created. If not specified, the current time will be used. (RFC3339)
	CreatedAt *time.Time `json:"created_at,omitempty" url:"-"`
	// An array of custom fields to be used on this issue.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// The ID of a custom issue source (created in the App Directory under Chat > Add Custom Chat App). Sets the issue source to the custom source's slug. Use this for channels Pylon doesn't natively support (e.g. WeChat). Cannot be combined with destination_metadata.
	CustomIssueSourceID *string `json:"custom_issue_source_id,omitempty" url:"-"`
	// Whether the issue should be visible in the customer portal. When destination is "customer_portal", this is set to true and cannot be false.
	CustomerPortalVisible *bool                `json:"customer_portal_visible,omitempty" url:"-"`
	DestinationMetadata   *DestinationMetadata `json:"destination_metadata,omitempty" url:"-"`
	// The priority of the issue. Can be one of: urgent, high, medium, or low.
	Priority *CreateIssueRequestPriority `json:"priority,omitempty" url:"-"`
	// The URL of an avatar of the requester.
	RequesterAvatarURL *string `json:"requester_avatar_url,omitempty" url:"-"`
	// The email of the customer this issue is for. Used when requester_id is omitted. If no matching contact exists, one will be created. When account_id is provided, the contact is found or created in that account. This does not control who authored the first message.
	RequesterEmail *string `json:"requester_email,omitempty" url:"-"`
	// The customer this issue is for. Sets the "Requester" shown in the issue sidebar but does not control who authored the first message. If account_id is omitted, the requester's primary account is used when available. If requester_email is also provided, requester_id takes precedence.
	RequesterID *string `json:"requester_id,omitempty" url:"-"`
	// The optional full name of the requester. Used when creating a new contact via requester_email.
	RequesterName *string `json:"requester_name,omitempty" url:"-"`
	// The phone number of a new requester. Only supported for direct WhatsApp delivery and cannot be combined with requester_id, requester_email, requester_name, or requester_avatar_url. The number is normalized to E.164 format and used to create a phone-only contact in the same transaction as the issue.
	RequesterPhoneNumber *string `json:"requester_phone_number,omitempty" url:"-"`
	// An array of strings to use as tags on this issue. If provided, the issue tags will be updated to the given tags.
	Tags []string `json:"tags,omitempty" url:"-"`
	// The ID of the team this issue should be assigned to.
	TeamID *string `json:"team_id,omitempty" url:"-"`
	// The title of the issue.
	Title string `json:"title" url:"-"`
	// The internal Pylon user to attribute the first message to. This does not assign the user as the requester. Only one of user_id or contact_id can be provided. If neither is set, the API token's user is used.
	UserID *string `json:"user_id,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesCreateRequest) MarshalJSON

func (i *IssuesCreateRequest) MarshalJSON() ([]byte, error)

func (*IssuesCreateRequest) SetAccountID

func (i *IssuesCreateRequest) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetAssigneeID

func (i *IssuesCreateRequest) SetAssigneeID(assigneeID *string)

SetAssigneeID sets the AssigneeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetAttachmentURLs

func (i *IssuesCreateRequest) SetAttachmentURLs(attachmentURLs []string)

SetAttachmentURLs sets the AttachmentURLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetAuthorUnverified

func (i *IssuesCreateRequest) SetAuthorUnverified(authorUnverified *bool)

SetAuthorUnverified sets the AuthorUnverified field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetBodyHTML

func (i *IssuesCreateRequest) SetBodyHTML(bodyHTML string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetContactID

func (i *IssuesCreateRequest) SetContactID(contactID *string)

SetContactID sets the ContactID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetCreatedAt

func (i *IssuesCreateRequest) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetCustomFields

func (i *IssuesCreateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetCustomIssueSourceID

func (i *IssuesCreateRequest) SetCustomIssueSourceID(customIssueSourceID *string)

SetCustomIssueSourceID sets the CustomIssueSourceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetCustomerPortalVisible

func (i *IssuesCreateRequest) SetCustomerPortalVisible(customerPortalVisible *bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetDestinationMetadata

func (i *IssuesCreateRequest) SetDestinationMetadata(destinationMetadata *DestinationMetadata)

SetDestinationMetadata sets the DestinationMetadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetPriority

func (i *IssuesCreateRequest) SetPriority(priority *CreateIssueRequestPriority)

SetPriority sets the Priority field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetRequesterAvatarURL

func (i *IssuesCreateRequest) SetRequesterAvatarURL(requesterAvatarURL *string)

SetRequesterAvatarURL sets the RequesterAvatarURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetRequesterEmail

func (i *IssuesCreateRequest) SetRequesterEmail(requesterEmail *string)

SetRequesterEmail sets the RequesterEmail field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetRequesterID

func (i *IssuesCreateRequest) SetRequesterID(requesterID *string)

SetRequesterID sets the RequesterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetRequesterName

func (i *IssuesCreateRequest) SetRequesterName(requesterName *string)

SetRequesterName sets the RequesterName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetRequesterPhoneNumber

func (i *IssuesCreateRequest) SetRequesterPhoneNumber(requesterPhoneNumber *string)

SetRequesterPhoneNumber sets the RequesterPhoneNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetTags

func (i *IssuesCreateRequest) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetTeamID

func (i *IssuesCreateRequest) SetTeamID(teamID *string)

SetTeamID sets the TeamID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetTitle

func (i *IssuesCreateRequest) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) SetUserID

func (i *IssuesCreateRequest) SetUserID(userID *string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesCreateRequest) UnmarshalJSON

func (i *IssuesCreateRequest) UnmarshalJSON(data []byte) error

type IssuesDeleteRequest

type IssuesDeleteRequest struct {
	// The ID of the issue to delete.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesDeleteRequest) SetID

func (i *IssuesDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type IssuesGetRequest

type IssuesGetRequest struct {
	// The ID or number of the issue to fetch.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesGetRequest) SetID

func (i *IssuesGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type IssuesLinkExternalIncidentRequest

type IssuesLinkExternalIncidentRequest struct {
	// The ID or number of the issue to link the incident to.
	IssueID string `json:"-" url:"-"`
	// The incident's reference (such as INC-123 or ROOT-123) or its ID in the incident system.
	IncidentID string `json:"incident_id" url:"-"`
	// Operation to perform. Use "link" to link the incident (default) or "unlink" to unlink it.
	Operation *string `json:"operation,omitempty" url:"-"`
	// The incident system the incident belongs to. It must be connected to the organization.
	// Valid values: "incident_io", "rootly"
	Source LinkExternalIncidentRequestBodySource `json:"source" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesLinkExternalIncidentRequest) MarshalJSON

func (i *IssuesLinkExternalIncidentRequest) MarshalJSON() ([]byte, error)

func (*IssuesLinkExternalIncidentRequest) SetIncidentID

func (i *IssuesLinkExternalIncidentRequest) SetIncidentID(incidentID string)

SetIncidentID sets the IncidentID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesLinkExternalIncidentRequest) SetIssueID

func (i *IssuesLinkExternalIncidentRequest) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesLinkExternalIncidentRequest) SetOperation

func (i *IssuesLinkExternalIncidentRequest) SetOperation(operation *string)

SetOperation sets the Operation field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesLinkExternalIncidentRequest) SetSource

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesLinkExternalIncidentRequest) UnmarshalJSON

func (i *IssuesLinkExternalIncidentRequest) UnmarshalJSON(data []byte) error

type IssuesLinkExternalIssueRequest

type IssuesLinkExternalIssueRequest struct {
	// The ID or number of the issue to link external issues to.
	IssueID string `json:"-" url:"-"`
	// The ID of the external issue in the source system.
	ExternalIssueID string `json:"external_issue_id" url:"-"`
	// Operation to perform. Use "link" to link issues (default) or "unlink" to unlink issues.
	Operation *string `json:"operation,omitempty" url:"-"`
	// The source system of the external issue (e.g., "linear", "asana", "jira", "github", "shortcut").
	Source string `json:"source" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesLinkExternalIssueRequest) MarshalJSON

func (i *IssuesLinkExternalIssueRequest) MarshalJSON() ([]byte, error)

func (*IssuesLinkExternalIssueRequest) SetExternalIssueID

func (i *IssuesLinkExternalIssueRequest) SetExternalIssueID(externalIssueID string)

SetExternalIssueID sets the ExternalIssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesLinkExternalIssueRequest) SetIssueID

func (i *IssuesLinkExternalIssueRequest) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesLinkExternalIssueRequest) SetOperation

func (i *IssuesLinkExternalIssueRequest) SetOperation(operation *string)

SetOperation sets the Operation field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesLinkExternalIssueRequest) SetSource

func (i *IssuesLinkExternalIssueRequest) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesLinkExternalIssueRequest) UnmarshalJSON

func (i *IssuesLinkExternalIssueRequest) UnmarshalJSON(data []byte) error

type IssuesListRequest

type IssuesListRequest struct {
	// The start of the time range, filtering on the issue's created_at (inclusive). Use RFC3339 with Z or a URL-encoded offset (%2B). The duration between start_time and end_time must be less than or equal to 365 days.
	StartTime time.Time `json:"-" url:"start_time"`
	// The end of the time range, filtering on the issue's created_at (exclusive). Use RFC3339 with Z or a URL-encoded offset (%2B). The duration between start_time and end_time must be less than or equal to 365 days.
	EndTime time.Time `json:"-" url:"end_time"`
	// The cursor to use for pagination.
	Cursor *string `json:"-" url:"cursor,omitempty"`
	// The number of issues to fetch. Defaults to 20000. Set to 0 or omit to use the default. Must be between 0 and 20000.
	Limit *int64 `json:"-" url:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*IssuesListRequest) SetCursor

func (i *IssuesListRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesListRequest) SetEndTime

func (i *IssuesListRequest) SetEndTime(endTime time.Time)

SetEndTime sets the EndTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesListRequest) SetLimit

func (i *IssuesListRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesListRequest) SetStartTime

func (i *IssuesListRequest) SetStartTime(startTime time.Time)

SetStartTime sets the StartTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type IssuesMarkSpamRequest

type IssuesMarkSpamRequest struct {
	// The IDs of the issues to mark as spam. Must contain between 1 and 100 IDs.
	IssueIDs []string `json:"issue_ids" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesMarkSpamRequest) MarshalJSON

func (i *IssuesMarkSpamRequest) MarshalJSON() ([]byte, error)

func (*IssuesMarkSpamRequest) SetIssueIDs

func (i *IssuesMarkSpamRequest) SetIssueIDs(issueIDs []string)

SetIssueIDs sets the IssueIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesMarkSpamRequest) UnmarshalJSON

func (i *IssuesMarkSpamRequest) UnmarshalJSON(data []byte) error

type IssuesMergeRequest

type IssuesMergeRequest struct {
	// Optional plain-text message sent to the customer on each merged Slack or form issue before it is merged.
	ClosingMessage *string `json:"closing_message,omitempty" url:"-"`
	// The IDs or numbers of the issues to merge into the primary issue. Must contain between 1 and 50 issues, all in the same account as the primary issue.
	DuplicateIssueIDs []string `json:"duplicate_issue_ids" url:"-"`
	// The ID or number of the issue to merge into. It keeps its ID and receives the messages of the merged issues.
	PrimaryIssueID string `json:"primary_issue_id" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesMergeRequest) MarshalJSON

func (i *IssuesMergeRequest) MarshalJSON() ([]byte, error)

func (*IssuesMergeRequest) SetClosingMessage

func (i *IssuesMergeRequest) SetClosingMessage(closingMessage *string)

SetClosingMessage sets the ClosingMessage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesMergeRequest) SetDuplicateIssueIDs

func (i *IssuesMergeRequest) SetDuplicateIssueIDs(duplicateIssueIDs []string)

SetDuplicateIssueIDs sets the DuplicateIssueIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesMergeRequest) SetPrimaryIssueID

func (i *IssuesMergeRequest) SetPrimaryIssueID(primaryIssueID string)

SetPrimaryIssueID sets the PrimaryIssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesMergeRequest) UnmarshalJSON

func (i *IssuesMergeRequest) UnmarshalJSON(data []byte) error

type IssuesReplyRequest

type IssuesReplyRequest struct {
	// The ID of the issue.
	IssueID string `json:"-" url:"-"`
	// URLs of files to attach to this reply.
	AttachmentURLs []string `json:"attachment_urls,omitempty" url:"-"`
	// The body of the message in HTML.
	BodyHTML string `json:"body_html" url:"-"`
	// Optional contact ID to post the message as. Only one of user_id or contact_id can be provided.
	ContactID    *string                    `json:"contact_id,omitempty" url:"-"`
	CustomSource *CustomSourceInfo          `json:"custom_source,omitempty" url:"-"`
	EmailInfo    *CreateIssueReplyEmailInfo `json:"email_info,omitempty" url:"-"`
	// The top-level Pylon message ID to reply to, from the `id` field returned by GET /issues/{id}/messages. The message must belong to the issue in the request path and must be customer-visible, not an internal note. This selects the external conversation or thread where the reply is delivered. For email, it also sets the In-Reply-To and References chain. Do not use a provider-specific message ID or email_info.message_id.
	MessageID string `json:"message_id" url:"-"`
	// Optional user ID to post the message as. Only one of user_id or contact_id can be provided.
	UserID *string `json:"user_id,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesReplyRequest) MarshalJSON

func (i *IssuesReplyRequest) MarshalJSON() ([]byte, error)

func (*IssuesReplyRequest) SetAttachmentURLs

func (i *IssuesReplyRequest) SetAttachmentURLs(attachmentURLs []string)

SetAttachmentURLs sets the AttachmentURLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesReplyRequest) SetBodyHTML

func (i *IssuesReplyRequest) SetBodyHTML(bodyHTML string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesReplyRequest) SetContactID

func (i *IssuesReplyRequest) SetContactID(contactID *string)

SetContactID sets the ContactID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesReplyRequest) SetCustomSource

func (i *IssuesReplyRequest) SetCustomSource(customSource *CustomSourceInfo)

SetCustomSource sets the CustomSource field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesReplyRequest) SetEmailInfo

func (i *IssuesReplyRequest) SetEmailInfo(emailInfo *CreateIssueReplyEmailInfo)

SetEmailInfo sets the EmailInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesReplyRequest) SetIssueID

func (i *IssuesReplyRequest) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesReplyRequest) SetMessageID

func (i *IssuesReplyRequest) SetMessageID(messageID string)

SetMessageID sets the MessageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesReplyRequest) SetUserID

func (i *IssuesReplyRequest) SetUserID(userID *string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesReplyRequest) UnmarshalJSON

func (i *IssuesReplyRequest) UnmarshalJSON(data []byte) error

type IssuesSearchRequest

type IssuesSearchRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of issues to fetch. Defaults to 100. Must be between 1 and 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// Fuzzy text search. Results are intersected with any provided filter.
	SearchText *string `json:"search_text,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesSearchRequest) MarshalJSON

func (i *IssuesSearchRequest) MarshalJSON() ([]byte, error)

func (*IssuesSearchRequest) SetCursor

func (i *IssuesSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesSearchRequest) SetFilter

func (i *IssuesSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesSearchRequest) SetLimit

func (i *IssuesSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesSearchRequest) SetSearchText

func (i *IssuesSearchRequest) SetSearchText(searchText *string)

SetSearchText sets the SearchText field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesSearchRequest) UnmarshalJSON

func (i *IssuesSearchRequest) UnmarshalJSON(data []byte) error

type IssuesSnoozeRequest

type IssuesSnoozeRequest struct {
	// The ID or number of the issue to snooze.
	IssueID string `json:"-" url:"-"`
	// The date and time to snooze the issue until. (RFC3339)
	SnoozeUntil time.Time `json:"snooze_until" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesSnoozeRequest) MarshalJSON

func (i *IssuesSnoozeRequest) MarshalJSON() ([]byte, error)

func (*IssuesSnoozeRequest) SetIssueID

func (i *IssuesSnoozeRequest) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesSnoozeRequest) SetSnoozeUntil

func (i *IssuesSnoozeRequest) SetSnoozeUntil(snoozeUntil time.Time)

SetSnoozeUntil sets the SnoozeUntil field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesSnoozeRequest) UnmarshalJSON

func (i *IssuesSnoozeRequest) UnmarshalJSON(data []byte) error

type IssuesUpdateRequest

type IssuesUpdateRequest struct {
	// The ID of the issue to update.
	ID string `json:"-" url:"-"`
	// The ID of the account that this issue belongs to. To remove the account, pass an empty string and also provide requester_id. The requester can be cleared with an empty string or retained if it has no account memberships. Account removal is supported only for manual, form, and email issues.
	AccountID *string `json:"account_id,omitempty" url:"-"`
	// The ID of the user who should be assigned to this issue. If empty string is passed in, the issue assignee will be removed.
	AssigneeID *string `json:"assignee_id,omitempty" url:"-"`
	// An array of custom fields to be used on this issue. Only passed in fields will be modified.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// Whether the issue should be visible in the customer portal.
	CustomerPortalVisible *bool `json:"customer_portal_visible,omitempty" url:"-"`
	// The ID of the requester that this issue is on behalf of. If an empty string is passed, the requester will be removed. This field must be provided when removing the issue's account, and a retained requester must not belong to any account.
	RequesterID *string `json:"requester_id,omitempty" url:"-"`
	// Deprecated: Use requester_id instead.
	RequestorID *string `json:"requestor_id,omitempty" url:"-"`
	// The state this issue should be moved to. Standard values are `new`, `waiting_on_you`, `waiting_on_customer`, `on_hold`, and `closed`; custom status slugs are also supported.
	State *string `json:"state,omitempty" url:"-"`
	// An array of strings to use as tags on this issue. If provided, the issue tags will be updated to be exactly the given tags.
	Tags []string `json:"tags,omitempty" url:"-"`
	// The ID of the team this issue should be assigned to. If empty string is passed in, any assigned team will be removed.
	TeamID *string `json:"team_id,omitempty" url:"-"`
	// The title of the issue.
	Title *string `json:"title,omitempty" url:"-"`
	// The type of the issue. Set to "ticket" to upgrade a conversation to a support ticket. Cannot be downgraded from "ticket" to "conversation".
	Type *UpdateIssueRequestBodyType `json:"type,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*IssuesUpdateRequest) MarshalJSON

func (i *IssuesUpdateRequest) MarshalJSON() ([]byte, error)

func (*IssuesUpdateRequest) SetAccountID

func (i *IssuesUpdateRequest) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetAssigneeID

func (i *IssuesUpdateRequest) SetAssigneeID(assigneeID *string)

SetAssigneeID sets the AssigneeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetCustomFields

func (i *IssuesUpdateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetCustomerPortalVisible

func (i *IssuesUpdateRequest) SetCustomerPortalVisible(customerPortalVisible *bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetID

func (i *IssuesUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetRequesterID

func (i *IssuesUpdateRequest) SetRequesterID(requesterID *string)

SetRequesterID sets the RequesterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetRequestorID

func (i *IssuesUpdateRequest) SetRequestorID(requestorID *string)

SetRequestorID sets the RequestorID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetState

func (i *IssuesUpdateRequest) SetState(state *string)

SetState sets the State field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetTags

func (i *IssuesUpdateRequest) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetTeamID

func (i *IssuesUpdateRequest) SetTeamID(teamID *string)

SetTeamID sets the TeamID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetTitle

func (i *IssuesUpdateRequest) SetTitle(title *string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) SetType

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IssuesUpdateRequest) UnmarshalJSON

func (i *IssuesUpdateRequest) UnmarshalJSON(data []byte) error

type KnowledgeBase

type KnowledgeBase struct {
	// The ID of the theme currently used by the knowledge base. Omitted when the knowledge base uses a preset theme.
	ActiveThemeID *string `json:"active_theme_id,omitempty" url:"active_theme_id,omitempty"`
	// The default language of the knowledge base.
	DefaultLanguage string `json:"default_language" url:"default_language"`
	// The ID of the knowledge base.
	ID string `json:"id" url:"id"`
	// The slug of the knowledge base.
	Slug string `json:"slug" url:"slug"`
	// The list of supported languages for the knowledge base.
	SupportedLanguages []string `json:"supported_languages,omitempty" url:"supported_languages,omitempty"`
	// The name of the knowledge base.
	Title string `json:"title" url:"title"`
	// contains filtered or unexported fields
}

func (*KnowledgeBase) GetActiveThemeID

func (k *KnowledgeBase) GetActiveThemeID() *string

func (*KnowledgeBase) GetDefaultLanguage

func (k *KnowledgeBase) GetDefaultLanguage() string

func (*KnowledgeBase) GetExtraProperties

func (k *KnowledgeBase) GetExtraProperties() map[string]interface{}

func (*KnowledgeBase) GetID

func (k *KnowledgeBase) GetID() string

func (*KnowledgeBase) GetSlug

func (k *KnowledgeBase) GetSlug() string

func (*KnowledgeBase) GetSupportedLanguages

func (k *KnowledgeBase) GetSupportedLanguages() []string

func (*KnowledgeBase) GetTitle

func (k *KnowledgeBase) GetTitle() string

func (*KnowledgeBase) MarshalJSON

func (k *KnowledgeBase) MarshalJSON() ([]byte, error)

func (*KnowledgeBase) SetActiveThemeID

func (k *KnowledgeBase) SetActiveThemeID(activeThemeID *string)

SetActiveThemeID sets the ActiveThemeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBase) SetDefaultLanguage

func (k *KnowledgeBase) SetDefaultLanguage(defaultLanguage string)

SetDefaultLanguage sets the DefaultLanguage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBase) SetID

func (k *KnowledgeBase) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBase) SetSlug

func (k *KnowledgeBase) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBase) SetSupportedLanguages

func (k *KnowledgeBase) SetSupportedLanguages(supportedLanguages []string)

SetSupportedLanguages sets the SupportedLanguages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBase) SetTitle

func (k *KnowledgeBase) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBase) String

func (k *KnowledgeBase) String() string

func (*KnowledgeBase) UnmarshalJSON

func (k *KnowledgeBase) UnmarshalJSON(data []byte) error

type KnowledgeBaseTheme

type KnowledgeBaseTheme struct {
	// The editable files in the theme.
	Assets []*KnowledgeBaseThemeAsset `json:"assets,omitempty" url:"assets,omitempty"`
	// Whether any theme asset has changes that have not been published.
	HasUnpublishedChanges bool `json:"has_unpublished_changes" url:"has_unpublished_changes"`
	// The ID of the theme.
	ID string `json:"id" url:"id"`
	// The ID of the knowledge base that owns the theme.
	KnowledgeBaseID string `json:"knowledge_base_id" url:"knowledge_base_id"`
	// The name of the theme.
	Name string `json:"name" url:"name"`
	// contains filtered or unexported fields
}

func (*KnowledgeBaseTheme) GetAssets

func (k *KnowledgeBaseTheme) GetAssets() []*KnowledgeBaseThemeAsset

func (*KnowledgeBaseTheme) GetExtraProperties

func (k *KnowledgeBaseTheme) GetExtraProperties() map[string]interface{}

func (*KnowledgeBaseTheme) GetHasUnpublishedChanges

func (k *KnowledgeBaseTheme) GetHasUnpublishedChanges() bool

func (*KnowledgeBaseTheme) GetID

func (k *KnowledgeBaseTheme) GetID() string

func (*KnowledgeBaseTheme) GetKnowledgeBaseID

func (k *KnowledgeBaseTheme) GetKnowledgeBaseID() string

func (*KnowledgeBaseTheme) GetName

func (k *KnowledgeBaseTheme) GetName() string

func (*KnowledgeBaseTheme) MarshalJSON

func (k *KnowledgeBaseTheme) MarshalJSON() ([]byte, error)

func (*KnowledgeBaseTheme) SetAssets

func (k *KnowledgeBaseTheme) SetAssets(assets []*KnowledgeBaseThemeAsset)

SetAssets sets the Assets field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBaseTheme) SetHasUnpublishedChanges

func (k *KnowledgeBaseTheme) SetHasUnpublishedChanges(hasUnpublishedChanges bool)

SetHasUnpublishedChanges sets the HasUnpublishedChanges field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBaseTheme) SetID

func (k *KnowledgeBaseTheme) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBaseTheme) SetKnowledgeBaseID

func (k *KnowledgeBaseTheme) SetKnowledgeBaseID(knowledgeBaseID string)

SetKnowledgeBaseID sets the KnowledgeBaseID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBaseTheme) SetName

func (k *KnowledgeBaseTheme) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBaseTheme) String

func (k *KnowledgeBaseTheme) String() string

func (*KnowledgeBaseTheme) UnmarshalJSON

func (k *KnowledgeBaseTheme) UnmarshalJSON(data []byte) error

type KnowledgeBaseThemeAsset

type KnowledgeBaseThemeAsset struct {
	// The type of theme asset. One of article, collection, css, footer, header, homepage, or scripts.
	AssetType string `json:"asset_type" url:"asset_type"`
	// The complete current content, including unpublished changes.
	Content string `json:"content" url:"content"`
	// Whether this asset has changes that have not been published.
	HasUnpublishedChanges bool `json:"has_unpublished_changes" url:"has_unpublished_changes"`
	// The complete published content. Omitted if the asset has never been published.
	PublishedContent *string `json:"published_content,omitempty" url:"published_content,omitempty"`
	// contains filtered or unexported fields
}

func (*KnowledgeBaseThemeAsset) GetAssetType

func (k *KnowledgeBaseThemeAsset) GetAssetType() string

func (*KnowledgeBaseThemeAsset) GetContent

func (k *KnowledgeBaseThemeAsset) GetContent() string

func (*KnowledgeBaseThemeAsset) GetExtraProperties

func (k *KnowledgeBaseThemeAsset) GetExtraProperties() map[string]interface{}

func (*KnowledgeBaseThemeAsset) GetHasUnpublishedChanges

func (k *KnowledgeBaseThemeAsset) GetHasUnpublishedChanges() bool

func (*KnowledgeBaseThemeAsset) GetPublishedContent

func (k *KnowledgeBaseThemeAsset) GetPublishedContent() *string

func (*KnowledgeBaseThemeAsset) MarshalJSON

func (k *KnowledgeBaseThemeAsset) MarshalJSON() ([]byte, error)

func (*KnowledgeBaseThemeAsset) SetAssetType

func (k *KnowledgeBaseThemeAsset) SetAssetType(assetType string)

SetAssetType sets the AssetType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBaseThemeAsset) SetContent

func (k *KnowledgeBaseThemeAsset) SetContent(content string)

SetContent sets the Content field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBaseThemeAsset) SetHasUnpublishedChanges

func (k *KnowledgeBaseThemeAsset) SetHasUnpublishedChanges(hasUnpublishedChanges bool)

SetHasUnpublishedChanges sets the HasUnpublishedChanges field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBaseThemeAsset) SetPublishedContent

func (k *KnowledgeBaseThemeAsset) SetPublishedContent(publishedContent *string)

SetPublishedContent sets the PublishedContent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KnowledgeBaseThemeAsset) String

func (k *KnowledgeBaseThemeAsset) String() string

func (*KnowledgeBaseThemeAsset) UnmarshalJSON

func (k *KnowledgeBaseThemeAsset) UnmarshalJSON(data []byte) error

type KnowledgeBasesGetRequest

type KnowledgeBasesGetRequest struct {
	// The ID of the knowledge base.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*KnowledgeBasesGetRequest) SetID

func (k *KnowledgeBasesGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type LinkExternalIncidentRequestBodySource

type LinkExternalIncidentRequestBodySource string

The incident system the incident belongs to. It must be connected to the organization. Valid values: "incident_io", "rootly"

const (
	LinkExternalIncidentRequestBodySourceIncidentIo LinkExternalIncidentRequestBodySource = "incident_io"
	LinkExternalIncidentRequestBodySourceRootly     LinkExternalIncidentRequestBodySource = "rootly"
)

func NewLinkExternalIncidentRequestBodySourceFromString

func NewLinkExternalIncidentRequestBodySourceFromString(s string) (LinkExternalIncidentRequestBodySource, error)

func (LinkExternalIncidentRequestBodySource) Ptr

type LinkExternalIncidentResponseBody

type LinkExternalIncidentResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*LinkExternalIncidentResponseBody) GetData

func (*LinkExternalIncidentResponseBody) GetExtraProperties

func (l *LinkExternalIncidentResponseBody) GetExtraProperties() map[string]interface{}

func (*LinkExternalIncidentResponseBody) GetRequestID

func (l *LinkExternalIncidentResponseBody) GetRequestID() string

func (*LinkExternalIncidentResponseBody) MarshalJSON

func (l *LinkExternalIncidentResponseBody) MarshalJSON() ([]byte, error)

func (*LinkExternalIncidentResponseBody) SetData

func (l *LinkExternalIncidentResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LinkExternalIncidentResponseBody) SetRequestID

func (l *LinkExternalIncidentResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LinkExternalIncidentResponseBody) String

func (*LinkExternalIncidentResponseBody) UnmarshalJSON

func (l *LinkExternalIncidentResponseBody) UnmarshalJSON(data []byte) error

type LinkExternalIssueResponseBody

type LinkExternalIssueResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*LinkExternalIssueResponseBody) GetData

func (l *LinkExternalIssueResponseBody) GetData() *Issue

func (*LinkExternalIssueResponseBody) GetExtraProperties

func (l *LinkExternalIssueResponseBody) GetExtraProperties() map[string]interface{}

func (*LinkExternalIssueResponseBody) GetRequestID

func (l *LinkExternalIssueResponseBody) GetRequestID() string

func (*LinkExternalIssueResponseBody) MarshalJSON

func (l *LinkExternalIssueResponseBody) MarshalJSON() ([]byte, error)

func (*LinkExternalIssueResponseBody) SetData

func (l *LinkExternalIssueResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LinkExternalIssueResponseBody) SetRequestID

func (l *LinkExternalIssueResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LinkExternalIssueResponseBody) String

func (*LinkExternalIssueResponseBody) UnmarshalJSON

func (l *LinkExternalIssueResponseBody) UnmarshalJSON(data []byte) error

type LinkFeatureRequestExternalIssueResponseBody

type LinkFeatureRequestExternalIssueResponseBody struct {
	Data *FeatureRequest `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*LinkFeatureRequestExternalIssueResponseBody) GetData

func (*LinkFeatureRequestExternalIssueResponseBody) GetExtraProperties

func (l *LinkFeatureRequestExternalIssueResponseBody) GetExtraProperties() map[string]interface{}

func (*LinkFeatureRequestExternalIssueResponseBody) GetRequestID

func (*LinkFeatureRequestExternalIssueResponseBody) MarshalJSON

func (*LinkFeatureRequestExternalIssueResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LinkFeatureRequestExternalIssueResponseBody) SetRequestID

func (l *LinkFeatureRequestExternalIssueResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LinkFeatureRequestExternalIssueResponseBody) String

func (*LinkFeatureRequestExternalIssueResponseBody) UnmarshalJSON

func (l *LinkFeatureRequestExternalIssueResponseBody) UnmarshalJSON(data []byte) error

type LinkTaskExternalIssueResponseBody

type LinkTaskExternalIssueResponseBody struct {
	Data *Task `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*LinkTaskExternalIssueResponseBody) GetData

func (*LinkTaskExternalIssueResponseBody) GetExtraProperties

func (l *LinkTaskExternalIssueResponseBody) GetExtraProperties() map[string]interface{}

func (*LinkTaskExternalIssueResponseBody) GetRequestID

func (l *LinkTaskExternalIssueResponseBody) GetRequestID() string

func (*LinkTaskExternalIssueResponseBody) MarshalJSON

func (l *LinkTaskExternalIssueResponseBody) MarshalJSON() ([]byte, error)

func (*LinkTaskExternalIssueResponseBody) SetData

func (l *LinkTaskExternalIssueResponseBody) SetData(data *Task)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LinkTaskExternalIssueResponseBody) SetRequestID

func (l *LinkTaskExternalIssueResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LinkTaskExternalIssueResponseBody) String

func (*LinkTaskExternalIssueResponseBody) UnmarshalJSON

func (l *LinkTaskExternalIssueResponseBody) UnmarshalJSON(data []byte) error

type LinkTaskIssueResponseBody

type LinkTaskIssueResponseBody struct {
	Data *Task `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*LinkTaskIssueResponseBody) GetData

func (l *LinkTaskIssueResponseBody) GetData() *Task

func (*LinkTaskIssueResponseBody) GetExtraProperties

func (l *LinkTaskIssueResponseBody) GetExtraProperties() map[string]interface{}

func (*LinkTaskIssueResponseBody) GetRequestID

func (l *LinkTaskIssueResponseBody) GetRequestID() string

func (*LinkTaskIssueResponseBody) MarshalJSON

func (l *LinkTaskIssueResponseBody) MarshalJSON() ([]byte, error)

func (*LinkTaskIssueResponseBody) SetData

func (l *LinkTaskIssueResponseBody) SetData(data *Task)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LinkTaskIssueResponseBody) SetRequestID

func (l *LinkTaskIssueResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LinkTaskIssueResponseBody) String

func (l *LinkTaskIssueResponseBody) String() string

func (*LinkTaskIssueResponseBody) UnmarshalJSON

func (l *LinkTaskIssueResponseBody) UnmarshalJSON(data []byte) error

type ListCustomFieldsRequestObjectType

type ListCustomFieldsRequestObjectType string
const (
	ListCustomFieldsRequestObjectTypeAccount     ListCustomFieldsRequestObjectType = "account"
	ListCustomFieldsRequestObjectTypeIssue       ListCustomFieldsRequestObjectType = "issue"
	ListCustomFieldsRequestObjectTypeContact     ListCustomFieldsRequestObjectType = "contact"
	ListCustomFieldsRequestObjectTypeTask        ListCustomFieldsRequestObjectType = "task"
	ListCustomFieldsRequestObjectTypeProject     ListCustomFieldsRequestObjectType = "project"
	ListCustomFieldsRequestObjectTypeMeeting     ListCustomFieldsRequestObjectType = "meeting"
	ListCustomFieldsRequestObjectTypeOpportunity ListCustomFieldsRequestObjectType = "opportunity"
)

func NewListCustomFieldsRequestObjectTypeFromString

func NewListCustomFieldsRequestObjectTypeFromString(s string) (ListCustomFieldsRequestObjectType, error)

func (ListCustomFieldsRequestObjectType) Ptr

type ListTrainingDataResponseBody

type ListTrainingDataResponseBody struct {
	Data      []*TrainingData `json:"data" url:"data"`
	RequestID string          `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*ListTrainingDataResponseBody) GetData

func (*ListTrainingDataResponseBody) GetExtraProperties

func (l *ListTrainingDataResponseBody) GetExtraProperties() map[string]interface{}

func (*ListTrainingDataResponseBody) GetRequestID

func (l *ListTrainingDataResponseBody) GetRequestID() string

func (*ListTrainingDataResponseBody) MarshalJSON

func (l *ListTrainingDataResponseBody) MarshalJSON() ([]byte, error)

func (*ListTrainingDataResponseBody) SetData

func (l *ListTrainingDataResponseBody) SetData(data []*TrainingData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListTrainingDataResponseBody) SetRequestID

func (l *ListTrainingDataResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListTrainingDataResponseBody) String

func (*ListTrainingDataResponseBody) UnmarshalJSON

func (l *ListTrainingDataResponseBody) UnmarshalJSON(data []byte) error

type Macro

type Macro struct {
	// The actions that execute when this macro is applied.
	Actions []*MacroAction `json:"actions,omitempty" url:"actions,omitempty"`
	// The time the macro was created.
	CreatedAt      time.Time   `json:"created_at" url:"created_at"`
	EditVisibility *Visibility `json:"edit_visibility,omitempty" url:"edit_visibility,omitempty"`
	// Whether this macro has actions that execute when applied.
	HasActions bool `json:"has_actions" url:"has_actions"`
	// The ID of the macro.
	ID string `json:"id" url:"id"`
	// The ID of the macro group this macro belongs to.
	MacroGroupID string `json:"macro_group_id" url:"macro_group_id"`
	// The name of the macro.
	Name string `json:"name" url:"name"`
	// The HTML content of the macro.
	TextHTML string `json:"text_html" url:"text_html"`
	// The type of text: "reply", "note", or "email".
	TextType string `json:"text_type" url:"text_type"`
	// The time the macro was last updated.
	UpdatedAt  time.Time   `json:"updated_at" url:"updated_at"`
	Visibility *Visibility `json:"visibility,omitempty" url:"visibility,omitempty"`
	// contains filtered or unexported fields
}

func (*Macro) GetActions

func (m *Macro) GetActions() []*MacroAction

func (*Macro) GetCreatedAt

func (m *Macro) GetCreatedAt() time.Time

func (*Macro) GetEditVisibility

func (m *Macro) GetEditVisibility() *Visibility

func (*Macro) GetExtraProperties

func (m *Macro) GetExtraProperties() map[string]interface{}

func (*Macro) GetHasActions

func (m *Macro) GetHasActions() bool

func (*Macro) GetID

func (m *Macro) GetID() string

func (*Macro) GetMacroGroupID

func (m *Macro) GetMacroGroupID() string

func (*Macro) GetName

func (m *Macro) GetName() string

func (*Macro) GetTextHTML

func (m *Macro) GetTextHTML() string

func (*Macro) GetTextType

func (m *Macro) GetTextType() string

func (*Macro) GetUpdatedAt

func (m *Macro) GetUpdatedAt() time.Time

func (*Macro) GetVisibility

func (m *Macro) GetVisibility() *Visibility

func (*Macro) MarshalJSON

func (m *Macro) MarshalJSON() ([]byte, error)

func (*Macro) SetActions

func (m *Macro) SetActions(actions []*MacroAction)

SetActions sets the Actions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) SetCreatedAt

func (m *Macro) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) SetEditVisibility

func (m *Macro) SetEditVisibility(editVisibility *Visibility)

SetEditVisibility sets the EditVisibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) SetHasActions

func (m *Macro) SetHasActions(hasActions bool)

SetHasActions sets the HasActions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) SetID

func (m *Macro) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) SetMacroGroupID

func (m *Macro) SetMacroGroupID(macroGroupID string)

SetMacroGroupID sets the MacroGroupID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) SetName

func (m *Macro) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) SetTextHTML

func (m *Macro) SetTextHTML(textHTML string)

SetTextHTML sets the TextHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) SetTextType

func (m *Macro) SetTextType(textType string)

SetTextType sets the TextType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) SetUpdatedAt

func (m *Macro) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) SetVisibility

func (m *Macro) SetVisibility(visibility *Visibility)

SetVisibility sets the Visibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Macro) String

func (m *Macro) String() string

func (*Macro) UnmarshalJSON

func (m *Macro) UnmarshalJSON(data []byte) error

type MacroAction

type MacroAction struct {
	// The action type identifier (e.g. "set_issue_state", "set_issue_tags").
	Type string `json:"type" url:"type"`
	// contains filtered or unexported fields
}

func (*MacroAction) GetExtraProperties

func (m *MacroAction) GetExtraProperties() map[string]interface{}

func (*MacroAction) GetType

func (m *MacroAction) GetType() string

func (*MacroAction) MarshalJSON

func (m *MacroAction) MarshalJSON() ([]byte, error)

func (*MacroAction) SetType

func (m *MacroAction) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacroAction) String

func (m *MacroAction) String() string

func (*MacroAction) UnmarshalJSON

func (m *MacroAction) UnmarshalJSON(data []byte) error

type MacroGroup

type MacroGroup struct {
	// The time the macro group was created.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The ID of the macro group.
	ID string `json:"id" url:"id"`
	// The title of the macro group.
	Title string `json:"title" url:"title"`
	// The time the macro group was last updated.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*MacroGroup) GetCreatedAt

func (m *MacroGroup) GetCreatedAt() time.Time

func (*MacroGroup) GetExtraProperties

func (m *MacroGroup) GetExtraProperties() map[string]interface{}

func (*MacroGroup) GetID

func (m *MacroGroup) GetID() string

func (*MacroGroup) GetTitle

func (m *MacroGroup) GetTitle() string

func (*MacroGroup) GetUpdatedAt

func (m *MacroGroup) GetUpdatedAt() time.Time

func (*MacroGroup) MarshalJSON

func (m *MacroGroup) MarshalJSON() ([]byte, error)

func (*MacroGroup) SetCreatedAt

func (m *MacroGroup) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacroGroup) SetID

func (m *MacroGroup) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacroGroup) SetTitle

func (m *MacroGroup) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacroGroup) SetUpdatedAt

func (m *MacroGroup) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacroGroup) String

func (m *MacroGroup) String() string

func (*MacroGroup) UnmarshalJSON

func (m *MacroGroup) UnmarshalJSON(data []byte) error

type MacrosCreateRequest

type MacrosCreateRequest struct {
	Conditions     *Filter          `json:"conditions,omitempty" url:"-"`
	EditVisibility *VisibilityInput `json:"edit_visibility,omitempty" url:"-"`
	// The ID of the macro group this macro belongs to.
	MacroGroupID string `json:"macro_group_id" url:"-"`
	// The name of the macro.
	Name string `json:"name" url:"-"`
	// The HTML content of the macro.
	TextHTML string `json:"text_html" url:"-"`
	// The type of text: "reply", "note", or "email". Defaults to "reply".
	TextType   *string          `json:"text_type,omitempty" url:"-"`
	Visibility *VisibilityInput `json:"visibility,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*MacrosCreateRequest) MarshalJSON

func (m *MacrosCreateRequest) MarshalJSON() ([]byte, error)

func (*MacrosCreateRequest) SetConditions

func (m *MacrosCreateRequest) SetConditions(conditions *Filter)

SetConditions sets the Conditions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosCreateRequest) SetEditVisibility

func (m *MacrosCreateRequest) SetEditVisibility(editVisibility *VisibilityInput)

SetEditVisibility sets the EditVisibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosCreateRequest) SetMacroGroupID

func (m *MacrosCreateRequest) SetMacroGroupID(macroGroupID string)

SetMacroGroupID sets the MacroGroupID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosCreateRequest) SetName

func (m *MacrosCreateRequest) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosCreateRequest) SetTextHTML

func (m *MacrosCreateRequest) SetTextHTML(textHTML string)

SetTextHTML sets the TextHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosCreateRequest) SetTextType

func (m *MacrosCreateRequest) SetTextType(textType *string)

SetTextType sets the TextType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosCreateRequest) SetVisibility

func (m *MacrosCreateRequest) SetVisibility(visibility *VisibilityInput)

SetVisibility sets the Visibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosCreateRequest) UnmarshalJSON

func (m *MacrosCreateRequest) UnmarshalJSON(data []byte) error

type MacrosDeleteRequest

type MacrosDeleteRequest struct {
	// The ID of the macro to delete.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*MacrosDeleteRequest) SetID

func (m *MacrosDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type MacrosGetRequest

type MacrosGetRequest struct {
	// The ID of the macro.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*MacrosGetRequest) SetID

func (m *MacrosGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type MacrosListRequest

type MacrosListRequest struct {
	// Filter macros by macro group ID.
	MacroGroupID *string `json:"-" url:"macro_group_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MacrosListRequest) SetMacroGroupID

func (m *MacrosListRequest) SetMacroGroupID(macroGroupID *string)

SetMacroGroupID sets the MacroGroupID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type MacrosUpdateRequest

type MacrosUpdateRequest struct {
	// The ID of the macro to update.
	ID             string           `json:"-" url:"-"`
	Conditions     *Filter          `json:"conditions,omitempty" url:"-"`
	EditVisibility *VisibilityInput `json:"edit_visibility,omitempty" url:"-"`
	// The ID of the macro group this macro belongs to.
	MacroGroupID *string `json:"macro_group_id,omitempty" url:"-"`
	// The name of the macro.
	Name *string `json:"name,omitempty" url:"-"`
	// The HTML content of the macro.
	TextHTML *string `json:"text_html,omitempty" url:"-"`
	// The type of text: "reply", "note", or "email".
	TextType   *string          `json:"text_type,omitempty" url:"-"`
	Visibility *VisibilityInput `json:"visibility,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*MacrosUpdateRequest) MarshalJSON

func (m *MacrosUpdateRequest) MarshalJSON() ([]byte, error)

func (*MacrosUpdateRequest) SetConditions

func (m *MacrosUpdateRequest) SetConditions(conditions *Filter)

SetConditions sets the Conditions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosUpdateRequest) SetEditVisibility

func (m *MacrosUpdateRequest) SetEditVisibility(editVisibility *VisibilityInput)

SetEditVisibility sets the EditVisibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosUpdateRequest) SetID

func (m *MacrosUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosUpdateRequest) SetMacroGroupID

func (m *MacrosUpdateRequest) SetMacroGroupID(macroGroupID *string)

SetMacroGroupID sets the MacroGroupID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosUpdateRequest) SetName

func (m *MacrosUpdateRequest) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosUpdateRequest) SetTextHTML

func (m *MacrosUpdateRequest) SetTextHTML(textHTML *string)

SetTextHTML sets the TextHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosUpdateRequest) SetTextType

func (m *MacrosUpdateRequest) SetTextType(textType *string)

SetTextType sets the TextType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosUpdateRequest) SetVisibility

func (m *MacrosUpdateRequest) SetVisibility(visibility *VisibilityInput)

SetVisibility sets the Visibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MacrosUpdateRequest) UnmarshalJSON

func (m *MacrosUpdateRequest) UnmarshalJSON(data []byte) error

type MarkIssuesAsSpamResponseBody

type MarkIssuesAsSpamResponseBody struct {
	Data *BulkIssueResult `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*MarkIssuesAsSpamResponseBody) GetData

func (*MarkIssuesAsSpamResponseBody) GetExtraProperties

func (m *MarkIssuesAsSpamResponseBody) GetExtraProperties() map[string]interface{}

func (*MarkIssuesAsSpamResponseBody) GetRequestID

func (m *MarkIssuesAsSpamResponseBody) GetRequestID() string

func (*MarkIssuesAsSpamResponseBody) MarshalJSON

func (m *MarkIssuesAsSpamResponseBody) MarshalJSON() ([]byte, error)

func (*MarkIssuesAsSpamResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MarkIssuesAsSpamResponseBody) SetRequestID

func (m *MarkIssuesAsSpamResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MarkIssuesAsSpamResponseBody) String

func (*MarkIssuesAsSpamResponseBody) UnmarshalJSON

func (m *MarkIssuesAsSpamResponseBody) UnmarshalJSON(data []byte) error

type Me

type Me struct {
	// The ID of the organization.
	ID string `json:"id" url:"id"`
	// The name of the organization.
	Name string  `json:"name" url:"name"`
	User *MeUser `json:"user" url:"user"`
	// contains filtered or unexported fields
}

func (*Me) GetExtraProperties

func (m *Me) GetExtraProperties() map[string]interface{}

func (*Me) GetID

func (m *Me) GetID() string

func (*Me) GetName

func (m *Me) GetName() string

func (*Me) GetUser

func (m *Me) GetUser() *MeUser

func (*Me) MarshalJSON

func (m *Me) MarshalJSON() ([]byte, error)

func (*Me) SetID

func (m *Me) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Me) SetName

func (m *Me) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Me) SetUser

func (m *Me) SetUser(user *MeUser)

SetUser sets the User field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Me) String

func (m *Me) String() string

func (*Me) UnmarshalJSON

func (m *Me) UnmarshalJSON(data []byte) error

type MeUser

type MeUser struct {
	// The primary login email of the authenticated user. API users do not have a login email.
	Email string `json:"email" url:"email"`
	// The stable Pylon ID of the authenticated user.
	ID string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*MeUser) GetEmail

func (m *MeUser) GetEmail() string

func (*MeUser) GetExtraProperties

func (m *MeUser) GetExtraProperties() map[string]interface{}

func (*MeUser) GetID

func (m *MeUser) GetID() string

func (*MeUser) MarshalJSON

func (m *MeUser) MarshalJSON() ([]byte, error)

func (*MeUser) SetEmail

func (m *MeUser) SetEmail(email string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MeUser) SetID

func (m *MeUser) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MeUser) String

func (m *MeUser) String() string

func (*MeUser) UnmarshalJSON

func (m *MeUser) UnmarshalJSON(data []byte) error

type MergeAccountsResponseBody

type MergeAccountsResponseBody struct {
	Data *Account `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*MergeAccountsResponseBody) GetData

func (m *MergeAccountsResponseBody) GetData() *Account

func (*MergeAccountsResponseBody) GetExtraProperties

func (m *MergeAccountsResponseBody) GetExtraProperties() map[string]interface{}

func (*MergeAccountsResponseBody) GetRequestID

func (m *MergeAccountsResponseBody) GetRequestID() string

func (*MergeAccountsResponseBody) MarshalJSON

func (m *MergeAccountsResponseBody) MarshalJSON() ([]byte, error)

func (*MergeAccountsResponseBody) SetData

func (m *MergeAccountsResponseBody) SetData(data *Account)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MergeAccountsResponseBody) SetRequestID

func (m *MergeAccountsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MergeAccountsResponseBody) String

func (m *MergeAccountsResponseBody) String() string

func (*MergeAccountsResponseBody) UnmarshalJSON

func (m *MergeAccountsResponseBody) UnmarshalJSON(data []byte) error

type MergeContactsResponseBody

type MergeContactsResponseBody struct {
	Data *Contact `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*MergeContactsResponseBody) GetData

func (m *MergeContactsResponseBody) GetData() *Contact

func (*MergeContactsResponseBody) GetExtraProperties

func (m *MergeContactsResponseBody) GetExtraProperties() map[string]interface{}

func (*MergeContactsResponseBody) GetRequestID

func (m *MergeContactsResponseBody) GetRequestID() string

func (*MergeContactsResponseBody) MarshalJSON

func (m *MergeContactsResponseBody) MarshalJSON() ([]byte, error)

func (*MergeContactsResponseBody) SetData

func (m *MergeContactsResponseBody) SetData(data *Contact)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MergeContactsResponseBody) SetRequestID

func (m *MergeContactsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MergeContactsResponseBody) String

func (m *MergeContactsResponseBody) String() string

func (*MergeContactsResponseBody) UnmarshalJSON

func (m *MergeContactsResponseBody) UnmarshalJSON(data []byte) error

type MergeFeatureRequestsResponseBody

type MergeFeatureRequestsResponseBody struct {
	Data *FeatureRequest `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*MergeFeatureRequestsResponseBody) GetData

func (*MergeFeatureRequestsResponseBody) GetExtraProperties

func (m *MergeFeatureRequestsResponseBody) GetExtraProperties() map[string]interface{}

func (*MergeFeatureRequestsResponseBody) GetRequestID

func (m *MergeFeatureRequestsResponseBody) GetRequestID() string

func (*MergeFeatureRequestsResponseBody) MarshalJSON

func (m *MergeFeatureRequestsResponseBody) MarshalJSON() ([]byte, error)

func (*MergeFeatureRequestsResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MergeFeatureRequestsResponseBody) SetRequestID

func (m *MergeFeatureRequestsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MergeFeatureRequestsResponseBody) String

func (*MergeFeatureRequestsResponseBody) UnmarshalJSON

func (m *MergeFeatureRequestsResponseBody) UnmarshalJSON(data []byte) error

type MergeIssuesResponseBody

type MergeIssuesResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*MergeIssuesResponseBody) GetData

func (m *MergeIssuesResponseBody) GetData() *Issue

func (*MergeIssuesResponseBody) GetExtraProperties

func (m *MergeIssuesResponseBody) GetExtraProperties() map[string]interface{}

func (*MergeIssuesResponseBody) GetRequestID

func (m *MergeIssuesResponseBody) GetRequestID() string

func (*MergeIssuesResponseBody) MarshalJSON

func (m *MergeIssuesResponseBody) MarshalJSON() ([]byte, error)

func (*MergeIssuesResponseBody) SetData

func (m *MergeIssuesResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MergeIssuesResponseBody) SetRequestID

func (m *MergeIssuesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MergeIssuesResponseBody) String

func (m *MergeIssuesResponseBody) String() string

func (*MergeIssuesResponseBody) UnmarshalJSON

func (m *MergeIssuesResponseBody) UnmarshalJSON(data []byte) error

type Message

type Message struct {
	Author *MessageAuthor `json:"author,omitempty" url:"author,omitempty"`
	// Whether this message's author identity has NOT been verified. True for public form submissions, unverified chat widget visitors, and emails that failed sender authentication. For emails, read email_info.sender_authentication_status to tell an authentication failure apart from the other cases.
	AuthorUnverified bool              `json:"author_unverified" url:"author_unverified"`
	EmailInfo        *EmailMessageInfo `json:"email_info,omitempty" url:"email_info,omitempty"`
	// The URLs of the files in the message, if any. Signed download URLs. Fetch with a plain GET, no Authorization header.
	FileURLs []string `json:"file_urls,omitempty" url:"file_urls,omitempty"`
	// The top-level Pylon message ID. Use this value as message_id when replying or when targeting an internal note's thread.
	ID string `json:"id" url:"id"`
	// Whether the message is an internal note. If true, the message is not visible to the requester; if false, it is customer-visible.
	IsPrivate bool `json:"is_private" url:"is_private"`
	// The HTML body of the message.
	MessageHTML string `json:"message_html" url:"message_html"`
	// The emoji reactions currently on the message, grouped by emoji.
	Reactions []*MessageReaction `json:"reactions,omitempty" url:"reactions,omitempty"`
	SlackInfo *SlackMessageInfo  `json:"slack_info,omitempty" url:"slack_info,omitempty"`
	// The source of the message.
	Source string `json:"source" url:"source"`
	// The Pylon internal thread ID. This is set only for internal notes and can be passed as thread_id when creating an internal note.
	ThreadID *string `json:"thread_id,omitempty" url:"thread_id,omitempty"`
	// The time at which the message was created.
	Timestamp time.Time `json:"timestamp" url:"timestamp"`
	// contains filtered or unexported fields
}

func (*Message) GetAuthor

func (m *Message) GetAuthor() *MessageAuthor

func (*Message) GetAuthorUnverified

func (m *Message) GetAuthorUnverified() bool

func (*Message) GetEmailInfo

func (m *Message) GetEmailInfo() *EmailMessageInfo

func (*Message) GetExtraProperties

func (m *Message) GetExtraProperties() map[string]interface{}

func (*Message) GetFileURLs

func (m *Message) GetFileURLs() []string

func (*Message) GetID

func (m *Message) GetID() string

func (*Message) GetIsPrivate

func (m *Message) GetIsPrivate() bool

func (*Message) GetMessageHTML

func (m *Message) GetMessageHTML() string

func (*Message) GetReactions

func (m *Message) GetReactions() []*MessageReaction

func (*Message) GetSlackInfo

func (m *Message) GetSlackInfo() *SlackMessageInfo

func (*Message) GetSource

func (m *Message) GetSource() string

func (*Message) GetThreadID

func (m *Message) GetThreadID() *string

func (*Message) GetTimestamp

func (m *Message) GetTimestamp() time.Time

func (*Message) MarshalJSON

func (m *Message) MarshalJSON() ([]byte, error)

func (*Message) SetAuthor

func (m *Message) SetAuthor(author *MessageAuthor)

SetAuthor sets the Author field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetAuthorUnverified

func (m *Message) SetAuthorUnverified(authorUnverified bool)

SetAuthorUnverified sets the AuthorUnverified field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetEmailInfo

func (m *Message) SetEmailInfo(emailInfo *EmailMessageInfo)

SetEmailInfo sets the EmailInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetFileURLs

func (m *Message) SetFileURLs(fileURLs []string)

SetFileURLs sets the FileURLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetID

func (m *Message) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetIsPrivate

func (m *Message) SetIsPrivate(isPrivate bool)

SetIsPrivate sets the IsPrivate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetMessageHTML

func (m *Message) SetMessageHTML(messageHTML string)

SetMessageHTML sets the MessageHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetReactions

func (m *Message) SetReactions(reactions []*MessageReaction)

SetReactions sets the Reactions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetSlackInfo

func (m *Message) SetSlackInfo(slackInfo *SlackMessageInfo)

SetSlackInfo sets the SlackInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetSource

func (m *Message) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetThreadID

func (m *Message) SetThreadID(threadID *string)

SetThreadID sets the ThreadID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) SetTimestamp

func (m *Message) SetTimestamp(timestamp time.Time)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Message) String

func (m *Message) String() string

func (*Message) UnmarshalJSON

func (m *Message) UnmarshalJSON(data []byte) error

type MessageAuthor

type MessageAuthor struct {
	AvatarURL *string      `json:"avatar_url,omitempty" url:"avatar_url,omitempty"`
	Contact   *MiniContact `json:"contact,omitempty" url:"contact,omitempty"`
	Name      string       `json:"name" url:"name"`
	User      *MiniUser    `json:"user,omitempty" url:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageAuthor) GetAvatarURL

func (m *MessageAuthor) GetAvatarURL() *string

func (*MessageAuthor) GetContact

func (m *MessageAuthor) GetContact() *MiniContact

func (*MessageAuthor) GetExtraProperties

func (m *MessageAuthor) GetExtraProperties() map[string]interface{}

func (*MessageAuthor) GetName

func (m *MessageAuthor) GetName() string

func (*MessageAuthor) GetUser

func (m *MessageAuthor) GetUser() *MiniUser

func (*MessageAuthor) MarshalJSON

func (m *MessageAuthor) MarshalJSON() ([]byte, error)

func (*MessageAuthor) SetAvatarURL

func (m *MessageAuthor) SetAvatarURL(avatarURL *string)

SetAvatarURL sets the AvatarURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MessageAuthor) SetContact

func (m *MessageAuthor) SetContact(contact *MiniContact)

SetContact sets the Contact field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MessageAuthor) SetName

func (m *MessageAuthor) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MessageAuthor) SetUser

func (m *MessageAuthor) SetUser(user *MiniUser)

SetUser sets the User field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MessageAuthor) String

func (m *MessageAuthor) String() string

func (*MessageAuthor) UnmarshalJSON

func (m *MessageAuthor) UnmarshalJSON(data []byte) error

type MessageReaction

type MessageReaction struct {
	// The number of people who reacted with this emoji.
	Count int64 `json:"count" url:"count"`
	// The emoji's Slack-style shortcode name without colons, such as thumbsup.
	Name string `json:"name" url:"name"`
	// contains filtered or unexported fields
}

func (*MessageReaction) GetCount

func (m *MessageReaction) GetCount() int64

func (*MessageReaction) GetExtraProperties

func (m *MessageReaction) GetExtraProperties() map[string]interface{}

func (*MessageReaction) GetName

func (m *MessageReaction) GetName() string

func (*MessageReaction) MarshalJSON

func (m *MessageReaction) MarshalJSON() ([]byte, error)

func (*MessageReaction) SetCount

func (m *MessageReaction) SetCount(count int64)

SetCount sets the Count field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MessageReaction) SetName

func (m *MessageReaction) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MessageReaction) String

func (m *MessageReaction) String() string

func (*MessageReaction) UnmarshalJSON

func (m *MessageReaction) UnmarshalJSON(data []byte) error

type Milestone

type Milestone struct {
	Account   *MiniAccount `json:"account,omitempty" url:"account,omitempty"`
	CreatedAt time.Time    `json:"created_at" url:"created_at"`
	DueDate   *time.Time   `json:"due_date,omitempty" url:"due_date,omitempty"`
	ID        string       `json:"id" url:"id"`
	Name      string       `json:"name" url:"name"`
	Project   *MiniProject `json:"project,omitempty" url:"project,omitempty"`
	UpdatedAt time.Time    `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*Milestone) GetAccount

func (m *Milestone) GetAccount() *MiniAccount

func (*Milestone) GetCreatedAt

func (m *Milestone) GetCreatedAt() time.Time

func (*Milestone) GetDueDate

func (m *Milestone) GetDueDate() *time.Time

func (*Milestone) GetExtraProperties

func (m *Milestone) GetExtraProperties() map[string]interface{}

func (*Milestone) GetID

func (m *Milestone) GetID() string

func (*Milestone) GetName

func (m *Milestone) GetName() string

func (*Milestone) GetProject

func (m *Milestone) GetProject() *MiniProject

func (*Milestone) GetUpdatedAt

func (m *Milestone) GetUpdatedAt() time.Time

func (*Milestone) MarshalJSON

func (m *Milestone) MarshalJSON() ([]byte, error)

func (*Milestone) SetAccount

func (m *Milestone) SetAccount(account *MiniAccount)

SetAccount sets the Account field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Milestone) SetCreatedAt

func (m *Milestone) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Milestone) SetDueDate

func (m *Milestone) SetDueDate(dueDate *time.Time)

SetDueDate sets the DueDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Milestone) SetID

func (m *Milestone) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Milestone) SetName

func (m *Milestone) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Milestone) SetProject

func (m *Milestone) SetProject(project *MiniProject)

SetProject sets the Project field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Milestone) SetUpdatedAt

func (m *Milestone) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Milestone) String

func (m *Milestone) String() string

func (*Milestone) UnmarshalJSON

func (m *Milestone) UnmarshalJSON(data []byte) error

type MilestonesCreateRequest

type MilestonesCreateRequest struct {
	// Account ID for this project
	AccountID *string `json:"account_id,omitempty" url:"-"`
	// Due date for this milestone, in RFC 3339 format
	DueDate *time.Time `json:"due_date,omitempty" url:"-"`
	// Name for this milestone
	Name string `json:"name" url:"-"`
	// Project ID for this milestone
	ProjectID string `json:"project_id" url:"-"`
	// contains filtered or unexported fields
}

func (*MilestonesCreateRequest) MarshalJSON

func (m *MilestonesCreateRequest) MarshalJSON() ([]byte, error)

func (*MilestonesCreateRequest) SetAccountID

func (m *MilestonesCreateRequest) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MilestonesCreateRequest) SetDueDate

func (m *MilestonesCreateRequest) SetDueDate(dueDate *time.Time)

SetDueDate sets the DueDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MilestonesCreateRequest) SetName

func (m *MilestonesCreateRequest) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MilestonesCreateRequest) SetProjectID

func (m *MilestonesCreateRequest) SetProjectID(projectID string)

SetProjectID sets the ProjectID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MilestonesCreateRequest) UnmarshalJSON

func (m *MilestonesCreateRequest) UnmarshalJSON(data []byte) error

type MilestonesDeleteRequest

type MilestonesDeleteRequest struct {
	// The ID of the milestone to delete.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*MilestonesDeleteRequest) SetID

func (m *MilestonesDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type MilestonesGetRequest

type MilestonesGetRequest struct {
	// The ID of the milestone to fetch.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*MilestonesGetRequest) SetID

func (m *MilestonesGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type MilestonesSearchRequest

type MilestonesSearchRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of milestones to fetch. Defaults to 100. Must be between 1 and 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*MilestonesSearchRequest) MarshalJSON

func (m *MilestonesSearchRequest) MarshalJSON() ([]byte, error)

func (*MilestonesSearchRequest) SetCursor

func (m *MilestonesSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MilestonesSearchRequest) SetFilter

func (m *MilestonesSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MilestonesSearchRequest) SetLimit

func (m *MilestonesSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MilestonesSearchRequest) UnmarshalJSON

func (m *MilestonesSearchRequest) UnmarshalJSON(data []byte) error

type MilestonesUpdateRequest

type MilestonesUpdateRequest struct {
	// The ID of the milestone to update.
	ID string `json:"-" url:"-"`
	// Due date for this milestone, in RFC 3339 format. Set to an empty string to clear it.
	DueDate *string `json:"due_date,omitempty" url:"-"`
	// Name for this milestone
	Name *string `json:"name,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*MilestonesUpdateRequest) MarshalJSON

func (m *MilestonesUpdateRequest) MarshalJSON() ([]byte, error)

func (*MilestonesUpdateRequest) SetDueDate

func (m *MilestonesUpdateRequest) SetDueDate(dueDate *string)

SetDueDate sets the DueDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MilestonesUpdateRequest) SetID

func (m *MilestonesUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MilestonesUpdateRequest) SetName

func (m *MilestonesUpdateRequest) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MilestonesUpdateRequest) UnmarshalJSON

func (m *MilestonesUpdateRequest) UnmarshalJSON(data []byte) error

type MiniAccount

type MiniAccount struct {
	// External IDs associated with the account.
	ExternalIDs []*ExternalID `json:"external_ids,omitempty" url:"external_ids,omitempty"`
	// The ID of the account.
	ID string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*MiniAccount) GetExternalIDs

func (m *MiniAccount) GetExternalIDs() []*ExternalID

func (*MiniAccount) GetExtraProperties

func (m *MiniAccount) GetExtraProperties() map[string]interface{}

func (*MiniAccount) GetID

func (m *MiniAccount) GetID() string

func (*MiniAccount) MarshalJSON

func (m *MiniAccount) MarshalJSON() ([]byte, error)

func (*MiniAccount) SetExternalIDs

func (m *MiniAccount) SetExternalIDs(externalIDs []*ExternalID)

SetExternalIDs sets the ExternalIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniAccount) SetID

func (m *MiniAccount) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniAccount) String

func (m *MiniAccount) String() string

func (*MiniAccount) UnmarshalJSON

func (m *MiniAccount) UnmarshalJSON(data []byte) error

type MiniContact

type MiniContact struct {
	// The email of the contact.
	Email *string `json:"email,omitempty" url:"email,omitempty"`
	// The ID of the contact.
	ID string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*MiniContact) GetEmail

func (m *MiniContact) GetEmail() *string

func (*MiniContact) GetExtraProperties

func (m *MiniContact) GetExtraProperties() map[string]interface{}

func (*MiniContact) GetID

func (m *MiniContact) GetID() string

func (*MiniContact) MarshalJSON

func (m *MiniContact) MarshalJSON() ([]byte, error)

func (*MiniContact) SetEmail

func (m *MiniContact) SetEmail(email *string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniContact) SetID

func (m *MiniContact) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniContact) String

func (m *MiniContact) String() string

func (*MiniContact) UnmarshalJSON

func (m *MiniContact) UnmarshalJSON(data []byte) error

type MiniIssue

type MiniIssue struct {
	// The ID of the issue.
	ID string `json:"id" url:"id"`
	// The number of the issue.
	Number int64 `json:"number" url:"number"`
	// The title of the issue.
	Title string `json:"title" url:"title"`
	// contains filtered or unexported fields
}

func (*MiniIssue) GetExtraProperties

func (m *MiniIssue) GetExtraProperties() map[string]interface{}

func (*MiniIssue) GetID

func (m *MiniIssue) GetID() string

func (*MiniIssue) GetNumber

func (m *MiniIssue) GetNumber() int64

func (*MiniIssue) GetTitle

func (m *MiniIssue) GetTitle() string

func (*MiniIssue) MarshalJSON

func (m *MiniIssue) MarshalJSON() ([]byte, error)

func (*MiniIssue) SetID

func (m *MiniIssue) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniIssue) SetNumber

func (m *MiniIssue) SetNumber(number int64)

SetNumber sets the Number field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniIssue) SetTitle

func (m *MiniIssue) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniIssue) String

func (m *MiniIssue) String() string

func (*MiniIssue) UnmarshalJSON

func (m *MiniIssue) UnmarshalJSON(data []byte) error

type MiniMilestone

type MiniMilestone struct {
	// The ID of the milestone.
	ID string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*MiniMilestone) GetExtraProperties

func (m *MiniMilestone) GetExtraProperties() map[string]interface{}

func (*MiniMilestone) GetID

func (m *MiniMilestone) GetID() string

func (*MiniMilestone) MarshalJSON

func (m *MiniMilestone) MarshalJSON() ([]byte, error)

func (*MiniMilestone) SetID

func (m *MiniMilestone) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniMilestone) String

func (m *MiniMilestone) String() string

func (*MiniMilestone) UnmarshalJSON

func (m *MiniMilestone) UnmarshalJSON(data []byte) error

type MiniProject

type MiniProject struct {
	// The ID of the project.
	ID string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*MiniProject) GetExtraProperties

func (m *MiniProject) GetExtraProperties() map[string]interface{}

func (*MiniProject) GetID

func (m *MiniProject) GetID() string

func (*MiniProject) MarshalJSON

func (m *MiniProject) MarshalJSON() ([]byte, error)

func (*MiniProject) SetID

func (m *MiniProject) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniProject) String

func (m *MiniProject) String() string

func (*MiniProject) UnmarshalJSON

func (m *MiniProject) UnmarshalJSON(data []byte) error

type MiniProjectTemplate

type MiniProjectTemplate struct {
	// The ID of the project template.
	ID string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*MiniProjectTemplate) GetExtraProperties

func (m *MiniProjectTemplate) GetExtraProperties() map[string]interface{}

func (*MiniProjectTemplate) GetID

func (m *MiniProjectTemplate) GetID() string

func (*MiniProjectTemplate) MarshalJSON

func (m *MiniProjectTemplate) MarshalJSON() ([]byte, error)

func (*MiniProjectTemplate) SetID

func (m *MiniProjectTemplate) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniProjectTemplate) String

func (m *MiniProjectTemplate) String() string

func (*MiniProjectTemplate) UnmarshalJSON

func (m *MiniProjectTemplate) UnmarshalJSON(data []byte) error

type MiniRole

type MiniRole struct {
	// The ID of the role.
	ID string `json:"id" url:"id"`
	// The name of the role.
	Name string `json:"name" url:"name"`
	// The slug of the role.
	Slug string `json:"slug" url:"slug"`
	// contains filtered or unexported fields
}

func (*MiniRole) GetExtraProperties

func (m *MiniRole) GetExtraProperties() map[string]interface{}

func (*MiniRole) GetID

func (m *MiniRole) GetID() string

func (*MiniRole) GetName

func (m *MiniRole) GetName() string

func (*MiniRole) GetSlug

func (m *MiniRole) GetSlug() string

func (*MiniRole) MarshalJSON

func (m *MiniRole) MarshalJSON() ([]byte, error)

func (*MiniRole) SetID

func (m *MiniRole) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniRole) SetName

func (m *MiniRole) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniRole) SetSlug

func (m *MiniRole) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniRole) String

func (m *MiniRole) String() string

func (*MiniRole) UnmarshalJSON

func (m *MiniRole) UnmarshalJSON(data []byte) error

type MiniTeam

type MiniTeam struct {
	// The ID of the team.
	ID string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*MiniTeam) GetExtraProperties

func (m *MiniTeam) GetExtraProperties() map[string]interface{}

func (*MiniTeam) GetID

func (m *MiniTeam) GetID() string

func (*MiniTeam) MarshalJSON

func (m *MiniTeam) MarshalJSON() ([]byte, error)

func (*MiniTeam) SetID

func (m *MiniTeam) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniTeam) String

func (m *MiniTeam) String() string

func (*MiniTeam) UnmarshalJSON

func (m *MiniTeam) UnmarshalJSON(data []byte) error

type MiniUser

type MiniUser struct {
	// The email of the user.
	Email *string `json:"email,omitempty" url:"email,omitempty"`
	// The ID of the user.
	ID string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*MiniUser) GetEmail

func (m *MiniUser) GetEmail() *string

func (*MiniUser) GetExtraProperties

func (m *MiniUser) GetExtraProperties() map[string]interface{}

func (*MiniUser) GetID

func (m *MiniUser) GetID() string

func (*MiniUser) MarshalJSON

func (m *MiniUser) MarshalJSON() ([]byte, error)

func (*MiniUser) SetEmail

func (m *MiniUser) SetEmail(email *string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniUser) SetID

func (m *MiniUser) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MiniUser) String

func (m *MiniUser) String() string

func (*MiniUser) UnmarshalJSON

func (m *MiniUser) UnmarshalJSON(data []byte) error

type MirrorChannel

type MirrorChannel struct {
	// The ID of the channel. If this is a Microsoft Teams channel, the ID must be in the format of `{team_id}|{channel_id}`.
	ChannelID *string `json:"channel_id,omitempty" url:"channel_id,omitempty"`
	// The channel source. This can be any supported integration source.
	Source *string `json:"source,omitempty" url:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*MirrorChannel) GetChannelID

func (m *MirrorChannel) GetChannelID() *string

func (*MirrorChannel) GetExtraProperties

func (m *MirrorChannel) GetExtraProperties() map[string]interface{}

func (*MirrorChannel) GetSource

func (m *MirrorChannel) GetSource() *string

func (*MirrorChannel) MarshalJSON

func (m *MirrorChannel) MarshalJSON() ([]byte, error)

func (*MirrorChannel) SetChannelID

func (m *MirrorChannel) SetChannelID(channelID *string)

SetChannelID sets the ChannelID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MirrorChannel) SetSource

func (m *MirrorChannel) SetSource(source *string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MirrorChannel) String

func (m *MirrorChannel) String() string

func (*MirrorChannel) UnmarshalJSON

func (m *MirrorChannel) UnmarshalJSON(data []byte) error

type NotFoundError

type NotFoundError struct {
	*core.APIError
	Body *ErrorAPIResponseBody
}

func (*NotFoundError) GetBody

func (n *NotFoundError) GetBody() *ErrorAPIResponseBody

func (*NotFoundError) MarshalJSON

func (n *NotFoundError) MarshalJSON() ([]byte, error)

func (*NotFoundError) UnmarshalJSON

func (n *NotFoundError) UnmarshalJSON(data []byte) error

func (*NotFoundError) Unwrap

func (n *NotFoundError) Unwrap() error

type NumberMetadata

type NumberMetadata struct {
	// The currency of the number custom field.
	Currency *string `json:"currency,omitempty" url:"currency,omitempty"`
	// The decimal places of the number custom field.
	DecimalPlaces *int64 `json:"decimal_places,omitempty" url:"decimal_places,omitempty"`
	// The display format for duration format (auto, minutes, hours, days, months, years).
	DurationDisplayFormat *string `json:"duration_display_format,omitempty" url:"duration_display_format,omitempty"`
	// The input unit for duration format (seconds, minutes, hours, days).
	DurationInputUnit *string `json:"duration_input_unit,omitempty" url:"duration_input_unit,omitempty"`
	// The format of the number custom field.
	//
	// Known values: `with_commas`, `percent`, `currency`, `duration`. This list is not exhaustive.
	Format *string `json:"format,omitempty" url:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*NumberMetadata) GetCurrency

func (n *NumberMetadata) GetCurrency() *string

func (*NumberMetadata) GetDecimalPlaces

func (n *NumberMetadata) GetDecimalPlaces() *int64

func (*NumberMetadata) GetDurationDisplayFormat

func (n *NumberMetadata) GetDurationDisplayFormat() *string

func (*NumberMetadata) GetDurationInputUnit

func (n *NumberMetadata) GetDurationInputUnit() *string

func (*NumberMetadata) GetExtraProperties

func (n *NumberMetadata) GetExtraProperties() map[string]interface{}

func (*NumberMetadata) GetFormat

func (n *NumberMetadata) GetFormat() *string

func (*NumberMetadata) MarshalJSON

func (n *NumberMetadata) MarshalJSON() ([]byte, error)

func (*NumberMetadata) SetCurrency

func (n *NumberMetadata) SetCurrency(currency *string)

SetCurrency sets the Currency field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NumberMetadata) SetDecimalPlaces

func (n *NumberMetadata) SetDecimalPlaces(decimalPlaces *int64)

SetDecimalPlaces sets the DecimalPlaces field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NumberMetadata) SetDurationDisplayFormat

func (n *NumberMetadata) SetDurationDisplayFormat(durationDisplayFormat *string)

SetDurationDisplayFormat sets the DurationDisplayFormat field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NumberMetadata) SetDurationInputUnit

func (n *NumberMetadata) SetDurationInputUnit(durationInputUnit *string)

SetDurationInputUnit sets the DurationInputUnit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NumberMetadata) SetFormat

func (n *NumberMetadata) SetFormat(format *string)

SetFormat sets the Format field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NumberMetadata) String

func (n *NumberMetadata) String() string

func (*NumberMetadata) UnmarshalJSON

func (n *NumberMetadata) UnmarshalJSON(data []byte) error

type Pagination

type Pagination struct {
	// The cursor for the next page of results.
	Cursor string `json:"cursor" url:"cursor"`
	// Indicates if there is a next page of results.
	HasNextPage bool `json:"has_next_page" url:"has_next_page"`
	// contains filtered or unexported fields
}

Pagination information for list responses. Absent when there are no more results.

func (*Pagination) GetCursor

func (p *Pagination) GetCursor() string

func (*Pagination) GetExtraProperties

func (p *Pagination) GetExtraProperties() map[string]interface{}

func (*Pagination) GetHasNextPage

func (p *Pagination) GetHasNextPage() bool

func (*Pagination) MarshalJSON

func (p *Pagination) MarshalJSON() ([]byte, error)

func (*Pagination) SetCursor

func (p *Pagination) SetCursor(cursor string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Pagination) SetHasNextPage

func (p *Pagination) SetHasNextPage(hasNextPage bool)

SetHasNextPage sets the HasNextPage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Pagination) String

func (p *Pagination) String() string

func (*Pagination) UnmarshalJSON

func (p *Pagination) UnmarshalJSON(data []byte) error

type Project

type Project struct {
	Account *MiniAccount `json:"account,omitempty" url:"account,omitempty"`
	// Instructions the AI follows when keeping this smart project up to date.
	AiInstructions string `json:"ai_instructions" url:"ai_instructions"`
	// The archived at time of the project in RFC3339 format.
	ArchivedAt *time.Time `json:"archived_at,omitempty" url:"archived_at,omitempty"`
	// The created at time of the project.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// Custom fields for this project, keyed by slug.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// The customer portal visible of the project.
	CustomerPortalVisible bool `json:"customer_portal_visible" url:"customer_portal_visible"`
	// The description of the project in HTML format.
	DescriptionHTML *string `json:"description_html,omitempty" url:"description_html,omitempty"`
	// The end date of the project in RFC3339 format.
	EndDate *time.Time `json:"end_date,omitempty" url:"end_date,omitempty"`
	// The ID of the project.
	ID string `json:"id" url:"id"`
	// Whether the project is archived.
	IsArchived bool `json:"is_archived" url:"is_archived"`
	// The name of the project.
	Name string `json:"name" url:"name"`
	// The owner ID of the project.
	OwnerID *string `json:"owner_id,omitempty" url:"owner_id,omitempty"`
	// The fraction of completed tasks, from 0 to 1.
	Progress        float64              `json:"progress" url:"progress"`
	ProjectTemplate *MiniProjectTemplate `json:"project_template,omitempty" url:"project_template,omitempty"`
	// The start date of the project in RFC3339 format.
	StartDate *time.Time `json:"start_date,omitempty" url:"start_date,omitempty"`
	// The status of the project. One of not_started, in_progress, or completed.
	//
	// Known values: `not_started`, `in_progress`, `completed`. This list is not exhaustive.
	Status string `json:"status" url:"status"`
	// The updated at time of the project.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*Project) GetAccount

func (p *Project) GetAccount() *MiniAccount

func (*Project) GetAiInstructions

func (p *Project) GetAiInstructions() string

func (*Project) GetArchivedAt

func (p *Project) GetArchivedAt() *time.Time

func (*Project) GetCreatedAt

func (p *Project) GetCreatedAt() time.Time

func (*Project) GetCustomFields

func (p *Project) GetCustomFields() map[string]*CustomFieldValue

func (*Project) GetCustomerPortalVisible

func (p *Project) GetCustomerPortalVisible() bool

func (*Project) GetDescriptionHTML

func (p *Project) GetDescriptionHTML() *string

func (*Project) GetEndDate

func (p *Project) GetEndDate() *time.Time

func (*Project) GetExtraProperties

func (p *Project) GetExtraProperties() map[string]interface{}

func (*Project) GetID

func (p *Project) GetID() string

func (*Project) GetIsArchived

func (p *Project) GetIsArchived() bool

func (*Project) GetName

func (p *Project) GetName() string

func (*Project) GetOwnerID

func (p *Project) GetOwnerID() *string

func (*Project) GetProgress

func (p *Project) GetProgress() float64

func (*Project) GetProjectTemplate

func (p *Project) GetProjectTemplate() *MiniProjectTemplate

func (*Project) GetStartDate

func (p *Project) GetStartDate() *time.Time

func (*Project) GetStatus

func (p *Project) GetStatus() string

func (*Project) GetUpdatedAt

func (p *Project) GetUpdatedAt() time.Time

func (*Project) MarshalJSON

func (p *Project) MarshalJSON() ([]byte, error)

func (*Project) SetAccount

func (p *Project) SetAccount(account *MiniAccount)

SetAccount sets the Account field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetAiInstructions

func (p *Project) SetAiInstructions(aiInstructions string)

SetAiInstructions sets the AiInstructions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetArchivedAt

func (p *Project) SetArchivedAt(archivedAt *time.Time)

SetArchivedAt sets the ArchivedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetCreatedAt

func (p *Project) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetCustomFields

func (p *Project) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetCustomerPortalVisible

func (p *Project) SetCustomerPortalVisible(customerPortalVisible bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetDescriptionHTML

func (p *Project) SetDescriptionHTML(descriptionHTML *string)

SetDescriptionHTML sets the DescriptionHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetEndDate

func (p *Project) SetEndDate(endDate *time.Time)

SetEndDate sets the EndDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetID

func (p *Project) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetIsArchived

func (p *Project) SetIsArchived(isArchived bool)

SetIsArchived sets the IsArchived field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetName

func (p *Project) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetOwnerID

func (p *Project) SetOwnerID(ownerID *string)

SetOwnerID sets the OwnerID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetProgress

func (p *Project) SetProgress(progress float64)

SetProgress sets the Progress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetProjectTemplate

func (p *Project) SetProjectTemplate(projectTemplate *MiniProjectTemplate)

SetProjectTemplate sets the ProjectTemplate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetStartDate

func (p *Project) SetStartDate(startDate *time.Time)

SetStartDate sets the StartDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetStatus

func (p *Project) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) SetUpdatedAt

func (p *Project) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Project) String

func (p *Project) String() string

func (*Project) UnmarshalJSON

func (p *Project) UnmarshalJSON(data []byte) error

type ProjectsCreateRequest

type ProjectsCreateRequest struct {
	// Account ID for this project
	AccountID string `json:"account_id" url:"-"`
	// Instructions the AI follows when keeping this smart project up to date. Overrides the template's instructions when provided.
	AiInstructions *string `json:"ai_instructions,omitempty" url:"-"`
	// Customer portal visible for this project
	CustomerPortalVisible *bool `json:"customer_portal_visible,omitempty" url:"-"`
	// Description HTML for this project
	DescriptionHTML *string `json:"description_html,omitempty" url:"-"`
	// End date for this project, in RFC 3339 format
	EndDate *time.Time `json:"end_date,omitempty" url:"-"`
	// Name for this project. Required unless project_template_id is provided. When both are provided, this name overrides the template's name.
	Name *string `json:"name,omitempty" url:"-"`
	// Owner ID for this project
	OwnerID *string `json:"owner_id,omitempty" url:"-"`
	// Project template ID for this project. When provided, it supplies defaults; non-empty name and description_html values and supplied ai_instructions, customer_portal_visible, and owner_id values override them. Supplying either start_date or end_date replaces both template dates.
	ProjectTemplateID *string `json:"project_template_id,omitempty" url:"-"`
	// Start date for this project, in RFC 3339 format
	StartDate *time.Time `json:"start_date,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ProjectsCreateRequest) MarshalJSON

func (p *ProjectsCreateRequest) MarshalJSON() ([]byte, error)

func (*ProjectsCreateRequest) SetAccountID

func (p *ProjectsCreateRequest) SetAccountID(accountID string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsCreateRequest) SetAiInstructions

func (p *ProjectsCreateRequest) SetAiInstructions(aiInstructions *string)

SetAiInstructions sets the AiInstructions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsCreateRequest) SetCustomerPortalVisible

func (p *ProjectsCreateRequest) SetCustomerPortalVisible(customerPortalVisible *bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsCreateRequest) SetDescriptionHTML

func (p *ProjectsCreateRequest) SetDescriptionHTML(descriptionHTML *string)

SetDescriptionHTML sets the DescriptionHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsCreateRequest) SetEndDate

func (p *ProjectsCreateRequest) SetEndDate(endDate *time.Time)

SetEndDate sets the EndDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsCreateRequest) SetName

func (p *ProjectsCreateRequest) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsCreateRequest) SetOwnerID

func (p *ProjectsCreateRequest) SetOwnerID(ownerID *string)

SetOwnerID sets the OwnerID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsCreateRequest) SetProjectTemplateID

func (p *ProjectsCreateRequest) SetProjectTemplateID(projectTemplateID *string)

SetProjectTemplateID sets the ProjectTemplateID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsCreateRequest) SetStartDate

func (p *ProjectsCreateRequest) SetStartDate(startDate *time.Time)

SetStartDate sets the StartDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsCreateRequest) UnmarshalJSON

func (p *ProjectsCreateRequest) UnmarshalJSON(data []byte) error

type ProjectsDeleteRequest

type ProjectsDeleteRequest struct {
	// The ID of the project to delete.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*ProjectsDeleteRequest) SetID

func (p *ProjectsDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ProjectsGetRequest

type ProjectsGetRequest struct {
	// The ID of the project to fetch.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*ProjectsGetRequest) SetID

func (p *ProjectsGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ProjectsSearchRequest

type ProjectsSearchRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of projects to fetch. Defaults to 100. Must be greater than 0 and less than 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ProjectsSearchRequest) MarshalJSON

func (p *ProjectsSearchRequest) MarshalJSON() ([]byte, error)

func (*ProjectsSearchRequest) SetCursor

func (p *ProjectsSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsSearchRequest) SetFilter

func (p *ProjectsSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsSearchRequest) SetLimit

func (p *ProjectsSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsSearchRequest) UnmarshalJSON

func (p *ProjectsSearchRequest) UnmarshalJSON(data []byte) error

type ProjectsUpdateRequest

type ProjectsUpdateRequest struct {
	// The ID of the project to update.
	ID string `json:"-" url:"-"`
	// Instructions the AI follows when keeping this smart project up to date. Set to an empty string to clear them.
	AiInstructions *string `json:"ai_instructions,omitempty" url:"-"`
	// An array of custom fields to be used on this project. Only passed in fields will be modified.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// Customer portal visible for this project
	CustomerPortalVisible *bool `json:"customer_portal_visible,omitempty" url:"-"`
	// Description HTML for this project
	DescriptionHTML *string `json:"description_html,omitempty" url:"-"`
	// End date for this project, in RFC 3339 format. Set to an empty string to clear it.
	EndDate *string `json:"end_date,omitempty" url:"-"`
	// Whether the project is archived
	IsArchived *bool `json:"is_archived,omitempty" url:"-"`
	// Name for this project
	Name *string `json:"name,omitempty" url:"-"`
	// Owner ID for this project
	OwnerID *string `json:"owner_id,omitempty" url:"-"`
	// Start date for this project, in RFC 3339 format. Set to an empty string to clear it.
	StartDate *string `json:"start_date,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ProjectsUpdateRequest) MarshalJSON

func (p *ProjectsUpdateRequest) MarshalJSON() ([]byte, error)

func (*ProjectsUpdateRequest) SetAiInstructions

func (p *ProjectsUpdateRequest) SetAiInstructions(aiInstructions *string)

SetAiInstructions sets the AiInstructions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsUpdateRequest) SetCustomFields

func (p *ProjectsUpdateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsUpdateRequest) SetCustomerPortalVisible

func (p *ProjectsUpdateRequest) SetCustomerPortalVisible(customerPortalVisible *bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsUpdateRequest) SetDescriptionHTML

func (p *ProjectsUpdateRequest) SetDescriptionHTML(descriptionHTML *string)

SetDescriptionHTML sets the DescriptionHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsUpdateRequest) SetEndDate

func (p *ProjectsUpdateRequest) SetEndDate(endDate *string)

SetEndDate sets the EndDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsUpdateRequest) SetID

func (p *ProjectsUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsUpdateRequest) SetIsArchived

func (p *ProjectsUpdateRequest) SetIsArchived(isArchived *bool)

SetIsArchived sets the IsArchived field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsUpdateRequest) SetName

func (p *ProjectsUpdateRequest) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsUpdateRequest) SetOwnerID

func (p *ProjectsUpdateRequest) SetOwnerID(ownerID *string)

SetOwnerID sets the OwnerID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsUpdateRequest) SetStartDate

func (p *ProjectsUpdateRequest) SetStartDate(startDate *string)

SetStartDate sets the StartDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProjectsUpdateRequest) UnmarshalJSON

func (p *ProjectsUpdateRequest) UnmarshalJSON(data []byte) error

type PublishKnowledgeBaseThemeResponseBody

type PublishKnowledgeBaseThemeResponseBody struct {
	Data *KnowledgeBaseTheme `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*PublishKnowledgeBaseThemeResponseBody) GetData

func (*PublishKnowledgeBaseThemeResponseBody) GetExtraProperties

func (p *PublishKnowledgeBaseThemeResponseBody) GetExtraProperties() map[string]interface{}

func (*PublishKnowledgeBaseThemeResponseBody) GetRequestID

func (*PublishKnowledgeBaseThemeResponseBody) MarshalJSON

func (p *PublishKnowledgeBaseThemeResponseBody) MarshalJSON() ([]byte, error)

func (*PublishKnowledgeBaseThemeResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublishKnowledgeBaseThemeResponseBody) SetRequestID

func (p *PublishKnowledgeBaseThemeResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublishKnowledgeBaseThemeResponseBody) String

func (*PublishKnowledgeBaseThemeResponseBody) UnmarshalJSON

func (p *PublishKnowledgeBaseThemeResponseBody) UnmarshalJSON(data []byte) error

type RedactMessageResponseBody

type RedactMessageResponseBody struct {
	Data *Message `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*RedactMessageResponseBody) GetData

func (r *RedactMessageResponseBody) GetData() *Message

func (*RedactMessageResponseBody) GetExtraProperties

func (r *RedactMessageResponseBody) GetExtraProperties() map[string]interface{}

func (*RedactMessageResponseBody) GetRequestID

func (r *RedactMessageResponseBody) GetRequestID() string

func (*RedactMessageResponseBody) MarshalJSON

func (r *RedactMessageResponseBody) MarshalJSON() ([]byte, error)

func (*RedactMessageResponseBody) SetData

func (r *RedactMessageResponseBody) SetData(data *Message)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RedactMessageResponseBody) SetRequestID

func (r *RedactMessageResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RedactMessageResponseBody) String

func (r *RedactMessageResponseBody) String() string

func (*RedactMessageResponseBody) UnmarshalJSON

func (r *RedactMessageResponseBody) UnmarshalJSON(data []byte) error

type RequestArticleReviewData

type RequestArticleReviewData struct {
	// The approval status of the article version after the request.
	ApprovalStatus string `json:"approval_status" url:"approval_status"`
	// The ID of the article the review was requested for.
	ArticleID string `json:"article_id" url:"article_id"`
	// The ID of the article version the review was requested for.
	ArticleVersionID string `json:"article_version_id" url:"article_version_id"`
	// contains filtered or unexported fields
}

func (*RequestArticleReviewData) GetApprovalStatus

func (r *RequestArticleReviewData) GetApprovalStatus() string

func (*RequestArticleReviewData) GetArticleID

func (r *RequestArticleReviewData) GetArticleID() string

func (*RequestArticleReviewData) GetArticleVersionID

func (r *RequestArticleReviewData) GetArticleVersionID() string

func (*RequestArticleReviewData) GetExtraProperties

func (r *RequestArticleReviewData) GetExtraProperties() map[string]interface{}

func (*RequestArticleReviewData) MarshalJSON

func (r *RequestArticleReviewData) MarshalJSON() ([]byte, error)

func (*RequestArticleReviewData) SetApprovalStatus

func (r *RequestArticleReviewData) SetApprovalStatus(approvalStatus string)

SetApprovalStatus sets the ApprovalStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RequestArticleReviewData) SetArticleID

func (r *RequestArticleReviewData) SetArticleID(articleID string)

SetArticleID sets the ArticleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RequestArticleReviewData) SetArticleVersionID

func (r *RequestArticleReviewData) SetArticleVersionID(articleVersionID string)

SetArticleVersionID sets the ArticleVersionID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RequestArticleReviewData) String

func (r *RequestArticleReviewData) String() string

func (*RequestArticleReviewData) UnmarshalJSON

func (r *RequestArticleReviewData) UnmarshalJSON(data []byte) error

type RequestArticleReviewResponseBody

type RequestArticleReviewResponseBody struct {
	Data *RequestArticleReviewData `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*RequestArticleReviewResponseBody) GetData

func (*RequestArticleReviewResponseBody) GetExtraProperties

func (r *RequestArticleReviewResponseBody) GetExtraProperties() map[string]interface{}

func (*RequestArticleReviewResponseBody) GetRequestID

func (r *RequestArticleReviewResponseBody) GetRequestID() string

func (*RequestArticleReviewResponseBody) MarshalJSON

func (r *RequestArticleReviewResponseBody) MarshalJSON() ([]byte, error)

func (*RequestArticleReviewResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RequestArticleReviewResponseBody) SetRequestID

func (r *RequestArticleReviewResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RequestArticleReviewResponseBody) String

func (*RequestArticleReviewResponseBody) UnmarshalJSON

func (r *RequestArticleReviewResponseBody) UnmarshalJSON(data []byte) error

type RouteRedirect

type RouteRedirect struct {
	// The time at which the route redirect was created.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The path to redirect from.
	FromPath string `json:"from_path" url:"from_path"`
	// The ID of the route redirect.
	ID string `json:"id" url:"id"`
	// The language of the object to redirect to.
	Language *string `json:"language,omitempty" url:"language,omitempty"`
	// The ID of the object to redirect to.
	ObjectID string `json:"object_id" url:"object_id"`
	// The type of the object to redirect to.
	ObjectType string `json:"object_type" url:"object_type"`
	// contains filtered or unexported fields
}

func (*RouteRedirect) GetCreatedAt

func (r *RouteRedirect) GetCreatedAt() time.Time

func (*RouteRedirect) GetExtraProperties

func (r *RouteRedirect) GetExtraProperties() map[string]interface{}

func (*RouteRedirect) GetFromPath

func (r *RouteRedirect) GetFromPath() string

func (*RouteRedirect) GetID

func (r *RouteRedirect) GetID() string

func (*RouteRedirect) GetLanguage

func (r *RouteRedirect) GetLanguage() *string

func (*RouteRedirect) GetObjectID

func (r *RouteRedirect) GetObjectID() string

func (*RouteRedirect) GetObjectType

func (r *RouteRedirect) GetObjectType() string

func (*RouteRedirect) MarshalJSON

func (r *RouteRedirect) MarshalJSON() ([]byte, error)

func (*RouteRedirect) SetCreatedAt

func (r *RouteRedirect) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RouteRedirect) SetFromPath

func (r *RouteRedirect) SetFromPath(fromPath string)

SetFromPath sets the FromPath field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RouteRedirect) SetID

func (r *RouteRedirect) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RouteRedirect) SetLanguage

func (r *RouteRedirect) SetLanguage(language *string)

SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RouteRedirect) SetObjectID

func (r *RouteRedirect) SetObjectID(objectID string)

SetObjectID sets the ObjectID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RouteRedirect) SetObjectType

func (r *RouteRedirect) SetObjectType(objectType string)

SetObjectType sets the ObjectType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RouteRedirect) String

func (r *RouteRedirect) String() string

func (*RouteRedirect) UnmarshalJSON

func (r *RouteRedirect) UnmarshalJSON(data []byte) error

type SLATimes

type SLATimes struct {
	// The ID of the user the issue was assigned to when the breach was detected, if it breached.
	AssigneeIDAtBreach *string `json:"assignee_id_at_breach,omitempty" url:"assignee_id_at_breach,omitempty"`
	// The time at which it breaches (or has breached), if any.
	BreachTime *time.Time `json:"breach_time,omitempty" url:"breach_time,omitempty"`
	// The part of `seconds` that falls within support hours, if any.
	BusinessHoursSeconds *int64 `json:"business_hours_seconds,omitempty" url:"business_hours_seconds,omitempty"`
	// The ID of the user whose action resolved it, if any. Absent when it was resolved by a contact or automation.
	ResolvingUserID *string `json:"resolving_user_id,omitempty" url:"resolving_user_id,omitempty"`
	// The elapsed time in seconds, counting only time the issue spent in states that count toward this SLA. May be less than the time between the SLA's start and `time`.
	Seconds *int64 `json:"seconds,omitempty" url:"seconds,omitempty"`
	// The time it was reached, if any.
	Time *time.Time `json:"time,omitempty" url:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*SLATimes) GetAssigneeIDAtBreach

func (s *SLATimes) GetAssigneeIDAtBreach() *string

func (*SLATimes) GetBreachTime

func (s *SLATimes) GetBreachTime() *time.Time

func (*SLATimes) GetBusinessHoursSeconds

func (s *SLATimes) GetBusinessHoursSeconds() *int64

func (*SLATimes) GetExtraProperties

func (s *SLATimes) GetExtraProperties() map[string]interface{}

func (*SLATimes) GetResolvingUserID

func (s *SLATimes) GetResolvingUserID() *string

func (*SLATimes) GetSeconds

func (s *SLATimes) GetSeconds() *int64

func (*SLATimes) GetTime

func (s *SLATimes) GetTime() *time.Time

func (*SLATimes) MarshalJSON

func (s *SLATimes) MarshalJSON() ([]byte, error)

func (*SLATimes) SetAssigneeIDAtBreach

func (s *SLATimes) SetAssigneeIDAtBreach(assigneeIDAtBreach *string)

SetAssigneeIDAtBreach sets the AssigneeIDAtBreach field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SLATimes) SetBreachTime

func (s *SLATimes) SetBreachTime(breachTime *time.Time)

SetBreachTime sets the BreachTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SLATimes) SetBusinessHoursSeconds

func (s *SLATimes) SetBusinessHoursSeconds(businessHoursSeconds *int64)

SetBusinessHoursSeconds sets the BusinessHoursSeconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SLATimes) SetResolvingUserID

func (s *SLATimes) SetResolvingUserID(resolvingUserID *string)

SetResolvingUserID sets the ResolvingUserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SLATimes) SetSeconds

func (s *SLATimes) SetSeconds(seconds *int64)

SetSeconds sets the Seconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SLATimes) SetTime

func (s *SLATimes) SetTime(time *time.Time)

SetTime sets the Time field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SLATimes) String

func (s *SLATimes) String() string

func (*SLATimes) UnmarshalJSON

func (s *SLATimes) UnmarshalJSON(data []byte) error

type SearchAccountsResponseBody

type SearchAccountsResponseBody struct {
	// The data payload of the response.
	Data       []*Account  `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchAccountsResponseBody) GetData

func (s *SearchAccountsResponseBody) GetData() []*Account

func (*SearchAccountsResponseBody) GetExtraProperties

func (s *SearchAccountsResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchAccountsResponseBody) GetPagination

func (s *SearchAccountsResponseBody) GetPagination() *Pagination

func (*SearchAccountsResponseBody) GetRequestID

func (s *SearchAccountsResponseBody) GetRequestID() string

func (*SearchAccountsResponseBody) MarshalJSON

func (s *SearchAccountsResponseBody) MarshalJSON() ([]byte, error)

func (*SearchAccountsResponseBody) SetData

func (s *SearchAccountsResponseBody) SetData(data []*Account)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchAccountsResponseBody) SetPagination

func (s *SearchAccountsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchAccountsResponseBody) SetRequestID

func (s *SearchAccountsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchAccountsResponseBody) String

func (s *SearchAccountsResponseBody) String() string

func (*SearchAccountsResponseBody) UnmarshalJSON

func (s *SearchAccountsResponseBody) UnmarshalJSON(data []byte) error

type SearchCallRecordingsResponseBody

type SearchCallRecordingsResponseBody struct {
	// The data payload of the response.
	Data       []*CallRecording `json:"data" url:"data"`
	Pagination *Pagination      `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchCallRecordingsResponseBody) GetData

func (*SearchCallRecordingsResponseBody) GetExtraProperties

func (s *SearchCallRecordingsResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchCallRecordingsResponseBody) GetPagination

func (s *SearchCallRecordingsResponseBody) GetPagination() *Pagination

func (*SearchCallRecordingsResponseBody) GetRequestID

func (s *SearchCallRecordingsResponseBody) GetRequestID() string

func (*SearchCallRecordingsResponseBody) MarshalJSON

func (s *SearchCallRecordingsResponseBody) MarshalJSON() ([]byte, error)

func (*SearchCallRecordingsResponseBody) SetData

func (s *SearchCallRecordingsResponseBody) SetData(data []*CallRecording)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchCallRecordingsResponseBody) SetPagination

func (s *SearchCallRecordingsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchCallRecordingsResponseBody) SetRequestID

func (s *SearchCallRecordingsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchCallRecordingsResponseBody) String

func (*SearchCallRecordingsResponseBody) UnmarshalJSON

func (s *SearchCallRecordingsResponseBody) UnmarshalJSON(data []byte) error

type SearchContactsResponseBody

type SearchContactsResponseBody struct {
	// The data payload of the response.
	Data       []*Contact  `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchContactsResponseBody) GetData

func (s *SearchContactsResponseBody) GetData() []*Contact

func (*SearchContactsResponseBody) GetExtraProperties

func (s *SearchContactsResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchContactsResponseBody) GetPagination

func (s *SearchContactsResponseBody) GetPagination() *Pagination

func (*SearchContactsResponseBody) GetRequestID

func (s *SearchContactsResponseBody) GetRequestID() string

func (*SearchContactsResponseBody) MarshalJSON

func (s *SearchContactsResponseBody) MarshalJSON() ([]byte, error)

func (*SearchContactsResponseBody) SetData

func (s *SearchContactsResponseBody) SetData(data []*Contact)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchContactsResponseBody) SetPagination

func (s *SearchContactsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchContactsResponseBody) SetRequestID

func (s *SearchContactsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchContactsResponseBody) String

func (s *SearchContactsResponseBody) String() string

func (*SearchContactsResponseBody) UnmarshalJSON

func (s *SearchContactsResponseBody) UnmarshalJSON(data []byte) error

type SearchCustomObjectsResponseBody

type SearchCustomObjectsResponseBody struct {
	Data       []*APICustomObject `json:"data" url:"data"`
	Pagination *Pagination        `json:"pagination,omitempty" url:"pagination,omitempty"`
	RequestID  string             `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchCustomObjectsResponseBody) GetData

func (*SearchCustomObjectsResponseBody) GetExtraProperties

func (s *SearchCustomObjectsResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchCustomObjectsResponseBody) GetPagination

func (s *SearchCustomObjectsResponseBody) GetPagination() *Pagination

func (*SearchCustomObjectsResponseBody) GetRequestID

func (s *SearchCustomObjectsResponseBody) GetRequestID() string

func (*SearchCustomObjectsResponseBody) MarshalJSON

func (s *SearchCustomObjectsResponseBody) MarshalJSON() ([]byte, error)

func (*SearchCustomObjectsResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchCustomObjectsResponseBody) SetPagination

func (s *SearchCustomObjectsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchCustomObjectsResponseBody) SetRequestID

func (s *SearchCustomObjectsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchCustomObjectsResponseBody) String

func (*SearchCustomObjectsResponseBody) UnmarshalJSON

func (s *SearchCustomObjectsResponseBody) UnmarshalJSON(data []byte) error

type SearchFeatureRequestsResponseBody

type SearchFeatureRequestsResponseBody struct {
	Data      []*FeatureRequestSearchResult `json:"data" url:"data"`
	RequestID string                        `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchFeatureRequestsResponseBody) GetData

func (*SearchFeatureRequestsResponseBody) GetExtraProperties

func (s *SearchFeatureRequestsResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchFeatureRequestsResponseBody) GetRequestID

func (s *SearchFeatureRequestsResponseBody) GetRequestID() string

func (*SearchFeatureRequestsResponseBody) MarshalJSON

func (s *SearchFeatureRequestsResponseBody) MarshalJSON() ([]byte, error)

func (*SearchFeatureRequestsResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchFeatureRequestsResponseBody) SetRequestID

func (s *SearchFeatureRequestsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchFeatureRequestsResponseBody) String

func (*SearchFeatureRequestsResponseBody) UnmarshalJSON

func (s *SearchFeatureRequestsResponseBody) UnmarshalJSON(data []byte) error

type SearchIssuesResponseBody

type SearchIssuesResponseBody struct {
	Data       []*Issue    `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	RequestID  string      `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchIssuesResponseBody) GetData

func (s *SearchIssuesResponseBody) GetData() []*Issue

func (*SearchIssuesResponseBody) GetExtraProperties

func (s *SearchIssuesResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchIssuesResponseBody) GetPagination

func (s *SearchIssuesResponseBody) GetPagination() *Pagination

func (*SearchIssuesResponseBody) GetRequestID

func (s *SearchIssuesResponseBody) GetRequestID() string

func (*SearchIssuesResponseBody) MarshalJSON

func (s *SearchIssuesResponseBody) MarshalJSON() ([]byte, error)

func (*SearchIssuesResponseBody) SetData

func (s *SearchIssuesResponseBody) SetData(data []*Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchIssuesResponseBody) SetPagination

func (s *SearchIssuesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchIssuesResponseBody) SetRequestID

func (s *SearchIssuesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchIssuesResponseBody) String

func (s *SearchIssuesResponseBody) String() string

func (*SearchIssuesResponseBody) UnmarshalJSON

func (s *SearchIssuesResponseBody) UnmarshalJSON(data []byte) error

type SearchMilestonesResponseBody

type SearchMilestonesResponseBody struct {
	Data       []*Milestone `json:"data" url:"data"`
	Pagination *Pagination  `json:"pagination,omitempty" url:"pagination,omitempty"`
	RequestID  string       `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchMilestonesResponseBody) GetData

func (s *SearchMilestonesResponseBody) GetData() []*Milestone

func (*SearchMilestonesResponseBody) GetExtraProperties

func (s *SearchMilestonesResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchMilestonesResponseBody) GetPagination

func (s *SearchMilestonesResponseBody) GetPagination() *Pagination

func (*SearchMilestonesResponseBody) GetRequestID

func (s *SearchMilestonesResponseBody) GetRequestID() string

func (*SearchMilestonesResponseBody) MarshalJSON

func (s *SearchMilestonesResponseBody) MarshalJSON() ([]byte, error)

func (*SearchMilestonesResponseBody) SetData

func (s *SearchMilestonesResponseBody) SetData(data []*Milestone)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchMilestonesResponseBody) SetPagination

func (s *SearchMilestonesResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchMilestonesResponseBody) SetRequestID

func (s *SearchMilestonesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchMilestonesResponseBody) String

func (*SearchMilestonesResponseBody) UnmarshalJSON

func (s *SearchMilestonesResponseBody) UnmarshalJSON(data []byte) error

type SearchProjectsResponseBody

type SearchProjectsResponseBody struct {
	Data       []*Project  `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	RequestID  string      `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchProjectsResponseBody) GetData

func (s *SearchProjectsResponseBody) GetData() []*Project

func (*SearchProjectsResponseBody) GetExtraProperties

func (s *SearchProjectsResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchProjectsResponseBody) GetPagination

func (s *SearchProjectsResponseBody) GetPagination() *Pagination

func (*SearchProjectsResponseBody) GetRequestID

func (s *SearchProjectsResponseBody) GetRequestID() string

func (*SearchProjectsResponseBody) MarshalJSON

func (s *SearchProjectsResponseBody) MarshalJSON() ([]byte, error)

func (*SearchProjectsResponseBody) SetData

func (s *SearchProjectsResponseBody) SetData(data []*Project)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchProjectsResponseBody) SetPagination

func (s *SearchProjectsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchProjectsResponseBody) SetRequestID

func (s *SearchProjectsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchProjectsResponseBody) String

func (s *SearchProjectsResponseBody) String() string

func (*SearchProjectsResponseBody) UnmarshalJSON

func (s *SearchProjectsResponseBody) UnmarshalJSON(data []byte) error

type SearchSurveysResponseBody

type SearchSurveysResponseBody struct {
	Data      []*Survey `json:"data" url:"data"`
	RequestID string    `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchSurveysResponseBody) GetData

func (s *SearchSurveysResponseBody) GetData() []*Survey

func (*SearchSurveysResponseBody) GetExtraProperties

func (s *SearchSurveysResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchSurveysResponseBody) GetRequestID

func (s *SearchSurveysResponseBody) GetRequestID() string

func (*SearchSurveysResponseBody) MarshalJSON

func (s *SearchSurveysResponseBody) MarshalJSON() ([]byte, error)

func (*SearchSurveysResponseBody) SetData

func (s *SearchSurveysResponseBody) SetData(data []*Survey)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchSurveysResponseBody) SetRequestID

func (s *SearchSurveysResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchSurveysResponseBody) String

func (s *SearchSurveysResponseBody) String() string

func (*SearchSurveysResponseBody) UnmarshalJSON

func (s *SearchSurveysResponseBody) UnmarshalJSON(data []byte) error

type SearchTagsRequestObjectType

type SearchTagsRequestObjectType string

Only return tags of this object type. Omit to search every type the caller can read.

const (
	SearchTagsRequestObjectTypeAccount SearchTagsRequestObjectType = "account"
	SearchTagsRequestObjectTypeArticle SearchTagsRequestObjectType = "article"
	SearchTagsRequestObjectTypeIssue   SearchTagsRequestObjectType = "issue"
)

func NewSearchTagsRequestObjectTypeFromString

func NewSearchTagsRequestObjectTypeFromString(s string) (SearchTagsRequestObjectType, error)

func (SearchTagsRequestObjectType) Ptr

type SearchTagsResponseBody

type SearchTagsResponseBody struct {
	// The data payload of the response.
	Data       []*Tag      `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchTagsResponseBody) GetData

func (s *SearchTagsResponseBody) GetData() []*Tag

func (*SearchTagsResponseBody) GetExtraProperties

func (s *SearchTagsResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchTagsResponseBody) GetPagination

func (s *SearchTagsResponseBody) GetPagination() *Pagination

func (*SearchTagsResponseBody) GetRequestID

func (s *SearchTagsResponseBody) GetRequestID() string

func (*SearchTagsResponseBody) MarshalJSON

func (s *SearchTagsResponseBody) MarshalJSON() ([]byte, error)

func (*SearchTagsResponseBody) SetData

func (s *SearchTagsResponseBody) SetData(data []*Tag)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchTagsResponseBody) SetPagination

func (s *SearchTagsResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchTagsResponseBody) SetRequestID

func (s *SearchTagsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchTagsResponseBody) String

func (s *SearchTagsResponseBody) String() string

func (*SearchTagsResponseBody) UnmarshalJSON

func (s *SearchTagsResponseBody) UnmarshalJSON(data []byte) error

type SearchTasksResponseBody

type SearchTasksResponseBody struct {
	Data       []*Task     `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	RequestID  string      `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchTasksResponseBody) GetData

func (s *SearchTasksResponseBody) GetData() []*Task

func (*SearchTasksResponseBody) GetExtraProperties

func (s *SearchTasksResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchTasksResponseBody) GetPagination

func (s *SearchTasksResponseBody) GetPagination() *Pagination

func (*SearchTasksResponseBody) GetRequestID

func (s *SearchTasksResponseBody) GetRequestID() string

func (*SearchTasksResponseBody) MarshalJSON

func (s *SearchTasksResponseBody) MarshalJSON() ([]byte, error)

func (*SearchTasksResponseBody) SetData

func (s *SearchTasksResponseBody) SetData(data []*Task)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchTasksResponseBody) SetPagination

func (s *SearchTasksResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchTasksResponseBody) SetRequestID

func (s *SearchTasksResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchTasksResponseBody) String

func (s *SearchTasksResponseBody) String() string

func (*SearchTasksResponseBody) UnmarshalJSON

func (s *SearchTasksResponseBody) UnmarshalJSON(data []byte) error

type SearchUsersResponseBody

type SearchUsersResponseBody struct {
	// The data payload of the response.
	Data       []*User     `json:"data" url:"data"`
	Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SearchUsersResponseBody) GetData

func (s *SearchUsersResponseBody) GetData() []*User

func (*SearchUsersResponseBody) GetExtraProperties

func (s *SearchUsersResponseBody) GetExtraProperties() map[string]interface{}

func (*SearchUsersResponseBody) GetPagination

func (s *SearchUsersResponseBody) GetPagination() *Pagination

func (*SearchUsersResponseBody) GetRequestID

func (s *SearchUsersResponseBody) GetRequestID() string

func (*SearchUsersResponseBody) MarshalJSON

func (s *SearchUsersResponseBody) MarshalJSON() ([]byte, error)

func (*SearchUsersResponseBody) SetData

func (s *SearchUsersResponseBody) SetData(data []*User)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchUsersResponseBody) SetPagination

func (s *SearchUsersResponseBody) SetPagination(pagination *Pagination)

SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchUsersResponseBody) SetRequestID

func (s *SearchUsersResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SearchUsersResponseBody) String

func (s *SearchUsersResponseBody) String() string

func (*SearchUsersResponseBody) UnmarshalJSON

func (s *SearchUsersResponseBody) UnmarshalJSON(data []byte) error

type SelectMetadata

type SelectMetadata struct {
	// The list options of the select custom field. This is only present for select and multiselect custom fields.
	Options []*CustomFieldDefinitionSelectOption `json:"options,omitempty" url:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectMetadata) GetExtraProperties

func (s *SelectMetadata) GetExtraProperties() map[string]interface{}

func (*SelectMetadata) GetOptions

func (*SelectMetadata) MarshalJSON

func (s *SelectMetadata) MarshalJSON() ([]byte, error)

func (*SelectMetadata) SetOptions

func (s *SelectMetadata) SetOptions(options []*CustomFieldDefinitionSelectOption)

SetOptions sets the Options field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SelectMetadata) String

func (s *SelectMetadata) String() string

func (*SelectMetadata) UnmarshalJSON

func (s *SelectMetadata) UnmarshalJSON(data []byte) error

type SetFeatureRequestPortalVisibilityResponseBody

type SetFeatureRequestPortalVisibilityResponseBody struct {
	Data      *FeatureRequest `json:"data" url:"data"`
	RequestID string          `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SetFeatureRequestPortalVisibilityResponseBody) GetData

func (*SetFeatureRequestPortalVisibilityResponseBody) GetExtraProperties

func (s *SetFeatureRequestPortalVisibilityResponseBody) GetExtraProperties() map[string]interface{}

func (*SetFeatureRequestPortalVisibilityResponseBody) GetRequestID

func (*SetFeatureRequestPortalVisibilityResponseBody) MarshalJSON

func (*SetFeatureRequestPortalVisibilityResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetFeatureRequestPortalVisibilityResponseBody) SetRequestID

func (s *SetFeatureRequestPortalVisibilityResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetFeatureRequestPortalVisibilityResponseBody) String

func (*SetFeatureRequestPortalVisibilityResponseBody) UnmarshalJSON

func (s *SetFeatureRequestPortalVisibilityResponseBody) UnmarshalJSON(data []byte) error

type SkippedIssue

type SkippedIssue struct {
	// The issue ID as given in the request.
	IssueID string `json:"issue_id" url:"issue_id"`
	// Why the operation was not applied to this issue.
	//
	// Known values: `not_found`, `forbidden`, `unsupported_source`, `failed`. This list is not exhaustive.
	Reason string `json:"reason" url:"reason"`
	// contains filtered or unexported fields
}

func (*SkippedIssue) GetExtraProperties

func (s *SkippedIssue) GetExtraProperties() map[string]interface{}

func (*SkippedIssue) GetIssueID

func (s *SkippedIssue) GetIssueID() string

func (*SkippedIssue) GetReason

func (s *SkippedIssue) GetReason() string

func (*SkippedIssue) MarshalJSON

func (s *SkippedIssue) MarshalJSON() ([]byte, error)

func (*SkippedIssue) SetIssueID

func (s *SkippedIssue) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SkippedIssue) SetReason

func (s *SkippedIssue) SetReason(reason string)

SetReason sets the Reason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SkippedIssue) String

func (s *SkippedIssue) String() string

func (*SkippedIssue) UnmarshalJSON

func (s *SkippedIssue) UnmarshalJSON(data []byte) error

type SlackInfo

type SlackInfo struct {
	// The Slack channel ID associated with the issue.
	ChannelID string `json:"channel_id" url:"channel_id"`
	// The root message ID of slack message that started issue.
	MessageTs string `json:"message_ts" url:"message_ts"`
	// The Slack workspace ID associated with the issue.
	WorkspaceID string `json:"workspace_id" url:"workspace_id"`
	// contains filtered or unexported fields
}

func (*SlackInfo) GetChannelID

func (s *SlackInfo) GetChannelID() string

func (*SlackInfo) GetExtraProperties

func (s *SlackInfo) GetExtraProperties() map[string]interface{}

func (*SlackInfo) GetMessageTs

func (s *SlackInfo) GetMessageTs() string

func (*SlackInfo) GetWorkspaceID

func (s *SlackInfo) GetWorkspaceID() string

func (*SlackInfo) MarshalJSON

func (s *SlackInfo) MarshalJSON() ([]byte, error)

func (*SlackInfo) SetChannelID

func (s *SlackInfo) SetChannelID(channelID string)

SetChannelID sets the ChannelID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SlackInfo) SetMessageTs

func (s *SlackInfo) SetMessageTs(messageTs string)

SetMessageTs sets the MessageTs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SlackInfo) SetWorkspaceID

func (s *SlackInfo) SetWorkspaceID(workspaceID string)

SetWorkspaceID sets the WorkspaceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SlackInfo) String

func (s *SlackInfo) String() string

func (*SlackInfo) UnmarshalJSON

func (s *SlackInfo) UnmarshalJSON(data []byte) error

type SlackMessageInfo

type SlackMessageInfo struct {
	// The Slack channel ID the message was posted in.
	ChannelID string `json:"channel_id" url:"channel_id"`
	// The Slack timestamp of this message, which is its Slack message ID.
	MessageTs string `json:"message_ts" url:"message_ts"`
	// A link that opens this specific message in Slack. Omitted when the workspace's Slack domain is unknown.
	Permalink *string `json:"permalink,omitempty" url:"permalink,omitempty"`
	// The timestamp of the thread's root message. Equal to message_ts for the root message itself.
	ThreadTs string `json:"thread_ts" url:"thread_ts"`
	// contains filtered or unexported fields
}

func (*SlackMessageInfo) GetChannelID

func (s *SlackMessageInfo) GetChannelID() string

func (*SlackMessageInfo) GetExtraProperties

func (s *SlackMessageInfo) GetExtraProperties() map[string]interface{}

func (*SlackMessageInfo) GetMessageTs

func (s *SlackMessageInfo) GetMessageTs() string
func (s *SlackMessageInfo) GetPermalink() *string

func (*SlackMessageInfo) GetThreadTs

func (s *SlackMessageInfo) GetThreadTs() string

func (*SlackMessageInfo) MarshalJSON

func (s *SlackMessageInfo) MarshalJSON() ([]byte, error)

func (*SlackMessageInfo) SetChannelID

func (s *SlackMessageInfo) SetChannelID(channelID string)

SetChannelID sets the ChannelID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SlackMessageInfo) SetMessageTs

func (s *SlackMessageInfo) SetMessageTs(messageTs string)

SetMessageTs sets the MessageTs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (s *SlackMessageInfo) SetPermalink(permalink *string)

SetPermalink sets the Permalink field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SlackMessageInfo) SetThreadTs

func (s *SlackMessageInfo) SetThreadTs(threadTs string)

SetThreadTs sets the ThreadTs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SlackMessageInfo) String

func (s *SlackMessageInfo) String() string

func (*SlackMessageInfo) UnmarshalJSON

func (s *SlackMessageInfo) UnmarshalJSON(data []byte) error

type SnoozeIssueResponseBody

type SnoozeIssueResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SnoozeIssueResponseBody) GetData

func (s *SnoozeIssueResponseBody) GetData() *Issue

func (*SnoozeIssueResponseBody) GetExtraProperties

func (s *SnoozeIssueResponseBody) GetExtraProperties() map[string]interface{}

func (*SnoozeIssueResponseBody) GetRequestID

func (s *SnoozeIssueResponseBody) GetRequestID() string

func (*SnoozeIssueResponseBody) MarshalJSON

func (s *SnoozeIssueResponseBody) MarshalJSON() ([]byte, error)

func (*SnoozeIssueResponseBody) SetData

func (s *SnoozeIssueResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnoozeIssueResponseBody) SetRequestID

func (s *SnoozeIssueResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnoozeIssueResponseBody) String

func (s *SnoozeIssueResponseBody) String() string

func (*SnoozeIssueResponseBody) UnmarshalJSON

func (s *SnoozeIssueResponseBody) UnmarshalJSON(data []byte) error

type SubmitTicketFormField

type SubmitTicketFormField struct {
	// The field slug returned by GET /ticket-forms/{id}.
	Slug string `json:"slug" url:"slug"`
	// The submitted value for a single-value field.
	Value *string `json:"value,omitempty" url:"value,omitempty"`
	// The submitted values for a multi-value field, or HTTPS URLs for a file-upload field. File-upload URLs are copied into durable Pylon storage before the submission is persisted.
	Values []string `json:"values,omitempty" url:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitTicketFormField) GetExtraProperties

func (s *SubmitTicketFormField) GetExtraProperties() map[string]interface{}

func (*SubmitTicketFormField) GetSlug

func (s *SubmitTicketFormField) GetSlug() string

func (*SubmitTicketFormField) GetValue

func (s *SubmitTicketFormField) GetValue() *string

func (*SubmitTicketFormField) GetValues

func (s *SubmitTicketFormField) GetValues() []string

func (*SubmitTicketFormField) MarshalJSON

func (s *SubmitTicketFormField) MarshalJSON() ([]byte, error)

func (*SubmitTicketFormField) SetSlug

func (s *SubmitTicketFormField) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitTicketFormField) SetValue

func (s *SubmitTicketFormField) SetValue(value *string)

SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitTicketFormField) SetValues

func (s *SubmitTicketFormField) SetValues(values []string)

SetValues sets the Values field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitTicketFormField) String

func (s *SubmitTicketFormField) String() string

func (*SubmitTicketFormField) UnmarshalJSON

func (s *SubmitTicketFormField) UnmarshalJSON(data []byte) error

type SubmitTicketFormResponseBody

type SubmitTicketFormResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*SubmitTicketFormResponseBody) GetData

func (s *SubmitTicketFormResponseBody) GetData() *Issue

func (*SubmitTicketFormResponseBody) GetExtraProperties

func (s *SubmitTicketFormResponseBody) GetExtraProperties() map[string]interface{}

func (*SubmitTicketFormResponseBody) GetRequestID

func (s *SubmitTicketFormResponseBody) GetRequestID() string

func (*SubmitTicketFormResponseBody) MarshalJSON

func (s *SubmitTicketFormResponseBody) MarshalJSON() ([]byte, error)

func (*SubmitTicketFormResponseBody) SetData

func (s *SubmitTicketFormResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitTicketFormResponseBody) SetRequestID

func (s *SubmitTicketFormResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitTicketFormResponseBody) String

func (*SubmitTicketFormResponseBody) UnmarshalJSON

func (s *SubmitTicketFormResponseBody) UnmarshalJSON(data []byte) error

type Survey

type Survey struct {
	// The unique identifier of the survey.
	ID string `json:"id" url:"id"`
	// The name of the survey.
	Name string `json:"name" url:"name"`
	// The type of the survey.
	//
	// Known values: `nps`, `csat`, `custom`. This list is not exhaustive.
	Type string `json:"type" url:"type"`
	// When the survey was last updated (RFC3339 format).
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*Survey) GetExtraProperties

func (s *Survey) GetExtraProperties() map[string]interface{}

func (*Survey) GetID

func (s *Survey) GetID() string

func (*Survey) GetName

func (s *Survey) GetName() string

func (*Survey) GetType

func (s *Survey) GetType() string

func (*Survey) GetUpdatedAt

func (s *Survey) GetUpdatedAt() time.Time

func (*Survey) MarshalJSON

func (s *Survey) MarshalJSON() ([]byte, error)

func (*Survey) SetID

func (s *Survey) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Survey) SetName

func (s *Survey) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Survey) SetType

func (s *Survey) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Survey) SetUpdatedAt

func (s *Survey) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Survey) String

func (s *Survey) String() string

func (*Survey) UnmarshalJSON

func (s *Survey) UnmarshalJSON(data []byte) error

type SurveyResponse

type SurveyResponse struct {
	// The ID of the account associated with the response.
	AccountID *string `json:"account_id,omitempty" url:"account_id,omitempty"`
	// The answers submitted in this response.
	Answers []*SurveyResponseAnswer `json:"answers,omitempty" url:"answers,omitempty"`
	// The ID of the contact who submitted the response.
	ContactID *string `json:"contact_id,omitempty" url:"contact_id,omitempty"`
	// When the response was excluded from analytics.
	ExcludedAt *time.Time `json:"excluded_at,omitempty" url:"excluded_at,omitempty"`
	// The unique identifier of the survey response.
	ID string `json:"id" url:"id"`
	// The ID of the issue associated with this response, when applicable.
	IssueID *string `json:"issue_id,omitempty" url:"issue_id,omitempty"`
	// When the response was submitted.
	SubmittedAt *time.Time `json:"submitted_at,omitempty" url:"submitted_at,omitempty"`
	// The ID of the survey template associated with this response.
	SurveyID *string `json:"survey_id,omitempty" url:"survey_id,omitempty"`
	// The ID of the individual survey delivery that produced this response.
	SurveyInstanceID string `json:"survey_instance_id" url:"survey_instance_id"`
	// The type of survey associated with this response.
	//
	// Known values: `nps`, `csat`, `custom`. This list is not exhaustive.
	SurveyType string `json:"survey_type" url:"survey_type"`
	// contains filtered or unexported fields
}

func (*SurveyResponse) GetAccountID

func (s *SurveyResponse) GetAccountID() *string

func (*SurveyResponse) GetAnswers

func (s *SurveyResponse) GetAnswers() []*SurveyResponseAnswer

func (*SurveyResponse) GetContactID

func (s *SurveyResponse) GetContactID() *string

func (*SurveyResponse) GetExcludedAt

func (s *SurveyResponse) GetExcludedAt() *time.Time

func (*SurveyResponse) GetExtraProperties

func (s *SurveyResponse) GetExtraProperties() map[string]interface{}

func (*SurveyResponse) GetID

func (s *SurveyResponse) GetID() string

func (*SurveyResponse) GetIssueID

func (s *SurveyResponse) GetIssueID() *string

func (*SurveyResponse) GetSubmittedAt

func (s *SurveyResponse) GetSubmittedAt() *time.Time

func (*SurveyResponse) GetSurveyID

func (s *SurveyResponse) GetSurveyID() *string

func (*SurveyResponse) GetSurveyInstanceID

func (s *SurveyResponse) GetSurveyInstanceID() string

func (*SurveyResponse) GetSurveyType

func (s *SurveyResponse) GetSurveyType() string

func (*SurveyResponse) MarshalJSON

func (s *SurveyResponse) MarshalJSON() ([]byte, error)

func (*SurveyResponse) SetAccountID

func (s *SurveyResponse) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponse) SetAnswers

func (s *SurveyResponse) SetAnswers(answers []*SurveyResponseAnswer)

SetAnswers sets the Answers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponse) SetContactID

func (s *SurveyResponse) SetContactID(contactID *string)

SetContactID sets the ContactID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponse) SetExcludedAt

func (s *SurveyResponse) SetExcludedAt(excludedAt *time.Time)

SetExcludedAt sets the ExcludedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponse) SetID

func (s *SurveyResponse) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponse) SetIssueID

func (s *SurveyResponse) SetIssueID(issueID *string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponse) SetSubmittedAt

func (s *SurveyResponse) SetSubmittedAt(submittedAt *time.Time)

SetSubmittedAt sets the SubmittedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponse) SetSurveyID

func (s *SurveyResponse) SetSurveyID(surveyID *string)

SetSurveyID sets the SurveyID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponse) SetSurveyInstanceID

func (s *SurveyResponse) SetSurveyInstanceID(surveyInstanceID string)

SetSurveyInstanceID sets the SurveyInstanceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponse) SetSurveyType

func (s *SurveyResponse) SetSurveyType(surveyType string)

SetSurveyType sets the SurveyType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponse) String

func (s *SurveyResponse) String() string

func (*SurveyResponse) UnmarshalJSON

func (s *SurveyResponse) UnmarshalJSON(data []byte) error

type SurveyResponseAnswer

type SurveyResponseAnswer struct {
	// The prompt/question that was answered.
	Prompt string `json:"prompt" url:"prompt"`
	// The ID of the survey question, when applicable.
	QuestionID *string `json:"question_id,omitempty" url:"question_id,omitempty"`
	// The type of question (score or comment).
	QuestionType string `json:"question_type" url:"question_type"`
	// The value of the answer.
	Value string `json:"value" url:"value"`
	// contains filtered or unexported fields
}

func (*SurveyResponseAnswer) GetExtraProperties

func (s *SurveyResponseAnswer) GetExtraProperties() map[string]interface{}

func (*SurveyResponseAnswer) GetPrompt

func (s *SurveyResponseAnswer) GetPrompt() string

func (*SurveyResponseAnswer) GetQuestionID

func (s *SurveyResponseAnswer) GetQuestionID() *string

func (*SurveyResponseAnswer) GetQuestionType

func (s *SurveyResponseAnswer) GetQuestionType() string

func (*SurveyResponseAnswer) GetValue

func (s *SurveyResponseAnswer) GetValue() string

func (*SurveyResponseAnswer) MarshalJSON

func (s *SurveyResponseAnswer) MarshalJSON() ([]byte, error)

func (*SurveyResponseAnswer) SetPrompt

func (s *SurveyResponseAnswer) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponseAnswer) SetQuestionID

func (s *SurveyResponseAnswer) SetQuestionID(questionID *string)

SetQuestionID sets the QuestionID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponseAnswer) SetQuestionType

func (s *SurveyResponseAnswer) SetQuestionType(questionType string)

SetQuestionType sets the QuestionType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponseAnswer) SetValue

func (s *SurveyResponseAnswer) SetValue(value string)

SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveyResponseAnswer) String

func (s *SurveyResponseAnswer) String() string

func (*SurveyResponseAnswer) UnmarshalJSON

func (s *SurveyResponseAnswer) UnmarshalJSON(data []byte) error

type SurveysGetRequest

type SurveysGetRequest struct {
	// The ID of the survey.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*SurveysGetRequest) SetID

func (s *SurveysGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type SurveysSearchRequest

type SurveysSearchRequest struct {
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of surveys to fetch. Defaults to 100. Must be between 1 and 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*SurveysSearchRequest) MarshalJSON

func (s *SurveysSearchRequest) MarshalJSON() ([]byte, error)

func (*SurveysSearchRequest) SetFilter

func (s *SurveysSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveysSearchRequest) SetLimit

func (s *SurveysSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SurveysSearchRequest) UnmarshalJSON

func (s *SurveysSearchRequest) UnmarshalJSON(data []byte) error

type Tag

type Tag struct {
	// The hex code of the tag's color.
	HexColor *string `json:"hex_color,omitempty" url:"hex_color,omitempty"`
	// The ID of the tag.
	ID string `json:"id" url:"id"`
	// The object type of the tagged object.
	//
	// Known values: `account`, `article`, `issue`. This list is not exhaustive.
	ObjectType string `json:"object_type" url:"object_type"`
	// The value of the Tag.
	Value string `json:"value" url:"value"`
	// contains filtered or unexported fields
}

func (*Tag) GetExtraProperties

func (t *Tag) GetExtraProperties() map[string]interface{}

func (*Tag) GetHexColor

func (t *Tag) GetHexColor() *string

func (*Tag) GetID

func (t *Tag) GetID() string

func (*Tag) GetObjectType

func (t *Tag) GetObjectType() string

func (*Tag) GetValue

func (t *Tag) GetValue() string

func (*Tag) MarshalJSON

func (t *Tag) MarshalJSON() ([]byte, error)

func (*Tag) SetHexColor

func (t *Tag) SetHexColor(hexColor *string)

SetHexColor sets the HexColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Tag) SetID

func (t *Tag) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Tag) SetObjectType

func (t *Tag) SetObjectType(objectType string)

SetObjectType sets the ObjectType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Tag) SetValue

func (t *Tag) SetValue(value string)

SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Tag) String

func (t *Tag) String() string

func (*Tag) UnmarshalJSON

func (t *Tag) UnmarshalJSON(data []byte) error

type TagsCreateRequest

type TagsCreateRequest struct {
	// The hex code of the tag's color.
	HexColor *string `json:"hex_color,omitempty" url:"-"`
	// The object type of the associated object. Can be "account", "article", or "issue".
	ObjectType CreateTagRequestBodyObjectType `json:"object_type" url:"-"`
	// The tag value.
	Value string `json:"value" url:"-"`
	// contains filtered or unexported fields
}

func (*TagsCreateRequest) MarshalJSON

func (t *TagsCreateRequest) MarshalJSON() ([]byte, error)

func (*TagsCreateRequest) SetHexColor

func (t *TagsCreateRequest) SetHexColor(hexColor *string)

SetHexColor sets the HexColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TagsCreateRequest) SetObjectType

func (t *TagsCreateRequest) SetObjectType(objectType CreateTagRequestBodyObjectType)

SetObjectType sets the ObjectType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TagsCreateRequest) SetValue

func (t *TagsCreateRequest) SetValue(value string)

SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TagsCreateRequest) UnmarshalJSON

func (t *TagsCreateRequest) UnmarshalJSON(data []byte) error

type TagsDeleteRequest

type TagsDeleteRequest struct {
	// The ID of the tag to update.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*TagsDeleteRequest) SetID

func (t *TagsDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type TagsGetRequest

type TagsGetRequest struct {
	// The ID of the tag.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*TagsGetRequest) SetID

func (t *TagsGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type TagsSearchRequest

type TagsSearchRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	// The number of tags to fetch. Defaults to 100. Must be greater than 0 and less than 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// Only return tags of this object type. Omit to search every type the caller can read.
	ObjectType *SearchTagsRequestObjectType `json:"object_type,omitempty" url:"-"`
	// Only return tags whose value contains this text. Spaces, hyphens, and underscores match each other.
	SearchText *string `json:"search_text,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*TagsSearchRequest) MarshalJSON

func (t *TagsSearchRequest) MarshalJSON() ([]byte, error)

func (*TagsSearchRequest) SetCursor

func (t *TagsSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TagsSearchRequest) SetLimit

func (t *TagsSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TagsSearchRequest) SetObjectType

func (t *TagsSearchRequest) SetObjectType(objectType *SearchTagsRequestObjectType)

SetObjectType sets the ObjectType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TagsSearchRequest) SetSearchText

func (t *TagsSearchRequest) SetSearchText(searchText *string)

SetSearchText sets the SearchText field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TagsSearchRequest) UnmarshalJSON

func (t *TagsSearchRequest) UnmarshalJSON(data []byte) error

type TagsUpdateRequest

type TagsUpdateRequest struct {
	// The ID of the tag to update.
	ID string `json:"-" url:"-"`
	// The hex code of the tag's color.
	HexColor *string `json:"hex_color,omitempty" url:"-"`
	// in: body
	// The name of the tag.
	Value *string `json:"value,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*TagsUpdateRequest) MarshalJSON

func (t *TagsUpdateRequest) MarshalJSON() ([]byte, error)

func (*TagsUpdateRequest) SetHexColor

func (t *TagsUpdateRequest) SetHexColor(hexColor *string)

SetHexColor sets the HexColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TagsUpdateRequest) SetID

func (t *TagsUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TagsUpdateRequest) SetValue

func (t *TagsUpdateRequest) SetValue(value *string)

SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TagsUpdateRequest) UnmarshalJSON

func (t *TagsUpdateRequest) UnmarshalJSON(data []byte) error

type Task

type Task struct {
	Account *MiniAccount `json:"account,omitempty" url:"account,omitempty"`
	// Instructions the AI follows when evaluating this task in a smart project.
	AiInstructions string `json:"ai_instructions" url:"ai_instructions"`
	Assignee       *Actor `json:"assignee,omitempty" url:"assignee,omitempty"`
	// The IDs of tasks that block this task.
	BlockedByTaskIDs []string `json:"blocked_by_task_ids,omitempty" url:"blocked_by_task_ids,omitempty"`
	// The IDs of tasks that this task blocks.
	BlocksTaskIDs []string `json:"blocks_task_ids,omitempty" url:"blocks_task_ids,omitempty"`
	// The body of the task in HTML format.
	BodyHTML string `json:"body_html" url:"body_html"`
	// The completion time of the task in RFC3339 format.
	CompletedAt *time.Time `json:"completed_at,omitempty" url:"completed_at,omitempty"`
	// The created at time of the task.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// Custom field values associated with the task, keyed by custom field slug.
	CustomFields map[string]*CustomFieldValue `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
	// The customer portal visible of the task.
	CustomerPortalVisible bool `json:"customer_portal_visible" url:"customer_portal_visible"`
	// The due date of the task in RFC3339 format.
	DueDate *time.Time `json:"due_date,omitempty" url:"due_date,omitempty"`
	// The external product issues associated with the task, if any.
	ExternalIssues []*ExternalIssue `json:"external_issues,omitempty" url:"external_issues,omitempty"`
	// The ID of the task.
	ID string `json:"id" url:"id"`
	// The Pylon issues linked to the task that the current user can access, if any.
	LinkedIssues []*MiniIssue   `json:"linked_issues,omitempty" url:"linked_issues,omitempty"`
	Milestone    *MiniMilestone `json:"milestone,omitempty" url:"milestone,omitempty"`
	// The ID of the parent task, if this is a subtask.
	ParentTaskID *string      `json:"parent_task_id,omitempty" url:"parent_task_id,omitempty"`
	Project      *MiniProject `json:"project,omitempty" url:"project,omitempty"`
	Status       TaskStatus   `json:"status" url:"status"`
	// The IDs of subtasks belonging to this task.
	SubtaskIDs []string `json:"subtask_ids,omitempty" url:"subtask_ids,omitempty"`
	// The title of the task.
	Title string `json:"title" url:"title"`
	// The updated at time of the task.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*Task) GetAccount

func (t *Task) GetAccount() *MiniAccount

func (*Task) GetAiInstructions

func (t *Task) GetAiInstructions() string

func (*Task) GetAssignee

func (t *Task) GetAssignee() *Actor

func (*Task) GetBlockedByTaskIDs

func (t *Task) GetBlockedByTaskIDs() []string

func (*Task) GetBlocksTaskIDs

func (t *Task) GetBlocksTaskIDs() []string

func (*Task) GetBodyHTML

func (t *Task) GetBodyHTML() string

func (*Task) GetCompletedAt

func (t *Task) GetCompletedAt() *time.Time

func (*Task) GetCreatedAt

func (t *Task) GetCreatedAt() time.Time

func (*Task) GetCustomFields

func (t *Task) GetCustomFields() map[string]*CustomFieldValue

func (*Task) GetCustomerPortalVisible

func (t *Task) GetCustomerPortalVisible() bool

func (*Task) GetDueDate

func (t *Task) GetDueDate() *time.Time

func (*Task) GetExternalIssues

func (t *Task) GetExternalIssues() []*ExternalIssue

func (*Task) GetExtraProperties

func (t *Task) GetExtraProperties() map[string]interface{}

func (*Task) GetID

func (t *Task) GetID() string

func (*Task) GetLinkedIssues

func (t *Task) GetLinkedIssues() []*MiniIssue

func (*Task) GetMilestone

func (t *Task) GetMilestone() *MiniMilestone

func (*Task) GetParentTaskID

func (t *Task) GetParentTaskID() *string

func (*Task) GetProject

func (t *Task) GetProject() *MiniProject

func (*Task) GetStatus

func (t *Task) GetStatus() TaskStatus

func (*Task) GetSubtaskIDs

func (t *Task) GetSubtaskIDs() []string

func (*Task) GetTitle

func (t *Task) GetTitle() string

func (*Task) GetUpdatedAt

func (t *Task) GetUpdatedAt() time.Time

func (*Task) MarshalJSON

func (t *Task) MarshalJSON() ([]byte, error)

func (*Task) SetAccount

func (t *Task) SetAccount(account *MiniAccount)

SetAccount sets the Account field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetAiInstructions

func (t *Task) SetAiInstructions(aiInstructions string)

SetAiInstructions sets the AiInstructions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetAssignee

func (t *Task) SetAssignee(assignee *Actor)

SetAssignee sets the Assignee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetBlockedByTaskIDs

func (t *Task) SetBlockedByTaskIDs(blockedByTaskIDs []string)

SetBlockedByTaskIDs sets the BlockedByTaskIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetBlocksTaskIDs

func (t *Task) SetBlocksTaskIDs(blocksTaskIDs []string)

SetBlocksTaskIDs sets the BlocksTaskIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetBodyHTML

func (t *Task) SetBodyHTML(bodyHTML string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetCompletedAt

func (t *Task) SetCompletedAt(completedAt *time.Time)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetCreatedAt

func (t *Task) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetCustomFields

func (t *Task) SetCustomFields(customFields map[string]*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetCustomerPortalVisible

func (t *Task) SetCustomerPortalVisible(customerPortalVisible bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetDueDate

func (t *Task) SetDueDate(dueDate *time.Time)

SetDueDate sets the DueDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetExternalIssues

func (t *Task) SetExternalIssues(externalIssues []*ExternalIssue)

SetExternalIssues sets the ExternalIssues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetID

func (t *Task) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetLinkedIssues

func (t *Task) SetLinkedIssues(linkedIssues []*MiniIssue)

SetLinkedIssues sets the LinkedIssues field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetMilestone

func (t *Task) SetMilestone(milestone *MiniMilestone)

SetMilestone sets the Milestone field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetParentTaskID

func (t *Task) SetParentTaskID(parentTaskID *string)

SetParentTaskID sets the ParentTaskID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetProject

func (t *Task) SetProject(project *MiniProject)

SetProject sets the Project field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetStatus

func (t *Task) SetStatus(status TaskStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetSubtaskIDs

func (t *Task) SetSubtaskIDs(subtaskIDs []string)

SetSubtaskIDs sets the SubtaskIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetTitle

func (t *Task) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) SetUpdatedAt

func (t *Task) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Task) String

func (t *Task) String() string

func (*Task) UnmarshalJSON

func (t *Task) UnmarshalJSON(data []byte) error

type TaskComment

type TaskComment struct {
	Author *Actor `json:"author,omitempty" url:"author,omitempty"`
	// The body of the comment in HTML format.
	BodyHTML string `json:"body_html" url:"body_html"`
	// The created at time of the comment.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The ID of the comment.
	ID string `json:"id" url:"id"`
	// Whether the comment is visible only to internal users.
	IsInternal bool `json:"is_internal" url:"is_internal"`
	// The time the comment was last edited, in RFC3339 format.
	LastEditedAt *time.Time `json:"last_edited_at,omitempty" url:"last_edited_at,omitempty"`
	// The ID of the task this comment belongs to.
	TaskID string `json:"task_id" url:"task_id"`
	// The updated at time of the comment.
	UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*TaskComment) GetAuthor

func (t *TaskComment) GetAuthor() *Actor

func (*TaskComment) GetBodyHTML

func (t *TaskComment) GetBodyHTML() string

func (*TaskComment) GetCreatedAt

func (t *TaskComment) GetCreatedAt() time.Time

func (*TaskComment) GetExtraProperties

func (t *TaskComment) GetExtraProperties() map[string]interface{}

func (*TaskComment) GetID

func (t *TaskComment) GetID() string

func (*TaskComment) GetIsInternal

func (t *TaskComment) GetIsInternal() bool

func (*TaskComment) GetLastEditedAt

func (t *TaskComment) GetLastEditedAt() *time.Time

func (*TaskComment) GetTaskID

func (t *TaskComment) GetTaskID() string

func (*TaskComment) GetUpdatedAt

func (t *TaskComment) GetUpdatedAt() time.Time

func (*TaskComment) MarshalJSON

func (t *TaskComment) MarshalJSON() ([]byte, error)

func (*TaskComment) SetAuthor

func (t *TaskComment) SetAuthor(author *Actor)

SetAuthor sets the Author field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskComment) SetBodyHTML

func (t *TaskComment) SetBodyHTML(bodyHTML string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskComment) SetCreatedAt

func (t *TaskComment) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskComment) SetID

func (t *TaskComment) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskComment) SetIsInternal

func (t *TaskComment) SetIsInternal(isInternal bool)

SetIsInternal sets the IsInternal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskComment) SetLastEditedAt

func (t *TaskComment) SetLastEditedAt(lastEditedAt *time.Time)

SetLastEditedAt sets the LastEditedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskComment) SetTaskID

func (t *TaskComment) SetTaskID(taskID string)

SetTaskID sets the TaskID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskComment) SetUpdatedAt

func (t *TaskComment) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskComment) String

func (t *TaskComment) String() string

func (*TaskComment) UnmarshalJSON

func (t *TaskComment) UnmarshalJSON(data []byte) error

type TaskStatus

type TaskStatus = string

type TaskStatusDetails

type TaskStatusDetails struct {
	// The category of the task status.
	Category string `json:"category" url:"category"`
	// Indicates if the task status is archived.
	IsArchived bool `json:"is_archived" url:"is_archived"`
	// Indicates if the task status is a default status.
	IsDefaultStatus bool `json:"is_default_status" url:"is_default_status"`
	// The label of the task status.
	Label string `json:"label" url:"label"`
	// The slug of the task status.
	Slug string `json:"slug" url:"slug"`
	// contains filtered or unexported fields
}

func (*TaskStatusDetails) GetCategory

func (t *TaskStatusDetails) GetCategory() string

func (*TaskStatusDetails) GetExtraProperties

func (t *TaskStatusDetails) GetExtraProperties() map[string]interface{}

func (*TaskStatusDetails) GetIsArchived

func (t *TaskStatusDetails) GetIsArchived() bool

func (*TaskStatusDetails) GetIsDefaultStatus

func (t *TaskStatusDetails) GetIsDefaultStatus() bool

func (*TaskStatusDetails) GetLabel

func (t *TaskStatusDetails) GetLabel() string

func (*TaskStatusDetails) GetSlug

func (t *TaskStatusDetails) GetSlug() string

func (*TaskStatusDetails) MarshalJSON

func (t *TaskStatusDetails) MarshalJSON() ([]byte, error)

func (*TaskStatusDetails) SetCategory

func (t *TaskStatusDetails) SetCategory(category string)

SetCategory sets the Category field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskStatusDetails) SetIsArchived

func (t *TaskStatusDetails) SetIsArchived(isArchived bool)

SetIsArchived sets the IsArchived field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskStatusDetails) SetIsDefaultStatus

func (t *TaskStatusDetails) SetIsDefaultStatus(isDefaultStatus bool)

SetIsDefaultStatus sets the IsDefaultStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskStatusDetails) SetLabel

func (t *TaskStatusDetails) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskStatusDetails) SetSlug

func (t *TaskStatusDetails) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TaskStatusDetails) String

func (t *TaskStatusDetails) String() string

func (*TaskStatusDetails) UnmarshalJSON

func (t *TaskStatusDetails) UnmarshalJSON(data []byte) error

type TasksCreateRequest

type TasksCreateRequest struct {
	// Account ID for this task
	AccountID *string `json:"account_id,omitempty" url:"-"`
	// Instructions the AI follows when evaluating this task in a smart project
	AiInstructions *string `json:"ai_instructions,omitempty" url:"-"`
	// Assignee ID for this task
	AssigneeID *string `json:"assignee_id,omitempty" url:"-"`
	// IDs of existing tasks that block this task
	BlockedByTaskIDs []string `json:"blocked_by_task_ids,omitempty" url:"-"`
	// Body HTML for this task
	BodyHTML *string `json:"body_html,omitempty" url:"-"`
	// An array of custom fields to be used on this task.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// Customer portal visible for this task
	CustomerPortalVisible *bool `json:"customer_portal_visible,omitempty" url:"-"`
	// Due date for this task, in RFC 3339 format
	DueDate *time.Time `json:"due_date,omitempty" url:"-"`
	// Milestone ID for this task
	MilestoneID *string `json:"milestone_id,omitempty" url:"-"`
	// Parent task ID, to create this task as a subtask
	ParentTaskID *string `json:"parent_task_id,omitempty" url:"-"`
	// Project ID for this task
	ProjectID *string     `json:"project_id,omitempty" url:"-"`
	Status    *TaskStatus `json:"status,omitempty" url:"-"`
	// Title for this task
	Title string `json:"title" url:"-"`
	// contains filtered or unexported fields
}

func (*TasksCreateRequest) MarshalJSON

func (t *TasksCreateRequest) MarshalJSON() ([]byte, error)

func (*TasksCreateRequest) SetAccountID

func (t *TasksCreateRequest) SetAccountID(accountID *string)

SetAccountID sets the AccountID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetAiInstructions

func (t *TasksCreateRequest) SetAiInstructions(aiInstructions *string)

SetAiInstructions sets the AiInstructions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetAssigneeID

func (t *TasksCreateRequest) SetAssigneeID(assigneeID *string)

SetAssigneeID sets the AssigneeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetBlockedByTaskIDs

func (t *TasksCreateRequest) SetBlockedByTaskIDs(blockedByTaskIDs []string)

SetBlockedByTaskIDs sets the BlockedByTaskIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetBodyHTML

func (t *TasksCreateRequest) SetBodyHTML(bodyHTML *string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetCustomFields

func (t *TasksCreateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetCustomerPortalVisible

func (t *TasksCreateRequest) SetCustomerPortalVisible(customerPortalVisible *bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetDueDate

func (t *TasksCreateRequest) SetDueDate(dueDate *time.Time)

SetDueDate sets the DueDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetMilestoneID

func (t *TasksCreateRequest) SetMilestoneID(milestoneID *string)

SetMilestoneID sets the MilestoneID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetParentTaskID

func (t *TasksCreateRequest) SetParentTaskID(parentTaskID *string)

SetParentTaskID sets the ParentTaskID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetProjectID

func (t *TasksCreateRequest) SetProjectID(projectID *string)

SetProjectID sets the ProjectID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetStatus

func (t *TasksCreateRequest) SetStatus(status *TaskStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) SetTitle

func (t *TasksCreateRequest) SetTitle(title string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksCreateRequest) UnmarshalJSON

func (t *TasksCreateRequest) UnmarshalJSON(data []byte) error

type TasksDeleteRequest

type TasksDeleteRequest struct {
	// The ID of the task to delete.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*TasksDeleteRequest) SetID

func (t *TasksDeleteRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type TasksGetRequest

type TasksGetRequest struct {
	// The ID of the task to fetch.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*TasksGetRequest) SetID

func (t *TasksGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type TasksLinkExternalIssueRequest

type TasksLinkExternalIssueRequest struct {
	// The ID of the task to link an external issue to.
	TaskID string `json:"-" url:"-"`
	// The ID or human-readable key of the external issue in the source system.
	ExternalIssueID string `json:"external_issue_id" url:"-"`
	// Operation to perform. Use "link" to link the issue (default) or "unlink" to unlink it.
	Operation *string `json:"operation,omitempty" url:"-"`
	// The source system of the external issue (e.g., "linear", "asana", "jira", "github", "shortcut").
	Source string `json:"source" url:"-"`
	// contains filtered or unexported fields
}

func (*TasksLinkExternalIssueRequest) MarshalJSON

func (t *TasksLinkExternalIssueRequest) MarshalJSON() ([]byte, error)

func (*TasksLinkExternalIssueRequest) SetExternalIssueID

func (t *TasksLinkExternalIssueRequest) SetExternalIssueID(externalIssueID string)

SetExternalIssueID sets the ExternalIssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksLinkExternalIssueRequest) SetOperation

func (t *TasksLinkExternalIssueRequest) SetOperation(operation *string)

SetOperation sets the Operation field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksLinkExternalIssueRequest) SetSource

func (t *TasksLinkExternalIssueRequest) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksLinkExternalIssueRequest) SetTaskID

func (t *TasksLinkExternalIssueRequest) SetTaskID(taskID string)

SetTaskID sets the TaskID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksLinkExternalIssueRequest) UnmarshalJSON

func (t *TasksLinkExternalIssueRequest) UnmarshalJSON(data []byte) error

type TasksLinkIssueRequest

type TasksLinkIssueRequest struct {
	// The ID of the task to link a Pylon issue to.
	TaskID string `json:"-" url:"-"`
	// The ID of the Pylon issue.
	IssueID string `json:"issue_id" url:"-"`
	// Operation to perform. Use "link" to link the issue (default) or "unlink" to unlink it.
	Operation *string `json:"operation,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*TasksLinkIssueRequest) MarshalJSON

func (t *TasksLinkIssueRequest) MarshalJSON() ([]byte, error)

func (*TasksLinkIssueRequest) SetIssueID

func (t *TasksLinkIssueRequest) SetIssueID(issueID string)

SetIssueID sets the IssueID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksLinkIssueRequest) SetOperation

func (t *TasksLinkIssueRequest) SetOperation(operation *string)

SetOperation sets the Operation field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksLinkIssueRequest) SetTaskID

func (t *TasksLinkIssueRequest) SetTaskID(taskID string)

SetTaskID sets the TaskID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksLinkIssueRequest) UnmarshalJSON

func (t *TasksLinkIssueRequest) UnmarshalJSON(data []byte) error

type TasksListRequest

type TasksListRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"-" url:"cursor,omitempty"`
	// The number of tasks to fetch. Defaults to 100. Must be greater than 0 and less than 1000.
	Limit *int64 `json:"-" url:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*TasksListRequest) SetCursor

func (t *TasksListRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksListRequest) SetLimit

func (t *TasksListRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type TasksSearchRequest

type TasksSearchRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of tasks to fetch. Defaults to 100. Must be between 1 and 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*TasksSearchRequest) MarshalJSON

func (t *TasksSearchRequest) MarshalJSON() ([]byte, error)

func (*TasksSearchRequest) SetCursor

func (t *TasksSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksSearchRequest) SetFilter

func (t *TasksSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksSearchRequest) SetLimit

func (t *TasksSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksSearchRequest) UnmarshalJSON

func (t *TasksSearchRequest) UnmarshalJSON(data []byte) error

type TasksUpdateRequest

type TasksUpdateRequest struct {
	// The ID of the task to update.
	ID string `json:"-" url:"-"`
	// Instructions the AI follows when evaluating this task in a smart project. Set to an empty string to clear them.
	AiInstructions *string `json:"ai_instructions,omitempty" url:"-"`
	// Assignee ID for this task
	AssigneeID *string `json:"assignee_id,omitempty" url:"-"`
	// IDs of the tasks that block this task. If provided, replaces the task's current blocking tasks; pass an empty array to remove them all.
	BlockedByTaskIDs []string `json:"blocked_by_task_ids,omitempty" url:"-"`
	// Body HTML for this task
	BodyHTML *string `json:"body_html,omitempty" url:"-"`
	// Completed at time for this task, in RFC 3339 format. The task must already have a completed status and completion date.
	CompletedAt *time.Time `json:"completed_at,omitempty" url:"-"`
	// An array of custom fields to be used on this task. Only passed in fields will be modified.
	CustomFields []*CustomFieldValue `json:"custom_fields,omitempty" url:"-"`
	// Customer portal visible for this task
	CustomerPortalVisible *bool `json:"customer_portal_visible,omitempty" url:"-"`
	// Due date for this task, in RFC 3339 format. Set to an empty string to clear it.
	DueDate *string `json:"due_date,omitempty" url:"-"`
	// Milestone ID for this task
	MilestoneID *string `json:"milestone_id,omitempty" url:"-"`
	// Project ID for this task
	ProjectID *string     `json:"project_id,omitempty" url:"-"`
	Status    *TaskStatus `json:"status,omitempty" url:"-"`
	// Title for this task
	Title *string `json:"title,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*TasksUpdateRequest) MarshalJSON

func (t *TasksUpdateRequest) MarshalJSON() ([]byte, error)

func (*TasksUpdateRequest) SetAiInstructions

func (t *TasksUpdateRequest) SetAiInstructions(aiInstructions *string)

SetAiInstructions sets the AiInstructions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetAssigneeID

func (t *TasksUpdateRequest) SetAssigneeID(assigneeID *string)

SetAssigneeID sets the AssigneeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetBlockedByTaskIDs

func (t *TasksUpdateRequest) SetBlockedByTaskIDs(blockedByTaskIDs []string)

SetBlockedByTaskIDs sets the BlockedByTaskIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetBodyHTML

func (t *TasksUpdateRequest) SetBodyHTML(bodyHTML *string)

SetBodyHTML sets the BodyHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetCompletedAt

func (t *TasksUpdateRequest) SetCompletedAt(completedAt *time.Time)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetCustomFields

func (t *TasksUpdateRequest) SetCustomFields(customFields []*CustomFieldValue)

SetCustomFields sets the CustomFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetCustomerPortalVisible

func (t *TasksUpdateRequest) SetCustomerPortalVisible(customerPortalVisible *bool)

SetCustomerPortalVisible sets the CustomerPortalVisible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetDueDate

func (t *TasksUpdateRequest) SetDueDate(dueDate *string)

SetDueDate sets the DueDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetID

func (t *TasksUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetMilestoneID

func (t *TasksUpdateRequest) SetMilestoneID(milestoneID *string)

SetMilestoneID sets the MilestoneID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetProjectID

func (t *TasksUpdateRequest) SetProjectID(projectID *string)

SetProjectID sets the ProjectID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetStatus

func (t *TasksUpdateRequest) SetStatus(status *TaskStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) SetTitle

func (t *TasksUpdateRequest) SetTitle(title *string)

SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TasksUpdateRequest) UnmarshalJSON

func (t *TasksUpdateRequest) UnmarshalJSON(data []byte) error

type Team

type Team struct {
	AssignmentConfiguration *TeamAssignmentConfiguration `json:"assignment_configuration,omitempty" url:"assignment_configuration,omitempty"`
	// The ID of the team.
	ID string `json:"id" url:"id"`
	// The name of the team.
	Name     string        `json:"name" url:"name"`
	Schedule *TeamSchedule `json:"schedule,omitempty" url:"schedule,omitempty"`
	// The users in the team.
	Users []*MiniUser `json:"users,omitempty" url:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*Team) GetAssignmentConfiguration

func (t *Team) GetAssignmentConfiguration() *TeamAssignmentConfiguration

func (*Team) GetExtraProperties

func (t *Team) GetExtraProperties() map[string]interface{}

func (*Team) GetID

func (t *Team) GetID() string

func (*Team) GetName

func (t *Team) GetName() string

func (*Team) GetSchedule

func (t *Team) GetSchedule() *TeamSchedule

func (*Team) GetUsers

func (t *Team) GetUsers() []*MiniUser

func (*Team) MarshalJSON

func (t *Team) MarshalJSON() ([]byte, error)

func (*Team) SetAssignmentConfiguration

func (t *Team) SetAssignmentConfiguration(assignmentConfiguration *TeamAssignmentConfiguration)

SetAssignmentConfiguration sets the AssignmentConfiguration field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Team) SetID

func (t *Team) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Team) SetName

func (t *Team) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Team) SetSchedule

func (t *Team) SetSchedule(schedule *TeamSchedule)

SetSchedule sets the Schedule field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Team) SetUsers

func (t *Team) SetUsers(users []*MiniUser)

SetUsers sets the Users field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Team) String

func (t *Team) String() string

func (*Team) UnmarshalJSON

func (t *Team) UnmarshalJSON(data []byte) error

type TeamAssignmentConfiguration

type TeamAssignmentConfiguration struct {
	// The slugs of the user statuses members must show to be assigned. See GET /user-statuses.
	// Empty defers to only_assign_if_user_active.
	AssignableUserStatuses []string `json:"assignable_user_statuses,omitempty" url:"assignable_user_statuses,omitempty"`
	// How issues are routed to team members. One of routing, schedule, manual, pull_queue.
	AssignmentMethod string `json:"assignment_method" url:"assignment_method"`
	// Whether automatic assignment is restricted by user status. When assignable_user_statuses
	// is empty, true means only members with an Active status; when it is non-empty, this is
	// always true and the list decides.
	OnlyAssignIfUserActive bool `json:"only_assign_if_user_active" url:"only_assign_if_user_active"`
	// Whether assignment replaces an existing assignee.
	OverrideExistingAssignee bool `json:"override_existing_assignee" url:"override_existing_assignee"`
	// The ID of the schedule this team assigns from. Read-only; a team has at most one schedule.
	TeamScheduleID *string `json:"team_schedule_id,omitempty" url:"team_schedule_id,omitempty"`
	// contains filtered or unexported fields
}

func (*TeamAssignmentConfiguration) GetAssignableUserStatuses

func (t *TeamAssignmentConfiguration) GetAssignableUserStatuses() []string

func (*TeamAssignmentConfiguration) GetAssignmentMethod

func (t *TeamAssignmentConfiguration) GetAssignmentMethod() string

func (*TeamAssignmentConfiguration) GetExtraProperties

func (t *TeamAssignmentConfiguration) GetExtraProperties() map[string]interface{}

func (*TeamAssignmentConfiguration) GetOnlyAssignIfUserActive

func (t *TeamAssignmentConfiguration) GetOnlyAssignIfUserActive() bool

func (*TeamAssignmentConfiguration) GetOverrideExistingAssignee

func (t *TeamAssignmentConfiguration) GetOverrideExistingAssignee() bool

func (*TeamAssignmentConfiguration) GetTeamScheduleID

func (t *TeamAssignmentConfiguration) GetTeamScheduleID() *string

func (*TeamAssignmentConfiguration) MarshalJSON

func (t *TeamAssignmentConfiguration) MarshalJSON() ([]byte, error)

func (*TeamAssignmentConfiguration) SetAssignableUserStatuses

func (t *TeamAssignmentConfiguration) SetAssignableUserStatuses(assignableUserStatuses []string)

SetAssignableUserStatuses sets the AssignableUserStatuses field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamAssignmentConfiguration) SetAssignmentMethod

func (t *TeamAssignmentConfiguration) SetAssignmentMethod(assignmentMethod string)

SetAssignmentMethod sets the AssignmentMethod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamAssignmentConfiguration) SetOnlyAssignIfUserActive

func (t *TeamAssignmentConfiguration) SetOnlyAssignIfUserActive(onlyAssignIfUserActive bool)

SetOnlyAssignIfUserActive sets the OnlyAssignIfUserActive field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamAssignmentConfiguration) SetOverrideExistingAssignee

func (t *TeamAssignmentConfiguration) SetOverrideExistingAssignee(overrideExistingAssignee bool)

SetOverrideExistingAssignee sets the OverrideExistingAssignee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamAssignmentConfiguration) SetTeamScheduleID

func (t *TeamAssignmentConfiguration) SetTeamScheduleID(teamScheduleID *string)

SetTeamScheduleID sets the TeamScheduleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamAssignmentConfiguration) String

func (t *TeamAssignmentConfiguration) String() string

func (*TeamAssignmentConfiguration) UnmarshalJSON

func (t *TeamAssignmentConfiguration) UnmarshalJSON(data []byte) error

type TeamAssignmentConfigurationInput

type TeamAssignmentConfigurationInput struct {
	// The slugs of the user statuses members must show to be assigned. See GET /user-statuses.
	// A non-empty list takes precedence over only_assign_if_user_active; an empty list clears
	// the allow-list so only_assign_if_user_active decides.
	AssignableUserStatuses []string `json:"assignable_user_statuses,omitempty" url:"assignable_user_statuses,omitempty"`
	// How issues are routed to team members. Setting schedule routes from this team's own
	// schedule, so the team must already have one or be given one in the same request.
	AssignmentMethod *TeamAssignmentConfigurationInputAssignmentMethod `json:"assignment_method,omitempty" url:"assignment_method,omitempty"`
	// Whether issues are only assigned to members with an Active status. Setting this without
	// assignable_user_statuses clears any status allow-list.
	OnlyAssignIfUserActive *bool `json:"only_assign_if_user_active,omitempty" url:"only_assign_if_user_active,omitempty"`
	// Whether assignment replaces an existing assignee.
	OverrideExistingAssignee *bool `json:"override_existing_assignee,omitempty" url:"override_existing_assignee,omitempty"`
	// contains filtered or unexported fields
}

func (*TeamAssignmentConfigurationInput) GetAssignableUserStatuses

func (t *TeamAssignmentConfigurationInput) GetAssignableUserStatuses() []string

func (*TeamAssignmentConfigurationInput) GetAssignmentMethod

func (*TeamAssignmentConfigurationInput) GetExtraProperties

func (t *TeamAssignmentConfigurationInput) GetExtraProperties() map[string]interface{}

func (*TeamAssignmentConfigurationInput) GetOnlyAssignIfUserActive

func (t *TeamAssignmentConfigurationInput) GetOnlyAssignIfUserActive() *bool

func (*TeamAssignmentConfigurationInput) GetOverrideExistingAssignee

func (t *TeamAssignmentConfigurationInput) GetOverrideExistingAssignee() *bool

func (*TeamAssignmentConfigurationInput) MarshalJSON

func (t *TeamAssignmentConfigurationInput) MarshalJSON() ([]byte, error)

func (*TeamAssignmentConfigurationInput) SetAssignableUserStatuses

func (t *TeamAssignmentConfigurationInput) SetAssignableUserStatuses(assignableUserStatuses []string)

SetAssignableUserStatuses sets the AssignableUserStatuses field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamAssignmentConfigurationInput) SetAssignmentMethod

SetAssignmentMethod sets the AssignmentMethod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamAssignmentConfigurationInput) SetOnlyAssignIfUserActive

func (t *TeamAssignmentConfigurationInput) SetOnlyAssignIfUserActive(onlyAssignIfUserActive *bool)

SetOnlyAssignIfUserActive sets the OnlyAssignIfUserActive field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamAssignmentConfigurationInput) SetOverrideExistingAssignee

func (t *TeamAssignmentConfigurationInput) SetOverrideExistingAssignee(overrideExistingAssignee *bool)

SetOverrideExistingAssignee sets the OverrideExistingAssignee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamAssignmentConfigurationInput) String

func (*TeamAssignmentConfigurationInput) UnmarshalJSON

func (t *TeamAssignmentConfigurationInput) UnmarshalJSON(data []byte) error

type TeamAssignmentConfigurationInputAssignmentMethod

type TeamAssignmentConfigurationInputAssignmentMethod string

How issues are routed to team members. Setting schedule routes from this team's own schedule, so the team must already have one or be given one in the same request.

const (
	TeamAssignmentConfigurationInputAssignmentMethodRouting  TeamAssignmentConfigurationInputAssignmentMethod = "routing"
	TeamAssignmentConfigurationInputAssignmentMethodSchedule TeamAssignmentConfigurationInputAssignmentMethod = "schedule"
	TeamAssignmentConfigurationInputAssignmentMethodManual   TeamAssignmentConfigurationInputAssignmentMethod = "manual"
)

func NewTeamAssignmentConfigurationInputAssignmentMethodFromString

func NewTeamAssignmentConfigurationInputAssignmentMethodFromString(s string) (TeamAssignmentConfigurationInputAssignmentMethod, error)

func (TeamAssignmentConfigurationInputAssignmentMethod) Ptr

type TeamSLA

type TeamSLA struct {
	FirstResolution *SLATimes `json:"first_resolution,omitempty" url:"first_resolution,omitempty"`
	FirstResponse   *SLATimes `json:"first_response,omitempty" url:"first_response,omitempty"`
	FollowUp        *SLATimes `json:"follow_up,omitempty" url:"follow_up,omitempty"`
	NextReply       *SLATimes `json:"next_reply,omitempty" url:"next_reply,omitempty"`
	Resolution      *SLATimes `json:"resolution,omitempty" url:"resolution,omitempty"`
	// The ID of the team these are scoped to.
	TeamID string `json:"team_id" url:"team_id"`
	// contains filtered or unexported fields
}

func (*TeamSLA) GetExtraProperties

func (t *TeamSLA) GetExtraProperties() map[string]interface{}

func (*TeamSLA) GetFirstResolution

func (t *TeamSLA) GetFirstResolution() *SLATimes

func (*TeamSLA) GetFirstResponse

func (t *TeamSLA) GetFirstResponse() *SLATimes

func (*TeamSLA) GetFollowUp

func (t *TeamSLA) GetFollowUp() *SLATimes

func (*TeamSLA) GetNextReply

func (t *TeamSLA) GetNextReply() *SLATimes

func (*TeamSLA) GetResolution

func (t *TeamSLA) GetResolution() *SLATimes

func (*TeamSLA) GetTeamID

func (t *TeamSLA) GetTeamID() string

func (*TeamSLA) MarshalJSON

func (t *TeamSLA) MarshalJSON() ([]byte, error)

func (*TeamSLA) SetFirstResolution

func (t *TeamSLA) SetFirstResolution(firstResolution *SLATimes)

SetFirstResolution sets the FirstResolution field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamSLA) SetFirstResponse

func (t *TeamSLA) SetFirstResponse(firstResponse *SLATimes)

SetFirstResponse sets the FirstResponse field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamSLA) SetFollowUp

func (t *TeamSLA) SetFollowUp(followUp *SLATimes)

SetFollowUp sets the FollowUp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamSLA) SetNextReply

func (t *TeamSLA) SetNextReply(nextReply *SLATimes)

SetNextReply sets the NextReply field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamSLA) SetResolution

func (t *TeamSLA) SetResolution(resolution *SLATimes)

SetResolution sets the Resolution field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamSLA) SetTeamID

func (t *TeamSLA) SetTeamID(teamID string)

SetTeamID sets the TeamID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamSLA) String

func (t *TeamSLA) String() string

func (*TeamSLA) UnmarshalJSON

func (t *TeamSLA) UnmarshalJSON(data []byte) error

type TeamSchedule

type TeamSchedule struct {
	// Who receives issues and when.
	Blocks []*TeamScheduleBlock `json:"blocks,omitempty" url:"blocks,omitempty"`
	// The ID of the schedule.
	ID string `json:"id" url:"id"`
	// The IANA timezone the block hours are read in.
	Timezone string `json:"timezone" url:"timezone"`
	// contains filtered or unexported fields
}

func (*TeamSchedule) GetBlocks

func (t *TeamSchedule) GetBlocks() []*TeamScheduleBlock

func (*TeamSchedule) GetExtraProperties

func (t *TeamSchedule) GetExtraProperties() map[string]interface{}

func (*TeamSchedule) GetID

func (t *TeamSchedule) GetID() string

func (*TeamSchedule) GetTimezone

func (t *TeamSchedule) GetTimezone() string

func (*TeamSchedule) MarshalJSON

func (t *TeamSchedule) MarshalJSON() ([]byte, error)

func (*TeamSchedule) SetBlocks

func (t *TeamSchedule) SetBlocks(blocks []*TeamScheduleBlock)

SetBlocks sets the Blocks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamSchedule) SetID

func (t *TeamSchedule) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamSchedule) SetTimezone

func (t *TeamSchedule) SetTimezone(timezone string)

SetTimezone sets the Timezone field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamSchedule) String

func (t *TeamSchedule) String() string

func (*TeamSchedule) UnmarshalJSON

func (t *TeamSchedule) UnmarshalJSON(data []byte) error

type TeamScheduleBlock

type TeamScheduleBlock struct {
	// The days this block covers. Empty when the recurrence is daily.
	Days []string `json:"days,omitempty" url:"days,omitempty"`
	// When the block ends, as HH:MM in the schedule's timezone. An end at or before the start
	// means the next day.
	EndTime *string `json:"end_time,omitempty" url:"end_time,omitempty"`
	// How often the block repeats: weekly, biweekly, or daily. A block configured in the
	// Pylon app with a recurrence these fields cannot express reads as custom, with the
	// fields above omitted.
	Recurrence string `json:"recurrence" url:"recurrence"`
	// When the block starts, as HH:MM in the schedule's timezone.
	StartTime *string `json:"start_time,omitempty" url:"start_time,omitempty"`
	// The sub-team that receives issues during this block.
	TeamID *string `json:"team_id,omitempty" url:"team_id,omitempty"`
	// The team member who receives issues during this block.
	UserID *string `json:"user_id,omitempty" url:"user_id,omitempty"`
	// Which of the two alternating weeks a biweekly block falls on.
	WeekOffset *int64 `json:"week_offset,omitempty" url:"week_offset,omitempty"`
	// contains filtered or unexported fields
}

func (*TeamScheduleBlock) GetDays

func (t *TeamScheduleBlock) GetDays() []string

func (*TeamScheduleBlock) GetEndTime

func (t *TeamScheduleBlock) GetEndTime() *string

func (*TeamScheduleBlock) GetExtraProperties

func (t *TeamScheduleBlock) GetExtraProperties() map[string]interface{}

func (*TeamScheduleBlock) GetRecurrence

func (t *TeamScheduleBlock) GetRecurrence() string

func (*TeamScheduleBlock) GetStartTime

func (t *TeamScheduleBlock) GetStartTime() *string

func (*TeamScheduleBlock) GetTeamID

func (t *TeamScheduleBlock) GetTeamID() *string

func (*TeamScheduleBlock) GetUserID

func (t *TeamScheduleBlock) GetUserID() *string

func (*TeamScheduleBlock) GetWeekOffset

func (t *TeamScheduleBlock) GetWeekOffset() *int64

func (*TeamScheduleBlock) MarshalJSON

func (t *TeamScheduleBlock) MarshalJSON() ([]byte, error)

func (*TeamScheduleBlock) SetDays

func (t *TeamScheduleBlock) SetDays(days []string)

SetDays sets the Days field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlock) SetEndTime

func (t *TeamScheduleBlock) SetEndTime(endTime *string)

SetEndTime sets the EndTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlock) SetRecurrence

func (t *TeamScheduleBlock) SetRecurrence(recurrence string)

SetRecurrence sets the Recurrence field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlock) SetStartTime

func (t *TeamScheduleBlock) SetStartTime(startTime *string)

SetStartTime sets the StartTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlock) SetTeamID

func (t *TeamScheduleBlock) SetTeamID(teamID *string)

SetTeamID sets the TeamID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlock) SetUserID

func (t *TeamScheduleBlock) SetUserID(userID *string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlock) SetWeekOffset

func (t *TeamScheduleBlock) SetWeekOffset(weekOffset *int64)

SetWeekOffset sets the WeekOffset field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlock) String

func (t *TeamScheduleBlock) String() string

func (*TeamScheduleBlock) UnmarshalJSON

func (t *TeamScheduleBlock) UnmarshalJSON(data []byte) error

type TeamScheduleBlockInput

type TeamScheduleBlockInput struct {
	// The days this block covers, for example ["monday","tuesday"]. Required unless
	// recurrence is daily, which covers every day.
	Days []string `json:"days,omitempty" url:"days,omitempty"`
	// When the block ends, as HH:MM in the schedule's timezone. An end at or before the start
	// means the next day, so 22:00 to 10:00 is an overnight shift and 00:00 to 00:00 is a full
	// day. A block cannot run longer than 24 hours.
	EndTime string `json:"end_time" url:"end_time"`
	// How often the block repeats. Defaults to weekly. A block recurs indefinitely; to change a
	// rotation, send the new set of blocks.
	Recurrence *TeamScheduleBlockInputRecurrence `json:"recurrence,omitempty" url:"recurrence,omitempty"`
	// When the block starts, as HH:MM in the schedule's timezone.
	StartTime string `json:"start_time" url:"start_time"`
	// The ID of the sub-team that receives issues during this block. Must already be a
	// sub-team of the team that owns the schedule.
	TeamID *string `json:"team_id,omitempty" url:"team_id,omitempty"`
	// The ID of the team member who receives issues during this block. Exactly one of
	// user_id or team_id is required.
	UserID *string `json:"user_id,omitempty" url:"user_id,omitempty"`
	// Which of the two alternating weeks a biweekly block falls on, 0 or 1.
	WeekOffset *int64 `json:"week_offset,omitempty" url:"week_offset,omitempty"`
	// contains filtered or unexported fields
}

func (*TeamScheduleBlockInput) GetDays

func (t *TeamScheduleBlockInput) GetDays() []string

func (*TeamScheduleBlockInput) GetEndTime

func (t *TeamScheduleBlockInput) GetEndTime() string

func (*TeamScheduleBlockInput) GetExtraProperties

func (t *TeamScheduleBlockInput) GetExtraProperties() map[string]interface{}

func (*TeamScheduleBlockInput) GetRecurrence

func (*TeamScheduleBlockInput) GetStartTime

func (t *TeamScheduleBlockInput) GetStartTime() string

func (*TeamScheduleBlockInput) GetTeamID

func (t *TeamScheduleBlockInput) GetTeamID() *string

func (*TeamScheduleBlockInput) GetUserID

func (t *TeamScheduleBlockInput) GetUserID() *string

func (*TeamScheduleBlockInput) GetWeekOffset

func (t *TeamScheduleBlockInput) GetWeekOffset() *int64

func (*TeamScheduleBlockInput) MarshalJSON

func (t *TeamScheduleBlockInput) MarshalJSON() ([]byte, error)

func (*TeamScheduleBlockInput) SetDays

func (t *TeamScheduleBlockInput) SetDays(days []string)

SetDays sets the Days field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlockInput) SetEndTime

func (t *TeamScheduleBlockInput) SetEndTime(endTime string)

SetEndTime sets the EndTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlockInput) SetRecurrence

func (t *TeamScheduleBlockInput) SetRecurrence(recurrence *TeamScheduleBlockInputRecurrence)

SetRecurrence sets the Recurrence field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlockInput) SetStartTime

func (t *TeamScheduleBlockInput) SetStartTime(startTime string)

SetStartTime sets the StartTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlockInput) SetTeamID

func (t *TeamScheduleBlockInput) SetTeamID(teamID *string)

SetTeamID sets the TeamID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlockInput) SetUserID

func (t *TeamScheduleBlockInput) SetUserID(userID *string)

SetUserID sets the UserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlockInput) SetWeekOffset

func (t *TeamScheduleBlockInput) SetWeekOffset(weekOffset *int64)

SetWeekOffset sets the WeekOffset field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleBlockInput) String

func (t *TeamScheduleBlockInput) String() string

func (*TeamScheduleBlockInput) UnmarshalJSON

func (t *TeamScheduleBlockInput) UnmarshalJSON(data []byte) error

type TeamScheduleBlockInputRecurrence

type TeamScheduleBlockInputRecurrence string

How often the block repeats. Defaults to weekly. A block recurs indefinitely; to change a rotation, send the new set of blocks.

const (
	TeamScheduleBlockInputRecurrenceWeekly   TeamScheduleBlockInputRecurrence = "weekly"
	TeamScheduleBlockInputRecurrenceBiweekly TeamScheduleBlockInputRecurrence = "biweekly"
	TeamScheduleBlockInputRecurrenceDaily    TeamScheduleBlockInputRecurrence = "daily"
)

func NewTeamScheduleBlockInputRecurrenceFromString

func NewTeamScheduleBlockInputRecurrenceFromString(s string) (TeamScheduleBlockInputRecurrence, error)

func (TeamScheduleBlockInputRecurrence) Ptr

type TeamScheduleInput

type TeamScheduleInput struct {
	// Who receives issues and when. If provided, the schedule's blocks will be updated to be
	// exactly the given blocks.
	Blocks []*TeamScheduleBlockInput `json:"blocks,omitempty" url:"blocks,omitempty"`
	// The IANA timezone the block start times are read in. Defaults to America/Los_Angeles.
	Timezone *string `json:"timezone,omitempty" url:"timezone,omitempty"`
	// contains filtered or unexported fields
}

func (*TeamScheduleInput) GetBlocks

func (t *TeamScheduleInput) GetBlocks() []*TeamScheduleBlockInput

func (*TeamScheduleInput) GetExtraProperties

func (t *TeamScheduleInput) GetExtraProperties() map[string]interface{}

func (*TeamScheduleInput) GetTimezone

func (t *TeamScheduleInput) GetTimezone() *string

func (*TeamScheduleInput) MarshalJSON

func (t *TeamScheduleInput) MarshalJSON() ([]byte, error)

func (*TeamScheduleInput) SetBlocks

func (t *TeamScheduleInput) SetBlocks(blocks []*TeamScheduleBlockInput)

SetBlocks sets the Blocks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleInput) SetTimezone

func (t *TeamScheduleInput) SetTimezone(timezone *string)

SetTimezone sets the Timezone field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamScheduleInput) String

func (t *TeamScheduleInput) String() string

func (*TeamScheduleInput) UnmarshalJSON

func (t *TeamScheduleInput) UnmarshalJSON(data []byte) error

type TeamsCreateRequest

type TeamsCreateRequest struct {
	AssignmentConfiguration *TeamAssignmentConfigurationInput `json:"assignment_configuration,omitempty" url:"-"`
	// The name of the team.
	Name     string             `json:"name" url:"-"`
	Schedule *TeamScheduleInput `json:"schedule,omitempty" url:"-"`
	// The list of user IDs to add to the team.
	UserIDs []string `json:"user_ids,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*TeamsCreateRequest) MarshalJSON

func (t *TeamsCreateRequest) MarshalJSON() ([]byte, error)

func (*TeamsCreateRequest) SetAssignmentConfiguration

func (t *TeamsCreateRequest) SetAssignmentConfiguration(assignmentConfiguration *TeamAssignmentConfigurationInput)

SetAssignmentConfiguration sets the AssignmentConfiguration field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamsCreateRequest) SetName

func (t *TeamsCreateRequest) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamsCreateRequest) SetSchedule

func (t *TeamsCreateRequest) SetSchedule(schedule *TeamScheduleInput)

SetSchedule sets the Schedule field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamsCreateRequest) SetUserIDs

func (t *TeamsCreateRequest) SetUserIDs(userIDs []string)

SetUserIDs sets the UserIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamsCreateRequest) UnmarshalJSON

func (t *TeamsCreateRequest) UnmarshalJSON(data []byte) error

type TeamsGetRequest

type TeamsGetRequest struct {
	// The ID of the team to fetch.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*TeamsGetRequest) SetID

func (t *TeamsGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type TeamsUpdateRequest

type TeamsUpdateRequest struct {
	// The ID of the team to update.
	ID                      string                            `json:"-" url:"-"`
	AssignmentConfiguration *TeamAssignmentConfigurationInput `json:"assignment_configuration,omitempty" url:"-"`
	// The name of the team.
	Name     *string            `json:"name,omitempty" url:"-"`
	Schedule *TeamScheduleInput `json:"schedule,omitempty" url:"-"`
	// The list of user IDs to add to the team. If provided, the team members will be updated to be exactly the given users.
	UserIDs []string `json:"user_ids,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*TeamsUpdateRequest) MarshalJSON

func (t *TeamsUpdateRequest) MarshalJSON() ([]byte, error)

func (*TeamsUpdateRequest) SetAssignmentConfiguration

func (t *TeamsUpdateRequest) SetAssignmentConfiguration(assignmentConfiguration *TeamAssignmentConfigurationInput)

SetAssignmentConfiguration sets the AssignmentConfiguration field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamsUpdateRequest) SetID

func (t *TeamsUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamsUpdateRequest) SetName

func (t *TeamsUpdateRequest) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamsUpdateRequest) SetSchedule

func (t *TeamsUpdateRequest) SetSchedule(schedule *TeamScheduleInput)

SetSchedule sets the Schedule field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamsUpdateRequest) SetUserIDs

func (t *TeamsUpdateRequest) SetUserIDs(userIDs []string)

SetUserIDs sets the UserIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TeamsUpdateRequest) UnmarshalJSON

func (t *TeamsUpdateRequest) UnmarshalJSON(data []byte) error

type TicketForm

type TicketForm struct {
	// The description of the ticket form in HTML.
	DescriptionHTML string `json:"description_html" url:"description_html"`
	// The layout of the ticket form.
	Fields []*TicketFormLayoutField `json:"fields,omitempty" url:"fields,omitempty"`
	// The ID of the ticket form.
	ID string `json:"id" url:"id"`
	// Indicates if the ticket form is public.
	IsPublic bool `json:"is_public" url:"is_public"`
	// The name of the ticket form.
	Name string `json:"name" url:"name"`
	// The slug of the ticket form.
	Slug string `json:"slug" url:"slug"`
	// The URL of the ticket form.
	URL string `json:"url" url:"url"`
	// contains filtered or unexported fields
}

func (*TicketForm) GetDescriptionHTML

func (t *TicketForm) GetDescriptionHTML() string

func (*TicketForm) GetExtraProperties

func (t *TicketForm) GetExtraProperties() map[string]interface{}

func (*TicketForm) GetFields

func (t *TicketForm) GetFields() []*TicketFormLayoutField

func (*TicketForm) GetID

func (t *TicketForm) GetID() string

func (*TicketForm) GetIsPublic

func (t *TicketForm) GetIsPublic() bool

func (*TicketForm) GetName

func (t *TicketForm) GetName() string

func (*TicketForm) GetSlug

func (t *TicketForm) GetSlug() string

func (*TicketForm) GetURL

func (t *TicketForm) GetURL() string

func (*TicketForm) MarshalJSON

func (t *TicketForm) MarshalJSON() ([]byte, error)

func (*TicketForm) SetDescriptionHTML

func (t *TicketForm) SetDescriptionHTML(descriptionHTML string)

SetDescriptionHTML sets the DescriptionHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketForm) SetFields

func (t *TicketForm) SetFields(fields []*TicketFormLayoutField)

SetFields sets the Fields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketForm) SetID

func (t *TicketForm) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketForm) SetIsPublic

func (t *TicketForm) SetIsPublic(isPublic bool)

SetIsPublic sets the IsPublic field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketForm) SetName

func (t *TicketForm) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketForm) SetSlug

func (t *TicketForm) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketForm) SetURL

func (t *TicketForm) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketForm) String

func (t *TicketForm) String() string

func (*TicketForm) UnmarshalJSON

func (t *TicketForm) UnmarshalJSON(data []byte) error

type TicketFormLayoutField

type TicketFormLayoutField struct {
	// The description of the ticket form layout field in HTML.
	DescriptionHTML string `json:"description_html" url:"description_html"`
	// Indicates whether the field starts hidden. A hidden field is only shown when a
	// visibility condition on another field lists it as visible.
	Hidden bool `json:"hidden" url:"hidden"`
	// The name of the ticket form layout field.
	Name string `json:"name" url:"name"`
	// Indicates whether the field is required when submitting the ticket form.
	Required bool `json:"required" url:"required"`
	// The slug of the ticket form layout field.
	Slug string `json:"slug" url:"slug"`
	// The type of the ticket form layout field.
	Type string `json:"type" url:"type"`
	// Visibility conditions triggered by this field's value. Each condition reveals or
	// requires other fields when its filter matches. Follow affected_fields slugs to
	// other fields' visibility_conditions to reconstruct nested rules.
	VisibilityConditions []*TicketFormVisibilityCondition `json:"visibility_conditions,omitempty" url:"visibility_conditions,omitempty"`
	// contains filtered or unexported fields
}

func (*TicketFormLayoutField) GetDescriptionHTML

func (t *TicketFormLayoutField) GetDescriptionHTML() string

func (*TicketFormLayoutField) GetExtraProperties

func (t *TicketFormLayoutField) GetExtraProperties() map[string]interface{}

func (*TicketFormLayoutField) GetHidden

func (t *TicketFormLayoutField) GetHidden() bool

func (*TicketFormLayoutField) GetName

func (t *TicketFormLayoutField) GetName() string

func (*TicketFormLayoutField) GetRequired

func (t *TicketFormLayoutField) GetRequired() bool

func (*TicketFormLayoutField) GetSlug

func (t *TicketFormLayoutField) GetSlug() string

func (*TicketFormLayoutField) GetType

func (t *TicketFormLayoutField) GetType() string

func (*TicketFormLayoutField) GetVisibilityConditions

func (t *TicketFormLayoutField) GetVisibilityConditions() []*TicketFormVisibilityCondition

func (*TicketFormLayoutField) MarshalJSON

func (t *TicketFormLayoutField) MarshalJSON() ([]byte, error)

func (*TicketFormLayoutField) SetDescriptionHTML

func (t *TicketFormLayoutField) SetDescriptionHTML(descriptionHTML string)

SetDescriptionHTML sets the DescriptionHTML field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormLayoutField) SetHidden

func (t *TicketFormLayoutField) SetHidden(hidden bool)

SetHidden sets the Hidden field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormLayoutField) SetName

func (t *TicketFormLayoutField) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormLayoutField) SetRequired

func (t *TicketFormLayoutField) SetRequired(required bool)

SetRequired sets the Required field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormLayoutField) SetSlug

func (t *TicketFormLayoutField) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormLayoutField) SetType

func (t *TicketFormLayoutField) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormLayoutField) SetVisibilityConditions

func (t *TicketFormLayoutField) SetVisibilityConditions(visibilityConditions []*TicketFormVisibilityCondition)

SetVisibilityConditions sets the VisibilityConditions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormLayoutField) String

func (t *TicketFormLayoutField) String() string

func (*TicketFormLayoutField) UnmarshalJSON

func (t *TicketFormLayoutField) UnmarshalJSON(data []byte) error

type TicketFormVisibilityAffectedField

type TicketFormVisibilityAffectedField struct {
	// Whether the field is required while the condition matches.
	Required bool `json:"required" url:"required"`
	// The slug of the affected ticket form field.
	Slug string `json:"slug" url:"slug"`
	// The type of the affected ticket form field.
	Type string `json:"type" url:"type"`
	// Whether the field is shown while the condition matches.
	Visible bool `json:"visible" url:"visible"`
	// contains filtered or unexported fields
}

func (*TicketFormVisibilityAffectedField) GetExtraProperties

func (t *TicketFormVisibilityAffectedField) GetExtraProperties() map[string]interface{}

func (*TicketFormVisibilityAffectedField) GetRequired

func (t *TicketFormVisibilityAffectedField) GetRequired() bool

func (*TicketFormVisibilityAffectedField) GetSlug

func (*TicketFormVisibilityAffectedField) GetType

func (*TicketFormVisibilityAffectedField) GetVisible

func (t *TicketFormVisibilityAffectedField) GetVisible() bool

func (*TicketFormVisibilityAffectedField) MarshalJSON

func (t *TicketFormVisibilityAffectedField) MarshalJSON() ([]byte, error)

func (*TicketFormVisibilityAffectedField) SetRequired

func (t *TicketFormVisibilityAffectedField) SetRequired(required bool)

SetRequired sets the Required field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormVisibilityAffectedField) SetSlug

func (t *TicketFormVisibilityAffectedField) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormVisibilityAffectedField) SetType

func (t *TicketFormVisibilityAffectedField) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormVisibilityAffectedField) SetVisible

func (t *TicketFormVisibilityAffectedField) SetVisible(visible bool)

SetVisible sets the Visible field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormVisibilityAffectedField) String

func (*TicketFormVisibilityAffectedField) UnmarshalJSON

func (t *TicketFormVisibilityAffectedField) UnmarshalJSON(data []byte) error

type TicketFormVisibilityCondition

type TicketFormVisibilityCondition struct {
	// The fields revealed or required when the condition matches.
	AffectedFields []*TicketFormVisibilityAffectedField `json:"affected_fields,omitempty" url:"affected_fields,omitempty"`
	Filter         *Filter                              `json:"filter,omitempty" url:"filter,omitempty"`
	// True when the condition's filter cannot be expressed in the API filter format.
	// The condition still applies when the form is submitted, but its filter is omitted here.
	FilterUnsupported *bool `json:"filter_unsupported,omitempty" url:"filter_unsupported,omitempty"`
	// The ID of the visibility condition.
	ID string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*TicketFormVisibilityCondition) GetAffectedFields

func (*TicketFormVisibilityCondition) GetExtraProperties

func (t *TicketFormVisibilityCondition) GetExtraProperties() map[string]interface{}

func (*TicketFormVisibilityCondition) GetFilter

func (t *TicketFormVisibilityCondition) GetFilter() *Filter

func (*TicketFormVisibilityCondition) GetFilterUnsupported

func (t *TicketFormVisibilityCondition) GetFilterUnsupported() *bool

func (*TicketFormVisibilityCondition) GetID

func (*TicketFormVisibilityCondition) MarshalJSON

func (t *TicketFormVisibilityCondition) MarshalJSON() ([]byte, error)

func (*TicketFormVisibilityCondition) SetAffectedFields

func (t *TicketFormVisibilityCondition) SetAffectedFields(affectedFields []*TicketFormVisibilityAffectedField)

SetAffectedFields sets the AffectedFields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormVisibilityCondition) SetFilter

func (t *TicketFormVisibilityCondition) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormVisibilityCondition) SetFilterUnsupported

func (t *TicketFormVisibilityCondition) SetFilterUnsupported(filterUnsupported *bool)

SetFilterUnsupported sets the FilterUnsupported field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormVisibilityCondition) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormVisibilityCondition) String

func (*TicketFormVisibilityCondition) UnmarshalJSON

func (t *TicketFormVisibilityCondition) UnmarshalJSON(data []byte) error

type TicketFormsGetRequest

type TicketFormsGetRequest struct {
	// The ID of the ticket form to fetch.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*TicketFormsGetRequest) SetID

func (t *TicketFormsGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type TicketFormsSubmitRequest

type TicketFormsSubmitRequest struct {
	// The ID of the ticket form to submit.
	TicketFormID string `json:"-" url:"-"`
	// HTTPS URLs to attach to the initial ticket message. URLs are copied into durable Pylon storage before the submission is persisted.
	AttachmentURLs []string `json:"attachment_urls,omitempty" url:"-"`
	// The submitted ticket form fields. Use the slugs returned by GET /ticket-forms/{id}, excluding name and email, which are supplied through the requester fields above.
	Fields []*SubmitTicketFormField `json:"fields,omitempty" url:"-"`
	// The requester's email address. Must be provided with requester_name and cannot be combined with requester_id.
	RequesterEmail *string `json:"requester_email,omitempty" url:"-"`
	// The ID of an existing contact to use as the requester. Provide either requester_id or both requester_email and requester_name.
	RequesterID *string `json:"requester_id,omitempty" url:"-"`
	// The requester's full name. Must be provided with requester_email and cannot be combined with requester_id.
	RequesterName *string `json:"requester_name,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*TicketFormsSubmitRequest) MarshalJSON

func (t *TicketFormsSubmitRequest) MarshalJSON() ([]byte, error)

func (*TicketFormsSubmitRequest) SetAttachmentURLs

func (t *TicketFormsSubmitRequest) SetAttachmentURLs(attachmentURLs []string)

SetAttachmentURLs sets the AttachmentURLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormsSubmitRequest) SetFields

func (t *TicketFormsSubmitRequest) SetFields(fields []*SubmitTicketFormField)

SetFields sets the Fields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormsSubmitRequest) SetRequesterEmail

func (t *TicketFormsSubmitRequest) SetRequesterEmail(requesterEmail *string)

SetRequesterEmail sets the RequesterEmail field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormsSubmitRequest) SetRequesterID

func (t *TicketFormsSubmitRequest) SetRequesterID(requesterID *string)

SetRequesterID sets the RequesterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormsSubmitRequest) SetRequesterName

func (t *TicketFormsSubmitRequest) SetRequesterName(requesterName *string)

SetRequesterName sets the RequesterName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormsSubmitRequest) SetTicketFormID

func (t *TicketFormsSubmitRequest) SetTicketFormID(ticketFormID string)

SetTicketFormID sets the TicketFormID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TicketFormsSubmitRequest) UnmarshalJSON

func (t *TicketFormsSubmitRequest) UnmarshalJSON(data []byte) error

type TooManyRequestsError

type TooManyRequestsError struct {
	*core.APIError
	Body *ErrorAPIResponseBody
}

The request exceeded the applicable rate limit.

func (*TooManyRequestsError) GetBody

func (*TooManyRequestsError) MarshalJSON

func (t *TooManyRequestsError) MarshalJSON() ([]byte, error)

func (*TooManyRequestsError) UnmarshalJSON

func (t *TooManyRequestsError) UnmarshalJSON(data []byte) error

func (*TooManyRequestsError) Unwrap

func (t *TooManyRequestsError) Unwrap() error

type TrainingData

type TrainingData struct {
	CreatedAt           time.Time                 `json:"created_at" url:"created_at"`
	Documents           []*TrainingDataDocument   `json:"documents,omitempty" url:"documents,omitempty"`
	ExcludeFromKbSearch bool                      `json:"exclude_from_kb_search" url:"exclude_from_kb_search"`
	ID                  string                    `json:"id" url:"id"`
	Name                string                    `json:"name" url:"name"`
	ScrapeStatus        *TrainingDataScrapeStatus `json:"scrape_status,omitempty" url:"scrape_status,omitempty"`
	Type                string                    `json:"type" url:"type"`
	UpdatedAt           time.Time                 `json:"updated_at" url:"updated_at"`
	// Known values: `everyone`, `user_only`, `ai_agent_only`. This list is not exhaustive.
	Visibility string `json:"visibility" url:"visibility"`
	// contains filtered or unexported fields
}

func (*TrainingData) GetCreatedAt

func (t *TrainingData) GetCreatedAt() time.Time

func (*TrainingData) GetDocuments

func (t *TrainingData) GetDocuments() []*TrainingDataDocument

func (*TrainingData) GetExcludeFromKbSearch

func (t *TrainingData) GetExcludeFromKbSearch() bool

func (*TrainingData) GetExtraProperties

func (t *TrainingData) GetExtraProperties() map[string]interface{}

func (*TrainingData) GetID

func (t *TrainingData) GetID() string

func (*TrainingData) GetName

func (t *TrainingData) GetName() string

func (*TrainingData) GetScrapeStatus

func (t *TrainingData) GetScrapeStatus() *TrainingDataScrapeStatus

func (*TrainingData) GetType

func (t *TrainingData) GetType() string

func (*TrainingData) GetUpdatedAt

func (t *TrainingData) GetUpdatedAt() time.Time

func (*TrainingData) GetVisibility

func (t *TrainingData) GetVisibility() string

func (*TrainingData) MarshalJSON

func (t *TrainingData) MarshalJSON() ([]byte, error)

func (*TrainingData) SetCreatedAt

func (t *TrainingData) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingData) SetDocuments

func (t *TrainingData) SetDocuments(documents []*TrainingDataDocument)

SetDocuments sets the Documents field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingData) SetExcludeFromKbSearch

func (t *TrainingData) SetExcludeFromKbSearch(excludeFromKbSearch bool)

SetExcludeFromKbSearch sets the ExcludeFromKbSearch field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingData) SetID

func (t *TrainingData) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingData) SetName

func (t *TrainingData) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingData) SetScrapeStatus

func (t *TrainingData) SetScrapeStatus(scrapeStatus *TrainingDataScrapeStatus)

SetScrapeStatus sets the ScrapeStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingData) SetType

func (t *TrainingData) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingData) SetUpdatedAt

func (t *TrainingData) SetUpdatedAt(updatedAt time.Time)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingData) SetVisibility

func (t *TrainingData) SetVisibility(visibility string)

SetVisibility sets the Visibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingData) String

func (t *TrainingData) String() string

func (*TrainingData) UnmarshalJSON

func (t *TrainingData) UnmarshalJSON(data []byte) error

type TrainingDataCreateRequest

type TrainingDataCreateRequest struct {
	// The name of the training data container.
	TrainingDataName *string `json:"training_data_name,omitempty" url:"-"`
	// The visibility of the training data. Defaults to "everyone".
	// Valid values: "everyone", "user_only", "ai_agent_only"
	Visibility *CreateTrainingDataRequestBodyVisibility `json:"visibility,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*TrainingDataCreateRequest) MarshalJSON

func (t *TrainingDataCreateRequest) MarshalJSON() ([]byte, error)

func (*TrainingDataCreateRequest) SetTrainingDataName

func (t *TrainingDataCreateRequest) SetTrainingDataName(trainingDataName *string)

SetTrainingDataName sets the TrainingDataName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataCreateRequest) SetVisibility

SetVisibility sets the Visibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataCreateRequest) UnmarshalJSON

func (t *TrainingDataCreateRequest) UnmarshalJSON(data []byte) error

type TrainingDataDocument

type TrainingDataDocument struct {
	ExternalID *string `json:"external_id,omitempty" url:"external_id,omitempty"`
	FileName   string  `json:"file_name" url:"file_name"`
	FileSize   int64   `json:"file_size" url:"file_size"`
	FileType   string  `json:"file_type" url:"file_type"`
	ID         string  `json:"id" url:"id"`
	S3Key      string  `json:"s3_key" url:"s3_key"`
	// contains filtered or unexported fields
}

func (*TrainingDataDocument) GetExternalID

func (t *TrainingDataDocument) GetExternalID() *string

func (*TrainingDataDocument) GetExtraProperties

func (t *TrainingDataDocument) GetExtraProperties() map[string]interface{}

func (*TrainingDataDocument) GetFileName

func (t *TrainingDataDocument) GetFileName() string

func (*TrainingDataDocument) GetFileSize

func (t *TrainingDataDocument) GetFileSize() int64

func (*TrainingDataDocument) GetFileType

func (t *TrainingDataDocument) GetFileType() string

func (*TrainingDataDocument) GetID

func (t *TrainingDataDocument) GetID() string

func (*TrainingDataDocument) GetS3Key

func (t *TrainingDataDocument) GetS3Key() string

func (*TrainingDataDocument) MarshalJSON

func (t *TrainingDataDocument) MarshalJSON() ([]byte, error)

func (*TrainingDataDocument) SetExternalID

func (t *TrainingDataDocument) SetExternalID(externalID *string)

SetExternalID sets the ExternalID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataDocument) SetFileName

func (t *TrainingDataDocument) SetFileName(fileName string)

SetFileName sets the FileName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataDocument) SetFileSize

func (t *TrainingDataDocument) SetFileSize(fileSize int64)

SetFileSize sets the FileSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataDocument) SetFileType

func (t *TrainingDataDocument) SetFileType(fileType string)

SetFileType sets the FileType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataDocument) SetID

func (t *TrainingDataDocument) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataDocument) SetS3Key

func (t *TrainingDataDocument) SetS3Key(s3Key string)

SetS3Key sets the S3Key field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataDocument) String

func (t *TrainingDataDocument) String() string

func (*TrainingDataDocument) UnmarshalJSON

func (t *TrainingDataDocument) UnmarshalJSON(data []byte) error

type TrainingDataGetRequest

type TrainingDataGetRequest struct {
	// The ID of the training data.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*TrainingDataGetRequest) SetID

func (t *TrainingDataGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type TrainingDataScrapeStatus

type TrainingDataScrapeStatus struct {
	LastScrapedAt *time.Time `json:"last_scraped_at,omitempty" url:"last_scraped_at,omitempty"`
	PagesScraped  int64      `json:"pages_scraped" url:"pages_scraped"`
	Status        string     `json:"status" url:"status"`
	TotalPages    int64      `json:"total_pages" url:"total_pages"`
	// contains filtered or unexported fields
}

func (*TrainingDataScrapeStatus) GetExtraProperties

func (t *TrainingDataScrapeStatus) GetExtraProperties() map[string]interface{}

func (*TrainingDataScrapeStatus) GetLastScrapedAt

func (t *TrainingDataScrapeStatus) GetLastScrapedAt() *time.Time

func (*TrainingDataScrapeStatus) GetPagesScraped

func (t *TrainingDataScrapeStatus) GetPagesScraped() int64

func (*TrainingDataScrapeStatus) GetStatus

func (t *TrainingDataScrapeStatus) GetStatus() string

func (*TrainingDataScrapeStatus) GetTotalPages

func (t *TrainingDataScrapeStatus) GetTotalPages() int64

func (*TrainingDataScrapeStatus) MarshalJSON

func (t *TrainingDataScrapeStatus) MarshalJSON() ([]byte, error)

func (*TrainingDataScrapeStatus) SetLastScrapedAt

func (t *TrainingDataScrapeStatus) SetLastScrapedAt(lastScrapedAt *time.Time)

SetLastScrapedAt sets the LastScrapedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataScrapeStatus) SetPagesScraped

func (t *TrainingDataScrapeStatus) SetPagesScraped(pagesScraped int64)

SetPagesScraped sets the PagesScraped field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataScrapeStatus) SetStatus

func (t *TrainingDataScrapeStatus) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataScrapeStatus) SetTotalPages

func (t *TrainingDataScrapeStatus) SetTotalPages(totalPages int64)

SetTotalPages sets the TotalPages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataScrapeStatus) String

func (t *TrainingDataScrapeStatus) String() string

func (*TrainingDataScrapeStatus) UnmarshalJSON

func (t *TrainingDataScrapeStatus) UnmarshalJSON(data []byte) error

type TrainingDataUploadContentRequest

type TrainingDataUploadContentRequest struct {
	// The text content to upload.
	Content *string `json:"content,omitempty" url:"-"`
	// External ID for idempotent operations (optional).
	ExternalID *string `json:"external_id,omitempty" url:"-"`
	// The name for the uploaded file.
	FileName *string `json:"file_name,omitempty" url:"-"`
	// The ID of an existing training data container to upload to (optional).
	TrainingDataID *string `json:"training_data_id,omitempty" url:"-"`
	// The name of a new training data container (required if training_data_id not provided).
	TrainingDataName *string `json:"training_data_name,omitempty" url:"-"`
	// Visibility of the training data. Defaults to "everyone".
	Visibility *UploadTrainingDataFileContentRequestBodyVisibility `json:"visibility,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*TrainingDataUploadContentRequest) MarshalJSON

func (t *TrainingDataUploadContentRequest) MarshalJSON() ([]byte, error)

func (*TrainingDataUploadContentRequest) SetContent

func (t *TrainingDataUploadContentRequest) SetContent(content *string)

SetContent sets the Content field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataUploadContentRequest) SetExternalID

func (t *TrainingDataUploadContentRequest) SetExternalID(externalID *string)

SetExternalID sets the ExternalID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataUploadContentRequest) SetFileName

func (t *TrainingDataUploadContentRequest) SetFileName(fileName *string)

SetFileName sets the FileName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataUploadContentRequest) SetTrainingDataID

func (t *TrainingDataUploadContentRequest) SetTrainingDataID(trainingDataID *string)

SetTrainingDataID sets the TrainingDataID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataUploadContentRequest) SetTrainingDataName

func (t *TrainingDataUploadContentRequest) SetTrainingDataName(trainingDataName *string)

SetTrainingDataName sets the TrainingDataName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataUploadContentRequest) SetVisibility

SetVisibility sets the Visibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataUploadContentRequest) UnmarshalJSON

func (t *TrainingDataUploadContentRequest) UnmarshalJSON(data []byte) error

type TrainingDataUploadFilesRequest

type TrainingDataUploadFilesRequest struct {
	// External IDs for idempotent operations. Must match the number of files if provided.
	// Used for duplicate detection and updates.
	ExternalIDs []string `json:"external_ids,omitempty" url:"-"`
	// Custom names for the uploaded files. Must match the number of files if provided.
	// If not provided, original filenames will be used.
	FileNames []string `json:"file_names,omitempty" url:"-"`
	// The files to upload (minimum 1, maximum 10).
	// Supported types: PDF, plain text, markdown, CSV, JSON, and images (JPEG, PNG, GIF, WebP).
	// Maximum size: 50MB per file, 100MB total.
	Files []string `json:"files" url:"-"`
	// The ID of an existing training data container to upload files to.
	// Required if not creating new training data.
	TrainingDataID *string `json:"training_data_id,omitempty" url:"-"`
	// The name of a new training data container.
	// Required when creating new training data (if training_data_id is not provided).
	TrainingDataName *string `json:"training_data_name,omitempty" url:"-"`
	// Visibility of the training data. Defaults to "everyone".
	// Valid values: "everyone", "user_only", "ai_agent_only"
	Visibility *UploadFilesTrainingDataRequestVisibility `json:"visibility,omitempty" url:"-"`
	// contains filtered or unexported fields
}

type TrainingDataUploadResponseBody

type TrainingDataUploadResponseBody struct {
	Data      *TrainingData `json:"data" url:"data"`
	RequestID string        `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*TrainingDataUploadResponseBody) GetData

func (*TrainingDataUploadResponseBody) GetExtraProperties

func (t *TrainingDataUploadResponseBody) GetExtraProperties() map[string]interface{}

func (*TrainingDataUploadResponseBody) GetRequestID

func (t *TrainingDataUploadResponseBody) GetRequestID() string

func (*TrainingDataUploadResponseBody) MarshalJSON

func (t *TrainingDataUploadResponseBody) MarshalJSON() ([]byte, error)

func (*TrainingDataUploadResponseBody) SetData

func (t *TrainingDataUploadResponseBody) SetData(data *TrainingData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataUploadResponseBody) SetRequestID

func (t *TrainingDataUploadResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TrainingDataUploadResponseBody) String

func (*TrainingDataUploadResponseBody) UnmarshalJSON

func (t *TrainingDataUploadResponseBody) UnmarshalJSON(data []byte) error

type UnauthorizedError

type UnauthorizedError struct {
	*core.APIError
	Body *ErrorAPIResponseBody
}

The request could not be authenticated for this API.

func (*UnauthorizedError) GetBody

func (*UnauthorizedError) MarshalJSON

func (u *UnauthorizedError) MarshalJSON() ([]byte, error)

func (*UnauthorizedError) UnmarshalJSON

func (u *UnauthorizedError) UnmarshalJSON(data []byte) error

func (*UnauthorizedError) Unwrap

func (u *UnauthorizedError) Unwrap() error

type UpdateAccountHighlightResponseBody

type UpdateAccountHighlightResponseBody struct {
	Data      *AccountHighlight `json:"data" url:"data"`
	RequestID string            `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateAccountHighlightResponseBody) GetData

func (*UpdateAccountHighlightResponseBody) GetExtraProperties

func (u *UpdateAccountHighlightResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateAccountHighlightResponseBody) GetRequestID

func (u *UpdateAccountHighlightResponseBody) GetRequestID() string

func (*UpdateAccountHighlightResponseBody) MarshalJSON

func (u *UpdateAccountHighlightResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateAccountHighlightResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateAccountHighlightResponseBody) SetRequestID

func (u *UpdateAccountHighlightResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateAccountHighlightResponseBody) String

func (*UpdateAccountHighlightResponseBody) UnmarshalJSON

func (u *UpdateAccountHighlightResponseBody) UnmarshalJSON(data []byte) error

type UpdateAccountRequestBodyAccountType

type UpdateAccountRequestBodyAccountType string

The type of the account. Can only be changed to "customer" or "partner".

const (
	UpdateAccountRequestBodyAccountTypeCustomer UpdateAccountRequestBodyAccountType = "customer"
	UpdateAccountRequestBodyAccountTypePartner  UpdateAccountRequestBodyAccountType = "partner"
)

func NewUpdateAccountRequestBodyAccountTypeFromString

func NewUpdateAccountRequestBodyAccountTypeFromString(s string) (UpdateAccountRequestBodyAccountType, error)

func (UpdateAccountRequestBodyAccountType) Ptr

type UpdateAccountResponseBody

type UpdateAccountResponseBody struct {
	Data *Account `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateAccountResponseBody) GetData

func (u *UpdateAccountResponseBody) GetData() *Account

func (*UpdateAccountResponseBody) GetExtraProperties

func (u *UpdateAccountResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateAccountResponseBody) GetRequestID

func (u *UpdateAccountResponseBody) GetRequestID() string

func (*UpdateAccountResponseBody) MarshalJSON

func (u *UpdateAccountResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateAccountResponseBody) SetData

func (u *UpdateAccountResponseBody) SetData(data *Account)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateAccountResponseBody) SetRequestID

func (u *UpdateAccountResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateAccountResponseBody) String

func (u *UpdateAccountResponseBody) String() string

func (*UpdateAccountResponseBody) UnmarshalJSON

func (u *UpdateAccountResponseBody) UnmarshalJSON(data []byte) error

type UpdateAccountsRequestAccountType

type UpdateAccountsRequestAccountType string

The type of the account. Can only be changed to "customer" or "partner".

const (
	UpdateAccountsRequestAccountTypeCustomer UpdateAccountsRequestAccountType = "customer"
	UpdateAccountsRequestAccountTypePartner  UpdateAccountsRequestAccountType = "partner"
)

func NewUpdateAccountsRequestAccountTypeFromString

func NewUpdateAccountsRequestAccountTypeFromString(s string) (UpdateAccountsRequestAccountType, error)

func (UpdateAccountsRequestAccountType) Ptr

type UpdateAccountsRequestTagsApplyMode

type UpdateAccountsRequestTagsApplyMode string

The mode for applying tags. Valid values: "append_only", "remove_only", "replace". Defaults to "replace".

const (
	UpdateAccountsRequestTagsApplyModeAppendOnly UpdateAccountsRequestTagsApplyMode = "append_only"
	UpdateAccountsRequestTagsApplyModeRemoveOnly UpdateAccountsRequestTagsApplyMode = "remove_only"
	UpdateAccountsRequestTagsApplyModeReplace    UpdateAccountsRequestTagsApplyMode = "replace"
)

func NewUpdateAccountsRequestTagsApplyModeFromString

func NewUpdateAccountsRequestTagsApplyModeFromString(s string) (UpdateAccountsRequestTagsApplyMode, error)

func (UpdateAccountsRequestTagsApplyMode) Ptr

type UpdateAccountsResponseBody

type UpdateAccountsResponseBody struct {
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// Whether the update was successfully initiated.
	Success bool `json:"success" url:"success"`
	// contains filtered or unexported fields
}

func (*UpdateAccountsResponseBody) GetExtraProperties

func (u *UpdateAccountsResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateAccountsResponseBody) GetRequestID

func (u *UpdateAccountsResponseBody) GetRequestID() string

func (*UpdateAccountsResponseBody) GetSuccess

func (u *UpdateAccountsResponseBody) GetSuccess() bool

func (*UpdateAccountsResponseBody) MarshalJSON

func (u *UpdateAccountsResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateAccountsResponseBody) SetRequestID

func (u *UpdateAccountsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateAccountsResponseBody) SetSuccess

func (u *UpdateAccountsResponseBody) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateAccountsResponseBody) String

func (u *UpdateAccountsResponseBody) String() string

func (*UpdateAccountsResponseBody) UnmarshalJSON

func (u *UpdateAccountsResponseBody) UnmarshalJSON(data []byte) error

type UpdateArticleResponseBody

type UpdateArticleResponseBody struct {
	Data *Article `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateArticleResponseBody) GetData

func (u *UpdateArticleResponseBody) GetData() *Article

func (*UpdateArticleResponseBody) GetExtraProperties

func (u *UpdateArticleResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateArticleResponseBody) GetRequestID

func (u *UpdateArticleResponseBody) GetRequestID() string

func (*UpdateArticleResponseBody) MarshalJSON

func (u *UpdateArticleResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateArticleResponseBody) SetData

func (u *UpdateArticleResponseBody) SetData(data *Article)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateArticleResponseBody) SetRequestID

func (u *UpdateArticleResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateArticleResponseBody) String

func (u *UpdateArticleResponseBody) String() string

func (*UpdateArticleResponseBody) UnmarshalJSON

func (u *UpdateArticleResponseBody) UnmarshalJSON(data []byte) error

type UpdateCallRecordingResponseBody

type UpdateCallRecordingResponseBody struct {
	Data *CallRecording `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateCallRecordingResponseBody) GetData

func (*UpdateCallRecordingResponseBody) GetExtraProperties

func (u *UpdateCallRecordingResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateCallRecordingResponseBody) GetRequestID

func (u *UpdateCallRecordingResponseBody) GetRequestID() string

func (*UpdateCallRecordingResponseBody) MarshalJSON

func (u *UpdateCallRecordingResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateCallRecordingResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCallRecordingResponseBody) SetRequestID

func (u *UpdateCallRecordingResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCallRecordingResponseBody) String

func (*UpdateCallRecordingResponseBody) UnmarshalJSON

func (u *UpdateCallRecordingResponseBody) UnmarshalJSON(data []byte) error

type UpdateCollectionResponseBody

type UpdateCollectionResponseBody struct {
	Data *Collection `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateCollectionResponseBody) GetData

func (*UpdateCollectionResponseBody) GetExtraProperties

func (u *UpdateCollectionResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateCollectionResponseBody) GetRequestID

func (u *UpdateCollectionResponseBody) GetRequestID() string

func (*UpdateCollectionResponseBody) MarshalJSON

func (u *UpdateCollectionResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateCollectionResponseBody) SetData

func (u *UpdateCollectionResponseBody) SetData(data *Collection)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCollectionResponseBody) SetRequestID

func (u *UpdateCollectionResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCollectionResponseBody) String

func (*UpdateCollectionResponseBody) UnmarshalJSON

func (u *UpdateCollectionResponseBody) UnmarshalJSON(data []byte) error

type UpdateContactEmail

type UpdateContactEmail struct {
	// The email address.
	Email string `json:"email" url:"email"`
	// Whether this is the primary email address.
	IsPrimary *bool `json:"is_primary,omitempty" url:"is_primary,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateContactEmail) GetEmail

func (u *UpdateContactEmail) GetEmail() string

func (*UpdateContactEmail) GetExtraProperties

func (u *UpdateContactEmail) GetExtraProperties() map[string]interface{}

func (*UpdateContactEmail) GetIsPrimary

func (u *UpdateContactEmail) GetIsPrimary() *bool

func (*UpdateContactEmail) MarshalJSON

func (u *UpdateContactEmail) MarshalJSON() ([]byte, error)

func (*UpdateContactEmail) SetEmail

func (u *UpdateContactEmail) SetEmail(email string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateContactEmail) SetIsPrimary

func (u *UpdateContactEmail) SetIsPrimary(isPrimary *bool)

SetIsPrimary sets the IsPrimary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateContactEmail) String

func (u *UpdateContactEmail) String() string

func (*UpdateContactEmail) UnmarshalJSON

func (u *UpdateContactEmail) UnmarshalJSON(data []byte) error

type UpdateContactResponseBody

type UpdateContactResponseBody struct {
	Data *Contact `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateContactResponseBody) GetData

func (u *UpdateContactResponseBody) GetData() *Contact

func (*UpdateContactResponseBody) GetExtraProperties

func (u *UpdateContactResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateContactResponseBody) GetRequestID

func (u *UpdateContactResponseBody) GetRequestID() string

func (*UpdateContactResponseBody) MarshalJSON

func (u *UpdateContactResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateContactResponseBody) SetData

func (u *UpdateContactResponseBody) SetData(data *Contact)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateContactResponseBody) SetRequestID

func (u *UpdateContactResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateContactResponseBody) String

func (u *UpdateContactResponseBody) String() string

func (*UpdateContactResponseBody) UnmarshalJSON

func (u *UpdateContactResponseBody) UnmarshalJSON(data []byte) error

type UpdateCustomFieldResponseBody

type UpdateCustomFieldResponseBody struct {
	Data *CustomFieldDefinition `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateCustomFieldResponseBody) GetData

func (*UpdateCustomFieldResponseBody) GetExtraProperties

func (u *UpdateCustomFieldResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateCustomFieldResponseBody) GetRequestID

func (u *UpdateCustomFieldResponseBody) GetRequestID() string

func (*UpdateCustomFieldResponseBody) MarshalJSON

func (u *UpdateCustomFieldResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateCustomFieldResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCustomFieldResponseBody) SetRequestID

func (u *UpdateCustomFieldResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCustomFieldResponseBody) String

func (*UpdateCustomFieldResponseBody) UnmarshalJSON

func (u *UpdateCustomFieldResponseBody) UnmarshalJSON(data []byte) error

type UpdateCustomFieldSelectOptionResponseBody

type UpdateCustomFieldSelectOptionResponseBody struct {
	Data *CustomFieldDefinitionSelectOption `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateCustomFieldSelectOptionResponseBody) GetData

func (*UpdateCustomFieldSelectOptionResponseBody) GetExtraProperties

func (u *UpdateCustomFieldSelectOptionResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateCustomFieldSelectOptionResponseBody) GetRequestID

func (*UpdateCustomFieldSelectOptionResponseBody) MarshalJSON

func (*UpdateCustomFieldSelectOptionResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCustomFieldSelectOptionResponseBody) SetRequestID

func (u *UpdateCustomFieldSelectOptionResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCustomFieldSelectOptionResponseBody) String

func (*UpdateCustomFieldSelectOptionResponseBody) UnmarshalJSON

func (u *UpdateCustomFieldSelectOptionResponseBody) UnmarshalJSON(data []byte) error

type UpdateCustomObjectResponseBody

type UpdateCustomObjectResponseBody struct {
	Data      *APICustomObject `json:"data" url:"data"`
	RequestID string           `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateCustomObjectResponseBody) GetData

func (*UpdateCustomObjectResponseBody) GetExtraProperties

func (u *UpdateCustomObjectResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateCustomObjectResponseBody) GetRequestID

func (u *UpdateCustomObjectResponseBody) GetRequestID() string

func (*UpdateCustomObjectResponseBody) MarshalJSON

func (u *UpdateCustomObjectResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateCustomObjectResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCustomObjectResponseBody) SetRequestID

func (u *UpdateCustomObjectResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCustomObjectResponseBody) String

func (*UpdateCustomObjectResponseBody) UnmarshalJSON

func (u *UpdateCustomObjectResponseBody) UnmarshalJSON(data []byte) error

type UpdateCustomObjectsResponseBody

type UpdateCustomObjectsResponseBody struct {
	RequestID  string   `json:"request_id" url:"request_id"`
	Success    bool     `json:"success" url:"success"`
	UpdatedIDs []string `json:"updated_ids,omitempty" url:"updated_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCustomObjectsResponseBody) GetExtraProperties

func (u *UpdateCustomObjectsResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateCustomObjectsResponseBody) GetRequestID

func (u *UpdateCustomObjectsResponseBody) GetRequestID() string

func (*UpdateCustomObjectsResponseBody) GetSuccess

func (u *UpdateCustomObjectsResponseBody) GetSuccess() bool

func (*UpdateCustomObjectsResponseBody) GetUpdatedIDs

func (u *UpdateCustomObjectsResponseBody) GetUpdatedIDs() []string

func (*UpdateCustomObjectsResponseBody) MarshalJSON

func (u *UpdateCustomObjectsResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateCustomObjectsResponseBody) SetRequestID

func (u *UpdateCustomObjectsResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCustomObjectsResponseBody) SetSuccess

func (u *UpdateCustomObjectsResponseBody) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCustomObjectsResponseBody) SetUpdatedIDs

func (u *UpdateCustomObjectsResponseBody) SetUpdatedIDs(updatedIDs []string)

SetUpdatedIDs sets the UpdatedIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateCustomObjectsResponseBody) String

func (*UpdateCustomObjectsResponseBody) UnmarshalJSON

func (u *UpdateCustomObjectsResponseBody) UnmarshalJSON(data []byte) error

type UpdateFeatureRequestResponseBody

type UpdateFeatureRequestResponseBody struct {
	Data      *FeatureRequest `json:"data" url:"data"`
	RequestID string          `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateFeatureRequestResponseBody) GetData

func (*UpdateFeatureRequestResponseBody) GetExtraProperties

func (u *UpdateFeatureRequestResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateFeatureRequestResponseBody) GetRequestID

func (u *UpdateFeatureRequestResponseBody) GetRequestID() string

func (*UpdateFeatureRequestResponseBody) MarshalJSON

func (u *UpdateFeatureRequestResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateFeatureRequestResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateFeatureRequestResponseBody) SetRequestID

func (u *UpdateFeatureRequestResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateFeatureRequestResponseBody) String

func (*UpdateFeatureRequestResponseBody) UnmarshalJSON

func (u *UpdateFeatureRequestResponseBody) UnmarshalJSON(data []byte) error

type UpdateIssueRequestBodyType

type UpdateIssueRequestBodyType string

The type of the issue. Set to "ticket" to upgrade a conversation to a support ticket. Cannot be downgraded from "ticket" to "conversation".

const (
	UpdateIssueRequestBodyTypeConversation UpdateIssueRequestBodyType = "conversation"
	UpdateIssueRequestBodyTypeTicket       UpdateIssueRequestBodyType = "ticket"
)

func NewUpdateIssueRequestBodyTypeFromString

func NewUpdateIssueRequestBodyTypeFromString(s string) (UpdateIssueRequestBodyType, error)

func (UpdateIssueRequestBodyType) Ptr

type UpdateIssueResponseBody

type UpdateIssueResponseBody struct {
	Data *Issue `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateIssueResponseBody) GetData

func (u *UpdateIssueResponseBody) GetData() *Issue

func (*UpdateIssueResponseBody) GetExtraProperties

func (u *UpdateIssueResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateIssueResponseBody) GetRequestID

func (u *UpdateIssueResponseBody) GetRequestID() string

func (*UpdateIssueResponseBody) MarshalJSON

func (u *UpdateIssueResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateIssueResponseBody) SetData

func (u *UpdateIssueResponseBody) SetData(data *Issue)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateIssueResponseBody) SetRequestID

func (u *UpdateIssueResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateIssueResponseBody) String

func (u *UpdateIssueResponseBody) String() string

func (*UpdateIssueResponseBody) UnmarshalJSON

func (u *UpdateIssueResponseBody) UnmarshalJSON(data []byte) error

type UpdateIssuesRequestTagsApplyMode

type UpdateIssuesRequestTagsApplyMode string

The mode for applying tags. Valid values: "append_only", "remove_only", "replace". Defaults to "replace".

const (
	UpdateIssuesRequestTagsApplyModeAppendOnly UpdateIssuesRequestTagsApplyMode = "append_only"
	UpdateIssuesRequestTagsApplyModeRemoveOnly UpdateIssuesRequestTagsApplyMode = "remove_only"
	UpdateIssuesRequestTagsApplyModeReplace    UpdateIssuesRequestTagsApplyMode = "replace"
)

func NewUpdateIssuesRequestTagsApplyModeFromString

func NewUpdateIssuesRequestTagsApplyModeFromString(s string) (UpdateIssuesRequestTagsApplyMode, error)

func (UpdateIssuesRequestTagsApplyMode) Ptr

type UpdateIssuesResponseBody

type UpdateIssuesResponseBody struct {
	Data *BulkIssueResult `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateIssuesResponseBody) GetData

func (*UpdateIssuesResponseBody) GetExtraProperties

func (u *UpdateIssuesResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateIssuesResponseBody) GetRequestID

func (u *UpdateIssuesResponseBody) GetRequestID() string

func (*UpdateIssuesResponseBody) MarshalJSON

func (u *UpdateIssuesResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateIssuesResponseBody) SetData

func (u *UpdateIssuesResponseBody) SetData(data *BulkIssueResult)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateIssuesResponseBody) SetRequestID

func (u *UpdateIssuesResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateIssuesResponseBody) String

func (u *UpdateIssuesResponseBody) String() string

func (*UpdateIssuesResponseBody) UnmarshalJSON

func (u *UpdateIssuesResponseBody) UnmarshalJSON(data []byte) error

type UpdateKnowledgeBaseThemeAsset

type UpdateKnowledgeBaseThemeAsset struct {
	// The type of theme asset. One of article, collection, css, footer, header, homepage, not_found, or scripts.
	AssetType string `json:"asset_type" url:"asset_type"`
	// The complete replacement content for the asset.
	Content string `json:"content" url:"content"`
	// contains filtered or unexported fields
}

func (*UpdateKnowledgeBaseThemeAsset) GetAssetType

func (u *UpdateKnowledgeBaseThemeAsset) GetAssetType() string

func (*UpdateKnowledgeBaseThemeAsset) GetContent

func (u *UpdateKnowledgeBaseThemeAsset) GetContent() string

func (*UpdateKnowledgeBaseThemeAsset) GetExtraProperties

func (u *UpdateKnowledgeBaseThemeAsset) GetExtraProperties() map[string]interface{}

func (*UpdateKnowledgeBaseThemeAsset) MarshalJSON

func (u *UpdateKnowledgeBaseThemeAsset) MarshalJSON() ([]byte, error)

func (*UpdateKnowledgeBaseThemeAsset) SetAssetType

func (u *UpdateKnowledgeBaseThemeAsset) SetAssetType(assetType string)

SetAssetType sets the AssetType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateKnowledgeBaseThemeAsset) SetContent

func (u *UpdateKnowledgeBaseThemeAsset) SetContent(content string)

SetContent sets the Content field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateKnowledgeBaseThemeAsset) String

func (*UpdateKnowledgeBaseThemeAsset) UnmarshalJSON

func (u *UpdateKnowledgeBaseThemeAsset) UnmarshalJSON(data []byte) error

type UpdateKnowledgeBaseThemeResponseBody

type UpdateKnowledgeBaseThemeResponseBody struct {
	Data *KnowledgeBaseTheme `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateKnowledgeBaseThemeResponseBody) GetData

func (*UpdateKnowledgeBaseThemeResponseBody) GetExtraProperties

func (u *UpdateKnowledgeBaseThemeResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateKnowledgeBaseThemeResponseBody) GetRequestID

func (u *UpdateKnowledgeBaseThemeResponseBody) GetRequestID() string

func (*UpdateKnowledgeBaseThemeResponseBody) MarshalJSON

func (u *UpdateKnowledgeBaseThemeResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateKnowledgeBaseThemeResponseBody) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateKnowledgeBaseThemeResponseBody) SetRequestID

func (u *UpdateKnowledgeBaseThemeResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateKnowledgeBaseThemeResponseBody) String

func (*UpdateKnowledgeBaseThemeResponseBody) UnmarshalJSON

func (u *UpdateKnowledgeBaseThemeResponseBody) UnmarshalJSON(data []byte) error

type UpdateMacroResponseBody

type UpdateMacroResponseBody struct {
	Data *Macro `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateMacroResponseBody) GetData

func (u *UpdateMacroResponseBody) GetData() *Macro

func (*UpdateMacroResponseBody) GetExtraProperties

func (u *UpdateMacroResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateMacroResponseBody) GetRequestID

func (u *UpdateMacroResponseBody) GetRequestID() string

func (*UpdateMacroResponseBody) MarshalJSON

func (u *UpdateMacroResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateMacroResponseBody) SetData

func (u *UpdateMacroResponseBody) SetData(data *Macro)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateMacroResponseBody) SetRequestID

func (u *UpdateMacroResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateMacroResponseBody) String

func (u *UpdateMacroResponseBody) String() string

func (*UpdateMacroResponseBody) UnmarshalJSON

func (u *UpdateMacroResponseBody) UnmarshalJSON(data []byte) error

type UpdateMessageResponseBody

type UpdateMessageResponseBody struct {
	Data *Message `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateMessageResponseBody) GetData

func (u *UpdateMessageResponseBody) GetData() *Message

func (*UpdateMessageResponseBody) GetExtraProperties

func (u *UpdateMessageResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateMessageResponseBody) GetRequestID

func (u *UpdateMessageResponseBody) GetRequestID() string

func (*UpdateMessageResponseBody) MarshalJSON

func (u *UpdateMessageResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateMessageResponseBody) SetData

func (u *UpdateMessageResponseBody) SetData(data *Message)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateMessageResponseBody) SetRequestID

func (u *UpdateMessageResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateMessageResponseBody) String

func (u *UpdateMessageResponseBody) String() string

func (*UpdateMessageResponseBody) UnmarshalJSON

func (u *UpdateMessageResponseBody) UnmarshalJSON(data []byte) error

type UpdateMilestoneResponseBody

type UpdateMilestoneResponseBody struct {
	Data *Milestone `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateMilestoneResponseBody) GetData

func (u *UpdateMilestoneResponseBody) GetData() *Milestone

func (*UpdateMilestoneResponseBody) GetExtraProperties

func (u *UpdateMilestoneResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateMilestoneResponseBody) GetRequestID

func (u *UpdateMilestoneResponseBody) GetRequestID() string

func (*UpdateMilestoneResponseBody) MarshalJSON

func (u *UpdateMilestoneResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateMilestoneResponseBody) SetData

func (u *UpdateMilestoneResponseBody) SetData(data *Milestone)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateMilestoneResponseBody) SetRequestID

func (u *UpdateMilestoneResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateMilestoneResponseBody) String

func (u *UpdateMilestoneResponseBody) String() string

func (*UpdateMilestoneResponseBody) UnmarshalJSON

func (u *UpdateMilestoneResponseBody) UnmarshalJSON(data []byte) error

type UpdateProjectResponseBody

type UpdateProjectResponseBody struct {
	Data *Project `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateProjectResponseBody) GetData

func (u *UpdateProjectResponseBody) GetData() *Project

func (*UpdateProjectResponseBody) GetExtraProperties

func (u *UpdateProjectResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateProjectResponseBody) GetRequestID

func (u *UpdateProjectResponseBody) GetRequestID() string

func (*UpdateProjectResponseBody) MarshalJSON

func (u *UpdateProjectResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateProjectResponseBody) SetData

func (u *UpdateProjectResponseBody) SetData(data *Project)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateProjectResponseBody) SetRequestID

func (u *UpdateProjectResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateProjectResponseBody) String

func (u *UpdateProjectResponseBody) String() string

func (*UpdateProjectResponseBody) UnmarshalJSON

func (u *UpdateProjectResponseBody) UnmarshalJSON(data []byte) error

type UpdateTagResponseBody

type UpdateTagResponseBody struct {
	Data *Tag `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateTagResponseBody) GetData

func (u *UpdateTagResponseBody) GetData() *Tag

func (*UpdateTagResponseBody) GetExtraProperties

func (u *UpdateTagResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateTagResponseBody) GetRequestID

func (u *UpdateTagResponseBody) GetRequestID() string

func (*UpdateTagResponseBody) MarshalJSON

func (u *UpdateTagResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateTagResponseBody) SetData

func (u *UpdateTagResponseBody) SetData(data *Tag)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateTagResponseBody) SetRequestID

func (u *UpdateTagResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateTagResponseBody) String

func (u *UpdateTagResponseBody) String() string

func (*UpdateTagResponseBody) UnmarshalJSON

func (u *UpdateTagResponseBody) UnmarshalJSON(data []byte) error

type UpdateTaskCommentResponseBody

type UpdateTaskCommentResponseBody struct {
	Data *TaskComment `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateTaskCommentResponseBody) GetData

func (*UpdateTaskCommentResponseBody) GetExtraProperties

func (u *UpdateTaskCommentResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateTaskCommentResponseBody) GetRequestID

func (u *UpdateTaskCommentResponseBody) GetRequestID() string

func (*UpdateTaskCommentResponseBody) MarshalJSON

func (u *UpdateTaskCommentResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateTaskCommentResponseBody) SetData

func (u *UpdateTaskCommentResponseBody) SetData(data *TaskComment)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateTaskCommentResponseBody) SetRequestID

func (u *UpdateTaskCommentResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateTaskCommentResponseBody) String

func (*UpdateTaskCommentResponseBody) UnmarshalJSON

func (u *UpdateTaskCommentResponseBody) UnmarshalJSON(data []byte) error

type UpdateTaskResponseBody

type UpdateTaskResponseBody struct {
	Data *Task `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateTaskResponseBody) GetData

func (u *UpdateTaskResponseBody) GetData() *Task

func (*UpdateTaskResponseBody) GetExtraProperties

func (u *UpdateTaskResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateTaskResponseBody) GetRequestID

func (u *UpdateTaskResponseBody) GetRequestID() string

func (*UpdateTaskResponseBody) MarshalJSON

func (u *UpdateTaskResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateTaskResponseBody) SetData

func (u *UpdateTaskResponseBody) SetData(data *Task)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateTaskResponseBody) SetRequestID

func (u *UpdateTaskResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateTaskResponseBody) String

func (u *UpdateTaskResponseBody) String() string

func (*UpdateTaskResponseBody) UnmarshalJSON

func (u *UpdateTaskResponseBody) UnmarshalJSON(data []byte) error

type UpdateTeamResponseBody

type UpdateTeamResponseBody struct {
	Data *Team `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UpdateTeamResponseBody) GetData

func (u *UpdateTeamResponseBody) GetData() *Team

func (*UpdateTeamResponseBody) GetExtraProperties

func (u *UpdateTeamResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateTeamResponseBody) GetRequestID

func (u *UpdateTeamResponseBody) GetRequestID() string

func (*UpdateTeamResponseBody) MarshalJSON

func (u *UpdateTeamResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateTeamResponseBody) SetData

func (u *UpdateTeamResponseBody) SetData(data *Team)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateTeamResponseBody) SetRequestID

func (u *UpdateTeamResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateTeamResponseBody) String

func (u *UpdateTeamResponseBody) String() string

func (*UpdateTeamResponseBody) UnmarshalJSON

func (u *UpdateTeamResponseBody) UnmarshalJSON(data []byte) error

type UpdateUserResponseBody

type UpdateUserResponseBody struct {
	Data *User `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID *string `json:"request_id,omitempty" url:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserResponseBody) GetData

func (u *UpdateUserResponseBody) GetData() *User

func (*UpdateUserResponseBody) GetExtraProperties

func (u *UpdateUserResponseBody) GetExtraProperties() map[string]interface{}

func (*UpdateUserResponseBody) GetRequestID

func (u *UpdateUserResponseBody) GetRequestID() *string

func (*UpdateUserResponseBody) MarshalJSON

func (u *UpdateUserResponseBody) MarshalJSON() ([]byte, error)

func (*UpdateUserResponseBody) SetData

func (u *UpdateUserResponseBody) SetData(data *User)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateUserResponseBody) SetRequestID

func (u *UpdateUserResponseBody) SetRequestID(requestID *string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateUserResponseBody) String

func (u *UpdateUserResponseBody) String() string

func (*UpdateUserResponseBody) UnmarshalJSON

func (u *UpdateUserResponseBody) UnmarshalJSON(data []byte) error

type UploadAccountFileResponseBody

type UploadAccountFileResponseBody struct {
	// The data payload of the response.
	Data []*Attachment `json:"data" url:"data"`
	// The request ID for tracking.
	RequestID string `json:"request_id" url:"request_id"`
	// contains filtered or unexported fields
}

func (*UploadAccountFileResponseBody) GetData

func (u *UploadAccountFileResponseBody) GetData() []*Attachment

func (*UploadAccountFileResponseBody) GetExtraProperties

func (u *UploadAccountFileResponseBody) GetExtraProperties() map[string]interface{}

func (*UploadAccountFileResponseBody) GetRequestID

func (u *UploadAccountFileResponseBody) GetRequestID() string

func (*UploadAccountFileResponseBody) MarshalJSON

func (u *UploadAccountFileResponseBody) MarshalJSON() ([]byte, error)

func (*UploadAccountFileResponseBody) SetData

func (u *UploadAccountFileResponseBody) SetData(data []*Attachment)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UploadAccountFileResponseBody) SetRequestID

func (u *UploadAccountFileResponseBody) SetRequestID(requestID string)

SetRequestID sets the RequestID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UploadAccountFileResponseBody) String

func (*UploadAccountFileResponseBody) UnmarshalJSON

func (u *UploadAccountFileResponseBody) UnmarshalJSON(data []byte) error

type UploadFilesTrainingDataRequestVisibility

type UploadFilesTrainingDataRequestVisibility string

Visibility of the training data. Defaults to "everyone". Valid values: "everyone", "user_only", "ai_agent_only"

const (
	UploadFilesTrainingDataRequestVisibilityEveryone    UploadFilesTrainingDataRequestVisibility = "everyone"
	UploadFilesTrainingDataRequestVisibilityUserOnly    UploadFilesTrainingDataRequestVisibility = "user_only"
	UploadFilesTrainingDataRequestVisibilityAiAgentOnly UploadFilesTrainingDataRequestVisibility = "ai_agent_only"
)

func NewUploadFilesTrainingDataRequestVisibilityFromString

func NewUploadFilesTrainingDataRequestVisibilityFromString(s string) (UploadFilesTrainingDataRequestVisibility, error)

func (UploadFilesTrainingDataRequestVisibility) Ptr

type UploadTrainingDataFileContentRequestBodyVisibility

type UploadTrainingDataFileContentRequestBodyVisibility string

Visibility of the training data. Defaults to "everyone".

const (
	UploadTrainingDataFileContentRequestBodyVisibilityEveryone    UploadTrainingDataFileContentRequestBodyVisibility = "everyone"
	UploadTrainingDataFileContentRequestBodyVisibilityUserOnly    UploadTrainingDataFileContentRequestBodyVisibility = "user_only"
	UploadTrainingDataFileContentRequestBodyVisibilityAiAgentOnly UploadTrainingDataFileContentRequestBodyVisibility = "ai_agent_only"
)

func NewUploadTrainingDataFileContentRequestBodyVisibilityFromString

func NewUploadTrainingDataFileContentRequestBodyVisibilityFromString(s string) (UploadTrainingDataFileContentRequestBodyVisibility, error)

func (UploadTrainingDataFileContentRequestBodyVisibility) Ptr

type User

type User struct {
	// The avatar URL of the user.
	AvatarURL string `json:"avatar_url" url:"avatar_url"`
	// The primary email of the user.
	Email string `json:"email" url:"email"`
	// The list of all emails of the user.
	Emails []string `json:"emails,omitempty" url:"emails,omitempty"`
	// The ID of the user.
	ID string `json:"id" url:"id"`
	// Whether the user is deactivated.
	IsDeactivated bool `json:"is_deactivated" url:"is_deactivated"`
	// The name of the user.
	Name string `json:"name" url:"name"`
	// Deprecated: Use roles to retrieve all assigned roles. This field returns only one assignment for backwards compatibility, not a primary role.
	Role *MiniRole `json:"role,omitempty" url:"role,omitempty"`
	// Deprecated: Use role_ids to retrieve all assigned roles. This field returns only one assignment for backwards compatibility, not a primary role.
	RoleID string `json:"role_id" url:"role_id"`
	// All assigned role IDs, sorted by ID. The order does not imply precedence.
	RoleIDs []string `json:"role_ids,omitempty" url:"role_ids,omitempty"`
	// All assigned roles, including SCIM-derived roles, sorted by ID. Empty when no roles are assigned.
	Roles []*MiniRole `json:"roles,omitempty" url:"roles,omitempty"`
	// The user's routing skills. Null when the caller lacks permission to read team settings.
	Skills []*UserSkill `json:"skills,omitempty" url:"skills,omitempty"`
	// The status of the user. Standard values are `active`, `away`, and `out_of_office`; custom status slugs are also supported. See GET /user-statuses for each status's category.
	Status string `json:"status" url:"status"`
	// contains filtered or unexported fields
}

func (*User) GetAvatarURL

func (u *User) GetAvatarURL() string

func (*User) GetEmail

func (u *User) GetEmail() string

func (*User) GetEmails

func (u *User) GetEmails() []string

func (*User) GetExtraProperties

func (u *User) GetExtraProperties() map[string]interface{}

func (*User) GetID

func (u *User) GetID() string

func (*User) GetIsDeactivated

func (u *User) GetIsDeactivated() bool

func (*User) GetName

func (u *User) GetName() string

func (*User) GetRole

func (u *User) GetRole() *MiniRole

func (*User) GetRoleID

func (u *User) GetRoleID() string

func (*User) GetRoleIDs

func (u *User) GetRoleIDs() []string

func (*User) GetRoles

func (u *User) GetRoles() []*MiniRole

func (*User) GetSkills

func (u *User) GetSkills() []*UserSkill

func (*User) GetStatus

func (u *User) GetStatus() string

func (*User) MarshalJSON

func (u *User) MarshalJSON() ([]byte, error)

func (*User) SetAvatarURL

func (u *User) SetAvatarURL(avatarURL string)

SetAvatarURL sets the AvatarURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetEmail

func (u *User) SetEmail(email string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetEmails

func (u *User) SetEmails(emails []string)

SetEmails sets the Emails field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetID

func (u *User) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetIsDeactivated

func (u *User) SetIsDeactivated(isDeactivated bool)

SetIsDeactivated sets the IsDeactivated field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetName

func (u *User) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetRole

func (u *User) SetRole(role *MiniRole)

SetRole sets the Role field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetRoleID

func (u *User) SetRoleID(roleID string)

SetRoleID sets the RoleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetRoleIDs

func (u *User) SetRoleIDs(roleIDs []string)

SetRoleIDs sets the RoleIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetRoles

func (u *User) SetRoles(roles []*MiniRole)

SetRoles sets the Roles field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetSkills

func (u *User) SetSkills(skills []*UserSkill)

SetSkills sets the Skills field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) SetStatus

func (u *User) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*User) String

func (u *User) String() string

func (*User) UnmarshalJSON

func (u *User) UnmarshalJSON(data []byte) error

type UserRole

type UserRole struct {
	// The ID of the role.
	ID string `json:"id" url:"id"`
	// The name of the role.
	Name string `json:"name" url:"name"`
	// The slug of the role.
	Slug string `json:"slug" url:"slug"`
	// contains filtered or unexported fields
}

func (*UserRole) GetExtraProperties

func (u *UserRole) GetExtraProperties() map[string]interface{}

func (*UserRole) GetID

func (u *UserRole) GetID() string

func (*UserRole) GetName

func (u *UserRole) GetName() string

func (*UserRole) GetSlug

func (u *UserRole) GetSlug() string

func (*UserRole) MarshalJSON

func (u *UserRole) MarshalJSON() ([]byte, error)

func (*UserRole) SetID

func (u *UserRole) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserRole) SetName

func (u *UserRole) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserRole) SetSlug

func (u *UserRole) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserRole) String

func (u *UserRole) String() string

func (*UserRole) UnmarshalJSON

func (u *UserRole) UnmarshalJSON(data []byte) error

type UserSkill

type UserSkill struct {
	// The issue custom field ID when attribute_type is `custom_field`, or the issue property, such as `language`, when attribute_type is `default_field`.
	Attribute string `json:"attribute" url:"attribute"`
	// The kind of attribute the skill routes on.
	//
	// Known values: `custom_field`, `default_field`. This list is not exhaustive.
	AttributeType string `json:"attribute_type" url:"attribute_type"`
	// The attribute values the user is skilled in, with their levels.
	Values []*UserSkillValue `json:"values,omitempty" url:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*UserSkill) GetAttribute

func (u *UserSkill) GetAttribute() string

func (*UserSkill) GetAttributeType

func (u *UserSkill) GetAttributeType() string

func (*UserSkill) GetExtraProperties

func (u *UserSkill) GetExtraProperties() map[string]interface{}

func (*UserSkill) GetValues

func (u *UserSkill) GetValues() []*UserSkillValue

func (*UserSkill) MarshalJSON

func (u *UserSkill) MarshalJSON() ([]byte, error)

func (*UserSkill) SetAttribute

func (u *UserSkill) SetAttribute(attribute string)

SetAttribute sets the Attribute field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserSkill) SetAttributeType

func (u *UserSkill) SetAttributeType(attributeType string)

SetAttributeType sets the AttributeType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserSkill) SetValues

func (u *UserSkill) SetValues(values []*UserSkillValue)

SetValues sets the Values field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserSkill) String

func (u *UserSkill) String() string

func (*UserSkill) UnmarshalJSON

func (u *UserSkill) UnmarshalJSON(data []byte) error

type UserSkillValue

type UserSkillValue struct {
	// The skill level, where 1 is the lowest. Pylon assigns levels 1 to 3.
	Level int64 `json:"level" url:"level"`
	// The attribute value, such as a select option slug, a user ID, or a language code.
	Value string `json:"value" url:"value"`
	// contains filtered or unexported fields
}

func (*UserSkillValue) GetExtraProperties

func (u *UserSkillValue) GetExtraProperties() map[string]interface{}

func (*UserSkillValue) GetLevel

func (u *UserSkillValue) GetLevel() int64

func (*UserSkillValue) GetValue

func (u *UserSkillValue) GetValue() string

func (*UserSkillValue) MarshalJSON

func (u *UserSkillValue) MarshalJSON() ([]byte, error)

func (*UserSkillValue) SetLevel

func (u *UserSkillValue) SetLevel(level int64)

SetLevel sets the Level field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserSkillValue) SetValue

func (u *UserSkillValue) SetValue(value string)

SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserSkillValue) String

func (u *UserSkillValue) String() string

func (*UserSkillValue) UnmarshalJSON

func (u *UserSkillValue) UnmarshalJSON(data []byte) error

type UserStatus

type UserStatus struct {
	// The category of the user status. One of active, away, out_of_office.
	Category string `json:"category" url:"category"`
	// Indicates if the user status is archived.
	IsArchived bool `json:"is_archived" url:"is_archived"`
	// Indicates if the user status is a built-in status.
	IsDefaultStatus bool `json:"is_default_status" url:"is_default_status"`
	// The label of the user status.
	Label string `json:"label" url:"label"`
	// The slug of the user status. Use it in a team's assignment_configuration.assignable_user_statuses.
	Slug string `json:"slug" url:"slug"`
	// contains filtered or unexported fields
}

func (*UserStatus) GetCategory

func (u *UserStatus) GetCategory() string

func (*UserStatus) GetExtraProperties

func (u *UserStatus) GetExtraProperties() map[string]interface{}

func (*UserStatus) GetIsArchived

func (u *UserStatus) GetIsArchived() bool

func (*UserStatus) GetIsDefaultStatus

func (u *UserStatus) GetIsDefaultStatus() bool

func (*UserStatus) GetLabel

func (u *UserStatus) GetLabel() string

func (*UserStatus) GetSlug

func (u *UserStatus) GetSlug() string

func (*UserStatus) MarshalJSON

func (u *UserStatus) MarshalJSON() ([]byte, error)

func (*UserStatus) SetCategory

func (u *UserStatus) SetCategory(category string)

SetCategory sets the Category field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserStatus) SetIsArchived

func (u *UserStatus) SetIsArchived(isArchived bool)

SetIsArchived sets the IsArchived field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserStatus) SetIsDefaultStatus

func (u *UserStatus) SetIsDefaultStatus(isDefaultStatus bool)

SetIsDefaultStatus sets the IsDefaultStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserStatus) SetLabel

func (u *UserStatus) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserStatus) SetSlug

func (u *UserStatus) SetSlug(slug string)

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UserStatus) String

func (u *UserStatus) String() string

func (*UserStatus) UnmarshalJSON

func (u *UserStatus) UnmarshalJSON(data []byte) error

type UsersGetRequest

type UsersGetRequest struct {
	// The ID of the user to fetch.
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*UsersGetRequest) SetID

func (u *UsersGetRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type UsersListRequest

type UsersListRequest struct {
	// Whether to include deactivated users. Defaults to false.
	IncludeDeactivated *bool `json:"-" url:"include_deactivated,omitempty"`
	// contains filtered or unexported fields
}

func (*UsersListRequest) SetIncludeDeactivated

func (u *UsersListRequest) SetIncludeDeactivated(includeDeactivated *bool)

SetIncludeDeactivated sets the IncludeDeactivated field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type UsersSearchRequest

type UsersSearchRequest struct {
	// The cursor to use for pagination.
	Cursor *string `json:"cursor,omitempty" url:"-"`
	Filter *Filter `json:"filter,omitempty" url:"-"`
	// The number of users to fetch. Defaults to 100. Must be between 1 and 1000.
	Limit *int64 `json:"limit,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*UsersSearchRequest) MarshalJSON

func (u *UsersSearchRequest) MarshalJSON() ([]byte, error)

func (*UsersSearchRequest) SetCursor

func (u *UsersSearchRequest) SetCursor(cursor *string)

SetCursor sets the Cursor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UsersSearchRequest) SetFilter

func (u *UsersSearchRequest) SetFilter(filter *Filter)

SetFilter sets the Filter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UsersSearchRequest) SetLimit

func (u *UsersSearchRequest) SetLimit(limit *int64)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UsersSearchRequest) UnmarshalJSON

func (u *UsersSearchRequest) UnmarshalJSON(data []byte) error

type UsersUpdateRequest

type UsersUpdateRequest struct {
	// The ID of the user to update.
	ID string `json:"-" url:"-"`
	// The avatar URL of the user. Must be a square .png, .jpg or .jpeg.
	AvatarURL *string `json:"avatar_url,omitempty" url:"-"`
	// Whether the user is deactivated. Changing it requires admin permissions. Deactivating revokes the user's API tokens, removes their team
	// schedules and skills, disconnects their calendars, and reassigns their open issues in the background. Reactivating does not
	// restore any of these. Users provisioned through SCIM must be deactivated and reactivated in the identity provider.
	IsDeactivated *bool `json:"is_deactivated,omitempty" url:"-"`
	// The name of the user.
	Name *string `json:"name,omitempty" url:"-"`
	// The ID of the user to reassign the deactivated user's open issues to. Only valid with `is_deactivated: true`. If omitted, the issues are unassigned.
	ReassignOpenIssuesToUserID *string `json:"reassign_open_issues_to_user_id,omitempty" url:"-"`
	// The role_id of the user.
	RoleID *string `json:"role_id,omitempty" url:"-"`
	// The new status for the user: `active`, `away`, `out_of_office`, or a custom status slug from GET /user-statuses.
	Status *string `json:"status,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*UsersUpdateRequest) MarshalJSON

func (u *UsersUpdateRequest) MarshalJSON() ([]byte, error)

func (*UsersUpdateRequest) SetAvatarURL

func (u *UsersUpdateRequest) SetAvatarURL(avatarURL *string)

SetAvatarURL sets the AvatarURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UsersUpdateRequest) SetID

func (u *UsersUpdateRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UsersUpdateRequest) SetIsDeactivated

func (u *UsersUpdateRequest) SetIsDeactivated(isDeactivated *bool)

SetIsDeactivated sets the IsDeactivated field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UsersUpdateRequest) SetName

func (u *UsersUpdateRequest) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UsersUpdateRequest) SetReassignOpenIssuesToUserID

func (u *UsersUpdateRequest) SetReassignOpenIssuesToUserID(reassignOpenIssuesToUserID *string)

SetReassignOpenIssuesToUserID sets the ReassignOpenIssuesToUserID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UsersUpdateRequest) SetRoleID

func (u *UsersUpdateRequest) SetRoleID(roleID *string)

SetRoleID sets the RoleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UsersUpdateRequest) SetStatus

func (u *UsersUpdateRequest) SetStatus(status *string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UsersUpdateRequest) UnmarshalJSON

func (u *UsersUpdateRequest) UnmarshalJSON(data []byte) error

type Visibility

type Visibility struct {
	// Team IDs who can access the resource.
	TeamIDs []string `json:"team_ids,omitempty" url:"team_ids,omitempty"`
	// The visibility type.
	Type string `json:"type" url:"type"`
	// User IDs who can access the resource.
	UserIDs []string `json:"user_ids,omitempty" url:"user_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*Visibility) GetExtraProperties

func (v *Visibility) GetExtraProperties() map[string]interface{}

func (*Visibility) GetTeamIDs

func (v *Visibility) GetTeamIDs() []string

func (*Visibility) GetType

func (v *Visibility) GetType() string

func (*Visibility) GetUserIDs

func (v *Visibility) GetUserIDs() []string

func (*Visibility) MarshalJSON

func (v *Visibility) MarshalJSON() ([]byte, error)

func (*Visibility) SetTeamIDs

func (v *Visibility) SetTeamIDs(teamIDs []string)

SetTeamIDs sets the TeamIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Visibility) SetType

func (v *Visibility) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Visibility) SetUserIDs

func (v *Visibility) SetUserIDs(userIDs []string)

SetUserIDs sets the UserIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*Visibility) String

func (v *Visibility) String() string

func (*Visibility) UnmarshalJSON

func (v *Visibility) UnmarshalJSON(data []byte) error

type VisibilityInput

type VisibilityInput struct {
	// Team IDs who can access the resource. Required when type is "team" or "users_and_teams".
	TeamIDs []string `json:"team_ids,omitempty" url:"team_ids,omitempty"`
	// The visibility type: "org" (entire organization), "user" (specific users),
	// "team" (specific teams), or "users_and_teams" (specific users and teams).
	Type VisibilityInputType `json:"type" url:"type"`
	// User IDs who can access the resource. Required when type is "user" or "users_and_teams".
	UserIDs []string `json:"user_ids,omitempty" url:"user_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*VisibilityInput) GetExtraProperties

func (v *VisibilityInput) GetExtraProperties() map[string]interface{}

func (*VisibilityInput) GetTeamIDs

func (v *VisibilityInput) GetTeamIDs() []string

func (*VisibilityInput) GetType

func (v *VisibilityInput) GetType() VisibilityInputType

func (*VisibilityInput) GetUserIDs

func (v *VisibilityInput) GetUserIDs() []string

func (*VisibilityInput) MarshalJSON

func (v *VisibilityInput) MarshalJSON() ([]byte, error)

func (*VisibilityInput) SetTeamIDs

func (v *VisibilityInput) SetTeamIDs(teamIDs []string)

SetTeamIDs sets the TeamIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VisibilityInput) SetType

func (v *VisibilityInput) SetType(type_ VisibilityInputType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VisibilityInput) SetUserIDs

func (v *VisibilityInput) SetUserIDs(userIDs []string)

SetUserIDs sets the UserIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VisibilityInput) String

func (v *VisibilityInput) String() string

func (*VisibilityInput) UnmarshalJSON

func (v *VisibilityInput) UnmarshalJSON(data []byte) error

type VisibilityInputType

type VisibilityInputType string

The visibility type: "org" (entire organization), "user" (specific users), "team" (specific teams), or "users_and_teams" (specific users and teams).

const (
	VisibilityInputTypeOrg           VisibilityInputType = "org"
	VisibilityInputTypeUser          VisibilityInputType = "user"
	VisibilityInputTypeTeam          VisibilityInputType = "team"
	VisibilityInputTypeUsersAndTeams VisibilityInputType = "users_and_teams"
)

func NewVisibilityInputTypeFromString

func NewVisibilityInputTypeFromString(s string) (VisibilityInputType, error)

func (VisibilityInputType) Ptr

type VoiceCall

type VoiceCall struct {
	// RFC3339 timestamp of when the call record was created.
	CreatedAt time.Time `json:"created_at" url:"created_at"`
	// The duration of the call in seconds.
	DurationSec *int64 `json:"duration_sec,omitempty" url:"duration_sec,omitempty"`
	// The phone number that originated the call.
	FromPhoneNumber string `json:"from_phone_number" url:"from_phone_number"`
	// The ID of the voice call.
	ID string `json:"id" url:"id"`
	// Recordings produced for this call.
	Recordings []*VoiceCallRecording `json:"recordings,omitempty" url:"recordings,omitempty"`
	// The phone number that was dialed.
	ToPhoneNumber string `json:"to_phone_number" url:"to_phone_number"`
	// contains filtered or unexported fields
}

func (*VoiceCall) GetCreatedAt

func (v *VoiceCall) GetCreatedAt() time.Time

func (*VoiceCall) GetDurationSec

func (v *VoiceCall) GetDurationSec() *int64

func (*VoiceCall) GetExtraProperties

func (v *VoiceCall) GetExtraProperties() map[string]interface{}

func (*VoiceCall) GetFromPhoneNumber

func (v *VoiceCall) GetFromPhoneNumber() string

func (*VoiceCall) GetID

func (v *VoiceCall) GetID() string

func (*VoiceCall) GetRecordings

func (v *VoiceCall) GetRecordings() []*VoiceCallRecording

func (*VoiceCall) GetToPhoneNumber

func (v *VoiceCall) GetToPhoneNumber() string

func (*VoiceCall) MarshalJSON

func (v *VoiceCall) MarshalJSON() ([]byte, error)

func (*VoiceCall) SetCreatedAt

func (v *VoiceCall) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCall) SetDurationSec

func (v *VoiceCall) SetDurationSec(durationSec *int64)

SetDurationSec sets the DurationSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCall) SetFromPhoneNumber

func (v *VoiceCall) SetFromPhoneNumber(fromPhoneNumber string)

SetFromPhoneNumber sets the FromPhoneNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCall) SetID

func (v *VoiceCall) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCall) SetRecordings

func (v *VoiceCall) SetRecordings(recordings []*VoiceCallRecording)

SetRecordings sets the Recordings field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCall) SetToPhoneNumber

func (v *VoiceCall) SetToPhoneNumber(toPhoneNumber string)

SetToPhoneNumber sets the ToPhoneNumber field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCall) String

func (v *VoiceCall) String() string

func (*VoiceCall) UnmarshalJSON

func (v *VoiceCall) UnmarshalJSON(data []byte) error

type VoiceCallRecording

type VoiceCallRecording struct {
	// A presigned URL to download the audio file. Expires 1 hour after this response is generated; refetch the voice call to get a new URL. Empty when the audio was deleted under a retention policy.
	DownloadURL string `json:"download_url" url:"download_url"`
	// The ID of the recording.
	ID string `json:"id" url:"id"`
	// Parsed transcript with one entry per spoken segment.
	TranscriptSegments []*VoiceCallTranscriptSegment `json:"transcript_segments,omitempty" url:"transcript_segments,omitempty"`
	// contains filtered or unexported fields
}

func (*VoiceCallRecording) GetDownloadURL

func (v *VoiceCallRecording) GetDownloadURL() string

func (*VoiceCallRecording) GetExtraProperties

func (v *VoiceCallRecording) GetExtraProperties() map[string]interface{}

func (*VoiceCallRecording) GetID

func (v *VoiceCallRecording) GetID() string

func (*VoiceCallRecording) GetTranscriptSegments

func (v *VoiceCallRecording) GetTranscriptSegments() []*VoiceCallTranscriptSegment

func (*VoiceCallRecording) MarshalJSON

func (v *VoiceCallRecording) MarshalJSON() ([]byte, error)

func (*VoiceCallRecording) SetDownloadURL

func (v *VoiceCallRecording) SetDownloadURL(downloadURL string)

SetDownloadURL sets the DownloadURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCallRecording) SetID

func (v *VoiceCallRecording) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCallRecording) SetTranscriptSegments

func (v *VoiceCallRecording) SetTranscriptSegments(transcriptSegments []*VoiceCallTranscriptSegment)

SetTranscriptSegments sets the TranscriptSegments field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCallRecording) String

func (v *VoiceCallRecording) String() string

func (*VoiceCallRecording) UnmarshalJSON

func (v *VoiceCallRecording) UnmarshalJSON(data []byte) error

type VoiceCallTranscriptSegment

type VoiceCallTranscriptSegment struct {
	// The speaker label for this segment.
	Speaker string `json:"speaker" url:"speaker"`
	// The text spoken in this segment.
	Text string `json:"text" url:"text"`
	// contains filtered or unexported fields
}

func (*VoiceCallTranscriptSegment) GetExtraProperties

func (v *VoiceCallTranscriptSegment) GetExtraProperties() map[string]interface{}

func (*VoiceCallTranscriptSegment) GetSpeaker

func (v *VoiceCallTranscriptSegment) GetSpeaker() string

func (*VoiceCallTranscriptSegment) GetText

func (v *VoiceCallTranscriptSegment) GetText() string

func (*VoiceCallTranscriptSegment) MarshalJSON

func (v *VoiceCallTranscriptSegment) MarshalJSON() ([]byte, error)

func (*VoiceCallTranscriptSegment) SetSpeaker

func (v *VoiceCallTranscriptSegment) SetSpeaker(speaker string)

SetSpeaker sets the Speaker field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCallTranscriptSegment) SetText

func (v *VoiceCallTranscriptSegment) SetText(text string)

SetText sets the Text field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VoiceCallTranscriptSegment) String

func (v *VoiceCallTranscriptSegment) String() string

func (*VoiceCallTranscriptSegment) UnmarshalJSON

func (v *VoiceCallTranscriptSegment) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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