Documentation
¶
Index ¶
- func Bool(b bool) param.Opt[bool]
- func BoolPtr(v bool) *bool
- func DefaultClientOptions() []option.RequestOption
- func File(rdr io.Reader, filename string, contentType string) file
- func Float(f float64) param.Opt[float64]
- func FloatPtr(v float64) *float64
- func Int(i int64) param.Opt[int64]
- func IntPtr(v int64) *int64
- func Opt[T comparable](v T) param.Opt[T]
- func Ptr[T any](v T) *T
- func String(s string) param.Opt[string]
- func StringPtr(v string) *string
- func Time(t time.Time) param.Opt[time.Time]
- func TimePtr(v time.Time) *time.Time
- type AccountCreateResponse
- type AccountCreateResponseArrayItemUnion
- func (u AccountCreateResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountCreateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountCreateResponseArrayItemUnion) AsBool() (v bool)
- func (u AccountCreateResponseArrayItemUnion) AsFloat() (v float64)
- func (u AccountCreateResponseArrayItemUnion) AsString() (v string)
- func (u AccountCreateResponseArrayItemUnion) RawJSON() string
- func (r *AccountCreateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountCreateResponseField
- type AccountCreateResponseFieldValueArrayItemUnion
- func (u AccountCreateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountCreateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountCreateResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u AccountCreateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u AccountCreateResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u AccountCreateResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *AccountCreateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountCreateResponseFieldValueMapItemUnion
- func (u AccountCreateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u AccountCreateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountCreateResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u AccountCreateResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u AccountCreateResponseFieldValueMapItemUnion) AsString() (v string)
- func (u AccountCreateResponseFieldValueMapItemUnion) RawJSON() string
- func (r *AccountCreateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountCreateResponseFieldValueUnion
- func (u AccountCreateResponseFieldValueUnion) AsAccountCreateResponseFieldValueArray() (v []AccountCreateResponseFieldValueArrayItemUnion)
- func (u AccountCreateResponseFieldValueUnion) AsAccountCreateResponseFieldValueMapMap() (v map[string]AccountCreateResponseFieldValueMapItemUnion)
- func (u AccountCreateResponseFieldValueUnion) AsBool() (v bool)
- func (u AccountCreateResponseFieldValueUnion) AsFloat() (v float64)
- func (u AccountCreateResponseFieldValueUnion) AsString() (v string)
- func (u AccountCreateResponseFieldValueUnion) RawJSON() string
- func (r *AccountCreateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type AccountCreateResponseMapItemUnion
- func (u AccountCreateResponseMapItemUnion) AsAnyArray() (v []any)
- func (u AccountCreateResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountCreateResponseMapItemUnion) AsBool() (v bool)
- func (u AccountCreateResponseMapItemUnion) AsFloat() (v float64)
- func (u AccountCreateResponseMapItemUnion) AsString() (v string)
- func (u AccountCreateResponseMapItemUnion) RawJSON() string
- func (r *AccountCreateResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountCreateResponseRelationship
- type AccountCreateResponseUnion
- func (u AccountCreateResponseUnion) AsAccountCreateResponseArray() (v []AccountCreateResponseArrayItemUnion)
- func (u AccountCreateResponseUnion) AsAccountCreateResponseMapMap() (v map[string]AccountCreateResponseMapItemUnion)
- func (u AccountCreateResponseUnion) AsBool() (v bool)
- func (u AccountCreateResponseUnion) AsFloat() (v float64)
- func (u AccountCreateResponseUnion) AsString() (v string)
- func (u AccountCreateResponseUnion) RawJSON() string
- func (r *AccountCreateResponseUnion) UnmarshalJSON(data []byte) error
- type AccountDefinitionsResponse
- type AccountDefinitionsResponseFieldDefinition
- type AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool() (v bool)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat() (v float64)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString() (v string)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON() string
- func (r *AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray() (v []any)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool() (v bool)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat() (v float64)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString() (v string)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON() string
- func (r *AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsAccountDefinitionsResponseFieldDefinitionTypeConfigurationArray() (v []AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapMap() (...)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool() (v bool)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat() (v float64)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString() (v string)
- func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON() string
- func (r *AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON(data []byte) error
- type AccountDefinitionsResponseRelationshipDefinition
- type AccountListParams
- type AccountListResponse
- type AccountListResponseData
- type AccountListResponseDataArrayItemUnion
- func (u AccountListResponseDataArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountListResponseDataArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountListResponseDataArrayItemUnion) AsBool() (v bool)
- func (u AccountListResponseDataArrayItemUnion) AsFloat() (v float64)
- func (u AccountListResponseDataArrayItemUnion) AsString() (v string)
- func (u AccountListResponseDataArrayItemUnion) RawJSON() string
- func (r *AccountListResponseDataArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountListResponseDataField
- type AccountListResponseDataFieldValueArrayItemUnion
- func (u AccountListResponseDataFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountListResponseDataFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountListResponseDataFieldValueArrayItemUnion) AsBool() (v bool)
- func (u AccountListResponseDataFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u AccountListResponseDataFieldValueArrayItemUnion) AsString() (v string)
- func (u AccountListResponseDataFieldValueArrayItemUnion) RawJSON() string
- func (r *AccountListResponseDataFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountListResponseDataFieldValueMapItemUnion
- func (u AccountListResponseDataFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u AccountListResponseDataFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountListResponseDataFieldValueMapItemUnion) AsBool() (v bool)
- func (u AccountListResponseDataFieldValueMapItemUnion) AsFloat() (v float64)
- func (u AccountListResponseDataFieldValueMapItemUnion) AsString() (v string)
- func (u AccountListResponseDataFieldValueMapItemUnion) RawJSON() string
- func (r *AccountListResponseDataFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountListResponseDataFieldValueUnion
- func (u AccountListResponseDataFieldValueUnion) AsAccountListResponseDataFieldValueArray() (v []AccountListResponseDataFieldValueArrayItemUnion)
- func (u AccountListResponseDataFieldValueUnion) AsAccountListResponseDataFieldValueMapMap() (v map[string]AccountListResponseDataFieldValueMapItemUnion)
- func (u AccountListResponseDataFieldValueUnion) AsBool() (v bool)
- func (u AccountListResponseDataFieldValueUnion) AsFloat() (v float64)
- func (u AccountListResponseDataFieldValueUnion) AsString() (v string)
- func (u AccountListResponseDataFieldValueUnion) RawJSON() string
- func (r *AccountListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error
- type AccountListResponseDataMapItemUnion
- func (u AccountListResponseDataMapItemUnion) AsAnyArray() (v []any)
- func (u AccountListResponseDataMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountListResponseDataMapItemUnion) AsBool() (v bool)
- func (u AccountListResponseDataMapItemUnion) AsFloat() (v float64)
- func (u AccountListResponseDataMapItemUnion) AsString() (v string)
- func (u AccountListResponseDataMapItemUnion) RawJSON() string
- func (r *AccountListResponseDataMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountListResponseDataRelationship
- type AccountListResponseDataUnion
- func (u AccountListResponseDataUnion) AsAccountListResponseDataArray() (v []AccountListResponseDataArrayItemUnion)
- func (u AccountListResponseDataUnion) AsAccountListResponseDataMapMap() (v map[string]AccountListResponseDataMapItemUnion)
- func (u AccountListResponseDataUnion) AsBool() (v bool)
- func (u AccountListResponseDataUnion) AsFloat() (v float64)
- func (u AccountListResponseDataUnion) AsString() (v string)
- func (u AccountListResponseDataUnion) RawJSON() string
- func (r *AccountListResponseDataUnion) UnmarshalJSON(data []byte) error
- type AccountNewParams
- type AccountNewParamsFieldArrayItemUnion
- type AccountNewParamsFieldMapItemUnion
- type AccountNewParamsFieldUnion
- type AccountNewParamsFields
- type AccountNewParamsFieldsPrimaryAddress
- type AccountNewParamsRelationshipUnion
- type AccountNewParamsRelationships
- type AccountNewParamsRelationshipsContactUnion
- type AccountNewParamsRelationshipsOwnerUnion
- type AccountRetrieveResponse
- type AccountRetrieveResponseArrayItemUnion
- func (u AccountRetrieveResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountRetrieveResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountRetrieveResponseArrayItemUnion) AsBool() (v bool)
- func (u AccountRetrieveResponseArrayItemUnion) AsFloat() (v float64)
- func (u AccountRetrieveResponseArrayItemUnion) AsString() (v string)
- func (u AccountRetrieveResponseArrayItemUnion) RawJSON() string
- func (r *AccountRetrieveResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountRetrieveResponseField
- type AccountRetrieveResponseFieldValueArrayItemUnion
- func (u AccountRetrieveResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountRetrieveResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountRetrieveResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u AccountRetrieveResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u AccountRetrieveResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u AccountRetrieveResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *AccountRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountRetrieveResponseFieldValueMapItemUnion
- func (u AccountRetrieveResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u AccountRetrieveResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountRetrieveResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u AccountRetrieveResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u AccountRetrieveResponseFieldValueMapItemUnion) AsString() (v string)
- func (u AccountRetrieveResponseFieldValueMapItemUnion) RawJSON() string
- func (r *AccountRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountRetrieveResponseFieldValueUnion
- func (u AccountRetrieveResponseFieldValueUnion) AsAccountRetrieveResponseFieldValueArray() (v []AccountRetrieveResponseFieldValueArrayItemUnion)
- func (u AccountRetrieveResponseFieldValueUnion) AsAccountRetrieveResponseFieldValueMapMap() (v map[string]AccountRetrieveResponseFieldValueMapItemUnion)
- func (u AccountRetrieveResponseFieldValueUnion) AsBool() (v bool)
- func (u AccountRetrieveResponseFieldValueUnion) AsFloat() (v float64)
- func (u AccountRetrieveResponseFieldValueUnion) AsString() (v string)
- func (u AccountRetrieveResponseFieldValueUnion) RawJSON() string
- func (r *AccountRetrieveResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type AccountRetrieveResponseMapItemUnion
- func (u AccountRetrieveResponseMapItemUnion) AsAnyArray() (v []any)
- func (u AccountRetrieveResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountRetrieveResponseMapItemUnion) AsBool() (v bool)
- func (u AccountRetrieveResponseMapItemUnion) AsFloat() (v float64)
- func (u AccountRetrieveResponseMapItemUnion) AsString() (v string)
- func (u AccountRetrieveResponseMapItemUnion) RawJSON() string
- func (r *AccountRetrieveResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountRetrieveResponseRelationship
- type AccountRetrieveResponseUnion
- func (u AccountRetrieveResponseUnion) AsAccountRetrieveResponseArray() (v []AccountRetrieveResponseArrayItemUnion)
- func (u AccountRetrieveResponseUnion) AsAccountRetrieveResponseMapMap() (v map[string]AccountRetrieveResponseMapItemUnion)
- func (u AccountRetrieveResponseUnion) AsBool() (v bool)
- func (u AccountRetrieveResponseUnion) AsFloat() (v float64)
- func (u AccountRetrieveResponseUnion) AsString() (v string)
- func (u AccountRetrieveResponseUnion) RawJSON() string
- func (r *AccountRetrieveResponseUnion) UnmarshalJSON(data []byte) error
- type AccountService
- func (r *AccountService) Definitions(ctx context.Context, opts ...option.RequestOption) (res *AccountDefinitionsResponse, err error)
- func (r *AccountService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *AccountRetrieveResponse, err error)
- func (r *AccountService) List(ctx context.Context, query AccountListParams, opts ...option.RequestOption) (res *AccountListResponse, err error)
- func (r *AccountService) New(ctx context.Context, body AccountNewParams, opts ...option.RequestOption) (res *AccountCreateResponse, err error)
- func (r *AccountService) Update(ctx context.Context, id string, body AccountUpdateParams, ...) (res *AccountUpdateResponse, err error)
- type AccountUpdateParams
- type AccountUpdateParamsFieldArrayItemUnion
- type AccountUpdateParamsFieldMapItemUnion
- type AccountUpdateParamsFieldUnion
- type AccountUpdateParamsFields
- type AccountUpdateParamsFieldsPrimaryAddress
- type AccountUpdateParamsRelationship
- type AccountUpdateParamsRelationshipAddUnion
- type AccountUpdateParamsRelationshipRemoveUnion
- type AccountUpdateParamsRelationshipReplaceUnion
- type AccountUpdateParamsRelationships
- type AccountUpdateParamsRelationshipsContact
- type AccountUpdateParamsRelationshipsContactAddUnion
- type AccountUpdateParamsRelationshipsContactRemoveUnion
- type AccountUpdateParamsRelationshipsContactReplaceUnion
- type AccountUpdateParamsRelationshipsOwner
- type AccountUpdateParamsRelationshipsOwnerAddUnion
- type AccountUpdateParamsRelationshipsOwnerRemoveUnion
- type AccountUpdateParamsRelationshipsOwnerReplaceUnion
- type AccountUpdateResponse
- type AccountUpdateResponseArrayItemUnion
- func (u AccountUpdateResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountUpdateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountUpdateResponseArrayItemUnion) AsBool() (v bool)
- func (u AccountUpdateResponseArrayItemUnion) AsFloat() (v float64)
- func (u AccountUpdateResponseArrayItemUnion) AsString() (v string)
- func (u AccountUpdateResponseArrayItemUnion) RawJSON() string
- func (r *AccountUpdateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountUpdateResponseField
- type AccountUpdateResponseFieldValueArrayItemUnion
- func (u AccountUpdateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountUpdateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountUpdateResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u AccountUpdateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u AccountUpdateResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u AccountUpdateResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *AccountUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountUpdateResponseFieldValueMapItemUnion
- func (u AccountUpdateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u AccountUpdateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountUpdateResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u AccountUpdateResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u AccountUpdateResponseFieldValueMapItemUnion) AsString() (v string)
- func (u AccountUpdateResponseFieldValueMapItemUnion) RawJSON() string
- func (r *AccountUpdateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountUpdateResponseFieldValueUnion
- func (u AccountUpdateResponseFieldValueUnion) AsAccountUpdateResponseFieldValueArray() (v []AccountUpdateResponseFieldValueArrayItemUnion)
- func (u AccountUpdateResponseFieldValueUnion) AsAccountUpdateResponseFieldValueMapMap() (v map[string]AccountUpdateResponseFieldValueMapItemUnion)
- func (u AccountUpdateResponseFieldValueUnion) AsBool() (v bool)
- func (u AccountUpdateResponseFieldValueUnion) AsFloat() (v float64)
- func (u AccountUpdateResponseFieldValueUnion) AsString() (v string)
- func (u AccountUpdateResponseFieldValueUnion) RawJSON() string
- func (r *AccountUpdateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type AccountUpdateResponseMapItemUnion
- func (u AccountUpdateResponseMapItemUnion) AsAnyArray() (v []any)
- func (u AccountUpdateResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountUpdateResponseMapItemUnion) AsBool() (v bool)
- func (u AccountUpdateResponseMapItemUnion) AsFloat() (v float64)
- func (u AccountUpdateResponseMapItemUnion) AsString() (v string)
- func (u AccountUpdateResponseMapItemUnion) RawJSON() string
- func (r *AccountUpdateResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountUpdateResponseRelationship
- type AccountUpdateResponseUnion
- func (u AccountUpdateResponseUnion) AsAccountUpdateResponseArray() (v []AccountUpdateResponseArrayItemUnion)
- func (u AccountUpdateResponseUnion) AsAccountUpdateResponseMapMap() (v map[string]AccountUpdateResponseMapItemUnion)
- func (u AccountUpdateResponseUnion) AsBool() (v bool)
- func (u AccountUpdateResponseUnion) AsFloat() (v float64)
- func (u AccountUpdateResponseUnion) AsString() (v string)
- func (u AccountUpdateResponseUnion) RawJSON() string
- func (r *AccountUpdateResponseUnion) UnmarshalJSON(data []byte) error
- type Client
- func (r *Client) Delete(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, ...) error
- func (r *Client) Get(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Patch(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Post(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Put(ctx context.Context, path string, params any, res any, ...) error
- type ContactCreateResponse
- type ContactCreateResponseArrayItemUnion
- func (u ContactCreateResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactCreateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactCreateResponseArrayItemUnion) AsBool() (v bool)
- func (u ContactCreateResponseArrayItemUnion) AsFloat() (v float64)
- func (u ContactCreateResponseArrayItemUnion) AsString() (v string)
- func (u ContactCreateResponseArrayItemUnion) RawJSON() string
- func (r *ContactCreateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactCreateResponseField
- type ContactCreateResponseFieldValueArrayItemUnion
- func (u ContactCreateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactCreateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactCreateResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u ContactCreateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u ContactCreateResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u ContactCreateResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *ContactCreateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactCreateResponseFieldValueMapItemUnion
- func (u ContactCreateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u ContactCreateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactCreateResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u ContactCreateResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u ContactCreateResponseFieldValueMapItemUnion) AsString() (v string)
- func (u ContactCreateResponseFieldValueMapItemUnion) RawJSON() string
- func (r *ContactCreateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactCreateResponseFieldValueUnion
- func (u ContactCreateResponseFieldValueUnion) AsBool() (v bool)
- func (u ContactCreateResponseFieldValueUnion) AsContactCreateResponseFieldValueArray() (v []ContactCreateResponseFieldValueArrayItemUnion)
- func (u ContactCreateResponseFieldValueUnion) AsContactCreateResponseFieldValueMapMap() (v map[string]ContactCreateResponseFieldValueMapItemUnion)
- func (u ContactCreateResponseFieldValueUnion) AsFloat() (v float64)
- func (u ContactCreateResponseFieldValueUnion) AsString() (v string)
- func (u ContactCreateResponseFieldValueUnion) RawJSON() string
- func (r *ContactCreateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type ContactCreateResponseMapItemUnion
- func (u ContactCreateResponseMapItemUnion) AsAnyArray() (v []any)
- func (u ContactCreateResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactCreateResponseMapItemUnion) AsBool() (v bool)
- func (u ContactCreateResponseMapItemUnion) AsFloat() (v float64)
- func (u ContactCreateResponseMapItemUnion) AsString() (v string)
- func (u ContactCreateResponseMapItemUnion) RawJSON() string
- func (r *ContactCreateResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactCreateResponseRelationship
- type ContactCreateResponseUnion
- func (u ContactCreateResponseUnion) AsBool() (v bool)
- func (u ContactCreateResponseUnion) AsContactCreateResponseArray() (v []ContactCreateResponseArrayItemUnion)
- func (u ContactCreateResponseUnion) AsContactCreateResponseMapMap() (v map[string]ContactCreateResponseMapItemUnion)
- func (u ContactCreateResponseUnion) AsFloat() (v float64)
- func (u ContactCreateResponseUnion) AsString() (v string)
- func (u ContactCreateResponseUnion) RawJSON() string
- func (r *ContactCreateResponseUnion) UnmarshalJSON(data []byte) error
- type ContactDefinitionsResponse
- type ContactDefinitionsResponseFieldDefinition
- type ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool() (v bool)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat() (v float64)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString() (v string)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON() string
- func (r *ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray() (v []any)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool() (v bool)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat() (v float64)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString() (v string)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON() string
- func (r *ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool() (v bool)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsContactDefinitionsResponseFieldDefinitionTypeConfigurationArray() (v []ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsContactDefinitionsResponseFieldDefinitionTypeConfigurationMapMap() (...)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat() (v float64)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString() (v string)
- func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON() string
- func (r *ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON(data []byte) error
- type ContactDefinitionsResponseRelationshipDefinition
- type ContactListParams
- type ContactListResponse
- type ContactListResponseData
- type ContactListResponseDataArrayItemUnion
- func (u ContactListResponseDataArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactListResponseDataArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactListResponseDataArrayItemUnion) AsBool() (v bool)
- func (u ContactListResponseDataArrayItemUnion) AsFloat() (v float64)
- func (u ContactListResponseDataArrayItemUnion) AsString() (v string)
- func (u ContactListResponseDataArrayItemUnion) RawJSON() string
- func (r *ContactListResponseDataArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactListResponseDataField
- type ContactListResponseDataFieldValueArrayItemUnion
- func (u ContactListResponseDataFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactListResponseDataFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactListResponseDataFieldValueArrayItemUnion) AsBool() (v bool)
- func (u ContactListResponseDataFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u ContactListResponseDataFieldValueArrayItemUnion) AsString() (v string)
- func (u ContactListResponseDataFieldValueArrayItemUnion) RawJSON() string
- func (r *ContactListResponseDataFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactListResponseDataFieldValueMapItemUnion
- func (u ContactListResponseDataFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u ContactListResponseDataFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactListResponseDataFieldValueMapItemUnion) AsBool() (v bool)
- func (u ContactListResponseDataFieldValueMapItemUnion) AsFloat() (v float64)
- func (u ContactListResponseDataFieldValueMapItemUnion) AsString() (v string)
- func (u ContactListResponseDataFieldValueMapItemUnion) RawJSON() string
- func (r *ContactListResponseDataFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactListResponseDataFieldValueUnion
- func (u ContactListResponseDataFieldValueUnion) AsBool() (v bool)
- func (u ContactListResponseDataFieldValueUnion) AsContactListResponseDataFieldValueArray() (v []ContactListResponseDataFieldValueArrayItemUnion)
- func (u ContactListResponseDataFieldValueUnion) AsContactListResponseDataFieldValueMapMap() (v map[string]ContactListResponseDataFieldValueMapItemUnion)
- func (u ContactListResponseDataFieldValueUnion) AsFloat() (v float64)
- func (u ContactListResponseDataFieldValueUnion) AsString() (v string)
- func (u ContactListResponseDataFieldValueUnion) RawJSON() string
- func (r *ContactListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error
- type ContactListResponseDataMapItemUnion
- func (u ContactListResponseDataMapItemUnion) AsAnyArray() (v []any)
- func (u ContactListResponseDataMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactListResponseDataMapItemUnion) AsBool() (v bool)
- func (u ContactListResponseDataMapItemUnion) AsFloat() (v float64)
- func (u ContactListResponseDataMapItemUnion) AsString() (v string)
- func (u ContactListResponseDataMapItemUnion) RawJSON() string
- func (r *ContactListResponseDataMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactListResponseDataRelationship
- type ContactListResponseDataUnion
- func (u ContactListResponseDataUnion) AsBool() (v bool)
- func (u ContactListResponseDataUnion) AsContactListResponseDataArray() (v []ContactListResponseDataArrayItemUnion)
- func (u ContactListResponseDataUnion) AsContactListResponseDataMapMap() (v map[string]ContactListResponseDataMapItemUnion)
- func (u ContactListResponseDataUnion) AsFloat() (v float64)
- func (u ContactListResponseDataUnion) AsString() (v string)
- func (u ContactListResponseDataUnion) RawJSON() string
- func (r *ContactListResponseDataUnion) UnmarshalJSON(data []byte) error
- type ContactNewParams
- type ContactNewParamsFieldArrayItemUnion
- type ContactNewParamsFieldMapItemUnion
- type ContactNewParamsFieldUnion
- type ContactNewParamsFields
- type ContactNewParamsFieldsName
- type ContactNewParamsRelationshipUnion
- type ContactNewParamsRelationships
- type ContactNewParamsRelationshipsAccountUnion
- type ContactRetrieveResponse
- type ContactRetrieveResponseArrayItemUnion
- func (u ContactRetrieveResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactRetrieveResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactRetrieveResponseArrayItemUnion) AsBool() (v bool)
- func (u ContactRetrieveResponseArrayItemUnion) AsFloat() (v float64)
- func (u ContactRetrieveResponseArrayItemUnion) AsString() (v string)
- func (u ContactRetrieveResponseArrayItemUnion) RawJSON() string
- func (r *ContactRetrieveResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactRetrieveResponseField
- type ContactRetrieveResponseFieldValueArrayItemUnion
- func (u ContactRetrieveResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactRetrieveResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactRetrieveResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u ContactRetrieveResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u ContactRetrieveResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u ContactRetrieveResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *ContactRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactRetrieveResponseFieldValueMapItemUnion
- func (u ContactRetrieveResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u ContactRetrieveResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactRetrieveResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u ContactRetrieveResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u ContactRetrieveResponseFieldValueMapItemUnion) AsString() (v string)
- func (u ContactRetrieveResponseFieldValueMapItemUnion) RawJSON() string
- func (r *ContactRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactRetrieveResponseFieldValueUnion
- func (u ContactRetrieveResponseFieldValueUnion) AsBool() (v bool)
- func (u ContactRetrieveResponseFieldValueUnion) AsContactRetrieveResponseFieldValueArray() (v []ContactRetrieveResponseFieldValueArrayItemUnion)
- func (u ContactRetrieveResponseFieldValueUnion) AsContactRetrieveResponseFieldValueMapMap() (v map[string]ContactRetrieveResponseFieldValueMapItemUnion)
- func (u ContactRetrieveResponseFieldValueUnion) AsFloat() (v float64)
- func (u ContactRetrieveResponseFieldValueUnion) AsString() (v string)
- func (u ContactRetrieveResponseFieldValueUnion) RawJSON() string
- func (r *ContactRetrieveResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type ContactRetrieveResponseMapItemUnion
- func (u ContactRetrieveResponseMapItemUnion) AsAnyArray() (v []any)
- func (u ContactRetrieveResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactRetrieveResponseMapItemUnion) AsBool() (v bool)
- func (u ContactRetrieveResponseMapItemUnion) AsFloat() (v float64)
- func (u ContactRetrieveResponseMapItemUnion) AsString() (v string)
- func (u ContactRetrieveResponseMapItemUnion) RawJSON() string
- func (r *ContactRetrieveResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactRetrieveResponseRelationship
- type ContactRetrieveResponseUnion
- func (u ContactRetrieveResponseUnion) AsBool() (v bool)
- func (u ContactRetrieveResponseUnion) AsContactRetrieveResponseArray() (v []ContactRetrieveResponseArrayItemUnion)
- func (u ContactRetrieveResponseUnion) AsContactRetrieveResponseMapMap() (v map[string]ContactRetrieveResponseMapItemUnion)
- func (u ContactRetrieveResponseUnion) AsFloat() (v float64)
- func (u ContactRetrieveResponseUnion) AsString() (v string)
- func (u ContactRetrieveResponseUnion) RawJSON() string
- func (r *ContactRetrieveResponseUnion) UnmarshalJSON(data []byte) error
- type ContactService
- func (r *ContactService) Definitions(ctx context.Context, opts ...option.RequestOption) (res *ContactDefinitionsResponse, err error)
- func (r *ContactService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ContactRetrieveResponse, err error)
- func (r *ContactService) List(ctx context.Context, query ContactListParams, opts ...option.RequestOption) (res *ContactListResponse, err error)
- func (r *ContactService) New(ctx context.Context, body ContactNewParams, opts ...option.RequestOption) (res *ContactCreateResponse, err error)
- func (r *ContactService) Update(ctx context.Context, id string, body ContactUpdateParams, ...) (res *ContactUpdateResponse, err error)
- type ContactUpdateParams
- type ContactUpdateParamsFieldArrayItemUnion
- type ContactUpdateParamsFieldMapItemUnion
- type ContactUpdateParamsFieldUnion
- type ContactUpdateParamsFields
- type ContactUpdateParamsFieldsName
- type ContactUpdateParamsRelationship
- type ContactUpdateParamsRelationshipAddUnion
- type ContactUpdateParamsRelationshipRemoveUnion
- type ContactUpdateParamsRelationshipReplaceUnion
- type ContactUpdateParamsRelationships
- type ContactUpdateParamsRelationshipsAccount
- type ContactUpdateParamsRelationshipsAccountAddUnion
- type ContactUpdateParamsRelationshipsAccountRemoveUnion
- type ContactUpdateParamsRelationshipsAccountReplaceUnion
- type ContactUpdateResponse
- type ContactUpdateResponseArrayItemUnion
- func (u ContactUpdateResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactUpdateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactUpdateResponseArrayItemUnion) AsBool() (v bool)
- func (u ContactUpdateResponseArrayItemUnion) AsFloat() (v float64)
- func (u ContactUpdateResponseArrayItemUnion) AsString() (v string)
- func (u ContactUpdateResponseArrayItemUnion) RawJSON() string
- func (r *ContactUpdateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactUpdateResponseField
- type ContactUpdateResponseFieldValueArrayItemUnion
- func (u ContactUpdateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactUpdateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactUpdateResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u ContactUpdateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u ContactUpdateResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u ContactUpdateResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *ContactUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactUpdateResponseFieldValueMapItemUnion
- func (u ContactUpdateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u ContactUpdateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactUpdateResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u ContactUpdateResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u ContactUpdateResponseFieldValueMapItemUnion) AsString() (v string)
- func (u ContactUpdateResponseFieldValueMapItemUnion) RawJSON() string
- func (r *ContactUpdateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactUpdateResponseFieldValueUnion
- func (u ContactUpdateResponseFieldValueUnion) AsBool() (v bool)
- func (u ContactUpdateResponseFieldValueUnion) AsContactUpdateResponseFieldValueArray() (v []ContactUpdateResponseFieldValueArrayItemUnion)
- func (u ContactUpdateResponseFieldValueUnion) AsContactUpdateResponseFieldValueMapMap() (v map[string]ContactUpdateResponseFieldValueMapItemUnion)
- func (u ContactUpdateResponseFieldValueUnion) AsFloat() (v float64)
- func (u ContactUpdateResponseFieldValueUnion) AsString() (v string)
- func (u ContactUpdateResponseFieldValueUnion) RawJSON() string
- func (r *ContactUpdateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type ContactUpdateResponseMapItemUnion
- func (u ContactUpdateResponseMapItemUnion) AsAnyArray() (v []any)
- func (u ContactUpdateResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactUpdateResponseMapItemUnion) AsBool() (v bool)
- func (u ContactUpdateResponseMapItemUnion) AsFloat() (v float64)
- func (u ContactUpdateResponseMapItemUnion) AsString() (v string)
- func (u ContactUpdateResponseMapItemUnion) RawJSON() string
- func (r *ContactUpdateResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactUpdateResponseRelationship
- type ContactUpdateResponseUnion
- func (u ContactUpdateResponseUnion) AsBool() (v bool)
- func (u ContactUpdateResponseUnion) AsContactUpdateResponseArray() (v []ContactUpdateResponseArrayItemUnion)
- func (u ContactUpdateResponseUnion) AsContactUpdateResponseMapMap() (v map[string]ContactUpdateResponseMapItemUnion)
- func (u ContactUpdateResponseUnion) AsFloat() (v float64)
- func (u ContactUpdateResponseUnion) AsString() (v string)
- func (u ContactUpdateResponseUnion) RawJSON() string
- func (r *ContactUpdateResponseUnion) UnmarshalJSON(data []byte) error
- type Error
- type MemberListParams
- type MemberListResponse
- type MemberListResponseData
- type MemberListResponseDataField
- type MemberListResponseDataFieldValueArrayItemUnion
- func (u MemberListResponseDataFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u MemberListResponseDataFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u MemberListResponseDataFieldValueArrayItemUnion) AsBool() (v bool)
- func (u MemberListResponseDataFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u MemberListResponseDataFieldValueArrayItemUnion) AsString() (v string)
- func (u MemberListResponseDataFieldValueArrayItemUnion) RawJSON() string
- func (r *MemberListResponseDataFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type MemberListResponseDataFieldValueMapItemUnion
- func (u MemberListResponseDataFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u MemberListResponseDataFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u MemberListResponseDataFieldValueMapItemUnion) AsBool() (v bool)
- func (u MemberListResponseDataFieldValueMapItemUnion) AsFloat() (v float64)
- func (u MemberListResponseDataFieldValueMapItemUnion) AsString() (v string)
- func (u MemberListResponseDataFieldValueMapItemUnion) RawJSON() string
- func (r *MemberListResponseDataFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type MemberListResponseDataFieldValueUnion
- func (u MemberListResponseDataFieldValueUnion) AsBool() (v bool)
- func (u MemberListResponseDataFieldValueUnion) AsFloat() (v float64)
- func (u MemberListResponseDataFieldValueUnion) AsMemberListResponseDataFieldValueArray() (v []MemberListResponseDataFieldValueArrayItemUnion)
- func (u MemberListResponseDataFieldValueUnion) AsMemberListResponseDataFieldValueMapMap() (v map[string]MemberListResponseDataFieldValueMapItemUnion)
- func (u MemberListResponseDataFieldValueUnion) AsString() (v string)
- func (u MemberListResponseDataFieldValueUnion) RawJSON() string
- func (r *MemberListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error
- type MemberRetrieveResponse
- type MemberRetrieveResponseField
- type MemberRetrieveResponseFieldValueArrayItemUnion
- func (u MemberRetrieveResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u MemberRetrieveResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u MemberRetrieveResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u MemberRetrieveResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u MemberRetrieveResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u MemberRetrieveResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *MemberRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type MemberRetrieveResponseFieldValueMapItemUnion
- func (u MemberRetrieveResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u MemberRetrieveResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u MemberRetrieveResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u MemberRetrieveResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u MemberRetrieveResponseFieldValueMapItemUnion) AsString() (v string)
- func (u MemberRetrieveResponseFieldValueMapItemUnion) RawJSON() string
- func (r *MemberRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type MemberRetrieveResponseFieldValueUnion
- func (u MemberRetrieveResponseFieldValueUnion) AsBool() (v bool)
- func (u MemberRetrieveResponseFieldValueUnion) AsFloat() (v float64)
- func (u MemberRetrieveResponseFieldValueUnion) AsMemberRetrieveResponseFieldValueArray() (v []MemberRetrieveResponseFieldValueArrayItemUnion)
- func (u MemberRetrieveResponseFieldValueUnion) AsMemberRetrieveResponseFieldValueMapMap() (v map[string]MemberRetrieveResponseFieldValueMapItemUnion)
- func (u MemberRetrieveResponseFieldValueUnion) AsString() (v string)
- func (u MemberRetrieveResponseFieldValueUnion) RawJSON() string
- func (r *MemberRetrieveResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type MemberService
- type OpportunityCreateResponse
- type OpportunityCreateResponseArrayItemUnion
- func (u OpportunityCreateResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityCreateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityCreateResponseArrayItemUnion) AsBool() (v bool)
- func (u OpportunityCreateResponseArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityCreateResponseArrayItemUnion) AsString() (v string)
- func (u OpportunityCreateResponseArrayItemUnion) RawJSON() string
- func (r *OpportunityCreateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityCreateResponseField
- type OpportunityCreateResponseFieldValueArrayItemUnion
- func (u OpportunityCreateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityCreateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityCreateResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u OpportunityCreateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityCreateResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u OpportunityCreateResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *OpportunityCreateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityCreateResponseFieldValueMapItemUnion
- func (u OpportunityCreateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityCreateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityCreateResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u OpportunityCreateResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u OpportunityCreateResponseFieldValueMapItemUnion) AsString() (v string)
- func (u OpportunityCreateResponseFieldValueMapItemUnion) RawJSON() string
- func (r *OpportunityCreateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityCreateResponseFieldValueUnion
- func (u OpportunityCreateResponseFieldValueUnion) AsBool() (v bool)
- func (u OpportunityCreateResponseFieldValueUnion) AsFloat() (v float64)
- func (u OpportunityCreateResponseFieldValueUnion) AsOpportunityCreateResponseFieldValueArray() (v []OpportunityCreateResponseFieldValueArrayItemUnion)
- func (u OpportunityCreateResponseFieldValueUnion) AsOpportunityCreateResponseFieldValueMapMap() (v map[string]OpportunityCreateResponseFieldValueMapItemUnion)
- func (u OpportunityCreateResponseFieldValueUnion) AsString() (v string)
- func (u OpportunityCreateResponseFieldValueUnion) RawJSON() string
- func (r *OpportunityCreateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type OpportunityCreateResponseMapItemUnion
- func (u OpportunityCreateResponseMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityCreateResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityCreateResponseMapItemUnion) AsBool() (v bool)
- func (u OpportunityCreateResponseMapItemUnion) AsFloat() (v float64)
- func (u OpportunityCreateResponseMapItemUnion) AsString() (v string)
- func (u OpportunityCreateResponseMapItemUnion) RawJSON() string
- func (r *OpportunityCreateResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityCreateResponseRelationship
- type OpportunityCreateResponseUnion
- func (u OpportunityCreateResponseUnion) AsBool() (v bool)
- func (u OpportunityCreateResponseUnion) AsFloat() (v float64)
- func (u OpportunityCreateResponseUnion) AsOpportunityCreateResponseArray() (v []OpportunityCreateResponseArrayItemUnion)
- func (u OpportunityCreateResponseUnion) AsOpportunityCreateResponseMapMap() (v map[string]OpportunityCreateResponseMapItemUnion)
- func (u OpportunityCreateResponseUnion) AsString() (v string)
- func (u OpportunityCreateResponseUnion) RawJSON() string
- func (r *OpportunityCreateResponseUnion) UnmarshalJSON(data []byte) error
- type OpportunityDefinitionsResponse
- type OpportunityDefinitionsResponseFieldDefinition
- type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool() (v bool)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString() (v string)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON() string
- func (r *OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool() (v bool)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat() (v float64)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString() (v string)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON() string
- func (r *OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool() (v bool)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat() (v float64)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArray() (...)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapMap() (...)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString() (v string)
- func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON() string
- func (r *OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON(data []byte) error
- type OpportunityDefinitionsResponseRelationshipDefinition
- type OpportunityListParams
- type OpportunityListResponse
- type OpportunityListResponseData
- type OpportunityListResponseDataArrayItemUnion
- func (u OpportunityListResponseDataArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityListResponseDataArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityListResponseDataArrayItemUnion) AsBool() (v bool)
- func (u OpportunityListResponseDataArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityListResponseDataArrayItemUnion) AsString() (v string)
- func (u OpportunityListResponseDataArrayItemUnion) RawJSON() string
- func (r *OpportunityListResponseDataArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityListResponseDataField
- type OpportunityListResponseDataFieldValueArrayItemUnion
- func (u OpportunityListResponseDataFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityListResponseDataFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityListResponseDataFieldValueArrayItemUnion) AsBool() (v bool)
- func (u OpportunityListResponseDataFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityListResponseDataFieldValueArrayItemUnion) AsString() (v string)
- func (u OpportunityListResponseDataFieldValueArrayItemUnion) RawJSON() string
- func (r *OpportunityListResponseDataFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityListResponseDataFieldValueMapItemUnion
- func (u OpportunityListResponseDataFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityListResponseDataFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityListResponseDataFieldValueMapItemUnion) AsBool() (v bool)
- func (u OpportunityListResponseDataFieldValueMapItemUnion) AsFloat() (v float64)
- func (u OpportunityListResponseDataFieldValueMapItemUnion) AsString() (v string)
- func (u OpportunityListResponseDataFieldValueMapItemUnion) RawJSON() string
- func (r *OpportunityListResponseDataFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityListResponseDataFieldValueUnion
- func (u OpportunityListResponseDataFieldValueUnion) AsBool() (v bool)
- func (u OpportunityListResponseDataFieldValueUnion) AsFloat() (v float64)
- func (u OpportunityListResponseDataFieldValueUnion) AsOpportunityListResponseDataFieldValueArray() (v []OpportunityListResponseDataFieldValueArrayItemUnion)
- func (u OpportunityListResponseDataFieldValueUnion) AsOpportunityListResponseDataFieldValueMapMap() (v map[string]OpportunityListResponseDataFieldValueMapItemUnion)
- func (u OpportunityListResponseDataFieldValueUnion) AsString() (v string)
- func (u OpportunityListResponseDataFieldValueUnion) RawJSON() string
- func (r *OpportunityListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error
- type OpportunityListResponseDataMapItemUnion
- func (u OpportunityListResponseDataMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityListResponseDataMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityListResponseDataMapItemUnion) AsBool() (v bool)
- func (u OpportunityListResponseDataMapItemUnion) AsFloat() (v float64)
- func (u OpportunityListResponseDataMapItemUnion) AsString() (v string)
- func (u OpportunityListResponseDataMapItemUnion) RawJSON() string
- func (r *OpportunityListResponseDataMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityListResponseDataRelationship
- type OpportunityListResponseDataUnion
- func (u OpportunityListResponseDataUnion) AsBool() (v bool)
- func (u OpportunityListResponseDataUnion) AsFloat() (v float64)
- func (u OpportunityListResponseDataUnion) AsOpportunityListResponseDataArray() (v []OpportunityListResponseDataArrayItemUnion)
- func (u OpportunityListResponseDataUnion) AsOpportunityListResponseDataMapMap() (v map[string]OpportunityListResponseDataMapItemUnion)
- func (u OpportunityListResponseDataUnion) AsString() (v string)
- func (u OpportunityListResponseDataUnion) RawJSON() string
- func (r *OpportunityListResponseDataUnion) UnmarshalJSON(data []byte) error
- type OpportunityNewParams
- type OpportunityNewParamsFieldArrayItemUnion
- type OpportunityNewParamsFieldMapItemUnion
- type OpportunityNewParamsFieldUnion
- type OpportunityNewParamsFields
- type OpportunityNewParamsRelationshipUnion
- type OpportunityNewParamsRelationships
- type OpportunityNewParamsRelationshipsAccountUnion
- type OpportunityNewParamsRelationshipsChampionUnion
- type OpportunityNewParamsRelationshipsCreatedByUnion
- type OpportunityNewParamsRelationshipsEvaluatorUnion
- type OpportunityNewParamsRelationshipsOwnerUnion
- type OpportunityRetrieveResponse
- type OpportunityRetrieveResponseArrayItemUnion
- func (u OpportunityRetrieveResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityRetrieveResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityRetrieveResponseArrayItemUnion) AsBool() (v bool)
- func (u OpportunityRetrieveResponseArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityRetrieveResponseArrayItemUnion) AsString() (v string)
- func (u OpportunityRetrieveResponseArrayItemUnion) RawJSON() string
- func (r *OpportunityRetrieveResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityRetrieveResponseField
- type OpportunityRetrieveResponseFieldValueArrayItemUnion
- func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *OpportunityRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityRetrieveResponseFieldValueMapItemUnion
- func (u OpportunityRetrieveResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityRetrieveResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityRetrieveResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u OpportunityRetrieveResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u OpportunityRetrieveResponseFieldValueMapItemUnion) AsString() (v string)
- func (u OpportunityRetrieveResponseFieldValueMapItemUnion) RawJSON() string
- func (r *OpportunityRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityRetrieveResponseFieldValueUnion
- func (u OpportunityRetrieveResponseFieldValueUnion) AsBool() (v bool)
- func (u OpportunityRetrieveResponseFieldValueUnion) AsFloat() (v float64)
- func (u OpportunityRetrieveResponseFieldValueUnion) AsOpportunityRetrieveResponseFieldValueArray() (v []OpportunityRetrieveResponseFieldValueArrayItemUnion)
- func (u OpportunityRetrieveResponseFieldValueUnion) AsOpportunityRetrieveResponseFieldValueMapMap() (v map[string]OpportunityRetrieveResponseFieldValueMapItemUnion)
- func (u OpportunityRetrieveResponseFieldValueUnion) AsString() (v string)
- func (u OpportunityRetrieveResponseFieldValueUnion) RawJSON() string
- func (r *OpportunityRetrieveResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type OpportunityRetrieveResponseMapItemUnion
- func (u OpportunityRetrieveResponseMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityRetrieveResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityRetrieveResponseMapItemUnion) AsBool() (v bool)
- func (u OpportunityRetrieveResponseMapItemUnion) AsFloat() (v float64)
- func (u OpportunityRetrieveResponseMapItemUnion) AsString() (v string)
- func (u OpportunityRetrieveResponseMapItemUnion) RawJSON() string
- func (r *OpportunityRetrieveResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityRetrieveResponseRelationship
- type OpportunityRetrieveResponseUnion
- func (u OpportunityRetrieveResponseUnion) AsBool() (v bool)
- func (u OpportunityRetrieveResponseUnion) AsFloat() (v float64)
- func (u OpportunityRetrieveResponseUnion) AsOpportunityRetrieveResponseArray() (v []OpportunityRetrieveResponseArrayItemUnion)
- func (u OpportunityRetrieveResponseUnion) AsOpportunityRetrieveResponseMapMap() (v map[string]OpportunityRetrieveResponseMapItemUnion)
- func (u OpportunityRetrieveResponseUnion) AsString() (v string)
- func (u OpportunityRetrieveResponseUnion) RawJSON() string
- func (r *OpportunityRetrieveResponseUnion) UnmarshalJSON(data []byte) error
- type OpportunityService
- func (r *OpportunityService) Definitions(ctx context.Context, opts ...option.RequestOption) (res *OpportunityDefinitionsResponse, err error)
- func (r *OpportunityService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *OpportunityRetrieveResponse, err error)
- func (r *OpportunityService) List(ctx context.Context, query OpportunityListParams, opts ...option.RequestOption) (res *OpportunityListResponse, err error)
- func (r *OpportunityService) New(ctx context.Context, body OpportunityNewParams, opts ...option.RequestOption) (res *OpportunityCreateResponse, err error)
- func (r *OpportunityService) Update(ctx context.Context, id string, body OpportunityUpdateParams, ...) (res *OpportunityUpdateResponse, err error)
- type OpportunityUpdateParams
- type OpportunityUpdateParamsFieldArrayItemUnion
- type OpportunityUpdateParamsFieldMapItemUnion
- type OpportunityUpdateParamsFieldUnion
- type OpportunityUpdateParamsFields
- type OpportunityUpdateParamsRelationship
- type OpportunityUpdateParamsRelationshipAddUnion
- type OpportunityUpdateParamsRelationshipRemoveUnion
- type OpportunityUpdateParamsRelationshipReplaceUnion
- type OpportunityUpdateParamsRelationships
- type OpportunityUpdateParamsRelationshipsChampion
- type OpportunityUpdateParamsRelationshipsChampionAddUnion
- type OpportunityUpdateParamsRelationshipsChampionRemoveUnion
- type OpportunityUpdateParamsRelationshipsChampionReplaceUnion
- type OpportunityUpdateParamsRelationshipsEvaluator
- type OpportunityUpdateParamsRelationshipsEvaluatorAddUnion
- type OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion
- type OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion
- type OpportunityUpdateParamsRelationshipsOwner
- type OpportunityUpdateParamsRelationshipsOwnerAddUnion
- type OpportunityUpdateParamsRelationshipsOwnerRemoveUnion
- type OpportunityUpdateParamsRelationshipsOwnerReplaceUnion
- type OpportunityUpdateResponse
- type OpportunityUpdateResponseArrayItemUnion
- func (u OpportunityUpdateResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityUpdateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityUpdateResponseArrayItemUnion) AsBool() (v bool)
- func (u OpportunityUpdateResponseArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityUpdateResponseArrayItemUnion) AsString() (v string)
- func (u OpportunityUpdateResponseArrayItemUnion) RawJSON() string
- func (r *OpportunityUpdateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityUpdateResponseField
- type OpportunityUpdateResponseFieldValueArrayItemUnion
- func (u OpportunityUpdateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityUpdateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityUpdateResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u OpportunityUpdateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityUpdateResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u OpportunityUpdateResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *OpportunityUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityUpdateResponseFieldValueMapItemUnion
- func (u OpportunityUpdateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityUpdateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityUpdateResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u OpportunityUpdateResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u OpportunityUpdateResponseFieldValueMapItemUnion) AsString() (v string)
- func (u OpportunityUpdateResponseFieldValueMapItemUnion) RawJSON() string
- func (r *OpportunityUpdateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityUpdateResponseFieldValueUnion
- func (u OpportunityUpdateResponseFieldValueUnion) AsBool() (v bool)
- func (u OpportunityUpdateResponseFieldValueUnion) AsFloat() (v float64)
- func (u OpportunityUpdateResponseFieldValueUnion) AsOpportunityUpdateResponseFieldValueArray() (v []OpportunityUpdateResponseFieldValueArrayItemUnion)
- func (u OpportunityUpdateResponseFieldValueUnion) AsOpportunityUpdateResponseFieldValueMapMap() (v map[string]OpportunityUpdateResponseFieldValueMapItemUnion)
- func (u OpportunityUpdateResponseFieldValueUnion) AsString() (v string)
- func (u OpportunityUpdateResponseFieldValueUnion) RawJSON() string
- func (r *OpportunityUpdateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type OpportunityUpdateResponseMapItemUnion
- func (u OpportunityUpdateResponseMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityUpdateResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityUpdateResponseMapItemUnion) AsBool() (v bool)
- func (u OpportunityUpdateResponseMapItemUnion) AsFloat() (v float64)
- func (u OpportunityUpdateResponseMapItemUnion) AsString() (v string)
- func (u OpportunityUpdateResponseMapItemUnion) RawJSON() string
- func (r *OpportunityUpdateResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityUpdateResponseRelationship
- type OpportunityUpdateResponseUnion
- func (u OpportunityUpdateResponseUnion) AsBool() (v bool)
- func (u OpportunityUpdateResponseUnion) AsFloat() (v float64)
- func (u OpportunityUpdateResponseUnion) AsOpportunityUpdateResponseArray() (v []OpportunityUpdateResponseArrayItemUnion)
- func (u OpportunityUpdateResponseUnion) AsOpportunityUpdateResponseMapMap() (v map[string]OpportunityUpdateResponseMapItemUnion)
- func (u OpportunityUpdateResponseUnion) AsString() (v string)
- func (u OpportunityUpdateResponseUnion) RawJSON() string
- func (r *OpportunityUpdateResponseUnion) UnmarshalJSON(data []byte) error
- type WorkflowRunService
- type WorkflowRunStatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClientOptions ¶
func DefaultClientOptions() []option.RequestOption
DefaultClientOptions read from the environment (LIGHTFIELD_BASE_URL). This should be used to initialize new clients.
func Opt ¶
func Opt[T comparable](v T) param.Opt[T]
Types ¶
type AccountCreateResponse ¶ added in v0.4.1
type AccountCreateResponse struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]AccountCreateResponseField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]AccountCreateResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]AccountCreateResponseUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountCreateResponse) RawJSON ¶ added in v0.4.1
func (r AccountCreateResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountCreateResponse) UnmarshalJSON ¶ added in v0.4.1
func (r *AccountCreateResponse) UnmarshalJSON(data []byte) error
type AccountCreateResponseArrayItemUnion ¶
type AccountCreateResponseArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountCreateResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountCreateResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountCreateResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountCreateResponseArrayItemMapItem]
func (AccountCreateResponseArrayItemUnion) AsAnyArray ¶
func (u AccountCreateResponseArrayItemUnion) AsAnyArray() (v []any)
func (AccountCreateResponseArrayItemUnion) AsAnyMap ¶
func (u AccountCreateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountCreateResponseArrayItemUnion) AsBool ¶
func (u AccountCreateResponseArrayItemUnion) AsBool() (v bool)
func (AccountCreateResponseArrayItemUnion) AsFloat ¶
func (u AccountCreateResponseArrayItemUnion) AsFloat() (v float64)
func (AccountCreateResponseArrayItemUnion) AsString ¶
func (u AccountCreateResponseArrayItemUnion) AsString() (v string)
func (AccountCreateResponseArrayItemUnion) RawJSON ¶
func (u AccountCreateResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountCreateResponseArrayItemUnion) UnmarshalJSON ¶
func (r *AccountCreateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountCreateResponseField ¶ added in v0.4.1
type AccountCreateResponseField struct {
// The field value, or null if unset.
Value AccountCreateResponseFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountCreateResponseField) RawJSON ¶ added in v0.4.1
func (r AccountCreateResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountCreateResponseField) UnmarshalJSON ¶ added in v0.4.1
func (r *AccountCreateResponseField) UnmarshalJSON(data []byte) error
type AccountCreateResponseFieldValueArrayItemUnion ¶
type AccountCreateResponseFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountCreateResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountCreateResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountCreateResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountCreateResponseFieldValueArrayItemMapItem]
func (AccountCreateResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u AccountCreateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (AccountCreateResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u AccountCreateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountCreateResponseFieldValueArrayItemUnion) AsBool ¶
func (u AccountCreateResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (AccountCreateResponseFieldValueArrayItemUnion) AsFloat ¶
func (u AccountCreateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (AccountCreateResponseFieldValueArrayItemUnion) AsString ¶
func (u AccountCreateResponseFieldValueArrayItemUnion) AsString() (v string)
func (AccountCreateResponseFieldValueArrayItemUnion) RawJSON ¶
func (u AccountCreateResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountCreateResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *AccountCreateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountCreateResponseFieldValueMapItemUnion ¶
type AccountCreateResponseFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountCreateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountCreateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountCreateResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountCreateResponseFieldValueMapItemMapItem]
func (AccountCreateResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u AccountCreateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (AccountCreateResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u AccountCreateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountCreateResponseFieldValueMapItemUnion) AsBool ¶
func (u AccountCreateResponseFieldValueMapItemUnion) AsBool() (v bool)
func (AccountCreateResponseFieldValueMapItemUnion) AsFloat ¶
func (u AccountCreateResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (AccountCreateResponseFieldValueMapItemUnion) AsString ¶
func (u AccountCreateResponseFieldValueMapItemUnion) AsString() (v string)
func (AccountCreateResponseFieldValueMapItemUnion) RawJSON ¶
func (u AccountCreateResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountCreateResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *AccountCreateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type AccountCreateResponseFieldValueUnion ¶ added in v0.4.1
type AccountCreateResponseFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]AccountCreateResponseFieldValueArrayItemUnion] instead of an object.
OfAccountCreateResponseFieldValueArray []AccountCreateResponseFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountCreateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountCreateResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfAccountCreateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountCreateResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountCreateResponseFieldValueArrayItemUnion], [map[string]AccountCreateResponseFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountCreateResponseFieldValueArray OfAnyArray OfAccountCreateResponseFieldValueMapItemMapItem]
func (AccountCreateResponseFieldValueUnion) AsAccountCreateResponseFieldValueArray ¶
func (u AccountCreateResponseFieldValueUnion) AsAccountCreateResponseFieldValueArray() (v []AccountCreateResponseFieldValueArrayItemUnion)
func (AccountCreateResponseFieldValueUnion) AsAccountCreateResponseFieldValueMapMap ¶
func (u AccountCreateResponseFieldValueUnion) AsAccountCreateResponseFieldValueMapMap() (v map[string]AccountCreateResponseFieldValueMapItemUnion)
func (AccountCreateResponseFieldValueUnion) AsBool ¶ added in v0.4.1
func (u AccountCreateResponseFieldValueUnion) AsBool() (v bool)
func (AccountCreateResponseFieldValueUnion) AsFloat ¶ added in v0.4.1
func (u AccountCreateResponseFieldValueUnion) AsFloat() (v float64)
func (AccountCreateResponseFieldValueUnion) AsString ¶ added in v0.4.1
func (u AccountCreateResponseFieldValueUnion) AsString() (v string)
func (AccountCreateResponseFieldValueUnion) RawJSON ¶ added in v0.4.1
func (u AccountCreateResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountCreateResponseFieldValueUnion) UnmarshalJSON ¶ added in v0.4.1
func (r *AccountCreateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type AccountCreateResponseMapItemUnion ¶
type AccountCreateResponseMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountCreateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountCreateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountCreateResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountCreateResponseMapItemMapItem]
func (AccountCreateResponseMapItemUnion) AsAnyArray ¶
func (u AccountCreateResponseMapItemUnion) AsAnyArray() (v []any)
func (AccountCreateResponseMapItemUnion) AsAnyMap ¶
func (u AccountCreateResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountCreateResponseMapItemUnion) AsBool ¶
func (u AccountCreateResponseMapItemUnion) AsBool() (v bool)
func (AccountCreateResponseMapItemUnion) AsFloat ¶
func (u AccountCreateResponseMapItemUnion) AsFloat() (v float64)
func (AccountCreateResponseMapItemUnion) AsString ¶
func (u AccountCreateResponseMapItemUnion) AsString() (v string)
func (AccountCreateResponseMapItemUnion) RawJSON ¶
func (u AccountCreateResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountCreateResponseMapItemUnion) UnmarshalJSON ¶
func (r *AccountCreateResponseMapItemUnion) UnmarshalJSON(data []byte) error
type AccountCreateResponseRelationship ¶ added in v0.4.1
type AccountCreateResponseRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountCreateResponseRelationship) RawJSON ¶ added in v0.4.1
func (r AccountCreateResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountCreateResponseRelationship) UnmarshalJSON ¶ added in v0.4.1
func (r *AccountCreateResponseRelationship) UnmarshalJSON(data []byte) error
type AccountCreateResponseUnion ¶
type AccountCreateResponseUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]AccountCreateResponseArrayItemUnion] instead of an object.
OfAccountCreateResponseArray []AccountCreateResponseArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountCreateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountCreateResponseArray respjson.Field
OfAnyArray respjson.Field
OfAccountCreateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountCreateResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountCreateResponseArrayItemUnion], [map[string]AccountCreateResponseMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountCreateResponseArray OfAnyArray OfAccountCreateResponseMapItemMapItem]
func (AccountCreateResponseUnion) AsAccountCreateResponseArray ¶
func (u AccountCreateResponseUnion) AsAccountCreateResponseArray() (v []AccountCreateResponseArrayItemUnion)
func (AccountCreateResponseUnion) AsAccountCreateResponseMapMap ¶
func (u AccountCreateResponseUnion) AsAccountCreateResponseMapMap() (v map[string]AccountCreateResponseMapItemUnion)
func (AccountCreateResponseUnion) AsBool ¶
func (u AccountCreateResponseUnion) AsBool() (v bool)
func (AccountCreateResponseUnion) AsFloat ¶
func (u AccountCreateResponseUnion) AsFloat() (v float64)
func (AccountCreateResponseUnion) AsString ¶
func (u AccountCreateResponseUnion) AsString() (v string)
func (AccountCreateResponseUnion) RawJSON ¶
func (u AccountCreateResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountCreateResponseUnion) UnmarshalJSON ¶
func (r *AccountCreateResponseUnion) UnmarshalJSON(data []byte) error
type AccountDefinitionsResponse ¶ added in v0.2.0
type AccountDefinitionsResponse struct {
// Map of field keys to their definitions, including both system and custom fields.
FieldDefinitions map[string]AccountDefinitionsResponseFieldDefinition `json:"fieldDefinitions" api:"required"`
// The object type these definitions belong to (e.g. `account`).
ObjectType string `json:"objectType" api:"required"`
// Map of relationship keys to their definitions.
RelationshipDefinitions map[string]AccountDefinitionsResponseRelationshipDefinition `json:"relationshipDefinitions" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
FieldDefinitions respjson.Field
ObjectType respjson.Field
RelationshipDefinitions respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountDefinitionsResponse) RawJSON ¶ added in v0.2.0
func (r AccountDefinitionsResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountDefinitionsResponse) UnmarshalJSON ¶ added in v0.2.0
func (r *AccountDefinitionsResponse) UnmarshalJSON(data []byte) error
type AccountDefinitionsResponseFieldDefinition ¶ added in v0.2.0
type AccountDefinitionsResponseFieldDefinition struct {
// Description of the field, or null.
Description string `json:"description" api:"required"`
// Human-readable display name of the field.
Label string `json:"label" api:"required"`
// Type-specific configuration (e.g. select options, currency code).
TypeConfiguration map[string]AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion `json:"typeConfiguration" api:"required"`
// Data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// Unique identifier of the field definition.
ID string `json:"id"`
// `true` for fields that are not writable via the API (e.g. AI-generated
// summaries). `false` or absent for writable fields.
ReadOnly bool `json:"readOnly"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Description respjson.Field
Label respjson.Field
TypeConfiguration respjson.Field
ValueType respjson.Field
ID respjson.Field
ReadOnly respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountDefinitionsResponseFieldDefinition) RawJSON ¶ added in v0.2.0
func (r AccountDefinitionsResponseFieldDefinition) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountDefinitionsResponseFieldDefinition) UnmarshalJSON ¶ added in v0.2.0
func (r *AccountDefinitionsResponseFieldDefinition) UnmarshalJSON(data []byte) error
type AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion ¶ added in v0.2.0
type AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem]
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray() (v []any)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool() (v bool)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat() (v float64)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString() (v string)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON ¶ added in v0.2.0
func (r *AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion ¶ added in v0.2.0
type AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray() (v []any)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool() (v bool)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat() (v float64)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString() (v string)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON ¶ added in v0.2.0
func (r *AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON(data []byte) error
type AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion ¶ added in v0.2.0
type AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion]
// instead of an object.
OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArray []AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArray respjson.Field
OfAnyArray respjson.Field
OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion], [map[string]AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArray OfAnyArray OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsAccountDefinitionsResponseFieldDefinitionTypeConfigurationArray ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsAccountDefinitionsResponseFieldDefinitionTypeConfigurationArray() (v []AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapMap ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapMap() (v map[string]AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool() (v bool)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat() (v float64)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString() (v string)
func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON ¶ added in v0.2.0
func (u AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON ¶ added in v0.2.0
func (r *AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON(data []byte) error
type AccountDefinitionsResponseRelationshipDefinition ¶ added in v0.2.0
type AccountDefinitionsResponseRelationshipDefinition struct {
// Whether this is a `has_one` or `has_many` relationship.
//
// Any of "HAS_ONE", "HAS_MANY".
Cardinality string `json:"cardinality" api:"required"`
// Description of the relationship, or null.
Description string `json:"description" api:"required"`
// Human-readable display name of the relationship.
Label string `json:"label" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// Unique identifier of the relationship definition.
ID string `json:"id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
Description respjson.Field
Label respjson.Field
ObjectType respjson.Field
ID respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountDefinitionsResponseRelationshipDefinition) RawJSON ¶ added in v0.2.0
func (r AccountDefinitionsResponseRelationshipDefinition) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountDefinitionsResponseRelationshipDefinition) UnmarshalJSON ¶ added in v0.2.0
func (r *AccountDefinitionsResponseRelationshipDefinition) UnmarshalJSON(data []byte) error
type AccountListParams ¶
type AccountListParams struct {
// Maximum number of records to return. Defaults to 25, maximum 25.
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// Number of records to skip for pagination. Defaults to 0.
Offset param.Opt[int64] `query:"offset,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (AccountListParams) URLQuery ¶
func (r AccountListParams) URLQuery() (v url.Values, err error)
URLQuery serializes AccountListParams's query parameters as `url.Values`.
type AccountListResponse ¶
type AccountListResponse struct {
// Array of entity objects for the current page.
Data []AccountListResponseData `json:"data" api:"required"`
// The object type, always `"list"`.
Object string `json:"object" api:"required"`
// Total number of entities matching the query.
TotalCount int64 `json:"totalCount" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Data respjson.Field
Object respjson.Field
TotalCount respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountListResponse) RawJSON ¶
func (r AccountListResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountListResponse) UnmarshalJSON ¶
func (r *AccountListResponse) UnmarshalJSON(data []byte) error
type AccountListResponseData ¶
type AccountListResponseData struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]AccountListResponseDataField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]AccountListResponseDataRelationship `json:"relationships" api:"required"`
ExtraFields map[string]AccountListResponseDataUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountListResponseData) RawJSON ¶
func (r AccountListResponseData) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountListResponseData) UnmarshalJSON ¶
func (r *AccountListResponseData) UnmarshalJSON(data []byte) error
type AccountListResponseDataArrayItemUnion ¶
type AccountListResponseDataArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountListResponseDataArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountListResponseDataArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountListResponseDataArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountListResponseDataArrayItemMapItem]
func (AccountListResponseDataArrayItemUnion) AsAnyArray ¶
func (u AccountListResponseDataArrayItemUnion) AsAnyArray() (v []any)
func (AccountListResponseDataArrayItemUnion) AsAnyMap ¶
func (u AccountListResponseDataArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountListResponseDataArrayItemUnion) AsBool ¶
func (u AccountListResponseDataArrayItemUnion) AsBool() (v bool)
func (AccountListResponseDataArrayItemUnion) AsFloat ¶
func (u AccountListResponseDataArrayItemUnion) AsFloat() (v float64)
func (AccountListResponseDataArrayItemUnion) AsString ¶
func (u AccountListResponseDataArrayItemUnion) AsString() (v string)
func (AccountListResponseDataArrayItemUnion) RawJSON ¶
func (u AccountListResponseDataArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountListResponseDataArrayItemUnion) UnmarshalJSON ¶
func (r *AccountListResponseDataArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountListResponseDataField ¶
type AccountListResponseDataField struct {
// The field value, or null if unset.
Value AccountListResponseDataFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountListResponseDataField) RawJSON ¶
func (r AccountListResponseDataField) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountListResponseDataField) UnmarshalJSON ¶
func (r *AccountListResponseDataField) UnmarshalJSON(data []byte) error
type AccountListResponseDataFieldValueArrayItemUnion ¶
type AccountListResponseDataFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountListResponseDataFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountListResponseDataFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountListResponseDataFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountListResponseDataFieldValueArrayItemMapItem]
func (AccountListResponseDataFieldValueArrayItemUnion) AsAnyArray ¶
func (u AccountListResponseDataFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (AccountListResponseDataFieldValueArrayItemUnion) AsAnyMap ¶
func (u AccountListResponseDataFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountListResponseDataFieldValueArrayItemUnion) AsBool ¶
func (u AccountListResponseDataFieldValueArrayItemUnion) AsBool() (v bool)
func (AccountListResponseDataFieldValueArrayItemUnion) AsFloat ¶
func (u AccountListResponseDataFieldValueArrayItemUnion) AsFloat() (v float64)
func (AccountListResponseDataFieldValueArrayItemUnion) AsString ¶
func (u AccountListResponseDataFieldValueArrayItemUnion) AsString() (v string)
func (AccountListResponseDataFieldValueArrayItemUnion) RawJSON ¶
func (u AccountListResponseDataFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountListResponseDataFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *AccountListResponseDataFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountListResponseDataFieldValueMapItemUnion ¶
type AccountListResponseDataFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountListResponseDataFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountListResponseDataFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountListResponseDataFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountListResponseDataFieldValueMapItemMapItem]
func (AccountListResponseDataFieldValueMapItemUnion) AsAnyArray ¶
func (u AccountListResponseDataFieldValueMapItemUnion) AsAnyArray() (v []any)
func (AccountListResponseDataFieldValueMapItemUnion) AsAnyMap ¶
func (u AccountListResponseDataFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountListResponseDataFieldValueMapItemUnion) AsBool ¶
func (u AccountListResponseDataFieldValueMapItemUnion) AsBool() (v bool)
func (AccountListResponseDataFieldValueMapItemUnion) AsFloat ¶
func (u AccountListResponseDataFieldValueMapItemUnion) AsFloat() (v float64)
func (AccountListResponseDataFieldValueMapItemUnion) AsString ¶
func (u AccountListResponseDataFieldValueMapItemUnion) AsString() (v string)
func (AccountListResponseDataFieldValueMapItemUnion) RawJSON ¶
func (u AccountListResponseDataFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountListResponseDataFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *AccountListResponseDataFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type AccountListResponseDataFieldValueUnion ¶
type AccountListResponseDataFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]AccountListResponseDataFieldValueArrayItemUnion] instead of an object.
OfAccountListResponseDataFieldValueArray []AccountListResponseDataFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountListResponseDataFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountListResponseDataFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfAccountListResponseDataFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountListResponseDataFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountListResponseDataFieldValueArrayItemUnion], [map[string]AccountListResponseDataFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountListResponseDataFieldValueArray OfAnyArray OfAccountListResponseDataFieldValueMapItemMapItem]
func (AccountListResponseDataFieldValueUnion) AsAccountListResponseDataFieldValueArray ¶
func (u AccountListResponseDataFieldValueUnion) AsAccountListResponseDataFieldValueArray() (v []AccountListResponseDataFieldValueArrayItemUnion)
func (AccountListResponseDataFieldValueUnion) AsAccountListResponseDataFieldValueMapMap ¶
func (u AccountListResponseDataFieldValueUnion) AsAccountListResponseDataFieldValueMapMap() (v map[string]AccountListResponseDataFieldValueMapItemUnion)
func (AccountListResponseDataFieldValueUnion) AsBool ¶
func (u AccountListResponseDataFieldValueUnion) AsBool() (v bool)
func (AccountListResponseDataFieldValueUnion) AsFloat ¶
func (u AccountListResponseDataFieldValueUnion) AsFloat() (v float64)
func (AccountListResponseDataFieldValueUnion) AsString ¶
func (u AccountListResponseDataFieldValueUnion) AsString() (v string)
func (AccountListResponseDataFieldValueUnion) RawJSON ¶
func (u AccountListResponseDataFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountListResponseDataFieldValueUnion) UnmarshalJSON ¶
func (r *AccountListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error
type AccountListResponseDataMapItemUnion ¶
type AccountListResponseDataMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountListResponseDataMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountListResponseDataMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountListResponseDataMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountListResponseDataMapItemMapItem]
func (AccountListResponseDataMapItemUnion) AsAnyArray ¶
func (u AccountListResponseDataMapItemUnion) AsAnyArray() (v []any)
func (AccountListResponseDataMapItemUnion) AsAnyMap ¶
func (u AccountListResponseDataMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountListResponseDataMapItemUnion) AsBool ¶
func (u AccountListResponseDataMapItemUnion) AsBool() (v bool)
func (AccountListResponseDataMapItemUnion) AsFloat ¶
func (u AccountListResponseDataMapItemUnion) AsFloat() (v float64)
func (AccountListResponseDataMapItemUnion) AsString ¶
func (u AccountListResponseDataMapItemUnion) AsString() (v string)
func (AccountListResponseDataMapItemUnion) RawJSON ¶
func (u AccountListResponseDataMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountListResponseDataMapItemUnion) UnmarshalJSON ¶
func (r *AccountListResponseDataMapItemUnion) UnmarshalJSON(data []byte) error
type AccountListResponseDataRelationship ¶
type AccountListResponseDataRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountListResponseDataRelationship) RawJSON ¶
func (r AccountListResponseDataRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountListResponseDataRelationship) UnmarshalJSON ¶
func (r *AccountListResponseDataRelationship) UnmarshalJSON(data []byte) error
type AccountListResponseDataUnion ¶
type AccountListResponseDataUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]AccountListResponseDataArrayItemUnion] instead of an object.
OfAccountListResponseDataArray []AccountListResponseDataArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountListResponseDataMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountListResponseDataArray respjson.Field
OfAnyArray respjson.Field
OfAccountListResponseDataMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountListResponseDataUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountListResponseDataArrayItemUnion], [map[string]AccountListResponseDataMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountListResponseDataArray OfAnyArray OfAccountListResponseDataMapItemMapItem]
func (AccountListResponseDataUnion) AsAccountListResponseDataArray ¶
func (u AccountListResponseDataUnion) AsAccountListResponseDataArray() (v []AccountListResponseDataArrayItemUnion)
func (AccountListResponseDataUnion) AsAccountListResponseDataMapMap ¶
func (u AccountListResponseDataUnion) AsAccountListResponseDataMapMap() (v map[string]AccountListResponseDataMapItemUnion)
func (AccountListResponseDataUnion) AsBool ¶
func (u AccountListResponseDataUnion) AsBool() (v bool)
func (AccountListResponseDataUnion) AsFloat ¶
func (u AccountListResponseDataUnion) AsFloat() (v float64)
func (AccountListResponseDataUnion) AsString ¶
func (u AccountListResponseDataUnion) AsString() (v string)
func (AccountListResponseDataUnion) RawJSON ¶
func (u AccountListResponseDataUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountListResponseDataUnion) UnmarshalJSON ¶
func (r *AccountListResponseDataUnion) UnmarshalJSON(data []byte) error
type AccountNewParams ¶
type AccountNewParams struct {
// Field values for the new account. System fields use a `$` prefix (e.g. `$name`,
// `$website`); custom attributes use their bare slug (e.g. `tier`, `renewalDate`).
// Required: `$name` (string). Fields of type `SINGLE_SELECT` or `MULTI_SELECT`
// accept either an option ID or label from the field's `typeConfiguration.options`
// — call the
// <u>[definitions endpoint](/api/resources/account/methods/definitions)</u> to
// discover available fields and options. See
// <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for
// value type details.
Fields AccountNewParamsFields `json:"fields,omitzero" api:"required"`
// Relationships to set on the new account. System relationships use a `$` prefix
// (e.g. `$owner`, `$contact`); custom relationships use their bare slug. Each
// value is a single entity ID or an array of IDs. Call the
// <u>[definitions endpoint](/api/resources/account/methods/definitions)</u> to
// list available relationship keys.
Relationships AccountNewParamsRelationships `json:"relationships,omitzero"`
// contains filtered or unexported fields
}
func (AccountNewParams) MarshalJSON ¶
func (r AccountNewParams) MarshalJSON() (data []byte, err error)
func (*AccountNewParams) UnmarshalJSON ¶
func (r *AccountNewParams) UnmarshalJSON(data []byte) error
type AccountNewParamsFieldArrayItemUnion ¶
type AccountNewParamsFieldArrayItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountNewParamsFieldArrayItemUnion) MarshalJSON ¶
func (u AccountNewParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)
func (*AccountNewParamsFieldArrayItemUnion) UnmarshalJSON ¶
func (u *AccountNewParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountNewParamsFieldMapItemUnion ¶
type AccountNewParamsFieldMapItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountNewParamsFieldMapItemUnion) MarshalJSON ¶
func (u AccountNewParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)
func (*AccountNewParamsFieldMapItemUnion) UnmarshalJSON ¶
func (u *AccountNewParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error
type AccountNewParamsFieldUnion ¶
type AccountNewParamsFieldUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAccountNewsFieldArray []AccountNewParamsFieldArrayItemUnion `json:",omitzero,inline"`
OfAccountNewsFieldMapMap map[string]AccountNewParamsFieldMapItemUnion `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountNewParamsFieldUnion) MarshalJSON ¶
func (u AccountNewParamsFieldUnion) MarshalJSON() ([]byte, error)
func (*AccountNewParamsFieldUnion) UnmarshalJSON ¶
func (u *AccountNewParamsFieldUnion) UnmarshalJSON(data []byte) error
type AccountNewParamsFields ¶
type AccountNewParamsFields struct {
// Display name of the account.
Name string `json:"$name" api:"required"`
// Facebook handle or profile identifier (`SOCIAL_HANDLE`).
Facebook param.Opt[string] `json:"$facebook,omitzero"`
// Employee count range (`SINGLE_SELECT`). Pass the option ID or label from the
// field definition.
Headcount param.Opt[string] `json:"$headcount,omitzero"`
// Instagram handle or profile identifier (`SOCIAL_HANDLE`).
Instagram param.Opt[string] `json:"$instagram,omitzero"`
// Most recent funding round type (`SINGLE_SELECT`). Pass the option ID or label
// from the field definition.
LastFundingType param.Opt[string] `json:"$lastFundingType,omitzero"`
// LinkedIn handle or profile identifier (`SOCIAL_HANDLE`).
LinkedIn param.Opt[string] `json:"$linkedIn,omitzero"`
// Twitter/X handle (`SOCIAL_HANDLE`).
Twitter param.Opt[string] `json:"$twitter,omitzero"`
// Industries the account operates in (`MULTI_SELECT`). Pass option IDs or labels
// from the field definition.
Industry []string `json:"$industry,omitzero"`
// Primary address (`ADDRESS`).
PrimaryAddress AccountNewParamsFieldsPrimaryAddress `json:"$primaryAddress,omitzero"`
// Website URLs associated with the account (`URL`, multi-value).
Website []string `json:"$website,omitzero"`
ExtraFields map[string]AccountNewParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
Field values for the new account. System fields use a `$` prefix (e.g. `$name`, `$website`); custom attributes use their bare slug (e.g. `tier`, `renewalDate`). Required: `$name` (string). Fields of type `SINGLE_SELECT` or `MULTI_SELECT` accept either an option ID or label from the field's `typeConfiguration.options` — call the <u>[definitions endpoint](/api/resources/account/methods/definitions)</u> to discover available fields and options. See <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for value type details.
The property Name is required.
func (AccountNewParamsFields) MarshalJSON ¶
func (r AccountNewParamsFields) MarshalJSON() (data []byte, err error)
func (*AccountNewParamsFields) UnmarshalJSON ¶
func (r *AccountNewParamsFields) UnmarshalJSON(data []byte) error
type AccountNewParamsFieldsPrimaryAddress ¶
type AccountNewParamsFieldsPrimaryAddress struct {
// City name.
City param.Opt[string] `json:"city,omitzero"`
// 2-letter ISO 3166-1 alpha-2 country code.
Country param.Opt[string] `json:"country,omitzero"`
// Latitude coordinate.
Latitude param.Opt[float64] `json:"latitude,omitzero"`
// Longitude coordinate.
Longitude param.Opt[float64] `json:"longitude,omitzero"`
// Postal or ZIP code.
PostalCode param.Opt[string] `json:"postalCode,omitzero"`
// State or province.
State param.Opt[string] `json:"state,omitzero"`
// Street address line 1.
Street param.Opt[string] `json:"street,omitzero"`
// Street address line 2.
Street2 param.Opt[string] `json:"street2,omitzero"`
// contains filtered or unexported fields
}
Primary address (`ADDRESS`).
func (AccountNewParamsFieldsPrimaryAddress) MarshalJSON ¶
func (r AccountNewParamsFieldsPrimaryAddress) MarshalJSON() (data []byte, err error)
func (*AccountNewParamsFieldsPrimaryAddress) UnmarshalJSON ¶
func (r *AccountNewParamsFieldsPrimaryAddress) UnmarshalJSON(data []byte) error
type AccountNewParamsRelationshipUnion ¶
type AccountNewParamsRelationshipUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountNewParamsRelationshipUnion) MarshalJSON ¶
func (u AccountNewParamsRelationshipUnion) MarshalJSON() ([]byte, error)
func (*AccountNewParamsRelationshipUnion) UnmarshalJSON ¶
func (u *AccountNewParamsRelationshipUnion) UnmarshalJSON(data []byte) error
type AccountNewParamsRelationships ¶
type AccountNewParamsRelationships struct {
// ID(s) of contacts to associate with this account.
Contact AccountNewParamsRelationshipsContactUnion `json:"$contact,omitzero"`
// ID of the user who owns this account.
Owner AccountNewParamsRelationshipsOwnerUnion `json:"$owner,omitzero"`
ExtraFields map[string]AccountNewParamsRelationshipUnion `json:"-"`
// contains filtered or unexported fields
}
Relationships to set on the new account. System relationships use a `$` prefix (e.g. `$owner`, `$contact`); custom relationships use their bare slug. Each value is a single entity ID or an array of IDs. Call the <u>[definitions endpoint](/api/resources/account/methods/definitions)</u> to list available relationship keys.
func (AccountNewParamsRelationships) MarshalJSON ¶
func (r AccountNewParamsRelationships) MarshalJSON() (data []byte, err error)
func (*AccountNewParamsRelationships) UnmarshalJSON ¶
func (r *AccountNewParamsRelationships) UnmarshalJSON(data []byte) error
type AccountNewParamsRelationshipsContactUnion ¶
type AccountNewParamsRelationshipsContactUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountNewParamsRelationshipsContactUnion) MarshalJSON ¶
func (u AccountNewParamsRelationshipsContactUnion) MarshalJSON() ([]byte, error)
func (*AccountNewParamsRelationshipsContactUnion) UnmarshalJSON ¶
func (u *AccountNewParamsRelationshipsContactUnion) UnmarshalJSON(data []byte) error
type AccountNewParamsRelationshipsOwnerUnion ¶ added in v0.2.0
type AccountNewParamsRelationshipsOwnerUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountNewParamsRelationshipsOwnerUnion) MarshalJSON ¶ added in v0.2.0
func (u AccountNewParamsRelationshipsOwnerUnion) MarshalJSON() ([]byte, error)
func (*AccountNewParamsRelationshipsOwnerUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *AccountNewParamsRelationshipsOwnerUnion) UnmarshalJSON(data []byte) error
type AccountRetrieveResponse ¶ added in v0.4.1
type AccountRetrieveResponse struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]AccountRetrieveResponseField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]AccountRetrieveResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]AccountRetrieveResponseUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountRetrieveResponse) RawJSON ¶ added in v0.4.1
func (r AccountRetrieveResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountRetrieveResponse) UnmarshalJSON ¶ added in v0.4.1
func (r *AccountRetrieveResponse) UnmarshalJSON(data []byte) error
type AccountRetrieveResponseArrayItemUnion ¶
type AccountRetrieveResponseArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountRetrieveResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountRetrieveResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountRetrieveResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountRetrieveResponseArrayItemMapItem]
func (AccountRetrieveResponseArrayItemUnion) AsAnyArray ¶
func (u AccountRetrieveResponseArrayItemUnion) AsAnyArray() (v []any)
func (AccountRetrieveResponseArrayItemUnion) AsAnyMap ¶
func (u AccountRetrieveResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountRetrieveResponseArrayItemUnion) AsBool ¶
func (u AccountRetrieveResponseArrayItemUnion) AsBool() (v bool)
func (AccountRetrieveResponseArrayItemUnion) AsFloat ¶
func (u AccountRetrieveResponseArrayItemUnion) AsFloat() (v float64)
func (AccountRetrieveResponseArrayItemUnion) AsString ¶
func (u AccountRetrieveResponseArrayItemUnion) AsString() (v string)
func (AccountRetrieveResponseArrayItemUnion) RawJSON ¶
func (u AccountRetrieveResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountRetrieveResponseArrayItemUnion) UnmarshalJSON ¶
func (r *AccountRetrieveResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountRetrieveResponseField ¶ added in v0.4.1
type AccountRetrieveResponseField struct {
// The field value, or null if unset.
Value AccountRetrieveResponseFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountRetrieveResponseField) RawJSON ¶ added in v0.4.1
func (r AccountRetrieveResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountRetrieveResponseField) UnmarshalJSON ¶ added in v0.4.1
func (r *AccountRetrieveResponseField) UnmarshalJSON(data []byte) error
type AccountRetrieveResponseFieldValueArrayItemUnion ¶
type AccountRetrieveResponseFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountRetrieveResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountRetrieveResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountRetrieveResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountRetrieveResponseFieldValueArrayItemMapItem]
func (AccountRetrieveResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u AccountRetrieveResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (AccountRetrieveResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u AccountRetrieveResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountRetrieveResponseFieldValueArrayItemUnion) AsBool ¶
func (u AccountRetrieveResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (AccountRetrieveResponseFieldValueArrayItemUnion) AsFloat ¶
func (u AccountRetrieveResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (AccountRetrieveResponseFieldValueArrayItemUnion) AsString ¶
func (u AccountRetrieveResponseFieldValueArrayItemUnion) AsString() (v string)
func (AccountRetrieveResponseFieldValueArrayItemUnion) RawJSON ¶
func (u AccountRetrieveResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *AccountRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountRetrieveResponseFieldValueMapItemUnion ¶
type AccountRetrieveResponseFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountRetrieveResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountRetrieveResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountRetrieveResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountRetrieveResponseFieldValueMapItemMapItem]
func (AccountRetrieveResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u AccountRetrieveResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (AccountRetrieveResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u AccountRetrieveResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountRetrieveResponseFieldValueMapItemUnion) AsBool ¶
func (u AccountRetrieveResponseFieldValueMapItemUnion) AsBool() (v bool)
func (AccountRetrieveResponseFieldValueMapItemUnion) AsFloat ¶
func (u AccountRetrieveResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (AccountRetrieveResponseFieldValueMapItemUnion) AsString ¶
func (u AccountRetrieveResponseFieldValueMapItemUnion) AsString() (v string)
func (AccountRetrieveResponseFieldValueMapItemUnion) RawJSON ¶
func (u AccountRetrieveResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *AccountRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type AccountRetrieveResponseFieldValueUnion ¶ added in v0.4.1
type AccountRetrieveResponseFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]AccountRetrieveResponseFieldValueArrayItemUnion] instead of an object.
OfAccountRetrieveResponseFieldValueArray []AccountRetrieveResponseFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountRetrieveResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountRetrieveResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfAccountRetrieveResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountRetrieveResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountRetrieveResponseFieldValueArrayItemUnion], [map[string]AccountRetrieveResponseFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountRetrieveResponseFieldValueArray OfAnyArray OfAccountRetrieveResponseFieldValueMapItemMapItem]
func (AccountRetrieveResponseFieldValueUnion) AsAccountRetrieveResponseFieldValueArray ¶
func (u AccountRetrieveResponseFieldValueUnion) AsAccountRetrieveResponseFieldValueArray() (v []AccountRetrieveResponseFieldValueArrayItemUnion)
func (AccountRetrieveResponseFieldValueUnion) AsAccountRetrieveResponseFieldValueMapMap ¶
func (u AccountRetrieveResponseFieldValueUnion) AsAccountRetrieveResponseFieldValueMapMap() (v map[string]AccountRetrieveResponseFieldValueMapItemUnion)
func (AccountRetrieveResponseFieldValueUnion) AsBool ¶ added in v0.4.1
func (u AccountRetrieveResponseFieldValueUnion) AsBool() (v bool)
func (AccountRetrieveResponseFieldValueUnion) AsFloat ¶ added in v0.4.1
func (u AccountRetrieveResponseFieldValueUnion) AsFloat() (v float64)
func (AccountRetrieveResponseFieldValueUnion) AsString ¶ added in v0.4.1
func (u AccountRetrieveResponseFieldValueUnion) AsString() (v string)
func (AccountRetrieveResponseFieldValueUnion) RawJSON ¶ added in v0.4.1
func (u AccountRetrieveResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountRetrieveResponseFieldValueUnion) UnmarshalJSON ¶ added in v0.4.1
func (r *AccountRetrieveResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type AccountRetrieveResponseMapItemUnion ¶
type AccountRetrieveResponseMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountRetrieveResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountRetrieveResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountRetrieveResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountRetrieveResponseMapItemMapItem]
func (AccountRetrieveResponseMapItemUnion) AsAnyArray ¶
func (u AccountRetrieveResponseMapItemUnion) AsAnyArray() (v []any)
func (AccountRetrieveResponseMapItemUnion) AsAnyMap ¶
func (u AccountRetrieveResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountRetrieveResponseMapItemUnion) AsBool ¶
func (u AccountRetrieveResponseMapItemUnion) AsBool() (v bool)
func (AccountRetrieveResponseMapItemUnion) AsFloat ¶
func (u AccountRetrieveResponseMapItemUnion) AsFloat() (v float64)
func (AccountRetrieveResponseMapItemUnion) AsString ¶
func (u AccountRetrieveResponseMapItemUnion) AsString() (v string)
func (AccountRetrieveResponseMapItemUnion) RawJSON ¶
func (u AccountRetrieveResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountRetrieveResponseMapItemUnion) UnmarshalJSON ¶
func (r *AccountRetrieveResponseMapItemUnion) UnmarshalJSON(data []byte) error
type AccountRetrieveResponseRelationship ¶ added in v0.4.1
type AccountRetrieveResponseRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountRetrieveResponseRelationship) RawJSON ¶ added in v0.4.1
func (r AccountRetrieveResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountRetrieveResponseRelationship) UnmarshalJSON ¶ added in v0.4.1
func (r *AccountRetrieveResponseRelationship) UnmarshalJSON(data []byte) error
type AccountRetrieveResponseUnion ¶
type AccountRetrieveResponseUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]AccountRetrieveResponseArrayItemUnion] instead of an object.
OfAccountRetrieveResponseArray []AccountRetrieveResponseArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountRetrieveResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountRetrieveResponseArray respjson.Field
OfAnyArray respjson.Field
OfAccountRetrieveResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountRetrieveResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountRetrieveResponseArrayItemUnion], [map[string]AccountRetrieveResponseMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountRetrieveResponseArray OfAnyArray OfAccountRetrieveResponseMapItemMapItem]
func (AccountRetrieveResponseUnion) AsAccountRetrieveResponseArray ¶
func (u AccountRetrieveResponseUnion) AsAccountRetrieveResponseArray() (v []AccountRetrieveResponseArrayItemUnion)
func (AccountRetrieveResponseUnion) AsAccountRetrieveResponseMapMap ¶
func (u AccountRetrieveResponseUnion) AsAccountRetrieveResponseMapMap() (v map[string]AccountRetrieveResponseMapItemUnion)
func (AccountRetrieveResponseUnion) AsBool ¶
func (u AccountRetrieveResponseUnion) AsBool() (v bool)
func (AccountRetrieveResponseUnion) AsFloat ¶
func (u AccountRetrieveResponseUnion) AsFloat() (v float64)
func (AccountRetrieveResponseUnion) AsString ¶
func (u AccountRetrieveResponseUnion) AsString() (v string)
func (AccountRetrieveResponseUnion) RawJSON ¶
func (u AccountRetrieveResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountRetrieveResponseUnion) UnmarshalJSON ¶
func (r *AccountRetrieveResponseUnion) UnmarshalJSON(data []byte) error
type AccountService ¶
type AccountService struct {
Options []option.RequestOption
}
Accounts represent companies or organizations in Lightfield. Each account can have contacts, opportunities, tasks, and notes associated with it.
AccountService contains methods and other services that help with interacting with the Lightfield API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccountService method instead.
func NewAccountService ¶
func NewAccountService(opts ...option.RequestOption) (r AccountService)
NewAccountService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccountService) Definitions ¶ added in v0.2.0
func (r *AccountService) Definitions(ctx context.Context, opts ...option.RequestOption) (res *AccountDefinitionsResponse, err error)
Returns the schema for all field and relationship definitions available on accounts, including both system-defined and custom fields. Useful for understanding the shape of account data before creating or updating records. See <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for more details.
**[Required scope](/using-the-api/scopes/):** `accounts:read`
**[Rate limit category](/using-the-api/rate-limits/):** Read
func (*AccountService) Get ¶
func (r *AccountService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *AccountRetrieveResponse, err error)
Retrieves a single account by its ID.
**[Required scope](/using-the-api/scopes/):** `accounts:read`
**[Rate limit category](/using-the-api/rate-limits/):** Read
func (*AccountService) List ¶
func (r *AccountService) List(ctx context.Context, query AccountListParams, opts ...option.RequestOption) (res *AccountListResponse, err error)
Returns a paginated list of accounts. Use `offset` and `limit` to paginate through results. See <u>[List endpoints](/using-the-api/list-endpoints/)</u> for more information about pagination.
**[Required scope](/using-the-api/scopes/):** `accounts:read`
**[Rate limit category](/using-the-api/rate-limits/):** Search
func (*AccountService) New ¶
func (r *AccountService) New(ctx context.Context, body AccountNewParams, opts ...option.RequestOption) (res *AccountCreateResponse, err error)
Creates a new account record. The `$name` field is required.
If a `$website` is provided, Lightfield automatically enriches the account in the background. The `$howTheyMakeMoney` and `$accountStatus` fields are read-only and cannot be set via the API. The `$opportunity`, `$task`, and `$note` relationships are also read-only — manage them via the `$account` relationship on the opportunity or task, or the `$account`/`$opportunity` note relationships instead.
Supports idempotency via the `Idempotency-Key` header.
**[Required scope](/using-the-api/scopes/):** `accounts:create`
**[Rate limit category](/using-the-api/rate-limits/):** Write
func (*AccountService) Update ¶
func (r *AccountService) Update(ctx context.Context, id string, body AccountUpdateParams, opts ...option.RequestOption) (res *AccountUpdateResponse, err error)
Updates an existing account by ID. Only included fields and relationships are modified.
The `$howTheyMakeMoney` and `$accountStatus` fields are read-only and cannot be updated. The `$opportunity`, `$task`, and `$note` relationships are also read-only — manage them via the `$account` relationship on the opportunity or task, or the `$account`/`$opportunity` note relationships instead.
Supports idempotency via the `Idempotency-Key` header.
**[Required scope](/using-the-api/scopes/):** `accounts:update`
**[Rate limit category](/using-the-api/rate-limits/):** Write
type AccountUpdateParams ¶
type AccountUpdateParams struct {
// Field values to update — only provided fields are modified; omitted fields are
// left unchanged. System fields use a `$` prefix (e.g. `$name`); custom attributes
// use their bare slug. `SINGLE_SELECT` and `MULTI_SELECT` fields accept an option
// ID or label — call the
// <u>[definitions endpoint](/api/resources/account/methods/definitions)</u> for
// available options. See
// <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for
// value type details.
Fields AccountUpdateParamsFields `json:"fields,omitzero"`
// Relationship operations to apply. System relationships use a `$` prefix (e.g.
// `$owner`, `$contact`). Each value is an operation object with `add`, `remove`,
// or `replace`.
Relationships AccountUpdateParamsRelationships `json:"relationships,omitzero"`
// contains filtered or unexported fields
}
func (AccountUpdateParams) MarshalJSON ¶
func (r AccountUpdateParams) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParams) UnmarshalJSON ¶
func (r *AccountUpdateParams) UnmarshalJSON(data []byte) error
type AccountUpdateParamsFieldArrayItemUnion ¶
type AccountUpdateParamsFieldArrayItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsFieldArrayItemUnion) MarshalJSON ¶
func (u AccountUpdateParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsFieldArrayItemUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsFieldMapItemUnion ¶
type AccountUpdateParamsFieldMapItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsFieldMapItemUnion) MarshalJSON ¶
func (u AccountUpdateParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsFieldMapItemUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsFieldUnion ¶
type AccountUpdateParamsFieldUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAccountUpdatesFieldArray []AccountUpdateParamsFieldArrayItemUnion `json:",omitzero,inline"`
OfAccountUpdatesFieldMapMap map[string]AccountUpdateParamsFieldMapItemUnion `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsFieldUnion) MarshalJSON ¶
func (u AccountUpdateParamsFieldUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsFieldUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsFieldUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsFields ¶
type AccountUpdateParamsFields struct {
// Facebook handle or profile identifier (`SOCIAL_HANDLE`).
Facebook param.Opt[string] `json:"$facebook,omitzero"`
// Employee count range (`SINGLE_SELECT`). Pass the option ID or label from the
// field definition.
Headcount param.Opt[string] `json:"$headcount,omitzero"`
// Instagram handle or profile identifier (`SOCIAL_HANDLE`).
Instagram param.Opt[string] `json:"$instagram,omitzero"`
// Most recent funding round type (`SINGLE_SELECT`). Pass the option ID or label
// from the field definition.
LastFundingType param.Opt[string] `json:"$lastFundingType,omitzero"`
// LinkedIn handle or profile identifier (`SOCIAL_HANDLE`).
LinkedIn param.Opt[string] `json:"$linkedIn,omitzero"`
// Display name of the account.
Name param.Opt[string] `json:"$name,omitzero"`
// Twitter/X handle (`SOCIAL_HANDLE`).
Twitter param.Opt[string] `json:"$twitter,omitzero"`
// Industries the account operates in (`MULTI_SELECT`). Pass option IDs or labels
// from the field definition.
Industry []string `json:"$industry,omitzero"`
// Primary address (`ADDRESS`).
PrimaryAddress AccountUpdateParamsFieldsPrimaryAddress `json:"$primaryAddress,omitzero"`
// Website URLs associated with the account (`URL`, multi-value).
Website []string `json:"$website,omitzero"`
ExtraFields map[string]AccountUpdateParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
Field values to update — only provided fields are modified; omitted fields are left unchanged. System fields use a `$` prefix (e.g. `$name`); custom attributes use their bare slug. `SINGLE_SELECT` and `MULTI_SELECT` fields accept an option ID or label — call the <u>[definitions endpoint](/api/resources/account/methods/definitions)</u> for available options. See <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for value type details.
func (AccountUpdateParamsFields) MarshalJSON ¶
func (r AccountUpdateParamsFields) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParamsFields) UnmarshalJSON ¶
func (r *AccountUpdateParamsFields) UnmarshalJSON(data []byte) error
type AccountUpdateParamsFieldsPrimaryAddress ¶
type AccountUpdateParamsFieldsPrimaryAddress struct {
// City name.
City param.Opt[string] `json:"city,omitzero"`
// 2-letter ISO 3166-1 alpha-2 country code.
Country param.Opt[string] `json:"country,omitzero"`
// Latitude coordinate.
Latitude param.Opt[float64] `json:"latitude,omitzero"`
// Longitude coordinate.
Longitude param.Opt[float64] `json:"longitude,omitzero"`
// Postal or ZIP code.
PostalCode param.Opt[string] `json:"postalCode,omitzero"`
// State or province.
State param.Opt[string] `json:"state,omitzero"`
// Street address line 1.
Street param.Opt[string] `json:"street,omitzero"`
// Street address line 2.
Street2 param.Opt[string] `json:"street2,omitzero"`
// contains filtered or unexported fields
}
Primary address (`ADDRESS`).
func (AccountUpdateParamsFieldsPrimaryAddress) MarshalJSON ¶
func (r AccountUpdateParamsFieldsPrimaryAddress) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParamsFieldsPrimaryAddress) UnmarshalJSON ¶
func (r *AccountUpdateParamsFieldsPrimaryAddress) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationship ¶
type AccountUpdateParamsRelationship struct {
// Entity ID(s) to add to the relationship.
Add AccountUpdateParamsRelationshipAddUnion `json:"add,omitzero"`
// Entity ID(s) to remove from the relationship.
Remove AccountUpdateParamsRelationshipRemoveUnion `json:"remove,omitzero"`
// Entity ID(s) to set as the entire relationship, replacing all existing
// associations.
Replace AccountUpdateParamsRelationshipReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
An operation to modify a relationship. Provide one of `add`, `remove`, or `replace`.
func (AccountUpdateParamsRelationship) MarshalJSON ¶
func (r AccountUpdateParamsRelationship) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParamsRelationship) UnmarshalJSON ¶
func (r *AccountUpdateParamsRelationship) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipAddUnion ¶
type AccountUpdateParamsRelationshipAddUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsRelationshipAddUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipAddUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipAddUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipAddUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipRemoveUnion ¶
type AccountUpdateParamsRelationshipRemoveUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsRelationshipRemoveUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipRemoveUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipRemoveUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipRemoveUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipReplaceUnion ¶
type AccountUpdateParamsRelationshipReplaceUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsRelationshipReplaceUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipReplaceUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipReplaceUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipReplaceUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationships ¶
type AccountUpdateParamsRelationships struct {
// Operation to modify associated contacts.
Contact AccountUpdateParamsRelationshipsContact `json:"$contact,omitzero"`
// Operation to modify the account owner.
Owner AccountUpdateParamsRelationshipsOwner `json:"$owner,omitzero"`
ExtraFields map[string]AccountUpdateParamsRelationship `json:"-"`
// contains filtered or unexported fields
}
Relationship operations to apply. System relationships use a `$` prefix (e.g. `$owner`, `$contact`). Each value is an operation object with `add`, `remove`, or `replace`.
func (AccountUpdateParamsRelationships) MarshalJSON ¶
func (r AccountUpdateParamsRelationships) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParamsRelationships) UnmarshalJSON ¶
func (r *AccountUpdateParamsRelationships) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsContact ¶
type AccountUpdateParamsRelationshipsContact struct {
// Entity ID(s) to add to the relationship.
Add AccountUpdateParamsRelationshipsContactAddUnion `json:"add,omitzero"`
// Entity ID(s) to remove from the relationship.
Remove AccountUpdateParamsRelationshipsContactRemoveUnion `json:"remove,omitzero"`
// Entity ID(s) to set as the entire relationship, replacing all existing
// associations.
Replace AccountUpdateParamsRelationshipsContactReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
Operation to modify associated contacts.
func (AccountUpdateParamsRelationshipsContact) MarshalJSON ¶
func (r AccountUpdateParamsRelationshipsContact) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParamsRelationshipsContact) UnmarshalJSON ¶
func (r *AccountUpdateParamsRelationshipsContact) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsContactAddUnion ¶
type AccountUpdateParamsRelationshipsContactAddUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsRelationshipsContactAddUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipsContactAddUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsContactAddUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipsContactAddUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsContactRemoveUnion ¶
type AccountUpdateParamsRelationshipsContactRemoveUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsRelationshipsContactRemoveUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipsContactRemoveUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsContactRemoveUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipsContactRemoveUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsContactReplaceUnion ¶
type AccountUpdateParamsRelationshipsContactReplaceUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsRelationshipsContactReplaceUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipsContactReplaceUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsContactReplaceUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipsContactReplaceUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsOwner ¶ added in v0.2.0
type AccountUpdateParamsRelationshipsOwner struct {
// Entity ID(s) to add to the relationship.
Add AccountUpdateParamsRelationshipsOwnerAddUnion `json:"add,omitzero"`
// Entity ID(s) to remove from the relationship.
Remove AccountUpdateParamsRelationshipsOwnerRemoveUnion `json:"remove,omitzero"`
// Entity ID(s) to set as the entire relationship, replacing all existing
// associations.
Replace AccountUpdateParamsRelationshipsOwnerReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
Operation to modify the account owner.
func (AccountUpdateParamsRelationshipsOwner) MarshalJSON ¶ added in v0.2.0
func (r AccountUpdateParamsRelationshipsOwner) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParamsRelationshipsOwner) UnmarshalJSON ¶ added in v0.2.0
func (r *AccountUpdateParamsRelationshipsOwner) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsOwnerAddUnion ¶ added in v0.2.0
type AccountUpdateParamsRelationshipsOwnerAddUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsRelationshipsOwnerAddUnion) MarshalJSON ¶ added in v0.2.0
func (u AccountUpdateParamsRelationshipsOwnerAddUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsOwnerAddUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *AccountUpdateParamsRelationshipsOwnerAddUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsOwnerRemoveUnion ¶ added in v0.2.0
type AccountUpdateParamsRelationshipsOwnerRemoveUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsRelationshipsOwnerRemoveUnion) MarshalJSON ¶ added in v0.2.0
func (u AccountUpdateParamsRelationshipsOwnerRemoveUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsOwnerRemoveUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *AccountUpdateParamsRelationshipsOwnerRemoveUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsOwnerReplaceUnion ¶ added in v0.2.0
type AccountUpdateParamsRelationshipsOwnerReplaceUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (AccountUpdateParamsRelationshipsOwnerReplaceUnion) MarshalJSON ¶ added in v0.2.0
func (u AccountUpdateParamsRelationshipsOwnerReplaceUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsOwnerReplaceUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *AccountUpdateParamsRelationshipsOwnerReplaceUnion) UnmarshalJSON(data []byte) error
type AccountUpdateResponse ¶
type AccountUpdateResponse struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]AccountUpdateResponseField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]AccountUpdateResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]AccountUpdateResponseUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountUpdateResponse) RawJSON ¶
func (r AccountUpdateResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountUpdateResponse) UnmarshalJSON ¶
func (r *AccountUpdateResponse) UnmarshalJSON(data []byte) error
type AccountUpdateResponseArrayItemUnion ¶
type AccountUpdateResponseArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountUpdateResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountUpdateResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountUpdateResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountUpdateResponseArrayItemMapItem]
func (AccountUpdateResponseArrayItemUnion) AsAnyArray ¶
func (u AccountUpdateResponseArrayItemUnion) AsAnyArray() (v []any)
func (AccountUpdateResponseArrayItemUnion) AsAnyMap ¶
func (u AccountUpdateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountUpdateResponseArrayItemUnion) AsBool ¶
func (u AccountUpdateResponseArrayItemUnion) AsBool() (v bool)
func (AccountUpdateResponseArrayItemUnion) AsFloat ¶
func (u AccountUpdateResponseArrayItemUnion) AsFloat() (v float64)
func (AccountUpdateResponseArrayItemUnion) AsString ¶
func (u AccountUpdateResponseArrayItemUnion) AsString() (v string)
func (AccountUpdateResponseArrayItemUnion) RawJSON ¶
func (u AccountUpdateResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountUpdateResponseArrayItemUnion) UnmarshalJSON ¶
func (r *AccountUpdateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountUpdateResponseField ¶
type AccountUpdateResponseField struct {
// The field value, or null if unset.
Value AccountUpdateResponseFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountUpdateResponseField) RawJSON ¶
func (r AccountUpdateResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountUpdateResponseField) UnmarshalJSON ¶
func (r *AccountUpdateResponseField) UnmarshalJSON(data []byte) error
type AccountUpdateResponseFieldValueArrayItemUnion ¶
type AccountUpdateResponseFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountUpdateResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountUpdateResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountUpdateResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountUpdateResponseFieldValueArrayItemMapItem]
func (AccountUpdateResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u AccountUpdateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (AccountUpdateResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u AccountUpdateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountUpdateResponseFieldValueArrayItemUnion) AsBool ¶
func (u AccountUpdateResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (AccountUpdateResponseFieldValueArrayItemUnion) AsFloat ¶
func (u AccountUpdateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (AccountUpdateResponseFieldValueArrayItemUnion) AsString ¶
func (u AccountUpdateResponseFieldValueArrayItemUnion) AsString() (v string)
func (AccountUpdateResponseFieldValueArrayItemUnion) RawJSON ¶
func (u AccountUpdateResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *AccountUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountUpdateResponseFieldValueMapItemUnion ¶
type AccountUpdateResponseFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountUpdateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountUpdateResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountUpdateResponseFieldValueMapItemMapItem]
func (AccountUpdateResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u AccountUpdateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (AccountUpdateResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u AccountUpdateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountUpdateResponseFieldValueMapItemUnion) AsBool ¶
func (u AccountUpdateResponseFieldValueMapItemUnion) AsBool() (v bool)
func (AccountUpdateResponseFieldValueMapItemUnion) AsFloat ¶
func (u AccountUpdateResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (AccountUpdateResponseFieldValueMapItemUnion) AsString ¶
func (u AccountUpdateResponseFieldValueMapItemUnion) AsString() (v string)
func (AccountUpdateResponseFieldValueMapItemUnion) RawJSON ¶
func (u AccountUpdateResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountUpdateResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *AccountUpdateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type AccountUpdateResponseFieldValueUnion ¶
type AccountUpdateResponseFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]AccountUpdateResponseFieldValueArrayItemUnion] instead of an object.
OfAccountUpdateResponseFieldValueArray []AccountUpdateResponseFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountUpdateResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfAccountUpdateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountUpdateResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountUpdateResponseFieldValueArrayItemUnion], [map[string]AccountUpdateResponseFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountUpdateResponseFieldValueArray OfAnyArray OfAccountUpdateResponseFieldValueMapItemMapItem]
func (AccountUpdateResponseFieldValueUnion) AsAccountUpdateResponseFieldValueArray ¶
func (u AccountUpdateResponseFieldValueUnion) AsAccountUpdateResponseFieldValueArray() (v []AccountUpdateResponseFieldValueArrayItemUnion)
func (AccountUpdateResponseFieldValueUnion) AsAccountUpdateResponseFieldValueMapMap ¶
func (u AccountUpdateResponseFieldValueUnion) AsAccountUpdateResponseFieldValueMapMap() (v map[string]AccountUpdateResponseFieldValueMapItemUnion)
func (AccountUpdateResponseFieldValueUnion) AsBool ¶
func (u AccountUpdateResponseFieldValueUnion) AsBool() (v bool)
func (AccountUpdateResponseFieldValueUnion) AsFloat ¶
func (u AccountUpdateResponseFieldValueUnion) AsFloat() (v float64)
func (AccountUpdateResponseFieldValueUnion) AsString ¶
func (u AccountUpdateResponseFieldValueUnion) AsString() (v string)
func (AccountUpdateResponseFieldValueUnion) RawJSON ¶
func (u AccountUpdateResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountUpdateResponseFieldValueUnion) UnmarshalJSON ¶
func (r *AccountUpdateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type AccountUpdateResponseMapItemUnion ¶
type AccountUpdateResponseMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountUpdateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountUpdateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountUpdateResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountUpdateResponseMapItemMapItem]
func (AccountUpdateResponseMapItemUnion) AsAnyArray ¶
func (u AccountUpdateResponseMapItemUnion) AsAnyArray() (v []any)
func (AccountUpdateResponseMapItemUnion) AsAnyMap ¶
func (u AccountUpdateResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountUpdateResponseMapItemUnion) AsBool ¶
func (u AccountUpdateResponseMapItemUnion) AsBool() (v bool)
func (AccountUpdateResponseMapItemUnion) AsFloat ¶
func (u AccountUpdateResponseMapItemUnion) AsFloat() (v float64)
func (AccountUpdateResponseMapItemUnion) AsString ¶
func (u AccountUpdateResponseMapItemUnion) AsString() (v string)
func (AccountUpdateResponseMapItemUnion) RawJSON ¶
func (u AccountUpdateResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountUpdateResponseMapItemUnion) UnmarshalJSON ¶
func (r *AccountUpdateResponseMapItemUnion) UnmarshalJSON(data []byte) error
type AccountUpdateResponseRelationship ¶
type AccountUpdateResponseRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (AccountUpdateResponseRelationship) RawJSON ¶
func (r AccountUpdateResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountUpdateResponseRelationship) UnmarshalJSON ¶
func (r *AccountUpdateResponseRelationship) UnmarshalJSON(data []byte) error
type AccountUpdateResponseUnion ¶
type AccountUpdateResponseUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]AccountUpdateResponseArrayItemUnion] instead of an object.
OfAccountUpdateResponseArray []AccountUpdateResponseArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfAccountUpdateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountUpdateResponseArray respjson.Field
OfAnyArray respjson.Field
OfAccountUpdateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountUpdateResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountUpdateResponseArrayItemUnion], [map[string]AccountUpdateResponseMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountUpdateResponseArray OfAnyArray OfAccountUpdateResponseMapItemMapItem]
func (AccountUpdateResponseUnion) AsAccountUpdateResponseArray ¶
func (u AccountUpdateResponseUnion) AsAccountUpdateResponseArray() (v []AccountUpdateResponseArrayItemUnion)
func (AccountUpdateResponseUnion) AsAccountUpdateResponseMapMap ¶
func (u AccountUpdateResponseUnion) AsAccountUpdateResponseMapMap() (v map[string]AccountUpdateResponseMapItemUnion)
func (AccountUpdateResponseUnion) AsBool ¶
func (u AccountUpdateResponseUnion) AsBool() (v bool)
func (AccountUpdateResponseUnion) AsFloat ¶
func (u AccountUpdateResponseUnion) AsFloat() (v float64)
func (AccountUpdateResponseUnion) AsString ¶
func (u AccountUpdateResponseUnion) AsString() (v string)
func (AccountUpdateResponseUnion) RawJSON ¶
func (u AccountUpdateResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountUpdateResponseUnion) UnmarshalJSON ¶
func (r *AccountUpdateResponseUnion) UnmarshalJSON(data []byte) error
type Client ¶
type Client struct {
Options []option.RequestOption
// Accounts represent companies or organizations in Lightfield. Each account can
// have contacts, opportunities, tasks, and notes associated with it.
Account AccountService
// Contacts represent individual people in Lightfield. Contacts can be associated
// with one or more accounts.
Contact ContactService
// Opportunities represent potential deals or sales in Lightfield. Each opportunity
// belongs to an account and can have tasks and notes associated with it.
Opportunity OpportunityService
// Members represent users in your Lightfield workspace. Members can own accounts
// and opportunities, and are referenced in relationships like `$owner` and
// `$createdBy`.
Member MemberService
// Workflow runs represent executions of automated workflows.
WorkflowRun WorkflowRunService
}
Client creates a struct with services and top level methods that help with interacting with the Lightfield API. You should not instantiate this client directly, and instead use the NewClient method instead.
func NewClient ¶
func NewClient(opts ...option.RequestOption) (r Client)
NewClient generates a new client with the default option read from the environment (LIGHTFIELD_BASE_URL). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.
func (*Client) Delete ¶
func (r *Client) Delete(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error
Delete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (*Client) Execute ¶
func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, opts ...option.RequestOption) error
Execute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.
If a byte slice or an io.Reader is supplied to params, it will be used as-is for the request body.
The params is by default serialized into the body using encoding/json. If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned url.Values will be used as query strings to the url.
If your params struct uses param.Field, you must provide either [MarshalJSON], [URLQuery], and/or [MarshalForm] functions. It is undefined behavior to use a struct uses param.Field without specifying how it is serialized.
Any "…Params" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.
The response body will be deserialized into the res variable, depending on its type:
- A pointer to a *http.Response is populated by the raw response.
- A pointer to a byte array will be populated with the contents of the request body.
- A pointer to any other type uses this library's default JSON decoding, which respects UnmarshalJSON if it is defined on the type.
- A nil value will not read the response body.
For even greater flexibility, see option.WithResponseInto and option.WithResponseBodyInto.
func (*Client) Get ¶
func (r *Client) Get(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error
Get makes a GET request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (*Client) Patch ¶
func (r *Client) Patch(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error
Patch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
type ContactCreateResponse ¶ added in v0.4.1
type ContactCreateResponse struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]ContactCreateResponseField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]ContactCreateResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]ContactCreateResponseUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactCreateResponse) RawJSON ¶ added in v0.4.1
func (r ContactCreateResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactCreateResponse) UnmarshalJSON ¶ added in v0.4.1
func (r *ContactCreateResponse) UnmarshalJSON(data []byte) error
type ContactCreateResponseArrayItemUnion ¶
type ContactCreateResponseArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactCreateResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactCreateResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactCreateResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactCreateResponseArrayItemMapItem]
func (ContactCreateResponseArrayItemUnion) AsAnyArray ¶
func (u ContactCreateResponseArrayItemUnion) AsAnyArray() (v []any)
func (ContactCreateResponseArrayItemUnion) AsAnyMap ¶
func (u ContactCreateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactCreateResponseArrayItemUnion) AsBool ¶
func (u ContactCreateResponseArrayItemUnion) AsBool() (v bool)
func (ContactCreateResponseArrayItemUnion) AsFloat ¶
func (u ContactCreateResponseArrayItemUnion) AsFloat() (v float64)
func (ContactCreateResponseArrayItemUnion) AsString ¶
func (u ContactCreateResponseArrayItemUnion) AsString() (v string)
func (ContactCreateResponseArrayItemUnion) RawJSON ¶
func (u ContactCreateResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactCreateResponseArrayItemUnion) UnmarshalJSON ¶
func (r *ContactCreateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactCreateResponseField ¶ added in v0.4.1
type ContactCreateResponseField struct {
// The field value, or null if unset.
Value ContactCreateResponseFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactCreateResponseField) RawJSON ¶ added in v0.4.1
func (r ContactCreateResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactCreateResponseField) UnmarshalJSON ¶ added in v0.4.1
func (r *ContactCreateResponseField) UnmarshalJSON(data []byte) error
type ContactCreateResponseFieldValueArrayItemUnion ¶
type ContactCreateResponseFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactCreateResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactCreateResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactCreateResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactCreateResponseFieldValueArrayItemMapItem]
func (ContactCreateResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u ContactCreateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (ContactCreateResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u ContactCreateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactCreateResponseFieldValueArrayItemUnion) AsBool ¶
func (u ContactCreateResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (ContactCreateResponseFieldValueArrayItemUnion) AsFloat ¶
func (u ContactCreateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (ContactCreateResponseFieldValueArrayItemUnion) AsString ¶
func (u ContactCreateResponseFieldValueArrayItemUnion) AsString() (v string)
func (ContactCreateResponseFieldValueArrayItemUnion) RawJSON ¶
func (u ContactCreateResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactCreateResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *ContactCreateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactCreateResponseFieldValueMapItemUnion ¶
type ContactCreateResponseFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactCreateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactCreateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactCreateResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactCreateResponseFieldValueMapItemMapItem]
func (ContactCreateResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u ContactCreateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (ContactCreateResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u ContactCreateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactCreateResponseFieldValueMapItemUnion) AsBool ¶
func (u ContactCreateResponseFieldValueMapItemUnion) AsBool() (v bool)
func (ContactCreateResponseFieldValueMapItemUnion) AsFloat ¶
func (u ContactCreateResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (ContactCreateResponseFieldValueMapItemUnion) AsString ¶
func (u ContactCreateResponseFieldValueMapItemUnion) AsString() (v string)
func (ContactCreateResponseFieldValueMapItemUnion) RawJSON ¶
func (u ContactCreateResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactCreateResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *ContactCreateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type ContactCreateResponseFieldValueUnion ¶ added in v0.4.1
type ContactCreateResponseFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]ContactCreateResponseFieldValueArrayItemUnion] instead of an object.
OfContactCreateResponseFieldValueArray []ContactCreateResponseFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactCreateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactCreateResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfContactCreateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactCreateResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactCreateResponseFieldValueArrayItemUnion], [map[string]ContactCreateResponseFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactCreateResponseFieldValueArray OfAnyArray OfContactCreateResponseFieldValueMapItemMapItem]
func (ContactCreateResponseFieldValueUnion) AsBool ¶ added in v0.4.1
func (u ContactCreateResponseFieldValueUnion) AsBool() (v bool)
func (ContactCreateResponseFieldValueUnion) AsContactCreateResponseFieldValueArray ¶
func (u ContactCreateResponseFieldValueUnion) AsContactCreateResponseFieldValueArray() (v []ContactCreateResponseFieldValueArrayItemUnion)
func (ContactCreateResponseFieldValueUnion) AsContactCreateResponseFieldValueMapMap ¶
func (u ContactCreateResponseFieldValueUnion) AsContactCreateResponseFieldValueMapMap() (v map[string]ContactCreateResponseFieldValueMapItemUnion)
func (ContactCreateResponseFieldValueUnion) AsFloat ¶ added in v0.4.1
func (u ContactCreateResponseFieldValueUnion) AsFloat() (v float64)
func (ContactCreateResponseFieldValueUnion) AsString ¶ added in v0.4.1
func (u ContactCreateResponseFieldValueUnion) AsString() (v string)
func (ContactCreateResponseFieldValueUnion) RawJSON ¶ added in v0.4.1
func (u ContactCreateResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactCreateResponseFieldValueUnion) UnmarshalJSON ¶ added in v0.4.1
func (r *ContactCreateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type ContactCreateResponseMapItemUnion ¶
type ContactCreateResponseMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactCreateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactCreateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactCreateResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactCreateResponseMapItemMapItem]
func (ContactCreateResponseMapItemUnion) AsAnyArray ¶
func (u ContactCreateResponseMapItemUnion) AsAnyArray() (v []any)
func (ContactCreateResponseMapItemUnion) AsAnyMap ¶
func (u ContactCreateResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactCreateResponseMapItemUnion) AsBool ¶
func (u ContactCreateResponseMapItemUnion) AsBool() (v bool)
func (ContactCreateResponseMapItemUnion) AsFloat ¶
func (u ContactCreateResponseMapItemUnion) AsFloat() (v float64)
func (ContactCreateResponseMapItemUnion) AsString ¶
func (u ContactCreateResponseMapItemUnion) AsString() (v string)
func (ContactCreateResponseMapItemUnion) RawJSON ¶
func (u ContactCreateResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactCreateResponseMapItemUnion) UnmarshalJSON ¶
func (r *ContactCreateResponseMapItemUnion) UnmarshalJSON(data []byte) error
type ContactCreateResponseRelationship ¶ added in v0.4.1
type ContactCreateResponseRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactCreateResponseRelationship) RawJSON ¶ added in v0.4.1
func (r ContactCreateResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactCreateResponseRelationship) UnmarshalJSON ¶ added in v0.4.1
func (r *ContactCreateResponseRelationship) UnmarshalJSON(data []byte) error
type ContactCreateResponseUnion ¶
type ContactCreateResponseUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]ContactCreateResponseArrayItemUnion] instead of an object.
OfContactCreateResponseArray []ContactCreateResponseArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactCreateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactCreateResponseArray respjson.Field
OfAnyArray respjson.Field
OfContactCreateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactCreateResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactCreateResponseArrayItemUnion], [map[string]ContactCreateResponseMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactCreateResponseArray OfAnyArray OfContactCreateResponseMapItemMapItem]
func (ContactCreateResponseUnion) AsBool ¶
func (u ContactCreateResponseUnion) AsBool() (v bool)
func (ContactCreateResponseUnion) AsContactCreateResponseArray ¶
func (u ContactCreateResponseUnion) AsContactCreateResponseArray() (v []ContactCreateResponseArrayItemUnion)
func (ContactCreateResponseUnion) AsContactCreateResponseMapMap ¶
func (u ContactCreateResponseUnion) AsContactCreateResponseMapMap() (v map[string]ContactCreateResponseMapItemUnion)
func (ContactCreateResponseUnion) AsFloat ¶
func (u ContactCreateResponseUnion) AsFloat() (v float64)
func (ContactCreateResponseUnion) AsString ¶
func (u ContactCreateResponseUnion) AsString() (v string)
func (ContactCreateResponseUnion) RawJSON ¶
func (u ContactCreateResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactCreateResponseUnion) UnmarshalJSON ¶
func (r *ContactCreateResponseUnion) UnmarshalJSON(data []byte) error
type ContactDefinitionsResponse ¶ added in v0.2.0
type ContactDefinitionsResponse struct {
// Map of field keys to their definitions, including both system and custom fields.
FieldDefinitions map[string]ContactDefinitionsResponseFieldDefinition `json:"fieldDefinitions" api:"required"`
// The object type these definitions belong to (e.g. `account`).
ObjectType string `json:"objectType" api:"required"`
// Map of relationship keys to their definitions.
RelationshipDefinitions map[string]ContactDefinitionsResponseRelationshipDefinition `json:"relationshipDefinitions" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
FieldDefinitions respjson.Field
ObjectType respjson.Field
RelationshipDefinitions respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactDefinitionsResponse) RawJSON ¶ added in v0.2.0
func (r ContactDefinitionsResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactDefinitionsResponse) UnmarshalJSON ¶ added in v0.2.0
func (r *ContactDefinitionsResponse) UnmarshalJSON(data []byte) error
type ContactDefinitionsResponseFieldDefinition ¶ added in v0.2.0
type ContactDefinitionsResponseFieldDefinition struct {
// Description of the field, or null.
Description string `json:"description" api:"required"`
// Human-readable display name of the field.
Label string `json:"label" api:"required"`
// Type-specific configuration (e.g. select options, currency code).
TypeConfiguration map[string]ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion `json:"typeConfiguration" api:"required"`
// Data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// Unique identifier of the field definition.
ID string `json:"id"`
// `true` for fields that are not writable via the API (e.g. AI-generated
// summaries). `false` or absent for writable fields.
ReadOnly bool `json:"readOnly"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Description respjson.Field
Label respjson.Field
TypeConfiguration respjson.Field
ValueType respjson.Field
ID respjson.Field
ReadOnly respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactDefinitionsResponseFieldDefinition) RawJSON ¶ added in v0.2.0
func (r ContactDefinitionsResponseFieldDefinition) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactDefinitionsResponseFieldDefinition) UnmarshalJSON ¶ added in v0.2.0
func (r *ContactDefinitionsResponseFieldDefinition) UnmarshalJSON(data []byte) error
type ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion ¶ added in v0.2.0
type ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem]
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray() (v []any)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool() (v bool)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat() (v float64)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString() (v string)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON ¶ added in v0.2.0
func (r *ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion ¶ added in v0.2.0
type ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray() (v []any)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool() (v bool)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat() (v float64)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString() (v string)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON ¶ added in v0.2.0
func (r *ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON(data []byte) error
type ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion ¶ added in v0.2.0
type ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion]
// instead of an object.
OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArray []ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArray respjson.Field
OfAnyArray respjson.Field
OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion], [map[string]ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArray OfAnyArray OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool() (v bool)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsContactDefinitionsResponseFieldDefinitionTypeConfigurationArray ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsContactDefinitionsResponseFieldDefinitionTypeConfigurationArray() (v []ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsContactDefinitionsResponseFieldDefinitionTypeConfigurationMapMap ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsContactDefinitionsResponseFieldDefinitionTypeConfigurationMapMap() (v map[string]ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat() (v float64)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString() (v string)
func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON ¶ added in v0.2.0
func (u ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON ¶ added in v0.2.0
func (r *ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON(data []byte) error
type ContactDefinitionsResponseRelationshipDefinition ¶ added in v0.2.0
type ContactDefinitionsResponseRelationshipDefinition struct {
// Whether this is a `has_one` or `has_many` relationship.
//
// Any of "HAS_ONE", "HAS_MANY".
Cardinality string `json:"cardinality" api:"required"`
// Description of the relationship, or null.
Description string `json:"description" api:"required"`
// Human-readable display name of the relationship.
Label string `json:"label" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// Unique identifier of the relationship definition.
ID string `json:"id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
Description respjson.Field
Label respjson.Field
ObjectType respjson.Field
ID respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactDefinitionsResponseRelationshipDefinition) RawJSON ¶ added in v0.2.0
func (r ContactDefinitionsResponseRelationshipDefinition) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactDefinitionsResponseRelationshipDefinition) UnmarshalJSON ¶ added in v0.2.0
func (r *ContactDefinitionsResponseRelationshipDefinition) UnmarshalJSON(data []byte) error
type ContactListParams ¶
type ContactListParams struct {
// Maximum number of records to return. Defaults to 25, maximum 25.
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// Number of records to skip for pagination. Defaults to 0.
Offset param.Opt[int64] `query:"offset,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (ContactListParams) URLQuery ¶
func (r ContactListParams) URLQuery() (v url.Values, err error)
URLQuery serializes ContactListParams's query parameters as `url.Values`.
type ContactListResponse ¶
type ContactListResponse struct {
// Array of entity objects for the current page.
Data []ContactListResponseData `json:"data" api:"required"`
// The object type, always `"list"`.
Object string `json:"object" api:"required"`
// Total number of entities matching the query.
TotalCount int64 `json:"totalCount" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Data respjson.Field
Object respjson.Field
TotalCount respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactListResponse) RawJSON ¶
func (r ContactListResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactListResponse) UnmarshalJSON ¶
func (r *ContactListResponse) UnmarshalJSON(data []byte) error
type ContactListResponseData ¶
type ContactListResponseData struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]ContactListResponseDataField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]ContactListResponseDataRelationship `json:"relationships" api:"required"`
ExtraFields map[string]ContactListResponseDataUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactListResponseData) RawJSON ¶
func (r ContactListResponseData) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactListResponseData) UnmarshalJSON ¶
func (r *ContactListResponseData) UnmarshalJSON(data []byte) error
type ContactListResponseDataArrayItemUnion ¶
type ContactListResponseDataArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactListResponseDataArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactListResponseDataArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactListResponseDataArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactListResponseDataArrayItemMapItem]
func (ContactListResponseDataArrayItemUnion) AsAnyArray ¶
func (u ContactListResponseDataArrayItemUnion) AsAnyArray() (v []any)
func (ContactListResponseDataArrayItemUnion) AsAnyMap ¶
func (u ContactListResponseDataArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactListResponseDataArrayItemUnion) AsBool ¶
func (u ContactListResponseDataArrayItemUnion) AsBool() (v bool)
func (ContactListResponseDataArrayItemUnion) AsFloat ¶
func (u ContactListResponseDataArrayItemUnion) AsFloat() (v float64)
func (ContactListResponseDataArrayItemUnion) AsString ¶
func (u ContactListResponseDataArrayItemUnion) AsString() (v string)
func (ContactListResponseDataArrayItemUnion) RawJSON ¶
func (u ContactListResponseDataArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactListResponseDataArrayItemUnion) UnmarshalJSON ¶
func (r *ContactListResponseDataArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactListResponseDataField ¶
type ContactListResponseDataField struct {
// The field value, or null if unset.
Value ContactListResponseDataFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactListResponseDataField) RawJSON ¶
func (r ContactListResponseDataField) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactListResponseDataField) UnmarshalJSON ¶
func (r *ContactListResponseDataField) UnmarshalJSON(data []byte) error
type ContactListResponseDataFieldValueArrayItemUnion ¶
type ContactListResponseDataFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactListResponseDataFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactListResponseDataFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactListResponseDataFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactListResponseDataFieldValueArrayItemMapItem]
func (ContactListResponseDataFieldValueArrayItemUnion) AsAnyArray ¶
func (u ContactListResponseDataFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (ContactListResponseDataFieldValueArrayItemUnion) AsAnyMap ¶
func (u ContactListResponseDataFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactListResponseDataFieldValueArrayItemUnion) AsBool ¶
func (u ContactListResponseDataFieldValueArrayItemUnion) AsBool() (v bool)
func (ContactListResponseDataFieldValueArrayItemUnion) AsFloat ¶
func (u ContactListResponseDataFieldValueArrayItemUnion) AsFloat() (v float64)
func (ContactListResponseDataFieldValueArrayItemUnion) AsString ¶
func (u ContactListResponseDataFieldValueArrayItemUnion) AsString() (v string)
func (ContactListResponseDataFieldValueArrayItemUnion) RawJSON ¶
func (u ContactListResponseDataFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactListResponseDataFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *ContactListResponseDataFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactListResponseDataFieldValueMapItemUnion ¶
type ContactListResponseDataFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactListResponseDataFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactListResponseDataFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactListResponseDataFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactListResponseDataFieldValueMapItemMapItem]
func (ContactListResponseDataFieldValueMapItemUnion) AsAnyArray ¶
func (u ContactListResponseDataFieldValueMapItemUnion) AsAnyArray() (v []any)
func (ContactListResponseDataFieldValueMapItemUnion) AsAnyMap ¶
func (u ContactListResponseDataFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactListResponseDataFieldValueMapItemUnion) AsBool ¶
func (u ContactListResponseDataFieldValueMapItemUnion) AsBool() (v bool)
func (ContactListResponseDataFieldValueMapItemUnion) AsFloat ¶
func (u ContactListResponseDataFieldValueMapItemUnion) AsFloat() (v float64)
func (ContactListResponseDataFieldValueMapItemUnion) AsString ¶
func (u ContactListResponseDataFieldValueMapItemUnion) AsString() (v string)
func (ContactListResponseDataFieldValueMapItemUnion) RawJSON ¶
func (u ContactListResponseDataFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactListResponseDataFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *ContactListResponseDataFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type ContactListResponseDataFieldValueUnion ¶
type ContactListResponseDataFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]ContactListResponseDataFieldValueArrayItemUnion] instead of an object.
OfContactListResponseDataFieldValueArray []ContactListResponseDataFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactListResponseDataFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactListResponseDataFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfContactListResponseDataFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactListResponseDataFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactListResponseDataFieldValueArrayItemUnion], [map[string]ContactListResponseDataFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactListResponseDataFieldValueArray OfAnyArray OfContactListResponseDataFieldValueMapItemMapItem]
func (ContactListResponseDataFieldValueUnion) AsBool ¶
func (u ContactListResponseDataFieldValueUnion) AsBool() (v bool)
func (ContactListResponseDataFieldValueUnion) AsContactListResponseDataFieldValueArray ¶
func (u ContactListResponseDataFieldValueUnion) AsContactListResponseDataFieldValueArray() (v []ContactListResponseDataFieldValueArrayItemUnion)
func (ContactListResponseDataFieldValueUnion) AsContactListResponseDataFieldValueMapMap ¶
func (u ContactListResponseDataFieldValueUnion) AsContactListResponseDataFieldValueMapMap() (v map[string]ContactListResponseDataFieldValueMapItemUnion)
func (ContactListResponseDataFieldValueUnion) AsFloat ¶
func (u ContactListResponseDataFieldValueUnion) AsFloat() (v float64)
func (ContactListResponseDataFieldValueUnion) AsString ¶
func (u ContactListResponseDataFieldValueUnion) AsString() (v string)
func (ContactListResponseDataFieldValueUnion) RawJSON ¶
func (u ContactListResponseDataFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactListResponseDataFieldValueUnion) UnmarshalJSON ¶
func (r *ContactListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error
type ContactListResponseDataMapItemUnion ¶
type ContactListResponseDataMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactListResponseDataMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactListResponseDataMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactListResponseDataMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactListResponseDataMapItemMapItem]
func (ContactListResponseDataMapItemUnion) AsAnyArray ¶
func (u ContactListResponseDataMapItemUnion) AsAnyArray() (v []any)
func (ContactListResponseDataMapItemUnion) AsAnyMap ¶
func (u ContactListResponseDataMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactListResponseDataMapItemUnion) AsBool ¶
func (u ContactListResponseDataMapItemUnion) AsBool() (v bool)
func (ContactListResponseDataMapItemUnion) AsFloat ¶
func (u ContactListResponseDataMapItemUnion) AsFloat() (v float64)
func (ContactListResponseDataMapItemUnion) AsString ¶
func (u ContactListResponseDataMapItemUnion) AsString() (v string)
func (ContactListResponseDataMapItemUnion) RawJSON ¶
func (u ContactListResponseDataMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactListResponseDataMapItemUnion) UnmarshalJSON ¶
func (r *ContactListResponseDataMapItemUnion) UnmarshalJSON(data []byte) error
type ContactListResponseDataRelationship ¶
type ContactListResponseDataRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactListResponseDataRelationship) RawJSON ¶
func (r ContactListResponseDataRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactListResponseDataRelationship) UnmarshalJSON ¶
func (r *ContactListResponseDataRelationship) UnmarshalJSON(data []byte) error
type ContactListResponseDataUnion ¶
type ContactListResponseDataUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]ContactListResponseDataArrayItemUnion] instead of an object.
OfContactListResponseDataArray []ContactListResponseDataArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactListResponseDataMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactListResponseDataArray respjson.Field
OfAnyArray respjson.Field
OfContactListResponseDataMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactListResponseDataUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactListResponseDataArrayItemUnion], [map[string]ContactListResponseDataMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactListResponseDataArray OfAnyArray OfContactListResponseDataMapItemMapItem]
func (ContactListResponseDataUnion) AsBool ¶
func (u ContactListResponseDataUnion) AsBool() (v bool)
func (ContactListResponseDataUnion) AsContactListResponseDataArray ¶
func (u ContactListResponseDataUnion) AsContactListResponseDataArray() (v []ContactListResponseDataArrayItemUnion)
func (ContactListResponseDataUnion) AsContactListResponseDataMapMap ¶
func (u ContactListResponseDataUnion) AsContactListResponseDataMapMap() (v map[string]ContactListResponseDataMapItemUnion)
func (ContactListResponseDataUnion) AsFloat ¶
func (u ContactListResponseDataUnion) AsFloat() (v float64)
func (ContactListResponseDataUnion) AsString ¶
func (u ContactListResponseDataUnion) AsString() (v string)
func (ContactListResponseDataUnion) RawJSON ¶
func (u ContactListResponseDataUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactListResponseDataUnion) UnmarshalJSON ¶
func (r *ContactListResponseDataUnion) UnmarshalJSON(data []byte) error
type ContactNewParams ¶
type ContactNewParams struct {
// Field values for the new contact. System fields use a `$` prefix (e.g. `$email`,
// `$name`); custom attributes use their bare slug. Note: `$name` is an object
// `{ firstName, lastName }`, not a plain string. Call the
// <u>[definitions endpoint](/api/resources/contact/methods/definitions)</u> to
// discover available fields and their types. See
// <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for
// value type details.
Fields ContactNewParamsFields `json:"fields,omitzero" api:"required"`
// Relationships to set on the new contact. System relationships use a `$` prefix
// (e.g. `$account`); custom relationships use their bare slug. Each value is a
// single entity ID or an array of IDs. Call the
// <u>[definitions endpoint](/api/resources/contact/methods/definitions)</u> to
// list available relationship keys.
Relationships ContactNewParamsRelationships `json:"relationships,omitzero"`
// contains filtered or unexported fields
}
func (ContactNewParams) MarshalJSON ¶
func (r ContactNewParams) MarshalJSON() (data []byte, err error)
func (*ContactNewParams) UnmarshalJSON ¶
func (r *ContactNewParams) UnmarshalJSON(data []byte) error
type ContactNewParamsFieldArrayItemUnion ¶
type ContactNewParamsFieldArrayItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactNewParamsFieldArrayItemUnion) MarshalJSON ¶
func (u ContactNewParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)
func (*ContactNewParamsFieldArrayItemUnion) UnmarshalJSON ¶
func (u *ContactNewParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactNewParamsFieldMapItemUnion ¶
type ContactNewParamsFieldMapItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactNewParamsFieldMapItemUnion) MarshalJSON ¶
func (u ContactNewParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)
func (*ContactNewParamsFieldMapItemUnion) UnmarshalJSON ¶
func (u *ContactNewParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error
type ContactNewParamsFieldUnion ¶
type ContactNewParamsFieldUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfContactNewsFieldArray []ContactNewParamsFieldArrayItemUnion `json:",omitzero,inline"`
OfContactNewsFieldMapMap map[string]ContactNewParamsFieldMapItemUnion `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactNewParamsFieldUnion) MarshalJSON ¶
func (u ContactNewParamsFieldUnion) MarshalJSON() ([]byte, error)
func (*ContactNewParamsFieldUnion) UnmarshalJSON ¶
func (u *ContactNewParamsFieldUnion) UnmarshalJSON(data []byte) error
type ContactNewParamsFields ¶
type ContactNewParamsFields struct {
// URL of the contact's profile photo (`URL`).
ProfilePhotoURL param.Opt[string] `json:"$profilePhotoUrl,omitzero"`
// List of email addresses for the contact (`EMAIL`, multi-value).
Email []string `json:"$email,omitzero"`
// The contact's name. Unlike other resources, this is an object:
// `{ firstName?: string, lastName?: string }`, not a plain string.
Name ContactNewParamsFieldsName `json:"$name,omitzero"`
ExtraFields map[string]ContactNewParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
Field values for the new contact. System fields use a `$` prefix (e.g. `$email`, `$name`); custom attributes use their bare slug. Note: `$name` is an object `{ firstName, lastName }`, not a plain string. Call the <u>[definitions endpoint](/api/resources/contact/methods/definitions)</u> to discover available fields and their types. See <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for value type details.
func (ContactNewParamsFields) MarshalJSON ¶
func (r ContactNewParamsFields) MarshalJSON() (data []byte, err error)
func (*ContactNewParamsFields) UnmarshalJSON ¶
func (r *ContactNewParamsFields) UnmarshalJSON(data []byte) error
type ContactNewParamsFieldsName ¶ added in v0.2.0
type ContactNewParamsFieldsName struct {
// The contact's first name.
FirstName param.Opt[string] `json:"firstName,omitzero"`
// The contact's last name.
LastName param.Opt[string] `json:"lastName,omitzero"`
// contains filtered or unexported fields
}
The contact's name. Unlike other resources, this is an object: `{ firstName?: string, lastName?: string }`, not a plain string.
func (ContactNewParamsFieldsName) MarshalJSON ¶ added in v0.2.0
func (r ContactNewParamsFieldsName) MarshalJSON() (data []byte, err error)
func (*ContactNewParamsFieldsName) UnmarshalJSON ¶ added in v0.2.0
func (r *ContactNewParamsFieldsName) UnmarshalJSON(data []byte) error
type ContactNewParamsRelationshipUnion ¶
type ContactNewParamsRelationshipUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactNewParamsRelationshipUnion) MarshalJSON ¶
func (u ContactNewParamsRelationshipUnion) MarshalJSON() ([]byte, error)
func (*ContactNewParamsRelationshipUnion) UnmarshalJSON ¶
func (u *ContactNewParamsRelationshipUnion) UnmarshalJSON(data []byte) error
type ContactNewParamsRelationships ¶
type ContactNewParamsRelationships struct {
// ID(s) of accounts to associate with this contact.
Account ContactNewParamsRelationshipsAccountUnion `json:"$account,omitzero"`
ExtraFields map[string]ContactNewParamsRelationshipUnion `json:"-"`
// contains filtered or unexported fields
}
Relationships to set on the new contact. System relationships use a `$` prefix (e.g. `$account`); custom relationships use their bare slug. Each value is a single entity ID or an array of IDs. Call the <u>[definitions endpoint](/api/resources/contact/methods/definitions)</u> to list available relationship keys.
func (ContactNewParamsRelationships) MarshalJSON ¶
func (r ContactNewParamsRelationships) MarshalJSON() (data []byte, err error)
func (*ContactNewParamsRelationships) UnmarshalJSON ¶
func (r *ContactNewParamsRelationships) UnmarshalJSON(data []byte) error
type ContactNewParamsRelationshipsAccountUnion ¶
type ContactNewParamsRelationshipsAccountUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactNewParamsRelationshipsAccountUnion) MarshalJSON ¶
func (u ContactNewParamsRelationshipsAccountUnion) MarshalJSON() ([]byte, error)
func (*ContactNewParamsRelationshipsAccountUnion) UnmarshalJSON ¶
func (u *ContactNewParamsRelationshipsAccountUnion) UnmarshalJSON(data []byte) error
type ContactRetrieveResponse ¶ added in v0.4.1
type ContactRetrieveResponse struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]ContactRetrieveResponseField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]ContactRetrieveResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]ContactRetrieveResponseUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactRetrieveResponse) RawJSON ¶ added in v0.4.1
func (r ContactRetrieveResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactRetrieveResponse) UnmarshalJSON ¶ added in v0.4.1
func (r *ContactRetrieveResponse) UnmarshalJSON(data []byte) error
type ContactRetrieveResponseArrayItemUnion ¶
type ContactRetrieveResponseArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactRetrieveResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactRetrieveResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactRetrieveResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactRetrieveResponseArrayItemMapItem]
func (ContactRetrieveResponseArrayItemUnion) AsAnyArray ¶
func (u ContactRetrieveResponseArrayItemUnion) AsAnyArray() (v []any)
func (ContactRetrieveResponseArrayItemUnion) AsAnyMap ¶
func (u ContactRetrieveResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactRetrieveResponseArrayItemUnion) AsBool ¶
func (u ContactRetrieveResponseArrayItemUnion) AsBool() (v bool)
func (ContactRetrieveResponseArrayItemUnion) AsFloat ¶
func (u ContactRetrieveResponseArrayItemUnion) AsFloat() (v float64)
func (ContactRetrieveResponseArrayItemUnion) AsString ¶
func (u ContactRetrieveResponseArrayItemUnion) AsString() (v string)
func (ContactRetrieveResponseArrayItemUnion) RawJSON ¶
func (u ContactRetrieveResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactRetrieveResponseArrayItemUnion) UnmarshalJSON ¶
func (r *ContactRetrieveResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactRetrieveResponseField ¶ added in v0.4.1
type ContactRetrieveResponseField struct {
// The field value, or null if unset.
Value ContactRetrieveResponseFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactRetrieveResponseField) RawJSON ¶ added in v0.4.1
func (r ContactRetrieveResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactRetrieveResponseField) UnmarshalJSON ¶ added in v0.4.1
func (r *ContactRetrieveResponseField) UnmarshalJSON(data []byte) error
type ContactRetrieveResponseFieldValueArrayItemUnion ¶
type ContactRetrieveResponseFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactRetrieveResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactRetrieveResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactRetrieveResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactRetrieveResponseFieldValueArrayItemMapItem]
func (ContactRetrieveResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u ContactRetrieveResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (ContactRetrieveResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u ContactRetrieveResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactRetrieveResponseFieldValueArrayItemUnion) AsBool ¶
func (u ContactRetrieveResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (ContactRetrieveResponseFieldValueArrayItemUnion) AsFloat ¶
func (u ContactRetrieveResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (ContactRetrieveResponseFieldValueArrayItemUnion) AsString ¶
func (u ContactRetrieveResponseFieldValueArrayItemUnion) AsString() (v string)
func (ContactRetrieveResponseFieldValueArrayItemUnion) RawJSON ¶
func (u ContactRetrieveResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *ContactRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactRetrieveResponseFieldValueMapItemUnion ¶
type ContactRetrieveResponseFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactRetrieveResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactRetrieveResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactRetrieveResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactRetrieveResponseFieldValueMapItemMapItem]
func (ContactRetrieveResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u ContactRetrieveResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (ContactRetrieveResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u ContactRetrieveResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactRetrieveResponseFieldValueMapItemUnion) AsBool ¶
func (u ContactRetrieveResponseFieldValueMapItemUnion) AsBool() (v bool)
func (ContactRetrieveResponseFieldValueMapItemUnion) AsFloat ¶
func (u ContactRetrieveResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (ContactRetrieveResponseFieldValueMapItemUnion) AsString ¶
func (u ContactRetrieveResponseFieldValueMapItemUnion) AsString() (v string)
func (ContactRetrieveResponseFieldValueMapItemUnion) RawJSON ¶
func (u ContactRetrieveResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *ContactRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type ContactRetrieveResponseFieldValueUnion ¶ added in v0.4.1
type ContactRetrieveResponseFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]ContactRetrieveResponseFieldValueArrayItemUnion] instead of an object.
OfContactRetrieveResponseFieldValueArray []ContactRetrieveResponseFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactRetrieveResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactRetrieveResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfContactRetrieveResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactRetrieveResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactRetrieveResponseFieldValueArrayItemUnion], [map[string]ContactRetrieveResponseFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactRetrieveResponseFieldValueArray OfAnyArray OfContactRetrieveResponseFieldValueMapItemMapItem]
func (ContactRetrieveResponseFieldValueUnion) AsBool ¶ added in v0.4.1
func (u ContactRetrieveResponseFieldValueUnion) AsBool() (v bool)
func (ContactRetrieveResponseFieldValueUnion) AsContactRetrieveResponseFieldValueArray ¶
func (u ContactRetrieveResponseFieldValueUnion) AsContactRetrieveResponseFieldValueArray() (v []ContactRetrieveResponseFieldValueArrayItemUnion)
func (ContactRetrieveResponseFieldValueUnion) AsContactRetrieveResponseFieldValueMapMap ¶
func (u ContactRetrieveResponseFieldValueUnion) AsContactRetrieveResponseFieldValueMapMap() (v map[string]ContactRetrieveResponseFieldValueMapItemUnion)
func (ContactRetrieveResponseFieldValueUnion) AsFloat ¶ added in v0.4.1
func (u ContactRetrieveResponseFieldValueUnion) AsFloat() (v float64)
func (ContactRetrieveResponseFieldValueUnion) AsString ¶ added in v0.4.1
func (u ContactRetrieveResponseFieldValueUnion) AsString() (v string)
func (ContactRetrieveResponseFieldValueUnion) RawJSON ¶ added in v0.4.1
func (u ContactRetrieveResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactRetrieveResponseFieldValueUnion) UnmarshalJSON ¶ added in v0.4.1
func (r *ContactRetrieveResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type ContactRetrieveResponseMapItemUnion ¶
type ContactRetrieveResponseMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactRetrieveResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactRetrieveResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactRetrieveResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactRetrieveResponseMapItemMapItem]
func (ContactRetrieveResponseMapItemUnion) AsAnyArray ¶
func (u ContactRetrieveResponseMapItemUnion) AsAnyArray() (v []any)
func (ContactRetrieveResponseMapItemUnion) AsAnyMap ¶
func (u ContactRetrieveResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactRetrieveResponseMapItemUnion) AsBool ¶
func (u ContactRetrieveResponseMapItemUnion) AsBool() (v bool)
func (ContactRetrieveResponseMapItemUnion) AsFloat ¶
func (u ContactRetrieveResponseMapItemUnion) AsFloat() (v float64)
func (ContactRetrieveResponseMapItemUnion) AsString ¶
func (u ContactRetrieveResponseMapItemUnion) AsString() (v string)
func (ContactRetrieveResponseMapItemUnion) RawJSON ¶
func (u ContactRetrieveResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactRetrieveResponseMapItemUnion) UnmarshalJSON ¶
func (r *ContactRetrieveResponseMapItemUnion) UnmarshalJSON(data []byte) error
type ContactRetrieveResponseRelationship ¶ added in v0.4.1
type ContactRetrieveResponseRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactRetrieveResponseRelationship) RawJSON ¶ added in v0.4.1
func (r ContactRetrieveResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactRetrieveResponseRelationship) UnmarshalJSON ¶ added in v0.4.1
func (r *ContactRetrieveResponseRelationship) UnmarshalJSON(data []byte) error
type ContactRetrieveResponseUnion ¶
type ContactRetrieveResponseUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]ContactRetrieveResponseArrayItemUnion] instead of an object.
OfContactRetrieveResponseArray []ContactRetrieveResponseArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactRetrieveResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactRetrieveResponseArray respjson.Field
OfAnyArray respjson.Field
OfContactRetrieveResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactRetrieveResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactRetrieveResponseArrayItemUnion], [map[string]ContactRetrieveResponseMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactRetrieveResponseArray OfAnyArray OfContactRetrieveResponseMapItemMapItem]
func (ContactRetrieveResponseUnion) AsBool ¶
func (u ContactRetrieveResponseUnion) AsBool() (v bool)
func (ContactRetrieveResponseUnion) AsContactRetrieveResponseArray ¶
func (u ContactRetrieveResponseUnion) AsContactRetrieveResponseArray() (v []ContactRetrieveResponseArrayItemUnion)
func (ContactRetrieveResponseUnion) AsContactRetrieveResponseMapMap ¶
func (u ContactRetrieveResponseUnion) AsContactRetrieveResponseMapMap() (v map[string]ContactRetrieveResponseMapItemUnion)
func (ContactRetrieveResponseUnion) AsFloat ¶
func (u ContactRetrieveResponseUnion) AsFloat() (v float64)
func (ContactRetrieveResponseUnion) AsString ¶
func (u ContactRetrieveResponseUnion) AsString() (v string)
func (ContactRetrieveResponseUnion) RawJSON ¶
func (u ContactRetrieveResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactRetrieveResponseUnion) UnmarshalJSON ¶
func (r *ContactRetrieveResponseUnion) UnmarshalJSON(data []byte) error
type ContactService ¶
type ContactService struct {
Options []option.RequestOption
}
Contacts represent individual people in Lightfield. Contacts can be associated with one or more accounts.
ContactService contains methods and other services that help with interacting with the Lightfield API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewContactService method instead.
func NewContactService ¶
func NewContactService(opts ...option.RequestOption) (r ContactService)
NewContactService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ContactService) Definitions ¶ added in v0.2.0
func (r *ContactService) Definitions(ctx context.Context, opts ...option.RequestOption) (res *ContactDefinitionsResponse, err error)
Returns the schema for all field and relationship definitions available on contacts, including both system-defined and custom fields. Useful for understanding the shape of contact data before creating or updating records. See <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for more details.
**[Required scope](/using-the-api/scopes/):** `contacts:read`
**[Rate limit category](/using-the-api/rate-limits/):** Read
func (*ContactService) Get ¶
func (r *ContactService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ContactRetrieveResponse, err error)
Retrieves a single contact by its ID.
**[Required scope](/using-the-api/scopes/):** `contacts:read`
**[Rate limit category](/using-the-api/rate-limits/):** Read
func (*ContactService) List ¶
func (r *ContactService) List(ctx context.Context, query ContactListParams, opts ...option.RequestOption) (res *ContactListResponse, err error)
Returns a paginated list of contacts. Use `offset` and `limit` to paginate through results. See <u>[List endpoints](/using-the-api/list-endpoints/)</u> for more information about pagination.
**[Required scope](/using-the-api/scopes/):** `contacts:read`
**[Rate limit category](/using-the-api/rate-limits/):** Search
func (*ContactService) New ¶
func (r *ContactService) New(ctx context.Context, body ContactNewParams, opts ...option.RequestOption) (res *ContactCreateResponse, err error)
Creates a new contact record.
After creation, Lightfield automatically enriches the contact in the background.
Supports idempotency via the `Idempotency-Key` header.
**[Required scope](/using-the-api/scopes/):** `contacts:create`
**[Rate limit category](/using-the-api/rate-limits/):** Write
func (*ContactService) Update ¶
func (r *ContactService) Update(ctx context.Context, id string, body ContactUpdateParams, opts ...option.RequestOption) (res *ContactUpdateResponse, err error)
Updates an existing contact by ID. Only included fields and relationships are modified.
Supports idempotency via the `Idempotency-Key` header.
**[Required scope](/using-the-api/scopes/):** `contacts:update`
**[Rate limit category](/using-the-api/rate-limits/):** Write
type ContactUpdateParams ¶
type ContactUpdateParams struct {
// Field values to update — only provided fields are modified; omitted fields are
// left unchanged. System fields use a `$` prefix (e.g. `$email`); custom
// attributes use their bare slug. Note: `$name` is an object
// `{ firstName, lastName }`, not a plain string. Call the
// <u>[definitions endpoint](/api/resources/contact/methods/definitions)</u> for
// available fields and types. See
// <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for
// value type details.
Fields ContactUpdateParamsFields `json:"fields,omitzero"`
// Relationship operations to apply. System relationships use a `$` prefix (e.g.
// `$account`). Each value is an operation object with `add`, `remove`, or
// `replace`.
Relationships ContactUpdateParamsRelationships `json:"relationships,omitzero"`
// contains filtered or unexported fields
}
func (ContactUpdateParams) MarshalJSON ¶
func (r ContactUpdateParams) MarshalJSON() (data []byte, err error)
func (*ContactUpdateParams) UnmarshalJSON ¶
func (r *ContactUpdateParams) UnmarshalJSON(data []byte) error
type ContactUpdateParamsFieldArrayItemUnion ¶
type ContactUpdateParamsFieldArrayItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactUpdateParamsFieldArrayItemUnion) MarshalJSON ¶
func (u ContactUpdateParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsFieldArrayItemUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactUpdateParamsFieldMapItemUnion ¶
type ContactUpdateParamsFieldMapItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactUpdateParamsFieldMapItemUnion) MarshalJSON ¶
func (u ContactUpdateParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsFieldMapItemUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error
type ContactUpdateParamsFieldUnion ¶
type ContactUpdateParamsFieldUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfContactUpdatesFieldArray []ContactUpdateParamsFieldArrayItemUnion `json:",omitzero,inline"`
OfContactUpdatesFieldMapMap map[string]ContactUpdateParamsFieldMapItemUnion `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactUpdateParamsFieldUnion) MarshalJSON ¶
func (u ContactUpdateParamsFieldUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsFieldUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsFieldUnion) UnmarshalJSON(data []byte) error
type ContactUpdateParamsFields ¶
type ContactUpdateParamsFields struct {
// URL of the contact's profile photo (`URL`).
ProfilePhotoURL param.Opt[string] `json:"$profilePhotoUrl,omitzero"`
// List of email addresses for the contact (`EMAIL`, multi-value).
Email []string `json:"$email,omitzero"`
// The contact's name. Unlike other resources, this is an object:
// `{ firstName?: string, lastName?: string }`, not a plain string.
Name ContactUpdateParamsFieldsName `json:"$name,omitzero"`
ExtraFields map[string]ContactUpdateParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
Field values to update — only provided fields are modified; omitted fields are left unchanged. System fields use a `$` prefix (e.g. `$email`); custom attributes use their bare slug. Note: `$name` is an object `{ firstName, lastName }`, not a plain string. Call the <u>[definitions endpoint](/api/resources/contact/methods/definitions)</u> for available fields and types. See <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for value type details.
func (ContactUpdateParamsFields) MarshalJSON ¶
func (r ContactUpdateParamsFields) MarshalJSON() (data []byte, err error)
func (*ContactUpdateParamsFields) UnmarshalJSON ¶
func (r *ContactUpdateParamsFields) UnmarshalJSON(data []byte) error
type ContactUpdateParamsFieldsName ¶ added in v0.2.0
type ContactUpdateParamsFieldsName struct {
// The contact's first name.
FirstName param.Opt[string] `json:"firstName,omitzero"`
// The contact's last name.
LastName param.Opt[string] `json:"lastName,omitzero"`
// contains filtered or unexported fields
}
The contact's name. Unlike other resources, this is an object: `{ firstName?: string, lastName?: string }`, not a plain string.
func (ContactUpdateParamsFieldsName) MarshalJSON ¶ added in v0.2.0
func (r ContactUpdateParamsFieldsName) MarshalJSON() (data []byte, err error)
func (*ContactUpdateParamsFieldsName) UnmarshalJSON ¶ added in v0.2.0
func (r *ContactUpdateParamsFieldsName) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationship ¶
type ContactUpdateParamsRelationship struct {
// Entity ID(s) to add to the relationship.
Add ContactUpdateParamsRelationshipAddUnion `json:"add,omitzero"`
// Entity ID(s) to remove from the relationship.
Remove ContactUpdateParamsRelationshipRemoveUnion `json:"remove,omitzero"`
// Entity ID(s) to set as the entire relationship, replacing all existing
// associations.
Replace ContactUpdateParamsRelationshipReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
An operation to modify a relationship. Provide one of `add`, `remove`, or `replace`.
func (ContactUpdateParamsRelationship) MarshalJSON ¶
func (r ContactUpdateParamsRelationship) MarshalJSON() (data []byte, err error)
func (*ContactUpdateParamsRelationship) UnmarshalJSON ¶
func (r *ContactUpdateParamsRelationship) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipAddUnion ¶
type ContactUpdateParamsRelationshipAddUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactUpdateParamsRelationshipAddUnion) MarshalJSON ¶
func (u ContactUpdateParamsRelationshipAddUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsRelationshipAddUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsRelationshipAddUnion) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipRemoveUnion ¶
type ContactUpdateParamsRelationshipRemoveUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactUpdateParamsRelationshipRemoveUnion) MarshalJSON ¶
func (u ContactUpdateParamsRelationshipRemoveUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsRelationshipRemoveUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsRelationshipRemoveUnion) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipReplaceUnion ¶
type ContactUpdateParamsRelationshipReplaceUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactUpdateParamsRelationshipReplaceUnion) MarshalJSON ¶
func (u ContactUpdateParamsRelationshipReplaceUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsRelationshipReplaceUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsRelationshipReplaceUnion) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationships ¶
type ContactUpdateParamsRelationships struct {
// Operation to modify associated accounts.
Account ContactUpdateParamsRelationshipsAccount `json:"$account,omitzero"`
ExtraFields map[string]ContactUpdateParamsRelationship `json:"-"`
// contains filtered or unexported fields
}
Relationship operations to apply. System relationships use a `$` prefix (e.g. `$account`). Each value is an operation object with `add`, `remove`, or `replace`.
func (ContactUpdateParamsRelationships) MarshalJSON ¶
func (r ContactUpdateParamsRelationships) MarshalJSON() (data []byte, err error)
func (*ContactUpdateParamsRelationships) UnmarshalJSON ¶
func (r *ContactUpdateParamsRelationships) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipsAccount ¶
type ContactUpdateParamsRelationshipsAccount struct {
// Entity ID(s) to add to the relationship.
Add ContactUpdateParamsRelationshipsAccountAddUnion `json:"add,omitzero"`
// Entity ID(s) to remove from the relationship.
Remove ContactUpdateParamsRelationshipsAccountRemoveUnion `json:"remove,omitzero"`
// Entity ID(s) to set as the entire relationship, replacing all existing
// associations.
Replace ContactUpdateParamsRelationshipsAccountReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
Operation to modify associated accounts.
func (ContactUpdateParamsRelationshipsAccount) MarshalJSON ¶
func (r ContactUpdateParamsRelationshipsAccount) MarshalJSON() (data []byte, err error)
func (*ContactUpdateParamsRelationshipsAccount) UnmarshalJSON ¶
func (r *ContactUpdateParamsRelationshipsAccount) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipsAccountAddUnion ¶
type ContactUpdateParamsRelationshipsAccountAddUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactUpdateParamsRelationshipsAccountAddUnion) MarshalJSON ¶
func (u ContactUpdateParamsRelationshipsAccountAddUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsRelationshipsAccountAddUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsRelationshipsAccountAddUnion) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipsAccountRemoveUnion ¶
type ContactUpdateParamsRelationshipsAccountRemoveUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactUpdateParamsRelationshipsAccountRemoveUnion) MarshalJSON ¶
func (u ContactUpdateParamsRelationshipsAccountRemoveUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsRelationshipsAccountRemoveUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsRelationshipsAccountRemoveUnion) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipsAccountReplaceUnion ¶
type ContactUpdateParamsRelationshipsAccountReplaceUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (ContactUpdateParamsRelationshipsAccountReplaceUnion) MarshalJSON ¶
func (u ContactUpdateParamsRelationshipsAccountReplaceUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsRelationshipsAccountReplaceUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsRelationshipsAccountReplaceUnion) UnmarshalJSON(data []byte) error
type ContactUpdateResponse ¶
type ContactUpdateResponse struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]ContactUpdateResponseField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]ContactUpdateResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]ContactUpdateResponseUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactUpdateResponse) RawJSON ¶
func (r ContactUpdateResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactUpdateResponse) UnmarshalJSON ¶
func (r *ContactUpdateResponse) UnmarshalJSON(data []byte) error
type ContactUpdateResponseArrayItemUnion ¶
type ContactUpdateResponseArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactUpdateResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactUpdateResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactUpdateResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactUpdateResponseArrayItemMapItem]
func (ContactUpdateResponseArrayItemUnion) AsAnyArray ¶
func (u ContactUpdateResponseArrayItemUnion) AsAnyArray() (v []any)
func (ContactUpdateResponseArrayItemUnion) AsAnyMap ¶
func (u ContactUpdateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactUpdateResponseArrayItemUnion) AsBool ¶
func (u ContactUpdateResponseArrayItemUnion) AsBool() (v bool)
func (ContactUpdateResponseArrayItemUnion) AsFloat ¶
func (u ContactUpdateResponseArrayItemUnion) AsFloat() (v float64)
func (ContactUpdateResponseArrayItemUnion) AsString ¶
func (u ContactUpdateResponseArrayItemUnion) AsString() (v string)
func (ContactUpdateResponseArrayItemUnion) RawJSON ¶
func (u ContactUpdateResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactUpdateResponseArrayItemUnion) UnmarshalJSON ¶
func (r *ContactUpdateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactUpdateResponseField ¶
type ContactUpdateResponseField struct {
// The field value, or null if unset.
Value ContactUpdateResponseFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactUpdateResponseField) RawJSON ¶
func (r ContactUpdateResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactUpdateResponseField) UnmarshalJSON ¶
func (r *ContactUpdateResponseField) UnmarshalJSON(data []byte) error
type ContactUpdateResponseFieldValueArrayItemUnion ¶
type ContactUpdateResponseFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactUpdateResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactUpdateResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactUpdateResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactUpdateResponseFieldValueArrayItemMapItem]
func (ContactUpdateResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u ContactUpdateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (ContactUpdateResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u ContactUpdateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactUpdateResponseFieldValueArrayItemUnion) AsBool ¶
func (u ContactUpdateResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (ContactUpdateResponseFieldValueArrayItemUnion) AsFloat ¶
func (u ContactUpdateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (ContactUpdateResponseFieldValueArrayItemUnion) AsString ¶
func (u ContactUpdateResponseFieldValueArrayItemUnion) AsString() (v string)
func (ContactUpdateResponseFieldValueArrayItemUnion) RawJSON ¶
func (u ContactUpdateResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *ContactUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactUpdateResponseFieldValueMapItemUnion ¶
type ContactUpdateResponseFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactUpdateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactUpdateResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactUpdateResponseFieldValueMapItemMapItem]
func (ContactUpdateResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u ContactUpdateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (ContactUpdateResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u ContactUpdateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactUpdateResponseFieldValueMapItemUnion) AsBool ¶
func (u ContactUpdateResponseFieldValueMapItemUnion) AsBool() (v bool)
func (ContactUpdateResponseFieldValueMapItemUnion) AsFloat ¶
func (u ContactUpdateResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (ContactUpdateResponseFieldValueMapItemUnion) AsString ¶
func (u ContactUpdateResponseFieldValueMapItemUnion) AsString() (v string)
func (ContactUpdateResponseFieldValueMapItemUnion) RawJSON ¶
func (u ContactUpdateResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactUpdateResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *ContactUpdateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type ContactUpdateResponseFieldValueUnion ¶
type ContactUpdateResponseFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]ContactUpdateResponseFieldValueArrayItemUnion] instead of an object.
OfContactUpdateResponseFieldValueArray []ContactUpdateResponseFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactUpdateResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfContactUpdateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactUpdateResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactUpdateResponseFieldValueArrayItemUnion], [map[string]ContactUpdateResponseFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactUpdateResponseFieldValueArray OfAnyArray OfContactUpdateResponseFieldValueMapItemMapItem]
func (ContactUpdateResponseFieldValueUnion) AsBool ¶
func (u ContactUpdateResponseFieldValueUnion) AsBool() (v bool)
func (ContactUpdateResponseFieldValueUnion) AsContactUpdateResponseFieldValueArray ¶
func (u ContactUpdateResponseFieldValueUnion) AsContactUpdateResponseFieldValueArray() (v []ContactUpdateResponseFieldValueArrayItemUnion)
func (ContactUpdateResponseFieldValueUnion) AsContactUpdateResponseFieldValueMapMap ¶
func (u ContactUpdateResponseFieldValueUnion) AsContactUpdateResponseFieldValueMapMap() (v map[string]ContactUpdateResponseFieldValueMapItemUnion)
func (ContactUpdateResponseFieldValueUnion) AsFloat ¶
func (u ContactUpdateResponseFieldValueUnion) AsFloat() (v float64)
func (ContactUpdateResponseFieldValueUnion) AsString ¶
func (u ContactUpdateResponseFieldValueUnion) AsString() (v string)
func (ContactUpdateResponseFieldValueUnion) RawJSON ¶
func (u ContactUpdateResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactUpdateResponseFieldValueUnion) UnmarshalJSON ¶
func (r *ContactUpdateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type ContactUpdateResponseMapItemUnion ¶
type ContactUpdateResponseMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactUpdateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactUpdateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactUpdateResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactUpdateResponseMapItemMapItem]
func (ContactUpdateResponseMapItemUnion) AsAnyArray ¶
func (u ContactUpdateResponseMapItemUnion) AsAnyArray() (v []any)
func (ContactUpdateResponseMapItemUnion) AsAnyMap ¶
func (u ContactUpdateResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactUpdateResponseMapItemUnion) AsBool ¶
func (u ContactUpdateResponseMapItemUnion) AsBool() (v bool)
func (ContactUpdateResponseMapItemUnion) AsFloat ¶
func (u ContactUpdateResponseMapItemUnion) AsFloat() (v float64)
func (ContactUpdateResponseMapItemUnion) AsString ¶
func (u ContactUpdateResponseMapItemUnion) AsString() (v string)
func (ContactUpdateResponseMapItemUnion) RawJSON ¶
func (u ContactUpdateResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactUpdateResponseMapItemUnion) UnmarshalJSON ¶
func (r *ContactUpdateResponseMapItemUnion) UnmarshalJSON(data []byte) error
type ContactUpdateResponseRelationship ¶
type ContactUpdateResponseRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ContactUpdateResponseRelationship) RawJSON ¶
func (r ContactUpdateResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactUpdateResponseRelationship) UnmarshalJSON ¶
func (r *ContactUpdateResponseRelationship) UnmarshalJSON(data []byte) error
type ContactUpdateResponseUnion ¶
type ContactUpdateResponseUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]ContactUpdateResponseArrayItemUnion] instead of an object.
OfContactUpdateResponseArray []ContactUpdateResponseArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfContactUpdateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactUpdateResponseArray respjson.Field
OfAnyArray respjson.Field
OfContactUpdateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactUpdateResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactUpdateResponseArrayItemUnion], [map[string]ContactUpdateResponseMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactUpdateResponseArray OfAnyArray OfContactUpdateResponseMapItemMapItem]
func (ContactUpdateResponseUnion) AsBool ¶
func (u ContactUpdateResponseUnion) AsBool() (v bool)
func (ContactUpdateResponseUnion) AsContactUpdateResponseArray ¶
func (u ContactUpdateResponseUnion) AsContactUpdateResponseArray() (v []ContactUpdateResponseArrayItemUnion)
func (ContactUpdateResponseUnion) AsContactUpdateResponseMapMap ¶
func (u ContactUpdateResponseUnion) AsContactUpdateResponseMapMap() (v map[string]ContactUpdateResponseMapItemUnion)
func (ContactUpdateResponseUnion) AsFloat ¶
func (u ContactUpdateResponseUnion) AsFloat() (v float64)
func (ContactUpdateResponseUnion) AsString ¶
func (u ContactUpdateResponseUnion) AsString() (v string)
func (ContactUpdateResponseUnion) RawJSON ¶
func (u ContactUpdateResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactUpdateResponseUnion) UnmarshalJSON ¶
func (r *ContactUpdateResponseUnion) UnmarshalJSON(data []byte) error
type MemberListParams ¶ added in v0.4.1
type MemberListParams struct {
// Maximum number of records to return. Defaults to 25, maximum 25.
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// Number of records to skip for pagination. Defaults to 0.
Offset param.Opt[int64] `query:"offset,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (MemberListParams) URLQuery ¶ added in v0.4.1
func (r MemberListParams) URLQuery() (v url.Values, err error)
URLQuery serializes MemberListParams's query parameters as `url.Values`.
type MemberListResponse ¶ added in v0.4.1
type MemberListResponse struct {
// Array of member objects for the current page.
Data []MemberListResponseData `json:"data" api:"required"`
// The object type, always `"list"`.
Object string `json:"object" api:"required"`
// Total number of members in the workspace.
TotalCount int64 `json:"totalCount" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Data respjson.Field
Object respjson.Field
TotalCount respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (MemberListResponse) RawJSON ¶ added in v0.4.1
func (r MemberListResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberListResponse) UnmarshalJSON ¶ added in v0.4.1
func (r *MemberListResponse) UnmarshalJSON(data []byte) error
type MemberListResponseData ¶ added in v0.4.1
type MemberListResponseData struct {
// Unique identifier for the member.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the member was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values.
Fields map[string]MemberListResponseDataField `json:"fields" api:"required"`
// URL to view the member in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (MemberListResponseData) RawJSON ¶ added in v0.4.1
func (r MemberListResponseData) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberListResponseData) UnmarshalJSON ¶ added in v0.4.1
func (r *MemberListResponseData) UnmarshalJSON(data []byte) error
type MemberListResponseDataField ¶
type MemberListResponseDataField struct {
// The field value, or null if unset.
Value MemberListResponseDataFieldValueUnion `json:"value" api:"required"`
// The data type of the field value.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (MemberListResponseDataField) RawJSON ¶
func (r MemberListResponseDataField) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberListResponseDataField) UnmarshalJSON ¶
func (r *MemberListResponseDataField) UnmarshalJSON(data []byte) error
type MemberListResponseDataFieldValueArrayItemUnion ¶
type MemberListResponseDataFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfMemberListResponseDataFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfMemberListResponseDataFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
MemberListResponseDataFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfMemberListResponseDataFieldValueArrayItemMapItem]
func (MemberListResponseDataFieldValueArrayItemUnion) AsAnyArray ¶
func (u MemberListResponseDataFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (MemberListResponseDataFieldValueArrayItemUnion) AsAnyMap ¶
func (u MemberListResponseDataFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (MemberListResponseDataFieldValueArrayItemUnion) AsBool ¶
func (u MemberListResponseDataFieldValueArrayItemUnion) AsBool() (v bool)
func (MemberListResponseDataFieldValueArrayItemUnion) AsFloat ¶
func (u MemberListResponseDataFieldValueArrayItemUnion) AsFloat() (v float64)
func (MemberListResponseDataFieldValueArrayItemUnion) AsString ¶
func (u MemberListResponseDataFieldValueArrayItemUnion) AsString() (v string)
func (MemberListResponseDataFieldValueArrayItemUnion) RawJSON ¶
func (u MemberListResponseDataFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberListResponseDataFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *MemberListResponseDataFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type MemberListResponseDataFieldValueMapItemUnion ¶
type MemberListResponseDataFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfMemberListResponseDataFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfMemberListResponseDataFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
MemberListResponseDataFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfMemberListResponseDataFieldValueMapItemMapItem]
func (MemberListResponseDataFieldValueMapItemUnion) AsAnyArray ¶
func (u MemberListResponseDataFieldValueMapItemUnion) AsAnyArray() (v []any)
func (MemberListResponseDataFieldValueMapItemUnion) AsAnyMap ¶
func (u MemberListResponseDataFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (MemberListResponseDataFieldValueMapItemUnion) AsBool ¶
func (u MemberListResponseDataFieldValueMapItemUnion) AsBool() (v bool)
func (MemberListResponseDataFieldValueMapItemUnion) AsFloat ¶
func (u MemberListResponseDataFieldValueMapItemUnion) AsFloat() (v float64)
func (MemberListResponseDataFieldValueMapItemUnion) AsString ¶
func (u MemberListResponseDataFieldValueMapItemUnion) AsString() (v string)
func (MemberListResponseDataFieldValueMapItemUnion) RawJSON ¶
func (u MemberListResponseDataFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberListResponseDataFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *MemberListResponseDataFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type MemberListResponseDataFieldValueUnion ¶
type MemberListResponseDataFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]MemberListResponseDataFieldValueArrayItemUnion] instead of an object.
OfMemberListResponseDataFieldValueArray []MemberListResponseDataFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfMemberListResponseDataFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfMemberListResponseDataFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfMemberListResponseDataFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
MemberListResponseDataFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]MemberListResponseDataFieldValueArrayItemUnion], [map[string]MemberListResponseDataFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfMemberListResponseDataFieldValueArray OfAnyArray OfMemberListResponseDataFieldValueMapItemMapItem]
func (MemberListResponseDataFieldValueUnion) AsBool ¶
func (u MemberListResponseDataFieldValueUnion) AsBool() (v bool)
func (MemberListResponseDataFieldValueUnion) AsFloat ¶
func (u MemberListResponseDataFieldValueUnion) AsFloat() (v float64)
func (MemberListResponseDataFieldValueUnion) AsMemberListResponseDataFieldValueArray ¶
func (u MemberListResponseDataFieldValueUnion) AsMemberListResponseDataFieldValueArray() (v []MemberListResponseDataFieldValueArrayItemUnion)
func (MemberListResponseDataFieldValueUnion) AsMemberListResponseDataFieldValueMapMap ¶
func (u MemberListResponseDataFieldValueUnion) AsMemberListResponseDataFieldValueMapMap() (v map[string]MemberListResponseDataFieldValueMapItemUnion)
func (MemberListResponseDataFieldValueUnion) AsString ¶
func (u MemberListResponseDataFieldValueUnion) AsString() (v string)
func (MemberListResponseDataFieldValueUnion) RawJSON ¶
func (u MemberListResponseDataFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberListResponseDataFieldValueUnion) UnmarshalJSON ¶
func (r *MemberListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error
type MemberRetrieveResponse ¶ added in v0.4.1
type MemberRetrieveResponse struct {
// Unique identifier for the member.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the member was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values.
Fields map[string]MemberRetrieveResponseField `json:"fields" api:"required"`
// URL to view the member in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (MemberRetrieveResponse) RawJSON ¶ added in v0.4.1
func (r MemberRetrieveResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberRetrieveResponse) UnmarshalJSON ¶ added in v0.4.1
func (r *MemberRetrieveResponse) UnmarshalJSON(data []byte) error
type MemberRetrieveResponseField ¶
type MemberRetrieveResponseField struct {
// The field value, or null if unset.
Value MemberRetrieveResponseFieldValueUnion `json:"value" api:"required"`
// The data type of the field value.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (MemberRetrieveResponseField) RawJSON ¶
func (r MemberRetrieveResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberRetrieveResponseField) UnmarshalJSON ¶
func (r *MemberRetrieveResponseField) UnmarshalJSON(data []byte) error
type MemberRetrieveResponseFieldValueArrayItemUnion ¶
type MemberRetrieveResponseFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfMemberRetrieveResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfMemberRetrieveResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
MemberRetrieveResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfMemberRetrieveResponseFieldValueArrayItemMapItem]
func (MemberRetrieveResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u MemberRetrieveResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (MemberRetrieveResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u MemberRetrieveResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (MemberRetrieveResponseFieldValueArrayItemUnion) AsBool ¶
func (u MemberRetrieveResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (MemberRetrieveResponseFieldValueArrayItemUnion) AsFloat ¶
func (u MemberRetrieveResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (MemberRetrieveResponseFieldValueArrayItemUnion) AsString ¶
func (u MemberRetrieveResponseFieldValueArrayItemUnion) AsString() (v string)
func (MemberRetrieveResponseFieldValueArrayItemUnion) RawJSON ¶
func (u MemberRetrieveResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *MemberRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type MemberRetrieveResponseFieldValueMapItemUnion ¶
type MemberRetrieveResponseFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfMemberRetrieveResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfMemberRetrieveResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
MemberRetrieveResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfMemberRetrieveResponseFieldValueMapItemMapItem]
func (MemberRetrieveResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u MemberRetrieveResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (MemberRetrieveResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u MemberRetrieveResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (MemberRetrieveResponseFieldValueMapItemUnion) AsBool ¶
func (u MemberRetrieveResponseFieldValueMapItemUnion) AsBool() (v bool)
func (MemberRetrieveResponseFieldValueMapItemUnion) AsFloat ¶
func (u MemberRetrieveResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (MemberRetrieveResponseFieldValueMapItemUnion) AsString ¶
func (u MemberRetrieveResponseFieldValueMapItemUnion) AsString() (v string)
func (MemberRetrieveResponseFieldValueMapItemUnion) RawJSON ¶
func (u MemberRetrieveResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *MemberRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type MemberRetrieveResponseFieldValueUnion ¶
type MemberRetrieveResponseFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]MemberRetrieveResponseFieldValueArrayItemUnion] instead of an object.
OfMemberRetrieveResponseFieldValueArray []MemberRetrieveResponseFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfMemberRetrieveResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfMemberRetrieveResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfMemberRetrieveResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
MemberRetrieveResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]MemberRetrieveResponseFieldValueArrayItemUnion], [map[string]MemberRetrieveResponseFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfMemberRetrieveResponseFieldValueArray OfAnyArray OfMemberRetrieveResponseFieldValueMapItemMapItem]
func (MemberRetrieveResponseFieldValueUnion) AsBool ¶
func (u MemberRetrieveResponseFieldValueUnion) AsBool() (v bool)
func (MemberRetrieveResponseFieldValueUnion) AsFloat ¶
func (u MemberRetrieveResponseFieldValueUnion) AsFloat() (v float64)
func (MemberRetrieveResponseFieldValueUnion) AsMemberRetrieveResponseFieldValueArray ¶
func (u MemberRetrieveResponseFieldValueUnion) AsMemberRetrieveResponseFieldValueArray() (v []MemberRetrieveResponseFieldValueArrayItemUnion)
func (MemberRetrieveResponseFieldValueUnion) AsMemberRetrieveResponseFieldValueMapMap ¶
func (u MemberRetrieveResponseFieldValueUnion) AsMemberRetrieveResponseFieldValueMapMap() (v map[string]MemberRetrieveResponseFieldValueMapItemUnion)
func (MemberRetrieveResponseFieldValueUnion) AsString ¶
func (u MemberRetrieveResponseFieldValueUnion) AsString() (v string)
func (MemberRetrieveResponseFieldValueUnion) RawJSON ¶
func (u MemberRetrieveResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberRetrieveResponseFieldValueUnion) UnmarshalJSON ¶
func (r *MemberRetrieveResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type MemberService ¶ added in v0.4.1
type MemberService struct {
Options []option.RequestOption
}
Members represent users in your Lightfield workspace. Members can own accounts and opportunities, and are referenced in relationships like `$owner` and `$createdBy`.
MemberService contains methods and other services that help with interacting with the Lightfield API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewMemberService method instead.
func NewMemberService ¶ added in v0.4.1
func NewMemberService(opts ...option.RequestOption) (r MemberService)
NewMemberService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*MemberService) Get ¶ added in v0.4.1
func (r *MemberService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *MemberRetrieveResponse, err error)
Retrieves a single member by their ID.
**[Required scope](/using-the-api/scopes/):** `members:read`
**[Rate limit category](/using-the-api/rate-limits/):** Read
func (*MemberService) List ¶ added in v0.4.1
func (r *MemberService) List(ctx context.Context, query MemberListParams, opts ...option.RequestOption) (res *MemberListResponse, err error)
Returns a paginated list of members in your workspace. Use `offset` and `limit` to paginate through results. See <u>[List endpoints](/using-the-api/list-endpoints/)</u> for more information about pagination.
**[Required scope](/using-the-api/scopes/):** `members:read`
**[Rate limit category](/using-the-api/rate-limits/):** Search
type OpportunityCreateResponse ¶ added in v0.4.1
type OpportunityCreateResponse struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]OpportunityCreateResponseField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]OpportunityCreateResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]OpportunityCreateResponseUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityCreateResponse) RawJSON ¶ added in v0.4.1
func (r OpportunityCreateResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityCreateResponse) UnmarshalJSON ¶ added in v0.4.1
func (r *OpportunityCreateResponse) UnmarshalJSON(data []byte) error
type OpportunityCreateResponseArrayItemUnion ¶
type OpportunityCreateResponseArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityCreateResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityCreateResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityCreateResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityCreateResponseArrayItemMapItem]
func (OpportunityCreateResponseArrayItemUnion) AsAnyArray ¶
func (u OpportunityCreateResponseArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityCreateResponseArrayItemUnion) AsAnyMap ¶
func (u OpportunityCreateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityCreateResponseArrayItemUnion) AsBool ¶
func (u OpportunityCreateResponseArrayItemUnion) AsBool() (v bool)
func (OpportunityCreateResponseArrayItemUnion) AsFloat ¶
func (u OpportunityCreateResponseArrayItemUnion) AsFloat() (v float64)
func (OpportunityCreateResponseArrayItemUnion) AsString ¶
func (u OpportunityCreateResponseArrayItemUnion) AsString() (v string)
func (OpportunityCreateResponseArrayItemUnion) RawJSON ¶
func (u OpportunityCreateResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityCreateResponseArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityCreateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityCreateResponseField ¶ added in v0.4.1
type OpportunityCreateResponseField struct {
// The field value, or null if unset.
Value OpportunityCreateResponseFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityCreateResponseField) RawJSON ¶ added in v0.4.1
func (r OpportunityCreateResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityCreateResponseField) UnmarshalJSON ¶ added in v0.4.1
func (r *OpportunityCreateResponseField) UnmarshalJSON(data []byte) error
type OpportunityCreateResponseFieldValueArrayItemUnion ¶
type OpportunityCreateResponseFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityCreateResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityCreateResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityCreateResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityCreateResponseFieldValueArrayItemMapItem]
func (OpportunityCreateResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u OpportunityCreateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityCreateResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u OpportunityCreateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityCreateResponseFieldValueArrayItemUnion) AsBool ¶
func (u OpportunityCreateResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (OpportunityCreateResponseFieldValueArrayItemUnion) AsFloat ¶
func (u OpportunityCreateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (OpportunityCreateResponseFieldValueArrayItemUnion) AsString ¶
func (u OpportunityCreateResponseFieldValueArrayItemUnion) AsString() (v string)
func (OpportunityCreateResponseFieldValueArrayItemUnion) RawJSON ¶
func (u OpportunityCreateResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityCreateResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityCreateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityCreateResponseFieldValueMapItemUnion ¶
type OpportunityCreateResponseFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityCreateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityCreateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityCreateResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityCreateResponseFieldValueMapItemMapItem]
func (OpportunityCreateResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u OpportunityCreateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (OpportunityCreateResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u OpportunityCreateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityCreateResponseFieldValueMapItemUnion) AsBool ¶
func (u OpportunityCreateResponseFieldValueMapItemUnion) AsBool() (v bool)
func (OpportunityCreateResponseFieldValueMapItemUnion) AsFloat ¶
func (u OpportunityCreateResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (OpportunityCreateResponseFieldValueMapItemUnion) AsString ¶
func (u OpportunityCreateResponseFieldValueMapItemUnion) AsString() (v string)
func (OpportunityCreateResponseFieldValueMapItemUnion) RawJSON ¶
func (u OpportunityCreateResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityCreateResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityCreateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityCreateResponseFieldValueUnion ¶ added in v0.4.1
type OpportunityCreateResponseFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]OpportunityCreateResponseFieldValueArrayItemUnion] instead of an object.
OfOpportunityCreateResponseFieldValueArray []OpportunityCreateResponseFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityCreateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityCreateResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityCreateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityCreateResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityCreateResponseFieldValueArrayItemUnion], [map[string]OpportunityCreateResponseFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityCreateResponseFieldValueArray OfAnyArray OfOpportunityCreateResponseFieldValueMapItemMapItem]
func (OpportunityCreateResponseFieldValueUnion) AsBool ¶ added in v0.4.1
func (u OpportunityCreateResponseFieldValueUnion) AsBool() (v bool)
func (OpportunityCreateResponseFieldValueUnion) AsFloat ¶ added in v0.4.1
func (u OpportunityCreateResponseFieldValueUnion) AsFloat() (v float64)
func (OpportunityCreateResponseFieldValueUnion) AsOpportunityCreateResponseFieldValueArray ¶
func (u OpportunityCreateResponseFieldValueUnion) AsOpportunityCreateResponseFieldValueArray() (v []OpportunityCreateResponseFieldValueArrayItemUnion)
func (OpportunityCreateResponseFieldValueUnion) AsOpportunityCreateResponseFieldValueMapMap ¶
func (u OpportunityCreateResponseFieldValueUnion) AsOpportunityCreateResponseFieldValueMapMap() (v map[string]OpportunityCreateResponseFieldValueMapItemUnion)
func (OpportunityCreateResponseFieldValueUnion) AsString ¶ added in v0.4.1
func (u OpportunityCreateResponseFieldValueUnion) AsString() (v string)
func (OpportunityCreateResponseFieldValueUnion) RawJSON ¶ added in v0.4.1
func (u OpportunityCreateResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityCreateResponseFieldValueUnion) UnmarshalJSON ¶ added in v0.4.1
func (r *OpportunityCreateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type OpportunityCreateResponseMapItemUnion ¶
type OpportunityCreateResponseMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityCreateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityCreateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityCreateResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityCreateResponseMapItemMapItem]
func (OpportunityCreateResponseMapItemUnion) AsAnyArray ¶
func (u OpportunityCreateResponseMapItemUnion) AsAnyArray() (v []any)
func (OpportunityCreateResponseMapItemUnion) AsAnyMap ¶
func (u OpportunityCreateResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityCreateResponseMapItemUnion) AsBool ¶
func (u OpportunityCreateResponseMapItemUnion) AsBool() (v bool)
func (OpportunityCreateResponseMapItemUnion) AsFloat ¶
func (u OpportunityCreateResponseMapItemUnion) AsFloat() (v float64)
func (OpportunityCreateResponseMapItemUnion) AsString ¶
func (u OpportunityCreateResponseMapItemUnion) AsString() (v string)
func (OpportunityCreateResponseMapItemUnion) RawJSON ¶
func (u OpportunityCreateResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityCreateResponseMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityCreateResponseMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityCreateResponseRelationship ¶ added in v0.4.1
type OpportunityCreateResponseRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityCreateResponseRelationship) RawJSON ¶ added in v0.4.1
func (r OpportunityCreateResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityCreateResponseRelationship) UnmarshalJSON ¶ added in v0.4.1
func (r *OpportunityCreateResponseRelationship) UnmarshalJSON(data []byte) error
type OpportunityCreateResponseUnion ¶
type OpportunityCreateResponseUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]OpportunityCreateResponseArrayItemUnion] instead of an object.
OfOpportunityCreateResponseArray []OpportunityCreateResponseArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityCreateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityCreateResponseArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityCreateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityCreateResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityCreateResponseArrayItemUnion], [map[string]OpportunityCreateResponseMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityCreateResponseArray OfAnyArray OfOpportunityCreateResponseMapItemMapItem]
func (OpportunityCreateResponseUnion) AsBool ¶
func (u OpportunityCreateResponseUnion) AsBool() (v bool)
func (OpportunityCreateResponseUnion) AsFloat ¶
func (u OpportunityCreateResponseUnion) AsFloat() (v float64)
func (OpportunityCreateResponseUnion) AsOpportunityCreateResponseArray ¶
func (u OpportunityCreateResponseUnion) AsOpportunityCreateResponseArray() (v []OpportunityCreateResponseArrayItemUnion)
func (OpportunityCreateResponseUnion) AsOpportunityCreateResponseMapMap ¶
func (u OpportunityCreateResponseUnion) AsOpportunityCreateResponseMapMap() (v map[string]OpportunityCreateResponseMapItemUnion)
func (OpportunityCreateResponseUnion) AsString ¶
func (u OpportunityCreateResponseUnion) AsString() (v string)
func (OpportunityCreateResponseUnion) RawJSON ¶
func (u OpportunityCreateResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityCreateResponseUnion) UnmarshalJSON ¶
func (r *OpportunityCreateResponseUnion) UnmarshalJSON(data []byte) error
type OpportunityDefinitionsResponse ¶ added in v0.2.0
type OpportunityDefinitionsResponse struct {
// Map of field keys to their definitions, including both system and custom fields.
FieldDefinitions map[string]OpportunityDefinitionsResponseFieldDefinition `json:"fieldDefinitions" api:"required"`
// The object type these definitions belong to (e.g. `account`).
ObjectType string `json:"objectType" api:"required"`
// Map of relationship keys to their definitions.
RelationshipDefinitions map[string]OpportunityDefinitionsResponseRelationshipDefinition `json:"relationshipDefinitions" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
FieldDefinitions respjson.Field
ObjectType respjson.Field
RelationshipDefinitions respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityDefinitionsResponse) RawJSON ¶ added in v0.2.0
func (r OpportunityDefinitionsResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityDefinitionsResponse) UnmarshalJSON ¶ added in v0.2.0
func (r *OpportunityDefinitionsResponse) UnmarshalJSON(data []byte) error
type OpportunityDefinitionsResponseFieldDefinition ¶ added in v0.2.0
type OpportunityDefinitionsResponseFieldDefinition struct {
// Description of the field, or null.
Description string `json:"description" api:"required"`
// Human-readable display name of the field.
Label string `json:"label" api:"required"`
// Type-specific configuration (e.g. select options, currency code).
TypeConfiguration map[string]OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion `json:"typeConfiguration" api:"required"`
// Data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// Unique identifier of the field definition.
ID string `json:"id"`
// `true` for fields that are not writable via the API (e.g. AI-generated
// summaries). `false` or absent for writable fields.
ReadOnly bool `json:"readOnly"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Description respjson.Field
Label respjson.Field
TypeConfiguration respjson.Field
ValueType respjson.Field
ID respjson.Field
ReadOnly respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityDefinitionsResponseFieldDefinition) RawJSON ¶ added in v0.2.0
func (r OpportunityDefinitionsResponseFieldDefinition) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityDefinitionsResponseFieldDefinition) UnmarshalJSON ¶ added in v0.2.0
func (r *OpportunityDefinitionsResponseFieldDefinition) UnmarshalJSON(data []byte) error
type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion ¶ added in v0.2.0
type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem]
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool() (v bool)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat() (v float64)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString() (v string)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON ¶ added in v0.2.0
func (r *OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion ¶ added in v0.2.0
type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray() (v []any)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool() (v bool)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat() (v float64)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString() (v string)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON ¶ added in v0.2.0
func (r *OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion ¶ added in v0.2.0
type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion]
// instead of an object.
OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArray []OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion], [map[string]OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArray OfAnyArray OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool() (v bool)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat() (v float64)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArray ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArray() (v []OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapMap ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapMap() (v map[string]OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString() (v string)
func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON ¶ added in v0.2.0
func (u OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON ¶ added in v0.2.0
func (r *OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON(data []byte) error
type OpportunityDefinitionsResponseRelationshipDefinition ¶ added in v0.2.0
type OpportunityDefinitionsResponseRelationshipDefinition struct {
// Whether this is a `has_one` or `has_many` relationship.
//
// Any of "HAS_ONE", "HAS_MANY".
Cardinality string `json:"cardinality" api:"required"`
// Description of the relationship, or null.
Description string `json:"description" api:"required"`
// Human-readable display name of the relationship.
Label string `json:"label" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// Unique identifier of the relationship definition.
ID string `json:"id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
Description respjson.Field
Label respjson.Field
ObjectType respjson.Field
ID respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityDefinitionsResponseRelationshipDefinition) RawJSON ¶ added in v0.2.0
func (r OpportunityDefinitionsResponseRelationshipDefinition) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityDefinitionsResponseRelationshipDefinition) UnmarshalJSON ¶ added in v0.2.0
func (r *OpportunityDefinitionsResponseRelationshipDefinition) UnmarshalJSON(data []byte) error
type OpportunityListParams ¶
type OpportunityListParams struct {
// Maximum number of records to return. Defaults to 25, maximum 25.
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// Number of records to skip for pagination. Defaults to 0.
Offset param.Opt[int64] `query:"offset,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (OpportunityListParams) URLQuery ¶
func (r OpportunityListParams) URLQuery() (v url.Values, err error)
URLQuery serializes OpportunityListParams's query parameters as `url.Values`.
type OpportunityListResponse ¶
type OpportunityListResponse struct {
// Array of entity objects for the current page.
Data []OpportunityListResponseData `json:"data" api:"required"`
// The object type, always `"list"`.
Object string `json:"object" api:"required"`
// Total number of entities matching the query.
TotalCount int64 `json:"totalCount" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Data respjson.Field
Object respjson.Field
TotalCount respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityListResponse) RawJSON ¶
func (r OpportunityListResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityListResponse) UnmarshalJSON ¶
func (r *OpportunityListResponse) UnmarshalJSON(data []byte) error
type OpportunityListResponseData ¶
type OpportunityListResponseData struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]OpportunityListResponseDataField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]OpportunityListResponseDataRelationship `json:"relationships" api:"required"`
ExtraFields map[string]OpportunityListResponseDataUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityListResponseData) RawJSON ¶
func (r OpportunityListResponseData) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityListResponseData) UnmarshalJSON ¶
func (r *OpportunityListResponseData) UnmarshalJSON(data []byte) error
type OpportunityListResponseDataArrayItemUnion ¶
type OpportunityListResponseDataArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityListResponseDataArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityListResponseDataArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityListResponseDataArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityListResponseDataArrayItemMapItem]
func (OpportunityListResponseDataArrayItemUnion) AsAnyArray ¶
func (u OpportunityListResponseDataArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityListResponseDataArrayItemUnion) AsAnyMap ¶
func (u OpportunityListResponseDataArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityListResponseDataArrayItemUnion) AsBool ¶
func (u OpportunityListResponseDataArrayItemUnion) AsBool() (v bool)
func (OpportunityListResponseDataArrayItemUnion) AsFloat ¶
func (u OpportunityListResponseDataArrayItemUnion) AsFloat() (v float64)
func (OpportunityListResponseDataArrayItemUnion) AsString ¶
func (u OpportunityListResponseDataArrayItemUnion) AsString() (v string)
func (OpportunityListResponseDataArrayItemUnion) RawJSON ¶
func (u OpportunityListResponseDataArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityListResponseDataArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityListResponseDataArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityListResponseDataField ¶
type OpportunityListResponseDataField struct {
// The field value, or null if unset.
Value OpportunityListResponseDataFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityListResponseDataField) RawJSON ¶
func (r OpportunityListResponseDataField) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityListResponseDataField) UnmarshalJSON ¶
func (r *OpportunityListResponseDataField) UnmarshalJSON(data []byte) error
type OpportunityListResponseDataFieldValueArrayItemUnion ¶
type OpportunityListResponseDataFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityListResponseDataFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityListResponseDataFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityListResponseDataFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityListResponseDataFieldValueArrayItemMapItem]
func (OpportunityListResponseDataFieldValueArrayItemUnion) AsAnyArray ¶
func (u OpportunityListResponseDataFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityListResponseDataFieldValueArrayItemUnion) AsAnyMap ¶
func (u OpportunityListResponseDataFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityListResponseDataFieldValueArrayItemUnion) AsBool ¶
func (u OpportunityListResponseDataFieldValueArrayItemUnion) AsBool() (v bool)
func (OpportunityListResponseDataFieldValueArrayItemUnion) AsFloat ¶
func (u OpportunityListResponseDataFieldValueArrayItemUnion) AsFloat() (v float64)
func (OpportunityListResponseDataFieldValueArrayItemUnion) AsString ¶
func (u OpportunityListResponseDataFieldValueArrayItemUnion) AsString() (v string)
func (OpportunityListResponseDataFieldValueArrayItemUnion) RawJSON ¶
func (u OpportunityListResponseDataFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityListResponseDataFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityListResponseDataFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityListResponseDataFieldValueMapItemUnion ¶
type OpportunityListResponseDataFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityListResponseDataFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityListResponseDataFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityListResponseDataFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityListResponseDataFieldValueMapItemMapItem]
func (OpportunityListResponseDataFieldValueMapItemUnion) AsAnyArray ¶
func (u OpportunityListResponseDataFieldValueMapItemUnion) AsAnyArray() (v []any)
func (OpportunityListResponseDataFieldValueMapItemUnion) AsAnyMap ¶
func (u OpportunityListResponseDataFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityListResponseDataFieldValueMapItemUnion) AsBool ¶
func (u OpportunityListResponseDataFieldValueMapItemUnion) AsBool() (v bool)
func (OpportunityListResponseDataFieldValueMapItemUnion) AsFloat ¶
func (u OpportunityListResponseDataFieldValueMapItemUnion) AsFloat() (v float64)
func (OpportunityListResponseDataFieldValueMapItemUnion) AsString ¶
func (u OpportunityListResponseDataFieldValueMapItemUnion) AsString() (v string)
func (OpportunityListResponseDataFieldValueMapItemUnion) RawJSON ¶
func (u OpportunityListResponseDataFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityListResponseDataFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityListResponseDataFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityListResponseDataFieldValueUnion ¶
type OpportunityListResponseDataFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]OpportunityListResponseDataFieldValueArrayItemUnion] instead of an object.
OfOpportunityListResponseDataFieldValueArray []OpportunityListResponseDataFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityListResponseDataFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityListResponseDataFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityListResponseDataFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityListResponseDataFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityListResponseDataFieldValueArrayItemUnion], [map[string]OpportunityListResponseDataFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityListResponseDataFieldValueArray OfAnyArray OfOpportunityListResponseDataFieldValueMapItemMapItem]
func (OpportunityListResponseDataFieldValueUnion) AsBool ¶
func (u OpportunityListResponseDataFieldValueUnion) AsBool() (v bool)
func (OpportunityListResponseDataFieldValueUnion) AsFloat ¶
func (u OpportunityListResponseDataFieldValueUnion) AsFloat() (v float64)
func (OpportunityListResponseDataFieldValueUnion) AsOpportunityListResponseDataFieldValueArray ¶
func (u OpportunityListResponseDataFieldValueUnion) AsOpportunityListResponseDataFieldValueArray() (v []OpportunityListResponseDataFieldValueArrayItemUnion)
func (OpportunityListResponseDataFieldValueUnion) AsOpportunityListResponseDataFieldValueMapMap ¶
func (u OpportunityListResponseDataFieldValueUnion) AsOpportunityListResponseDataFieldValueMapMap() (v map[string]OpportunityListResponseDataFieldValueMapItemUnion)
func (OpportunityListResponseDataFieldValueUnion) AsString ¶
func (u OpportunityListResponseDataFieldValueUnion) AsString() (v string)
func (OpportunityListResponseDataFieldValueUnion) RawJSON ¶
func (u OpportunityListResponseDataFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityListResponseDataFieldValueUnion) UnmarshalJSON ¶
func (r *OpportunityListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error
type OpportunityListResponseDataMapItemUnion ¶
type OpportunityListResponseDataMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityListResponseDataMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityListResponseDataMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityListResponseDataMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityListResponseDataMapItemMapItem]
func (OpportunityListResponseDataMapItemUnion) AsAnyArray ¶
func (u OpportunityListResponseDataMapItemUnion) AsAnyArray() (v []any)
func (OpportunityListResponseDataMapItemUnion) AsAnyMap ¶
func (u OpportunityListResponseDataMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityListResponseDataMapItemUnion) AsBool ¶
func (u OpportunityListResponseDataMapItemUnion) AsBool() (v bool)
func (OpportunityListResponseDataMapItemUnion) AsFloat ¶
func (u OpportunityListResponseDataMapItemUnion) AsFloat() (v float64)
func (OpportunityListResponseDataMapItemUnion) AsString ¶
func (u OpportunityListResponseDataMapItemUnion) AsString() (v string)
func (OpportunityListResponseDataMapItemUnion) RawJSON ¶
func (u OpportunityListResponseDataMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityListResponseDataMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityListResponseDataMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityListResponseDataRelationship ¶
type OpportunityListResponseDataRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityListResponseDataRelationship) RawJSON ¶
func (r OpportunityListResponseDataRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityListResponseDataRelationship) UnmarshalJSON ¶
func (r *OpportunityListResponseDataRelationship) UnmarshalJSON(data []byte) error
type OpportunityListResponseDataUnion ¶
type OpportunityListResponseDataUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]OpportunityListResponseDataArrayItemUnion] instead of an object.
OfOpportunityListResponseDataArray []OpportunityListResponseDataArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityListResponseDataMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityListResponseDataArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityListResponseDataMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityListResponseDataUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityListResponseDataArrayItemUnion], [map[string]OpportunityListResponseDataMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityListResponseDataArray OfAnyArray OfOpportunityListResponseDataMapItemMapItem]
func (OpportunityListResponseDataUnion) AsBool ¶
func (u OpportunityListResponseDataUnion) AsBool() (v bool)
func (OpportunityListResponseDataUnion) AsFloat ¶
func (u OpportunityListResponseDataUnion) AsFloat() (v float64)
func (OpportunityListResponseDataUnion) AsOpportunityListResponseDataArray ¶
func (u OpportunityListResponseDataUnion) AsOpportunityListResponseDataArray() (v []OpportunityListResponseDataArrayItemUnion)
func (OpportunityListResponseDataUnion) AsOpportunityListResponseDataMapMap ¶
func (u OpportunityListResponseDataUnion) AsOpportunityListResponseDataMapMap() (v map[string]OpportunityListResponseDataMapItemUnion)
func (OpportunityListResponseDataUnion) AsString ¶
func (u OpportunityListResponseDataUnion) AsString() (v string)
func (OpportunityListResponseDataUnion) RawJSON ¶
func (u OpportunityListResponseDataUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityListResponseDataUnion) UnmarshalJSON ¶
func (r *OpportunityListResponseDataUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParams ¶
type OpportunityNewParams struct {
// Field values for the new opportunity. System fields use a `$` prefix (e.g.
// `$name`, `$stage`); custom attributes use their bare slug. Required: `$name`
// (string) and `$stage` (option ID or label). Fields of type `SINGLE_SELECT` or
// `MULTI_SELECT` accept either an option ID or label from the field's
// `typeConfiguration.options` — call the
// <u>[definitions endpoint](/api/resources/opportunity/methods/definitions)</u> to
// discover available fields and options. See
// <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for
// value type details.
Fields OpportunityNewParamsFields `json:"fields,omitzero" api:"required"`
// Relationships to set on the new opportunity. System relationships use a `$`
// prefix (e.g. `$account`, `$owner`); custom relationships use their bare slug.
// `$account` is required. Each value is a single entity ID or an array of IDs.
// Call the
// <u>[definitions endpoint](/api/resources/opportunity/methods/definitions)</u> to
// list available relationship keys.
Relationships OpportunityNewParamsRelationships `json:"relationships,omitzero" api:"required"`
// contains filtered or unexported fields
}
func (OpportunityNewParams) MarshalJSON ¶
func (r OpportunityNewParams) MarshalJSON() (data []byte, err error)
func (*OpportunityNewParams) UnmarshalJSON ¶
func (r *OpportunityNewParams) UnmarshalJSON(data []byte) error
type OpportunityNewParamsFieldArrayItemUnion ¶
type OpportunityNewParamsFieldArrayItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityNewParamsFieldArrayItemUnion) MarshalJSON ¶
func (u OpportunityNewParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsFieldArrayItemUnion) UnmarshalJSON ¶
func (u *OpportunityNewParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsFieldMapItemUnion ¶
type OpportunityNewParamsFieldMapItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityNewParamsFieldMapItemUnion) MarshalJSON ¶
func (u OpportunityNewParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsFieldMapItemUnion) UnmarshalJSON ¶
func (u *OpportunityNewParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsFieldUnion ¶
type OpportunityNewParamsFieldUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfOpportunityNewsFieldArray []OpportunityNewParamsFieldArrayItemUnion `json:",omitzero,inline"`
OfOpportunityNewsFieldMapMap map[string]OpportunityNewParamsFieldMapItemUnion `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityNewParamsFieldUnion) MarshalJSON ¶
func (u OpportunityNewParamsFieldUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsFieldUnion) UnmarshalJSON ¶
func (u *OpportunityNewParamsFieldUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsFields ¶
type OpportunityNewParamsFields struct {
// Display name of the opportunity.
Name string `json:"$name" api:"required"`
// Pipeline stage (`SINGLE_SELECT`). Pass the option ID or label from the field
// definition.
Stage string `json:"$stage" api:"required"`
ExtraFields map[string]OpportunityNewParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
Field values for the new opportunity. System fields use a `$` prefix (e.g. `$name`, `$stage`); custom attributes use their bare slug. Required: `$name` (string) and `$stage` (option ID or label). Fields of type `SINGLE_SELECT` or `MULTI_SELECT` accept either an option ID or label from the field's `typeConfiguration.options` — call the <u>[definitions endpoint](/api/resources/opportunity/methods/definitions)</u> to discover available fields and options. See <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for value type details.
The properties Name, Stage are required.
func (OpportunityNewParamsFields) MarshalJSON ¶
func (r OpportunityNewParamsFields) MarshalJSON() (data []byte, err error)
func (*OpportunityNewParamsFields) UnmarshalJSON ¶
func (r *OpportunityNewParamsFields) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipUnion ¶
type OpportunityNewParamsRelationshipUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityNewParamsRelationshipUnion) MarshalJSON ¶
func (u OpportunityNewParamsRelationshipUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipUnion) UnmarshalJSON ¶
func (u *OpportunityNewParamsRelationshipUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationships ¶
type OpportunityNewParamsRelationships struct {
// ID of the account this opportunity belongs to.
Account OpportunityNewParamsRelationshipsAccountUnion `json:"$account,omitzero" api:"required"`
// ID of the contact who is the internal champion.
Champion OpportunityNewParamsRelationshipsChampionUnion `json:"$champion,omitzero"`
// ID of the user who created this opportunity.
CreatedBy OpportunityNewParamsRelationshipsCreatedByUnion `json:"$createdBy,omitzero"`
// ID of the contact who is the evaluator.
Evaluator OpportunityNewParamsRelationshipsEvaluatorUnion `json:"$evaluator,omitzero"`
// ID of the user who owns this opportunity.
Owner OpportunityNewParamsRelationshipsOwnerUnion `json:"$owner,omitzero"`
ExtraFields map[string]OpportunityNewParamsRelationshipUnion `json:"-"`
// contains filtered or unexported fields
}
Relationships to set on the new opportunity. System relationships use a `$` prefix (e.g. `$account`, `$owner`); custom relationships use their bare slug. `$account` is required. Each value is a single entity ID or an array of IDs. Call the <u>[definitions endpoint](/api/resources/opportunity/methods/definitions)</u> to list available relationship keys.
The property Account is required.
func (OpportunityNewParamsRelationships) MarshalJSON ¶
func (r OpportunityNewParamsRelationships) MarshalJSON() (data []byte, err error)
func (*OpportunityNewParamsRelationships) UnmarshalJSON ¶
func (r *OpportunityNewParamsRelationships) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipsAccountUnion ¶ added in v0.2.0
type OpportunityNewParamsRelationshipsAccountUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityNewParamsRelationshipsAccountUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityNewParamsRelationshipsAccountUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipsAccountUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityNewParamsRelationshipsAccountUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipsChampionUnion ¶ added in v0.2.0
type OpportunityNewParamsRelationshipsChampionUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityNewParamsRelationshipsChampionUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityNewParamsRelationshipsChampionUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipsChampionUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityNewParamsRelationshipsChampionUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipsCreatedByUnion ¶ added in v0.2.0
type OpportunityNewParamsRelationshipsCreatedByUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityNewParamsRelationshipsCreatedByUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityNewParamsRelationshipsCreatedByUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipsCreatedByUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityNewParamsRelationshipsCreatedByUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipsEvaluatorUnion ¶ added in v0.2.0
type OpportunityNewParamsRelationshipsEvaluatorUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityNewParamsRelationshipsEvaluatorUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityNewParamsRelationshipsEvaluatorUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipsEvaluatorUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityNewParamsRelationshipsEvaluatorUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipsOwnerUnion ¶ added in v0.2.0
type OpportunityNewParamsRelationshipsOwnerUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityNewParamsRelationshipsOwnerUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityNewParamsRelationshipsOwnerUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipsOwnerUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityNewParamsRelationshipsOwnerUnion) UnmarshalJSON(data []byte) error
type OpportunityRetrieveResponse ¶ added in v0.4.1
type OpportunityRetrieveResponse struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]OpportunityRetrieveResponseField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]OpportunityRetrieveResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]OpportunityRetrieveResponseUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityRetrieveResponse) RawJSON ¶ added in v0.4.1
func (r OpportunityRetrieveResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityRetrieveResponse) UnmarshalJSON ¶ added in v0.4.1
func (r *OpportunityRetrieveResponse) UnmarshalJSON(data []byte) error
type OpportunityRetrieveResponseArrayItemUnion ¶
type OpportunityRetrieveResponseArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityRetrieveResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityRetrieveResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityRetrieveResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityRetrieveResponseArrayItemMapItem]
func (OpportunityRetrieveResponseArrayItemUnion) AsAnyArray ¶
func (u OpportunityRetrieveResponseArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityRetrieveResponseArrayItemUnion) AsAnyMap ¶
func (u OpportunityRetrieveResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityRetrieveResponseArrayItemUnion) AsBool ¶
func (u OpportunityRetrieveResponseArrayItemUnion) AsBool() (v bool)
func (OpportunityRetrieveResponseArrayItemUnion) AsFloat ¶
func (u OpportunityRetrieveResponseArrayItemUnion) AsFloat() (v float64)
func (OpportunityRetrieveResponseArrayItemUnion) AsString ¶
func (u OpportunityRetrieveResponseArrayItemUnion) AsString() (v string)
func (OpportunityRetrieveResponseArrayItemUnion) RawJSON ¶
func (u OpportunityRetrieveResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityRetrieveResponseArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityRetrieveResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityRetrieveResponseField ¶ added in v0.4.1
type OpportunityRetrieveResponseField struct {
// The field value, or null if unset.
Value OpportunityRetrieveResponseFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityRetrieveResponseField) RawJSON ¶ added in v0.4.1
func (r OpportunityRetrieveResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityRetrieveResponseField) UnmarshalJSON ¶ added in v0.4.1
func (r *OpportunityRetrieveResponseField) UnmarshalJSON(data []byte) error
type OpportunityRetrieveResponseFieldValueArrayItemUnion ¶
type OpportunityRetrieveResponseFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityRetrieveResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityRetrieveResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityRetrieveResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityRetrieveResponseFieldValueArrayItemMapItem]
func (OpportunityRetrieveResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityRetrieveResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityRetrieveResponseFieldValueArrayItemUnion) AsBool ¶
func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (OpportunityRetrieveResponseFieldValueArrayItemUnion) AsFloat ¶
func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (OpportunityRetrieveResponseFieldValueArrayItemUnion) AsString ¶
func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) AsString() (v string)
func (OpportunityRetrieveResponseFieldValueArrayItemUnion) RawJSON ¶
func (u OpportunityRetrieveResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityRetrieveResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityRetrieveResponseFieldValueMapItemUnion ¶
type OpportunityRetrieveResponseFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityRetrieveResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityRetrieveResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityRetrieveResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityRetrieveResponseFieldValueMapItemMapItem]
func (OpportunityRetrieveResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u OpportunityRetrieveResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (OpportunityRetrieveResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u OpportunityRetrieveResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityRetrieveResponseFieldValueMapItemUnion) AsBool ¶
func (u OpportunityRetrieveResponseFieldValueMapItemUnion) AsBool() (v bool)
func (OpportunityRetrieveResponseFieldValueMapItemUnion) AsFloat ¶
func (u OpportunityRetrieveResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (OpportunityRetrieveResponseFieldValueMapItemUnion) AsString ¶
func (u OpportunityRetrieveResponseFieldValueMapItemUnion) AsString() (v string)
func (OpportunityRetrieveResponseFieldValueMapItemUnion) RawJSON ¶
func (u OpportunityRetrieveResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityRetrieveResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityRetrieveResponseFieldValueUnion ¶ added in v0.4.1
type OpportunityRetrieveResponseFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]OpportunityRetrieveResponseFieldValueArrayItemUnion] instead of an object.
OfOpportunityRetrieveResponseFieldValueArray []OpportunityRetrieveResponseFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityRetrieveResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityRetrieveResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityRetrieveResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityRetrieveResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityRetrieveResponseFieldValueArrayItemUnion], [map[string]OpportunityRetrieveResponseFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityRetrieveResponseFieldValueArray OfAnyArray OfOpportunityRetrieveResponseFieldValueMapItemMapItem]
func (OpportunityRetrieveResponseFieldValueUnion) AsBool ¶ added in v0.4.1
func (u OpportunityRetrieveResponseFieldValueUnion) AsBool() (v bool)
func (OpportunityRetrieveResponseFieldValueUnion) AsFloat ¶ added in v0.4.1
func (u OpportunityRetrieveResponseFieldValueUnion) AsFloat() (v float64)
func (OpportunityRetrieveResponseFieldValueUnion) AsOpportunityRetrieveResponseFieldValueArray ¶
func (u OpportunityRetrieveResponseFieldValueUnion) AsOpportunityRetrieveResponseFieldValueArray() (v []OpportunityRetrieveResponseFieldValueArrayItemUnion)
func (OpportunityRetrieveResponseFieldValueUnion) AsOpportunityRetrieveResponseFieldValueMapMap ¶
func (u OpportunityRetrieveResponseFieldValueUnion) AsOpportunityRetrieveResponseFieldValueMapMap() (v map[string]OpportunityRetrieveResponseFieldValueMapItemUnion)
func (OpportunityRetrieveResponseFieldValueUnion) AsString ¶ added in v0.4.1
func (u OpportunityRetrieveResponseFieldValueUnion) AsString() (v string)
func (OpportunityRetrieveResponseFieldValueUnion) RawJSON ¶ added in v0.4.1
func (u OpportunityRetrieveResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityRetrieveResponseFieldValueUnion) UnmarshalJSON ¶ added in v0.4.1
func (r *OpportunityRetrieveResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type OpportunityRetrieveResponseMapItemUnion ¶
type OpportunityRetrieveResponseMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityRetrieveResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityRetrieveResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityRetrieveResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityRetrieveResponseMapItemMapItem]
func (OpportunityRetrieveResponseMapItemUnion) AsAnyArray ¶
func (u OpportunityRetrieveResponseMapItemUnion) AsAnyArray() (v []any)
func (OpportunityRetrieveResponseMapItemUnion) AsAnyMap ¶
func (u OpportunityRetrieveResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityRetrieveResponseMapItemUnion) AsBool ¶
func (u OpportunityRetrieveResponseMapItemUnion) AsBool() (v bool)
func (OpportunityRetrieveResponseMapItemUnion) AsFloat ¶
func (u OpportunityRetrieveResponseMapItemUnion) AsFloat() (v float64)
func (OpportunityRetrieveResponseMapItemUnion) AsString ¶
func (u OpportunityRetrieveResponseMapItemUnion) AsString() (v string)
func (OpportunityRetrieveResponseMapItemUnion) RawJSON ¶
func (u OpportunityRetrieveResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityRetrieveResponseMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityRetrieveResponseMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityRetrieveResponseRelationship ¶ added in v0.4.1
type OpportunityRetrieveResponseRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityRetrieveResponseRelationship) RawJSON ¶ added in v0.4.1
func (r OpportunityRetrieveResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityRetrieveResponseRelationship) UnmarshalJSON ¶ added in v0.4.1
func (r *OpportunityRetrieveResponseRelationship) UnmarshalJSON(data []byte) error
type OpportunityRetrieveResponseUnion ¶
type OpportunityRetrieveResponseUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]OpportunityRetrieveResponseArrayItemUnion] instead of an object.
OfOpportunityRetrieveResponseArray []OpportunityRetrieveResponseArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityRetrieveResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityRetrieveResponseArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityRetrieveResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityRetrieveResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityRetrieveResponseArrayItemUnion], [map[string]OpportunityRetrieveResponseMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityRetrieveResponseArray OfAnyArray OfOpportunityRetrieveResponseMapItemMapItem]
func (OpportunityRetrieveResponseUnion) AsBool ¶
func (u OpportunityRetrieveResponseUnion) AsBool() (v bool)
func (OpportunityRetrieveResponseUnion) AsFloat ¶
func (u OpportunityRetrieveResponseUnion) AsFloat() (v float64)
func (OpportunityRetrieveResponseUnion) AsOpportunityRetrieveResponseArray ¶
func (u OpportunityRetrieveResponseUnion) AsOpportunityRetrieveResponseArray() (v []OpportunityRetrieveResponseArrayItemUnion)
func (OpportunityRetrieveResponseUnion) AsOpportunityRetrieveResponseMapMap ¶
func (u OpportunityRetrieveResponseUnion) AsOpportunityRetrieveResponseMapMap() (v map[string]OpportunityRetrieveResponseMapItemUnion)
func (OpportunityRetrieveResponseUnion) AsString ¶
func (u OpportunityRetrieveResponseUnion) AsString() (v string)
func (OpportunityRetrieveResponseUnion) RawJSON ¶
func (u OpportunityRetrieveResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityRetrieveResponseUnion) UnmarshalJSON ¶
func (r *OpportunityRetrieveResponseUnion) UnmarshalJSON(data []byte) error
type OpportunityService ¶
type OpportunityService struct {
Options []option.RequestOption
}
Opportunities represent potential deals or sales in Lightfield. Each opportunity belongs to an account and can have tasks and notes associated with it.
OpportunityService contains methods and other services that help with interacting with the Lightfield API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewOpportunityService method instead.
func NewOpportunityService ¶
func NewOpportunityService(opts ...option.RequestOption) (r OpportunityService)
NewOpportunityService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*OpportunityService) Definitions ¶ added in v0.2.0
func (r *OpportunityService) Definitions(ctx context.Context, opts ...option.RequestOption) (res *OpportunityDefinitionsResponse, err error)
Returns the schema for all field and relationship definitions available on opportunities, including both system-defined and custom fields. Useful for understanding the shape of opportunity data before creating or updating records. See <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for more details.
**[Required scope](/using-the-api/scopes/):** `opportunities:read`
**[Rate limit category](/using-the-api/rate-limits/):** Read
func (*OpportunityService) Get ¶
func (r *OpportunityService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *OpportunityRetrieveResponse, err error)
Retrieves a single opportunity by its ID.
**[Required scope](/using-the-api/scopes/):** `opportunities:read`
**[Rate limit category](/using-the-api/rate-limits/):** Read
func (*OpportunityService) List ¶
func (r *OpportunityService) List(ctx context.Context, query OpportunityListParams, opts ...option.RequestOption) (res *OpportunityListResponse, err error)
Returns a paginated list of opportunities. Use `offset` and `limit` to paginate through results. See <u>[List endpoints](/using-the-api/list-endpoints/)</u> for more information about pagination.
**[Required scope](/using-the-api/scopes/):** `opportunities:read`
**[Rate limit category](/using-the-api/rate-limits/):** Search
func (*OpportunityService) New ¶
func (r *OpportunityService) New(ctx context.Context, body OpportunityNewParams, opts ...option.RequestOption) (res *OpportunityCreateResponse, err error)
Creates a new opportunity record. The `$name` and `$stage` fields and the `$account` relationship are required.
After creation, Lightfield automatically generates an opportunity summary in the background. The `$opportunityStatus` field is read-only and cannot be set via the API. The `$task` and `$note` relationships are also read-only — manage them via the `$opportunity` relationship on the task, or the `$account`/`$opportunity` note relationships instead.
Supports idempotency via the `Idempotency-Key` header.
**[Required scope](/using-the-api/scopes/):** `opportunities:create`
**[Rate limit category](/using-the-api/rate-limits/):** Write
func (*OpportunityService) Update ¶
func (r *OpportunityService) Update(ctx context.Context, id string, body OpportunityUpdateParams, opts ...option.RequestOption) (res *OpportunityUpdateResponse, err error)
Updates an existing opportunity by ID. Only included fields and relationships are modified.
The `$opportunityStatus` field is read-only and cannot be updated. The `$task` and `$note` relationships are also read-only — manage them via the `$opportunity` relationship on the task, or the `$account`/`$opportunity` note relationships instead.
Supports idempotency via the `Idempotency-Key` header.
**[Required scope](/using-the-api/scopes/):** `opportunities:update`
**[Rate limit category](/using-the-api/rate-limits/):** Write
type OpportunityUpdateParams ¶
type OpportunityUpdateParams struct {
// Field values to update — only provided fields are modified; omitted fields are
// left unchanged. System fields use a `$` prefix (e.g. `$name`, `$stage`); custom
// attributes use their bare slug. `SINGLE_SELECT` and `MULTI_SELECT` fields accept
// an option ID or label — call the
// <u>[definitions endpoint](/api/resources/opportunity/methods/definitions)</u>
// for available options. See
// <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for
// value type details.
Fields OpportunityUpdateParamsFields `json:"fields,omitzero"`
// Relationship operations to apply. System relationships use a `$` prefix (e.g.
// `$owner`, `$champion`). Each value is an operation object with `add`, `remove`,
// or `replace`.
Relationships OpportunityUpdateParamsRelationships `json:"relationships,omitzero"`
// contains filtered or unexported fields
}
func (OpportunityUpdateParams) MarshalJSON ¶
func (r OpportunityUpdateParams) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParams) UnmarshalJSON ¶
func (r *OpportunityUpdateParams) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsFieldArrayItemUnion ¶
type OpportunityUpdateParamsFieldArrayItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsFieldArrayItemUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsFieldArrayItemUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsFieldMapItemUnion ¶
type OpportunityUpdateParamsFieldMapItemUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfAnyArray []any `json:",omitzero,inline"`
OfAnyMap map[string]any `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsFieldMapItemUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsFieldMapItemUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsFieldUnion ¶
type OpportunityUpdateParamsFieldUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
OfOpportunityUpdatesFieldArray []OpportunityUpdateParamsFieldArrayItemUnion `json:",omitzero,inline"`
OfOpportunityUpdatesFieldMapMap map[string]OpportunityUpdateParamsFieldMapItemUnion `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsFieldUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsFieldUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsFieldUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsFieldUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsFields ¶
type OpportunityUpdateParamsFields struct {
// Display name of the opportunity.
Name param.Opt[string] `json:"$name,omitzero"`
// Pipeline stage (`SINGLE_SELECT`). Pass the option ID or label from the field
// definition.
Stage param.Opt[string] `json:"$stage,omitzero"`
ExtraFields map[string]OpportunityUpdateParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
Field values to update — only provided fields are modified; omitted fields are left unchanged. System fields use a `$` prefix (e.g. `$name`, `$stage`); custom attributes use their bare slug. `SINGLE_SELECT` and `MULTI_SELECT` fields accept an option ID or label — call the <u>[definitions endpoint](/api/resources/opportunity/methods/definitions)</u> for available options. See <u>[Fields and relationships](/using-the-api/fields-and-relationships/)</u> for value type details.
func (OpportunityUpdateParamsFields) MarshalJSON ¶
func (r OpportunityUpdateParamsFields) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsFields) UnmarshalJSON ¶
func (r *OpportunityUpdateParamsFields) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationship ¶
type OpportunityUpdateParamsRelationship struct {
// Entity ID(s) to add to the relationship.
Add OpportunityUpdateParamsRelationshipAddUnion `json:"add,omitzero"`
// Entity ID(s) to remove from the relationship.
Remove OpportunityUpdateParamsRelationshipRemoveUnion `json:"remove,omitzero"`
// Entity ID(s) to set as the entire relationship, replacing all existing
// associations.
Replace OpportunityUpdateParamsRelationshipReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
An operation to modify a relationship. Provide one of `add`, `remove`, or `replace`.
func (OpportunityUpdateParamsRelationship) MarshalJSON ¶
func (r OpportunityUpdateParamsRelationship) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationship) UnmarshalJSON ¶
func (r *OpportunityUpdateParamsRelationship) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipAddUnion ¶
type OpportunityUpdateParamsRelationshipAddUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipAddUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipAddUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipAddUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipAddUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipRemoveUnion ¶
type OpportunityUpdateParamsRelationshipRemoveUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipRemoveUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipRemoveUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipRemoveUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipRemoveUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipReplaceUnion ¶
type OpportunityUpdateParamsRelationshipReplaceUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipReplaceUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipReplaceUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipReplaceUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipReplaceUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationships ¶
type OpportunityUpdateParamsRelationships struct {
// Operation to modify the internal champion.
Champion OpportunityUpdateParamsRelationshipsChampion `json:"$champion,omitzero"`
// Operation to modify the evaluator.
Evaluator OpportunityUpdateParamsRelationshipsEvaluator `json:"$evaluator,omitzero"`
// Operation to modify the opportunity owner.
Owner OpportunityUpdateParamsRelationshipsOwner `json:"$owner,omitzero"`
ExtraFields map[string]OpportunityUpdateParamsRelationship `json:"-"`
// contains filtered or unexported fields
}
Relationship operations to apply. System relationships use a `$` prefix (e.g. `$owner`, `$champion`). Each value is an operation object with `add`, `remove`, or `replace`.
func (OpportunityUpdateParamsRelationships) MarshalJSON ¶
func (r OpportunityUpdateParamsRelationships) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationships) UnmarshalJSON ¶
func (r *OpportunityUpdateParamsRelationships) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsChampion ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsChampion struct {
// Entity ID(s) to add to the relationship.
Add OpportunityUpdateParamsRelationshipsChampionAddUnion `json:"add,omitzero"`
// Entity ID(s) to remove from the relationship.
Remove OpportunityUpdateParamsRelationshipsChampionRemoveUnion `json:"remove,omitzero"`
// Entity ID(s) to set as the entire relationship, replacing all existing
// associations.
Replace OpportunityUpdateParamsRelationshipsChampionReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
Operation to modify the internal champion.
func (OpportunityUpdateParamsRelationshipsChampion) MarshalJSON ¶ added in v0.2.0
func (r OpportunityUpdateParamsRelationshipsChampion) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationshipsChampion) UnmarshalJSON ¶ added in v0.2.0
func (r *OpportunityUpdateParamsRelationshipsChampion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsChampionAddUnion ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsChampionAddUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipsChampionAddUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityUpdateParamsRelationshipsChampionAddUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsChampionAddUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityUpdateParamsRelationshipsChampionAddUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsChampionRemoveUnion ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsChampionRemoveUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipsChampionRemoveUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityUpdateParamsRelationshipsChampionRemoveUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsChampionRemoveUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityUpdateParamsRelationshipsChampionRemoveUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsChampionReplaceUnion ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsChampionReplaceUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipsChampionReplaceUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityUpdateParamsRelationshipsChampionReplaceUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsChampionReplaceUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityUpdateParamsRelationshipsChampionReplaceUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsEvaluator ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsEvaluator struct {
// Entity ID(s) to add to the relationship.
Add OpportunityUpdateParamsRelationshipsEvaluatorAddUnion `json:"add,omitzero"`
// Entity ID(s) to remove from the relationship.
Remove OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion `json:"remove,omitzero"`
// Entity ID(s) to set as the entire relationship, replacing all existing
// associations.
Replace OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
Operation to modify the evaluator.
func (OpportunityUpdateParamsRelationshipsEvaluator) MarshalJSON ¶ added in v0.2.0
func (r OpportunityUpdateParamsRelationshipsEvaluator) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationshipsEvaluator) UnmarshalJSON ¶ added in v0.2.0
func (r *OpportunityUpdateParamsRelationshipsEvaluator) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsEvaluatorAddUnion ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsEvaluatorAddUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipsEvaluatorAddUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityUpdateParamsRelationshipsEvaluatorAddUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsEvaluatorAddUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityUpdateParamsRelationshipsEvaluatorAddUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsOwner ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsOwner struct {
// Entity ID(s) to add to the relationship.
Add OpportunityUpdateParamsRelationshipsOwnerAddUnion `json:"add,omitzero"`
// Entity ID(s) to remove from the relationship.
Remove OpportunityUpdateParamsRelationshipsOwnerRemoveUnion `json:"remove,omitzero"`
// Entity ID(s) to set as the entire relationship, replacing all existing
// associations.
Replace OpportunityUpdateParamsRelationshipsOwnerReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
Operation to modify the opportunity owner.
func (OpportunityUpdateParamsRelationshipsOwner) MarshalJSON ¶ added in v0.2.0
func (r OpportunityUpdateParamsRelationshipsOwner) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationshipsOwner) UnmarshalJSON ¶ added in v0.2.0
func (r *OpportunityUpdateParamsRelationshipsOwner) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsOwnerAddUnion ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsOwnerAddUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipsOwnerAddUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityUpdateParamsRelationshipsOwnerAddUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsOwnerAddUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityUpdateParamsRelationshipsOwnerAddUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsOwnerRemoveUnion ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsOwnerRemoveUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipsOwnerRemoveUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityUpdateParamsRelationshipsOwnerRemoveUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsOwnerRemoveUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityUpdateParamsRelationshipsOwnerRemoveUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsOwnerReplaceUnion ¶ added in v0.2.0
type OpportunityUpdateParamsRelationshipsOwnerReplaceUnion struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfStringArray []string `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (OpportunityUpdateParamsRelationshipsOwnerReplaceUnion) MarshalJSON ¶ added in v0.2.0
func (u OpportunityUpdateParamsRelationshipsOwnerReplaceUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsOwnerReplaceUnion) UnmarshalJSON ¶ added in v0.2.0
func (u *OpportunityUpdateParamsRelationshipsOwnerReplaceUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateResponse ¶
type OpportunityUpdateResponse struct {
// Unique identifier for the entity.
ID string `json:"id" api:"required"`
// ISO 8601 timestamp of when the entity was created.
CreatedAt string `json:"createdAt" api:"required"`
// Map of field names to their typed values. System fields are prefixed with `$`
// (e.g. `$name`, `$email`); custom attributes use their bare slug.
Fields map[string]OpportunityUpdateResponseField `json:"fields" api:"required"`
// URL to view the entity in the Lightfield web app, or null.
HTTPLink string `json:"httpLink" api:"required"`
// Map of relationship names to their associated entities. System relationships are
// prefixed with `$` (e.g. `$owner`, `$contact`).
Relationships map[string]OpportunityUpdateResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]OpportunityUpdateResponseUnion `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Fields respjson.Field
HTTPLink respjson.Field
Relationships respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityUpdateResponse) RawJSON ¶
func (r OpportunityUpdateResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityUpdateResponse) UnmarshalJSON ¶
func (r *OpportunityUpdateResponse) UnmarshalJSON(data []byte) error
type OpportunityUpdateResponseArrayItemUnion ¶
type OpportunityUpdateResponseArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityUpdateResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityUpdateResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityUpdateResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityUpdateResponseArrayItemMapItem]
func (OpportunityUpdateResponseArrayItemUnion) AsAnyArray ¶
func (u OpportunityUpdateResponseArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityUpdateResponseArrayItemUnion) AsAnyMap ¶
func (u OpportunityUpdateResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityUpdateResponseArrayItemUnion) AsBool ¶
func (u OpportunityUpdateResponseArrayItemUnion) AsBool() (v bool)
func (OpportunityUpdateResponseArrayItemUnion) AsFloat ¶
func (u OpportunityUpdateResponseArrayItemUnion) AsFloat() (v float64)
func (OpportunityUpdateResponseArrayItemUnion) AsString ¶
func (u OpportunityUpdateResponseArrayItemUnion) AsString() (v string)
func (OpportunityUpdateResponseArrayItemUnion) RawJSON ¶
func (u OpportunityUpdateResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityUpdateResponseArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityUpdateResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateResponseField ¶
type OpportunityUpdateResponseField struct {
// The field value, or null if unset.
Value OpportunityUpdateResponseFieldValueUnion `json:"value" api:"required"`
// The data type of the field.
//
// Any of "ADDRESS", "CHECKBOX", "CURRENCY", "DATETIME", "EMAIL", "FULL_NAME",
// "MARKDOWN", "MULTI_SELECT", "NUMBER", "SINGLE_SELECT", "SOCIAL_HANDLE",
// "TELEPHONE", "TEXT", "URL".
ValueType string `json:"valueType" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Value respjson.Field
ValueType respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityUpdateResponseField) RawJSON ¶
func (r OpportunityUpdateResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityUpdateResponseField) UnmarshalJSON ¶
func (r *OpportunityUpdateResponseField) UnmarshalJSON(data []byte) error
type OpportunityUpdateResponseFieldValueArrayItemUnion ¶
type OpportunityUpdateResponseFieldValueArrayItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityUpdateResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityUpdateResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityUpdateResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityUpdateResponseFieldValueArrayItemMapItem]
func (OpportunityUpdateResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u OpportunityUpdateResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityUpdateResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u OpportunityUpdateResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityUpdateResponseFieldValueArrayItemUnion) AsBool ¶
func (u OpportunityUpdateResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (OpportunityUpdateResponseFieldValueArrayItemUnion) AsFloat ¶
func (u OpportunityUpdateResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (OpportunityUpdateResponseFieldValueArrayItemUnion) AsString ¶
func (u OpportunityUpdateResponseFieldValueArrayItemUnion) AsString() (v string)
func (OpportunityUpdateResponseFieldValueArrayItemUnion) RawJSON ¶
func (u OpportunityUpdateResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateResponseFieldValueMapItemUnion ¶
type OpportunityUpdateResponseFieldValueMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityUpdateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityUpdateResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityUpdateResponseFieldValueMapItemMapItem]
func (OpportunityUpdateResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u OpportunityUpdateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (OpportunityUpdateResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u OpportunityUpdateResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityUpdateResponseFieldValueMapItemUnion) AsBool ¶
func (u OpportunityUpdateResponseFieldValueMapItemUnion) AsBool() (v bool)
func (OpportunityUpdateResponseFieldValueMapItemUnion) AsFloat ¶
func (u OpportunityUpdateResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (OpportunityUpdateResponseFieldValueMapItemUnion) AsString ¶
func (u OpportunityUpdateResponseFieldValueMapItemUnion) AsString() (v string)
func (OpportunityUpdateResponseFieldValueMapItemUnion) RawJSON ¶
func (u OpportunityUpdateResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityUpdateResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityUpdateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateResponseFieldValueUnion ¶
type OpportunityUpdateResponseFieldValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]OpportunityUpdateResponseFieldValueArrayItemUnion] instead of an object.
OfOpportunityUpdateResponseFieldValueArray []OpportunityUpdateResponseFieldValueArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityUpdateResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityUpdateResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityUpdateResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityUpdateResponseFieldValueArrayItemUnion], [map[string]OpportunityUpdateResponseFieldValueMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityUpdateResponseFieldValueArray OfAnyArray OfOpportunityUpdateResponseFieldValueMapItemMapItem]
func (OpportunityUpdateResponseFieldValueUnion) AsBool ¶
func (u OpportunityUpdateResponseFieldValueUnion) AsBool() (v bool)
func (OpportunityUpdateResponseFieldValueUnion) AsFloat ¶
func (u OpportunityUpdateResponseFieldValueUnion) AsFloat() (v float64)
func (OpportunityUpdateResponseFieldValueUnion) AsOpportunityUpdateResponseFieldValueArray ¶
func (u OpportunityUpdateResponseFieldValueUnion) AsOpportunityUpdateResponseFieldValueArray() (v []OpportunityUpdateResponseFieldValueArrayItemUnion)
func (OpportunityUpdateResponseFieldValueUnion) AsOpportunityUpdateResponseFieldValueMapMap ¶
func (u OpportunityUpdateResponseFieldValueUnion) AsOpportunityUpdateResponseFieldValueMapMap() (v map[string]OpportunityUpdateResponseFieldValueMapItemUnion)
func (OpportunityUpdateResponseFieldValueUnion) AsString ¶
func (u OpportunityUpdateResponseFieldValueUnion) AsString() (v string)
func (OpportunityUpdateResponseFieldValueUnion) RawJSON ¶
func (u OpportunityUpdateResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityUpdateResponseFieldValueUnion) UnmarshalJSON ¶
func (r *OpportunityUpdateResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateResponseMapItemUnion ¶
type OpportunityUpdateResponseMapItemUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityUpdateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityUpdateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityUpdateResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityUpdateResponseMapItemMapItem]
func (OpportunityUpdateResponseMapItemUnion) AsAnyArray ¶
func (u OpportunityUpdateResponseMapItemUnion) AsAnyArray() (v []any)
func (OpportunityUpdateResponseMapItemUnion) AsAnyMap ¶
func (u OpportunityUpdateResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityUpdateResponseMapItemUnion) AsBool ¶
func (u OpportunityUpdateResponseMapItemUnion) AsBool() (v bool)
func (OpportunityUpdateResponseMapItemUnion) AsFloat ¶
func (u OpportunityUpdateResponseMapItemUnion) AsFloat() (v float64)
func (OpportunityUpdateResponseMapItemUnion) AsString ¶
func (u OpportunityUpdateResponseMapItemUnion) AsString() (v string)
func (OpportunityUpdateResponseMapItemUnion) RawJSON ¶
func (u OpportunityUpdateResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityUpdateResponseMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityUpdateResponseMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateResponseRelationship ¶
type OpportunityUpdateResponseRelationship struct {
// Whether the relationship is `has_one` or `has_many`.
Cardinality string `json:"cardinality" api:"required"`
// The type of the related object (e.g. `account`, `contact`).
ObjectType string `json:"objectType" api:"required"`
// IDs of the related entities.
Values []string `json:"values" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Cardinality respjson.Field
ObjectType respjson.Field
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OpportunityUpdateResponseRelationship) RawJSON ¶
func (r OpportunityUpdateResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityUpdateResponseRelationship) UnmarshalJSON ¶
func (r *OpportunityUpdateResponseRelationship) UnmarshalJSON(data []byte) error
type OpportunityUpdateResponseUnion ¶
type OpportunityUpdateResponseUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
// This field will be present if the value is a
// [[]OpportunityUpdateResponseArrayItemUnion] instead of an object.
OfOpportunityUpdateResponseArray []OpportunityUpdateResponseArrayItemUnion `json:",inline"`
// This field will be present if the value is a [[]any] instead of an object.
OfAnyArray []any `json:",inline"`
// This field will be present if the value is a [any] instead of an object.
OfOpportunityUpdateResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityUpdateResponseArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityUpdateResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityUpdateResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityUpdateResponseArrayItemUnion], [map[string]OpportunityUpdateResponseMapItemUnion].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityUpdateResponseArray OfAnyArray OfOpportunityUpdateResponseMapItemMapItem]
func (OpportunityUpdateResponseUnion) AsBool ¶
func (u OpportunityUpdateResponseUnion) AsBool() (v bool)
func (OpportunityUpdateResponseUnion) AsFloat ¶
func (u OpportunityUpdateResponseUnion) AsFloat() (v float64)
func (OpportunityUpdateResponseUnion) AsOpportunityUpdateResponseArray ¶
func (u OpportunityUpdateResponseUnion) AsOpportunityUpdateResponseArray() (v []OpportunityUpdateResponseArrayItemUnion)
func (OpportunityUpdateResponseUnion) AsOpportunityUpdateResponseMapMap ¶
func (u OpportunityUpdateResponseUnion) AsOpportunityUpdateResponseMapMap() (v map[string]OpportunityUpdateResponseMapItemUnion)
func (OpportunityUpdateResponseUnion) AsString ¶
func (u OpportunityUpdateResponseUnion) AsString() (v string)
func (OpportunityUpdateResponseUnion) RawJSON ¶
func (u OpportunityUpdateResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityUpdateResponseUnion) UnmarshalJSON ¶
func (r *OpportunityUpdateResponseUnion) UnmarshalJSON(data []byte) error
type WorkflowRunService ¶ added in v0.4.1
type WorkflowRunService struct {
Options []option.RequestOption
}
Workflow runs represent executions of automated workflows.
WorkflowRunService contains methods and other services that help with interacting with the Lightfield API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewWorkflowRunService method instead.
func NewWorkflowRunService ¶ added in v0.4.1
func NewWorkflowRunService(opts ...option.RequestOption) (r WorkflowRunService)
NewWorkflowRunService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*WorkflowRunService) Status ¶ added in v0.4.1
func (r *WorkflowRunService) Status(ctx context.Context, runID string, opts ...option.RequestOption) (res *WorkflowRunStatusResponse, err error)
Returns the current status of a workflow run.
type WorkflowRunStatusResponse ¶ added in v0.4.1
type WorkflowRunStatusResponse struct {
// Current status of the workflow run (e.g. `running`, `completed`, `failed`).
Status string `json:"status" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Status respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (WorkflowRunStatusResponse) RawJSON ¶ added in v0.4.1
func (r WorkflowRunStatusResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*WorkflowRunStatusResponse) UnmarshalJSON ¶ added in v0.4.1
func (r *WorkflowRunStatusResponse) UnmarshalJSON(data []byte) error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
encoding/json
Package json implements encoding and decoding of JSON as defined in RFC 7159.
|
Package json implements encoding and decoding of JSON as defined in RFC 7159. |
|
encoding/json/shims
This package provides shims over Go 1.2{2,3} APIs which are missing from Go 1.22, and used by the Go 1.24 encoding/json package.
|
This package provides shims over Go 1.2{2,3} APIs which are missing from Go 1.22, and used by the Go 1.24 encoding/json package. |
|
packages
|
|
|
shared
|
|