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 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 AccountGetResponse
- type AccountGetResponseArrayItemUnion
- func (u AccountGetResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountGetResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountGetResponseArrayItemUnion) AsBool() (v bool)
- func (u AccountGetResponseArrayItemUnion) AsFloat() (v float64)
- func (u AccountGetResponseArrayItemUnion) AsString() (v string)
- func (u AccountGetResponseArrayItemUnion) RawJSON() string
- func (r *AccountGetResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountGetResponseField
- type AccountGetResponseFieldValueArrayItemUnion
- func (u AccountGetResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountGetResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountGetResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u AccountGetResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u AccountGetResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u AccountGetResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *AccountGetResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountGetResponseFieldValueMapItemUnion
- func (u AccountGetResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u AccountGetResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountGetResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u AccountGetResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u AccountGetResponseFieldValueMapItemUnion) AsString() (v string)
- func (u AccountGetResponseFieldValueMapItemUnion) RawJSON() string
- func (r *AccountGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountGetResponseFieldValueUnion
- func (u AccountGetResponseFieldValueUnion) AsAccountGetResponseFieldValueArray() (v []AccountGetResponseFieldValueArrayItemUnion)
- func (u AccountGetResponseFieldValueUnion) AsAccountGetResponseFieldValueMapMap() (v map[string]AccountGetResponseFieldValueMapItemUnion)
- func (u AccountGetResponseFieldValueUnion) AsBool() (v bool)
- func (u AccountGetResponseFieldValueUnion) AsFloat() (v float64)
- func (u AccountGetResponseFieldValueUnion) AsString() (v string)
- func (u AccountGetResponseFieldValueUnion) RawJSON() string
- func (r *AccountGetResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type AccountGetResponseMapItemUnion
- func (u AccountGetResponseMapItemUnion) AsAnyArray() (v []any)
- func (u AccountGetResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountGetResponseMapItemUnion) AsBool() (v bool)
- func (u AccountGetResponseMapItemUnion) AsFloat() (v float64)
- func (u AccountGetResponseMapItemUnion) AsString() (v string)
- func (u AccountGetResponseMapItemUnion) RawJSON() string
- func (r *AccountGetResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountGetResponseRelationship
- type AccountGetResponseUnion
- func (u AccountGetResponseUnion) AsAccountGetResponseArray() (v []AccountGetResponseArrayItemUnion)
- func (u AccountGetResponseUnion) AsAccountGetResponseMapMap() (v map[string]AccountGetResponseMapItemUnion)
- func (u AccountGetResponseUnion) AsBool() (v bool)
- func (u AccountGetResponseUnion) AsFloat() (v float64)
- func (u AccountGetResponseUnion) AsString() (v string)
- func (u AccountGetResponseUnion) RawJSON() string
- func (r *AccountGetResponseUnion) UnmarshalJSON(data []byte) error
- 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 AccountNewResponse
- type AccountNewResponseArrayItemUnion
- func (u AccountNewResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountNewResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountNewResponseArrayItemUnion) AsBool() (v bool)
- func (u AccountNewResponseArrayItemUnion) AsFloat() (v float64)
- func (u AccountNewResponseArrayItemUnion) AsString() (v string)
- func (u AccountNewResponseArrayItemUnion) RawJSON() string
- func (r *AccountNewResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountNewResponseField
- type AccountNewResponseFieldValueArrayItemUnion
- func (u AccountNewResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u AccountNewResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountNewResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u AccountNewResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u AccountNewResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u AccountNewResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *AccountNewResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type AccountNewResponseFieldValueMapItemUnion
- func (u AccountNewResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u AccountNewResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountNewResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u AccountNewResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u AccountNewResponseFieldValueMapItemUnion) AsString() (v string)
- func (u AccountNewResponseFieldValueMapItemUnion) RawJSON() string
- func (r *AccountNewResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountNewResponseFieldValueUnion
- func (u AccountNewResponseFieldValueUnion) AsAccountNewResponseFieldValueArray() (v []AccountNewResponseFieldValueArrayItemUnion)
- func (u AccountNewResponseFieldValueUnion) AsAccountNewResponseFieldValueMapMap() (v map[string]AccountNewResponseFieldValueMapItemUnion)
- func (u AccountNewResponseFieldValueUnion) AsBool() (v bool)
- func (u AccountNewResponseFieldValueUnion) AsFloat() (v float64)
- func (u AccountNewResponseFieldValueUnion) AsString() (v string)
- func (u AccountNewResponseFieldValueUnion) RawJSON() string
- func (r *AccountNewResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type AccountNewResponseMapItemUnion
- func (u AccountNewResponseMapItemUnion) AsAnyArray() (v []any)
- func (u AccountNewResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u AccountNewResponseMapItemUnion) AsBool() (v bool)
- func (u AccountNewResponseMapItemUnion) AsFloat() (v float64)
- func (u AccountNewResponseMapItemUnion) AsString() (v string)
- func (u AccountNewResponseMapItemUnion) RawJSON() string
- func (r *AccountNewResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type AccountNewResponseRelationship
- type AccountNewResponseUnion
- func (u AccountNewResponseUnion) AsAccountNewResponseArray() (v []AccountNewResponseArrayItemUnion)
- func (u AccountNewResponseUnion) AsAccountNewResponseMapMap() (v map[string]AccountNewResponseMapItemUnion)
- func (u AccountNewResponseUnion) AsBool() (v bool)
- func (u AccountNewResponseUnion) AsFloat() (v float64)
- func (u AccountNewResponseUnion) AsString() (v string)
- func (u AccountNewResponseUnion) RawJSON() string
- func (r *AccountNewResponseUnion) 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 *AccountGetResponse, 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 *AccountNewResponse, 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 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 ContactGetResponse
- type ContactGetResponseArrayItemUnion
- func (u ContactGetResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactGetResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactGetResponseArrayItemUnion) AsBool() (v bool)
- func (u ContactGetResponseArrayItemUnion) AsFloat() (v float64)
- func (u ContactGetResponseArrayItemUnion) AsString() (v string)
- func (u ContactGetResponseArrayItemUnion) RawJSON() string
- func (r *ContactGetResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactGetResponseField
- type ContactGetResponseFieldValueArrayItemUnion
- func (u ContactGetResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactGetResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactGetResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u ContactGetResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u ContactGetResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u ContactGetResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *ContactGetResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactGetResponseFieldValueMapItemUnion
- func (u ContactGetResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u ContactGetResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactGetResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u ContactGetResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u ContactGetResponseFieldValueMapItemUnion) AsString() (v string)
- func (u ContactGetResponseFieldValueMapItemUnion) RawJSON() string
- func (r *ContactGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactGetResponseFieldValueUnion
- func (u ContactGetResponseFieldValueUnion) AsBool() (v bool)
- func (u ContactGetResponseFieldValueUnion) AsContactGetResponseFieldValueArray() (v []ContactGetResponseFieldValueArrayItemUnion)
- func (u ContactGetResponseFieldValueUnion) AsContactGetResponseFieldValueMapMap() (v map[string]ContactGetResponseFieldValueMapItemUnion)
- func (u ContactGetResponseFieldValueUnion) AsFloat() (v float64)
- func (u ContactGetResponseFieldValueUnion) AsString() (v string)
- func (u ContactGetResponseFieldValueUnion) RawJSON() string
- func (r *ContactGetResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type ContactGetResponseMapItemUnion
- func (u ContactGetResponseMapItemUnion) AsAnyArray() (v []any)
- func (u ContactGetResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactGetResponseMapItemUnion) AsBool() (v bool)
- func (u ContactGetResponseMapItemUnion) AsFloat() (v float64)
- func (u ContactGetResponseMapItemUnion) AsString() (v string)
- func (u ContactGetResponseMapItemUnion) RawJSON() string
- func (r *ContactGetResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactGetResponseRelationship
- type ContactGetResponseUnion
- func (u ContactGetResponseUnion) AsBool() (v bool)
- func (u ContactGetResponseUnion) AsContactGetResponseArray() (v []ContactGetResponseArrayItemUnion)
- func (u ContactGetResponseUnion) AsContactGetResponseMapMap() (v map[string]ContactGetResponseMapItemUnion)
- func (u ContactGetResponseUnion) AsFloat() (v float64)
- func (u ContactGetResponseUnion) AsString() (v string)
- func (u ContactGetResponseUnion) RawJSON() string
- func (r *ContactGetResponseUnion) UnmarshalJSON(data []byte) error
- 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 ContactNewResponse
- type ContactNewResponseArrayItemUnion
- func (u ContactNewResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactNewResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactNewResponseArrayItemUnion) AsBool() (v bool)
- func (u ContactNewResponseArrayItemUnion) AsFloat() (v float64)
- func (u ContactNewResponseArrayItemUnion) AsString() (v string)
- func (u ContactNewResponseArrayItemUnion) RawJSON() string
- func (r *ContactNewResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactNewResponseField
- type ContactNewResponseFieldValueArrayItemUnion
- func (u ContactNewResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u ContactNewResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactNewResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u ContactNewResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u ContactNewResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u ContactNewResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *ContactNewResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type ContactNewResponseFieldValueMapItemUnion
- func (u ContactNewResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u ContactNewResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactNewResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u ContactNewResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u ContactNewResponseFieldValueMapItemUnion) AsString() (v string)
- func (u ContactNewResponseFieldValueMapItemUnion) RawJSON() string
- func (r *ContactNewResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactNewResponseFieldValueUnion
- func (u ContactNewResponseFieldValueUnion) AsBool() (v bool)
- func (u ContactNewResponseFieldValueUnion) AsContactNewResponseFieldValueArray() (v []ContactNewResponseFieldValueArrayItemUnion)
- func (u ContactNewResponseFieldValueUnion) AsContactNewResponseFieldValueMapMap() (v map[string]ContactNewResponseFieldValueMapItemUnion)
- func (u ContactNewResponseFieldValueUnion) AsFloat() (v float64)
- func (u ContactNewResponseFieldValueUnion) AsString() (v string)
- func (u ContactNewResponseFieldValueUnion) RawJSON() string
- func (r *ContactNewResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type ContactNewResponseMapItemUnion
- func (u ContactNewResponseMapItemUnion) AsAnyArray() (v []any)
- func (u ContactNewResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u ContactNewResponseMapItemUnion) AsBool() (v bool)
- func (u ContactNewResponseMapItemUnion) AsFloat() (v float64)
- func (u ContactNewResponseMapItemUnion) AsString() (v string)
- func (u ContactNewResponseMapItemUnion) RawJSON() string
- func (r *ContactNewResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type ContactNewResponseRelationship
- type ContactNewResponseUnion
- func (u ContactNewResponseUnion) AsBool() (v bool)
- func (u ContactNewResponseUnion) AsContactNewResponseArray() (v []ContactNewResponseArrayItemUnion)
- func (u ContactNewResponseUnion) AsContactNewResponseMapMap() (v map[string]ContactNewResponseMapItemUnion)
- func (u ContactNewResponseUnion) AsFloat() (v float64)
- func (u ContactNewResponseUnion) AsString() (v string)
- func (u ContactNewResponseUnion) RawJSON() string
- func (r *ContactNewResponseUnion) 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 *ContactGetResponse, 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 *ContactNewResponse, 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 MemberGetResponse
- type MemberGetResponseField
- type MemberGetResponseFieldValueArrayItemUnion
- func (u MemberGetResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u MemberGetResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u MemberGetResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u MemberGetResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u MemberGetResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u MemberGetResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *MemberGetResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type MemberGetResponseFieldValueMapItemUnion
- func (u MemberGetResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u MemberGetResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u MemberGetResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u MemberGetResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u MemberGetResponseFieldValueMapItemUnion) AsString() (v string)
- func (u MemberGetResponseFieldValueMapItemUnion) RawJSON() string
- func (r *MemberGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type MemberGetResponseFieldValueUnion
- func (u MemberGetResponseFieldValueUnion) AsBool() (v bool)
- func (u MemberGetResponseFieldValueUnion) AsFloat() (v float64)
- func (u MemberGetResponseFieldValueUnion) AsMemberGetResponseFieldValueArray() (v []MemberGetResponseFieldValueArrayItemUnion)
- func (u MemberGetResponseFieldValueUnion) AsMemberGetResponseFieldValueMapMap() (v map[string]MemberGetResponseFieldValueMapItemUnion)
- func (u MemberGetResponseFieldValueUnion) AsString() (v string)
- func (u MemberGetResponseFieldValueUnion) RawJSON() string
- func (r *MemberGetResponseFieldValueUnion) UnmarshalJSON(data []byte) 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 MemberService
- 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 OpportunityGetResponse
- type OpportunityGetResponseArrayItemUnion
- func (u OpportunityGetResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityGetResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityGetResponseArrayItemUnion) AsBool() (v bool)
- func (u OpportunityGetResponseArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityGetResponseArrayItemUnion) AsString() (v string)
- func (u OpportunityGetResponseArrayItemUnion) RawJSON() string
- func (r *OpportunityGetResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityGetResponseField
- type OpportunityGetResponseFieldValueArrayItemUnion
- func (u OpportunityGetResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityGetResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityGetResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u OpportunityGetResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityGetResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u OpportunityGetResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *OpportunityGetResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityGetResponseFieldValueMapItemUnion
- func (u OpportunityGetResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityGetResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityGetResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u OpportunityGetResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u OpportunityGetResponseFieldValueMapItemUnion) AsString() (v string)
- func (u OpportunityGetResponseFieldValueMapItemUnion) RawJSON() string
- func (r *OpportunityGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityGetResponseFieldValueUnion
- func (u OpportunityGetResponseFieldValueUnion) AsBool() (v bool)
- func (u OpportunityGetResponseFieldValueUnion) AsFloat() (v float64)
- func (u OpportunityGetResponseFieldValueUnion) AsOpportunityGetResponseFieldValueArray() (v []OpportunityGetResponseFieldValueArrayItemUnion)
- func (u OpportunityGetResponseFieldValueUnion) AsOpportunityGetResponseFieldValueMapMap() (v map[string]OpportunityGetResponseFieldValueMapItemUnion)
- func (u OpportunityGetResponseFieldValueUnion) AsString() (v string)
- func (u OpportunityGetResponseFieldValueUnion) RawJSON() string
- func (r *OpportunityGetResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type OpportunityGetResponseMapItemUnion
- func (u OpportunityGetResponseMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityGetResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityGetResponseMapItemUnion) AsBool() (v bool)
- func (u OpportunityGetResponseMapItemUnion) AsFloat() (v float64)
- func (u OpportunityGetResponseMapItemUnion) AsString() (v string)
- func (u OpportunityGetResponseMapItemUnion) RawJSON() string
- func (r *OpportunityGetResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityGetResponseRelationship
- type OpportunityGetResponseUnion
- func (u OpportunityGetResponseUnion) AsBool() (v bool)
- func (u OpportunityGetResponseUnion) AsFloat() (v float64)
- func (u OpportunityGetResponseUnion) AsOpportunityGetResponseArray() (v []OpportunityGetResponseArrayItemUnion)
- func (u OpportunityGetResponseUnion) AsOpportunityGetResponseMapMap() (v map[string]OpportunityGetResponseMapItemUnion)
- func (u OpportunityGetResponseUnion) AsString() (v string)
- func (u OpportunityGetResponseUnion) RawJSON() string
- func (r *OpportunityGetResponseUnion) UnmarshalJSON(data []byte) error
- 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 OpportunityNewResponse
- type OpportunityNewResponseArrayItemUnion
- func (u OpportunityNewResponseArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityNewResponseArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityNewResponseArrayItemUnion) AsBool() (v bool)
- func (u OpportunityNewResponseArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityNewResponseArrayItemUnion) AsString() (v string)
- func (u OpportunityNewResponseArrayItemUnion) RawJSON() string
- func (r *OpportunityNewResponseArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityNewResponseField
- type OpportunityNewResponseFieldValueArrayItemUnion
- func (u OpportunityNewResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
- func (u OpportunityNewResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityNewResponseFieldValueArrayItemUnion) AsBool() (v bool)
- func (u OpportunityNewResponseFieldValueArrayItemUnion) AsFloat() (v float64)
- func (u OpportunityNewResponseFieldValueArrayItemUnion) AsString() (v string)
- func (u OpportunityNewResponseFieldValueArrayItemUnion) RawJSON() string
- func (r *OpportunityNewResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityNewResponseFieldValueMapItemUnion
- func (u OpportunityNewResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityNewResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityNewResponseFieldValueMapItemUnion) AsBool() (v bool)
- func (u OpportunityNewResponseFieldValueMapItemUnion) AsFloat() (v float64)
- func (u OpportunityNewResponseFieldValueMapItemUnion) AsString() (v string)
- func (u OpportunityNewResponseFieldValueMapItemUnion) RawJSON() string
- func (r *OpportunityNewResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityNewResponseFieldValueUnion
- func (u OpportunityNewResponseFieldValueUnion) AsBool() (v bool)
- func (u OpportunityNewResponseFieldValueUnion) AsFloat() (v float64)
- func (u OpportunityNewResponseFieldValueUnion) AsOpportunityNewResponseFieldValueArray() (v []OpportunityNewResponseFieldValueArrayItemUnion)
- func (u OpportunityNewResponseFieldValueUnion) AsOpportunityNewResponseFieldValueMapMap() (v map[string]OpportunityNewResponseFieldValueMapItemUnion)
- func (u OpportunityNewResponseFieldValueUnion) AsString() (v string)
- func (u OpportunityNewResponseFieldValueUnion) RawJSON() string
- func (r *OpportunityNewResponseFieldValueUnion) UnmarshalJSON(data []byte) error
- type OpportunityNewResponseMapItemUnion
- func (u OpportunityNewResponseMapItemUnion) AsAnyArray() (v []any)
- func (u OpportunityNewResponseMapItemUnion) AsAnyMap() (v map[string]any)
- func (u OpportunityNewResponseMapItemUnion) AsBool() (v bool)
- func (u OpportunityNewResponseMapItemUnion) AsFloat() (v float64)
- func (u OpportunityNewResponseMapItemUnion) AsString() (v string)
- func (u OpportunityNewResponseMapItemUnion) RawJSON() string
- func (r *OpportunityNewResponseMapItemUnion) UnmarshalJSON(data []byte) error
- type OpportunityNewResponseRelationship
- type OpportunityNewResponseUnion
- func (u OpportunityNewResponseUnion) AsBool() (v bool)
- func (u OpportunityNewResponseUnion) AsFloat() (v float64)
- func (u OpportunityNewResponseUnion) AsOpportunityNewResponseArray() (v []OpportunityNewResponseArrayItemUnion)
- func (u OpportunityNewResponseUnion) AsOpportunityNewResponseMapMap() (v map[string]OpportunityNewResponseMapItemUnion)
- func (u OpportunityNewResponseUnion) AsString() (v string)
- func (u OpportunityNewResponseUnion) RawJSON() string
- func (r *OpportunityNewResponseUnion) 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 *OpportunityGetResponse, 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 *OpportunityNewResponse, 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 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 AccountGetResponse ¶
type AccountGetResponse 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]AccountGetResponseField `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]AccountGetResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]AccountGetResponseUnion `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 (AccountGetResponse) RawJSON ¶
func (r AccountGetResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountGetResponse) UnmarshalJSON ¶
func (r *AccountGetResponse) UnmarshalJSON(data []byte) error
type AccountGetResponseArrayItemUnion ¶
type AccountGetResponseArrayItemUnion 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.
OfAccountGetResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountGetResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountGetResponseArrayItemUnion 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 OfAccountGetResponseArrayItemMapItem]
func (AccountGetResponseArrayItemUnion) AsAnyArray ¶
func (u AccountGetResponseArrayItemUnion) AsAnyArray() (v []any)
func (AccountGetResponseArrayItemUnion) AsAnyMap ¶
func (u AccountGetResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountGetResponseArrayItemUnion) AsBool ¶
func (u AccountGetResponseArrayItemUnion) AsBool() (v bool)
func (AccountGetResponseArrayItemUnion) AsFloat ¶
func (u AccountGetResponseArrayItemUnion) AsFloat() (v float64)
func (AccountGetResponseArrayItemUnion) AsString ¶
func (u AccountGetResponseArrayItemUnion) AsString() (v string)
func (AccountGetResponseArrayItemUnion) RawJSON ¶
func (u AccountGetResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountGetResponseArrayItemUnion) UnmarshalJSON ¶
func (r *AccountGetResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountGetResponseField ¶
type AccountGetResponseField struct {
// The field value, or null if unset.
Value AccountGetResponseFieldValueUnion `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 (AccountGetResponseField) RawJSON ¶
func (r AccountGetResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountGetResponseField) UnmarshalJSON ¶
func (r *AccountGetResponseField) UnmarshalJSON(data []byte) error
type AccountGetResponseFieldValueArrayItemUnion ¶
type AccountGetResponseFieldValueArrayItemUnion 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.
OfAccountGetResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountGetResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountGetResponseFieldValueArrayItemUnion 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 OfAccountGetResponseFieldValueArrayItemMapItem]
func (AccountGetResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u AccountGetResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (AccountGetResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u AccountGetResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountGetResponseFieldValueArrayItemUnion) AsBool ¶
func (u AccountGetResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (AccountGetResponseFieldValueArrayItemUnion) AsFloat ¶
func (u AccountGetResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (AccountGetResponseFieldValueArrayItemUnion) AsString ¶
func (u AccountGetResponseFieldValueArrayItemUnion) AsString() (v string)
func (AccountGetResponseFieldValueArrayItemUnion) RawJSON ¶
func (u AccountGetResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountGetResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *AccountGetResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountGetResponseFieldValueMapItemUnion ¶
type AccountGetResponseFieldValueMapItemUnion 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.
OfAccountGetResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountGetResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountGetResponseFieldValueMapItemUnion 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 OfAccountGetResponseFieldValueMapItemMapItem]
func (AccountGetResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u AccountGetResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (AccountGetResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u AccountGetResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountGetResponseFieldValueMapItemUnion) AsBool ¶
func (u AccountGetResponseFieldValueMapItemUnion) AsBool() (v bool)
func (AccountGetResponseFieldValueMapItemUnion) AsFloat ¶
func (u AccountGetResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (AccountGetResponseFieldValueMapItemUnion) AsString ¶
func (u AccountGetResponseFieldValueMapItemUnion) AsString() (v string)
func (AccountGetResponseFieldValueMapItemUnion) RawJSON ¶
func (u AccountGetResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountGetResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *AccountGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type AccountGetResponseFieldValueUnion ¶
type AccountGetResponseFieldValueUnion 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
// [[]AccountGetResponseFieldValueArrayItemUnion] instead of an object.
OfAccountGetResponseFieldValueArray []AccountGetResponseFieldValueArrayItemUnion `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.
OfAccountGetResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountGetResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfAccountGetResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountGetResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountGetResponseFieldValueArrayItemUnion], [map[string]AccountGetResponseFieldValueMapItemUnion].
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 OfAccountGetResponseFieldValueArray OfAnyArray OfAccountGetResponseFieldValueMapItemMapItem]
func (AccountGetResponseFieldValueUnion) AsAccountGetResponseFieldValueArray ¶
func (u AccountGetResponseFieldValueUnion) AsAccountGetResponseFieldValueArray() (v []AccountGetResponseFieldValueArrayItemUnion)
func (AccountGetResponseFieldValueUnion) AsAccountGetResponseFieldValueMapMap ¶
func (u AccountGetResponseFieldValueUnion) AsAccountGetResponseFieldValueMapMap() (v map[string]AccountGetResponseFieldValueMapItemUnion)
func (AccountGetResponseFieldValueUnion) AsBool ¶
func (u AccountGetResponseFieldValueUnion) AsBool() (v bool)
func (AccountGetResponseFieldValueUnion) AsFloat ¶
func (u AccountGetResponseFieldValueUnion) AsFloat() (v float64)
func (AccountGetResponseFieldValueUnion) AsString ¶
func (u AccountGetResponseFieldValueUnion) AsString() (v string)
func (AccountGetResponseFieldValueUnion) RawJSON ¶
func (u AccountGetResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountGetResponseFieldValueUnion) UnmarshalJSON ¶
func (r *AccountGetResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type AccountGetResponseMapItemUnion ¶
type AccountGetResponseMapItemUnion 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.
OfAccountGetResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountGetResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountGetResponseMapItemUnion 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 OfAccountGetResponseMapItemMapItem]
func (AccountGetResponseMapItemUnion) AsAnyArray ¶
func (u AccountGetResponseMapItemUnion) AsAnyArray() (v []any)
func (AccountGetResponseMapItemUnion) AsAnyMap ¶
func (u AccountGetResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountGetResponseMapItemUnion) AsBool ¶
func (u AccountGetResponseMapItemUnion) AsBool() (v bool)
func (AccountGetResponseMapItemUnion) AsFloat ¶
func (u AccountGetResponseMapItemUnion) AsFloat() (v float64)
func (AccountGetResponseMapItemUnion) AsString ¶
func (u AccountGetResponseMapItemUnion) AsString() (v string)
func (AccountGetResponseMapItemUnion) RawJSON ¶
func (u AccountGetResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountGetResponseMapItemUnion) UnmarshalJSON ¶
func (r *AccountGetResponseMapItemUnion) UnmarshalJSON(data []byte) error
type AccountGetResponseRelationship ¶
type AccountGetResponseRelationship 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 (AccountGetResponseRelationship) RawJSON ¶
func (r AccountGetResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountGetResponseRelationship) UnmarshalJSON ¶
func (r *AccountGetResponseRelationship) UnmarshalJSON(data []byte) error
type AccountGetResponseUnion ¶
type AccountGetResponseUnion 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
// [[]AccountGetResponseArrayItemUnion] instead of an object.
OfAccountGetResponseArray []AccountGetResponseArrayItemUnion `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.
OfAccountGetResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountGetResponseArray respjson.Field
OfAnyArray respjson.Field
OfAccountGetResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountGetResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountGetResponseArrayItemUnion], [map[string]AccountGetResponseMapItemUnion].
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 OfAccountGetResponseArray OfAnyArray OfAccountGetResponseMapItemMapItem]
func (AccountGetResponseUnion) AsAccountGetResponseArray ¶
func (u AccountGetResponseUnion) AsAccountGetResponseArray() (v []AccountGetResponseArrayItemUnion)
func (AccountGetResponseUnion) AsAccountGetResponseMapMap ¶
func (u AccountGetResponseUnion) AsAccountGetResponseMapMap() (v map[string]AccountGetResponseMapItemUnion)
func (AccountGetResponseUnion) AsBool ¶
func (u AccountGetResponseUnion) AsBool() (v bool)
func (AccountGetResponseUnion) AsFloat ¶
func (u AccountGetResponseUnion) AsFloat() (v float64)
func (AccountGetResponseUnion) AsString ¶
func (u AccountGetResponseUnion) AsString() (v string)
func (AccountGetResponseUnion) RawJSON ¶
func (u AccountGetResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountGetResponseUnion) UnmarshalJSON ¶
func (r *AccountGetResponseUnion) 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 AccountNewResponse ¶
type AccountNewResponse 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]AccountNewResponseField `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]AccountNewResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]AccountNewResponseUnion `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 (AccountNewResponse) RawJSON ¶
func (r AccountNewResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountNewResponse) UnmarshalJSON ¶
func (r *AccountNewResponse) UnmarshalJSON(data []byte) error
type AccountNewResponseArrayItemUnion ¶
type AccountNewResponseArrayItemUnion 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.
OfAccountNewResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountNewResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountNewResponseArrayItemUnion 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 OfAccountNewResponseArrayItemMapItem]
func (AccountNewResponseArrayItemUnion) AsAnyArray ¶
func (u AccountNewResponseArrayItemUnion) AsAnyArray() (v []any)
func (AccountNewResponseArrayItemUnion) AsAnyMap ¶
func (u AccountNewResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountNewResponseArrayItemUnion) AsBool ¶
func (u AccountNewResponseArrayItemUnion) AsBool() (v bool)
func (AccountNewResponseArrayItemUnion) AsFloat ¶
func (u AccountNewResponseArrayItemUnion) AsFloat() (v float64)
func (AccountNewResponseArrayItemUnion) AsString ¶
func (u AccountNewResponseArrayItemUnion) AsString() (v string)
func (AccountNewResponseArrayItemUnion) RawJSON ¶
func (u AccountNewResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountNewResponseArrayItemUnion) UnmarshalJSON ¶
func (r *AccountNewResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountNewResponseField ¶
type AccountNewResponseField struct {
// The field value, or null if unset.
Value AccountNewResponseFieldValueUnion `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 (AccountNewResponseField) RawJSON ¶
func (r AccountNewResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountNewResponseField) UnmarshalJSON ¶
func (r *AccountNewResponseField) UnmarshalJSON(data []byte) error
type AccountNewResponseFieldValueArrayItemUnion ¶
type AccountNewResponseFieldValueArrayItemUnion 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.
OfAccountNewResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountNewResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountNewResponseFieldValueArrayItemUnion 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 OfAccountNewResponseFieldValueArrayItemMapItem]
func (AccountNewResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u AccountNewResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (AccountNewResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u AccountNewResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (AccountNewResponseFieldValueArrayItemUnion) AsBool ¶
func (u AccountNewResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (AccountNewResponseFieldValueArrayItemUnion) AsFloat ¶
func (u AccountNewResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (AccountNewResponseFieldValueArrayItemUnion) AsString ¶
func (u AccountNewResponseFieldValueArrayItemUnion) AsString() (v string)
func (AccountNewResponseFieldValueArrayItemUnion) RawJSON ¶
func (u AccountNewResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountNewResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *AccountNewResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type AccountNewResponseFieldValueMapItemUnion ¶
type AccountNewResponseFieldValueMapItemUnion 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.
OfAccountNewResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountNewResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountNewResponseFieldValueMapItemUnion 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 OfAccountNewResponseFieldValueMapItemMapItem]
func (AccountNewResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u AccountNewResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (AccountNewResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u AccountNewResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountNewResponseFieldValueMapItemUnion) AsBool ¶
func (u AccountNewResponseFieldValueMapItemUnion) AsBool() (v bool)
func (AccountNewResponseFieldValueMapItemUnion) AsFloat ¶
func (u AccountNewResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (AccountNewResponseFieldValueMapItemUnion) AsString ¶
func (u AccountNewResponseFieldValueMapItemUnion) AsString() (v string)
func (AccountNewResponseFieldValueMapItemUnion) RawJSON ¶
func (u AccountNewResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountNewResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *AccountNewResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type AccountNewResponseFieldValueUnion ¶
type AccountNewResponseFieldValueUnion 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
// [[]AccountNewResponseFieldValueArrayItemUnion] instead of an object.
OfAccountNewResponseFieldValueArray []AccountNewResponseFieldValueArrayItemUnion `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.
OfAccountNewResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountNewResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfAccountNewResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountNewResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountNewResponseFieldValueArrayItemUnion], [map[string]AccountNewResponseFieldValueMapItemUnion].
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 OfAccountNewResponseFieldValueArray OfAnyArray OfAccountNewResponseFieldValueMapItemMapItem]
func (AccountNewResponseFieldValueUnion) AsAccountNewResponseFieldValueArray ¶
func (u AccountNewResponseFieldValueUnion) AsAccountNewResponseFieldValueArray() (v []AccountNewResponseFieldValueArrayItemUnion)
func (AccountNewResponseFieldValueUnion) AsAccountNewResponseFieldValueMapMap ¶
func (u AccountNewResponseFieldValueUnion) AsAccountNewResponseFieldValueMapMap() (v map[string]AccountNewResponseFieldValueMapItemUnion)
func (AccountNewResponseFieldValueUnion) AsBool ¶
func (u AccountNewResponseFieldValueUnion) AsBool() (v bool)
func (AccountNewResponseFieldValueUnion) AsFloat ¶
func (u AccountNewResponseFieldValueUnion) AsFloat() (v float64)
func (AccountNewResponseFieldValueUnion) AsString ¶
func (u AccountNewResponseFieldValueUnion) AsString() (v string)
func (AccountNewResponseFieldValueUnion) RawJSON ¶
func (u AccountNewResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountNewResponseFieldValueUnion) UnmarshalJSON ¶
func (r *AccountNewResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type AccountNewResponseMapItemUnion ¶
type AccountNewResponseMapItemUnion 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.
OfAccountNewResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfAccountNewResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountNewResponseMapItemUnion 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 OfAccountNewResponseMapItemMapItem]
func (AccountNewResponseMapItemUnion) AsAnyArray ¶
func (u AccountNewResponseMapItemUnion) AsAnyArray() (v []any)
func (AccountNewResponseMapItemUnion) AsAnyMap ¶
func (u AccountNewResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (AccountNewResponseMapItemUnion) AsBool ¶
func (u AccountNewResponseMapItemUnion) AsBool() (v bool)
func (AccountNewResponseMapItemUnion) AsFloat ¶
func (u AccountNewResponseMapItemUnion) AsFloat() (v float64)
func (AccountNewResponseMapItemUnion) AsString ¶
func (u AccountNewResponseMapItemUnion) AsString() (v string)
func (AccountNewResponseMapItemUnion) RawJSON ¶
func (u AccountNewResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountNewResponseMapItemUnion) UnmarshalJSON ¶
func (r *AccountNewResponseMapItemUnion) UnmarshalJSON(data []byte) error
type AccountNewResponseRelationship ¶
type AccountNewResponseRelationship 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 (AccountNewResponseRelationship) RawJSON ¶
func (r AccountNewResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountNewResponseRelationship) UnmarshalJSON ¶
func (r *AccountNewResponseRelationship) UnmarshalJSON(data []byte) error
type AccountNewResponseUnion ¶
type AccountNewResponseUnion 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
// [[]AccountNewResponseArrayItemUnion] instead of an object.
OfAccountNewResponseArray []AccountNewResponseArrayItemUnion `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.
OfAccountNewResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAccountNewResponseArray respjson.Field
OfAnyArray respjson.Field
OfAccountNewResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
AccountNewResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountNewResponseArrayItemUnion], [map[string]AccountNewResponseMapItemUnion].
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 OfAccountNewResponseArray OfAnyArray OfAccountNewResponseMapItemMapItem]
func (AccountNewResponseUnion) AsAccountNewResponseArray ¶
func (u AccountNewResponseUnion) AsAccountNewResponseArray() (v []AccountNewResponseArrayItemUnion)
func (AccountNewResponseUnion) AsAccountNewResponseMapMap ¶
func (u AccountNewResponseUnion) AsAccountNewResponseMapMap() (v map[string]AccountNewResponseMapItemUnion)
func (AccountNewResponseUnion) AsBool ¶
func (u AccountNewResponseUnion) AsBool() (v bool)
func (AccountNewResponseUnion) AsFloat ¶
func (u AccountNewResponseUnion) AsFloat() (v float64)
func (AccountNewResponseUnion) AsString ¶
func (u AccountNewResponseUnion) AsString() (v string)
func (AccountNewResponseUnion) RawJSON ¶
func (u AccountNewResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*AccountNewResponseUnion) UnmarshalJSON ¶
func (r *AccountNewResponseUnion) 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 *AccountGetResponse, 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 *AccountNewResponse, 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 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 ContactGetResponse ¶
type ContactGetResponse 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]ContactGetResponseField `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]ContactGetResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]ContactGetResponseUnion `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 (ContactGetResponse) RawJSON ¶
func (r ContactGetResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactGetResponse) UnmarshalJSON ¶
func (r *ContactGetResponse) UnmarshalJSON(data []byte) error
type ContactGetResponseArrayItemUnion ¶
type ContactGetResponseArrayItemUnion 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.
OfContactGetResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactGetResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactGetResponseArrayItemUnion 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 OfContactGetResponseArrayItemMapItem]
func (ContactGetResponseArrayItemUnion) AsAnyArray ¶
func (u ContactGetResponseArrayItemUnion) AsAnyArray() (v []any)
func (ContactGetResponseArrayItemUnion) AsAnyMap ¶
func (u ContactGetResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactGetResponseArrayItemUnion) AsBool ¶
func (u ContactGetResponseArrayItemUnion) AsBool() (v bool)
func (ContactGetResponseArrayItemUnion) AsFloat ¶
func (u ContactGetResponseArrayItemUnion) AsFloat() (v float64)
func (ContactGetResponseArrayItemUnion) AsString ¶
func (u ContactGetResponseArrayItemUnion) AsString() (v string)
func (ContactGetResponseArrayItemUnion) RawJSON ¶
func (u ContactGetResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactGetResponseArrayItemUnion) UnmarshalJSON ¶
func (r *ContactGetResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactGetResponseField ¶
type ContactGetResponseField struct {
// The field value, or null if unset.
Value ContactGetResponseFieldValueUnion `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 (ContactGetResponseField) RawJSON ¶
func (r ContactGetResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactGetResponseField) UnmarshalJSON ¶
func (r *ContactGetResponseField) UnmarshalJSON(data []byte) error
type ContactGetResponseFieldValueArrayItemUnion ¶
type ContactGetResponseFieldValueArrayItemUnion 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.
OfContactGetResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactGetResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactGetResponseFieldValueArrayItemUnion 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 OfContactGetResponseFieldValueArrayItemMapItem]
func (ContactGetResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u ContactGetResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (ContactGetResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u ContactGetResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactGetResponseFieldValueArrayItemUnion) AsBool ¶
func (u ContactGetResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (ContactGetResponseFieldValueArrayItemUnion) AsFloat ¶
func (u ContactGetResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (ContactGetResponseFieldValueArrayItemUnion) AsString ¶
func (u ContactGetResponseFieldValueArrayItemUnion) AsString() (v string)
func (ContactGetResponseFieldValueArrayItemUnion) RawJSON ¶
func (u ContactGetResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactGetResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *ContactGetResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactGetResponseFieldValueMapItemUnion ¶
type ContactGetResponseFieldValueMapItemUnion 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.
OfContactGetResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactGetResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactGetResponseFieldValueMapItemUnion 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 OfContactGetResponseFieldValueMapItemMapItem]
func (ContactGetResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u ContactGetResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (ContactGetResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u ContactGetResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactGetResponseFieldValueMapItemUnion) AsBool ¶
func (u ContactGetResponseFieldValueMapItemUnion) AsBool() (v bool)
func (ContactGetResponseFieldValueMapItemUnion) AsFloat ¶
func (u ContactGetResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (ContactGetResponseFieldValueMapItemUnion) AsString ¶
func (u ContactGetResponseFieldValueMapItemUnion) AsString() (v string)
func (ContactGetResponseFieldValueMapItemUnion) RawJSON ¶
func (u ContactGetResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactGetResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *ContactGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type ContactGetResponseFieldValueUnion ¶
type ContactGetResponseFieldValueUnion 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
// [[]ContactGetResponseFieldValueArrayItemUnion] instead of an object.
OfContactGetResponseFieldValueArray []ContactGetResponseFieldValueArrayItemUnion `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.
OfContactGetResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactGetResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfContactGetResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactGetResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactGetResponseFieldValueArrayItemUnion], [map[string]ContactGetResponseFieldValueMapItemUnion].
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 OfContactGetResponseFieldValueArray OfAnyArray OfContactGetResponseFieldValueMapItemMapItem]
func (ContactGetResponseFieldValueUnion) AsBool ¶
func (u ContactGetResponseFieldValueUnion) AsBool() (v bool)
func (ContactGetResponseFieldValueUnion) AsContactGetResponseFieldValueArray ¶
func (u ContactGetResponseFieldValueUnion) AsContactGetResponseFieldValueArray() (v []ContactGetResponseFieldValueArrayItemUnion)
func (ContactGetResponseFieldValueUnion) AsContactGetResponseFieldValueMapMap ¶
func (u ContactGetResponseFieldValueUnion) AsContactGetResponseFieldValueMapMap() (v map[string]ContactGetResponseFieldValueMapItemUnion)
func (ContactGetResponseFieldValueUnion) AsFloat ¶
func (u ContactGetResponseFieldValueUnion) AsFloat() (v float64)
func (ContactGetResponseFieldValueUnion) AsString ¶
func (u ContactGetResponseFieldValueUnion) AsString() (v string)
func (ContactGetResponseFieldValueUnion) RawJSON ¶
func (u ContactGetResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactGetResponseFieldValueUnion) UnmarshalJSON ¶
func (r *ContactGetResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type ContactGetResponseMapItemUnion ¶
type ContactGetResponseMapItemUnion 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.
OfContactGetResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactGetResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactGetResponseMapItemUnion 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 OfContactGetResponseMapItemMapItem]
func (ContactGetResponseMapItemUnion) AsAnyArray ¶
func (u ContactGetResponseMapItemUnion) AsAnyArray() (v []any)
func (ContactGetResponseMapItemUnion) AsAnyMap ¶
func (u ContactGetResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactGetResponseMapItemUnion) AsBool ¶
func (u ContactGetResponseMapItemUnion) AsBool() (v bool)
func (ContactGetResponseMapItemUnion) AsFloat ¶
func (u ContactGetResponseMapItemUnion) AsFloat() (v float64)
func (ContactGetResponseMapItemUnion) AsString ¶
func (u ContactGetResponseMapItemUnion) AsString() (v string)
func (ContactGetResponseMapItemUnion) RawJSON ¶
func (u ContactGetResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactGetResponseMapItemUnion) UnmarshalJSON ¶
func (r *ContactGetResponseMapItemUnion) UnmarshalJSON(data []byte) error
type ContactGetResponseRelationship ¶
type ContactGetResponseRelationship 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 (ContactGetResponseRelationship) RawJSON ¶
func (r ContactGetResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactGetResponseRelationship) UnmarshalJSON ¶
func (r *ContactGetResponseRelationship) UnmarshalJSON(data []byte) error
type ContactGetResponseUnion ¶
type ContactGetResponseUnion 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
// [[]ContactGetResponseArrayItemUnion] instead of an object.
OfContactGetResponseArray []ContactGetResponseArrayItemUnion `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.
OfContactGetResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactGetResponseArray respjson.Field
OfAnyArray respjson.Field
OfContactGetResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactGetResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactGetResponseArrayItemUnion], [map[string]ContactGetResponseMapItemUnion].
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 OfContactGetResponseArray OfAnyArray OfContactGetResponseMapItemMapItem]
func (ContactGetResponseUnion) AsBool ¶
func (u ContactGetResponseUnion) AsBool() (v bool)
func (ContactGetResponseUnion) AsContactGetResponseArray ¶
func (u ContactGetResponseUnion) AsContactGetResponseArray() (v []ContactGetResponseArrayItemUnion)
func (ContactGetResponseUnion) AsContactGetResponseMapMap ¶
func (u ContactGetResponseUnion) AsContactGetResponseMapMap() (v map[string]ContactGetResponseMapItemUnion)
func (ContactGetResponseUnion) AsFloat ¶
func (u ContactGetResponseUnion) AsFloat() (v float64)
func (ContactGetResponseUnion) AsString ¶
func (u ContactGetResponseUnion) AsString() (v string)
func (ContactGetResponseUnion) RawJSON ¶
func (u ContactGetResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactGetResponseUnion) UnmarshalJSON ¶
func (r *ContactGetResponseUnion) 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 ContactNewResponse ¶
type ContactNewResponse 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]ContactNewResponseField `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]ContactNewResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]ContactNewResponseUnion `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 (ContactNewResponse) RawJSON ¶
func (r ContactNewResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactNewResponse) UnmarshalJSON ¶
func (r *ContactNewResponse) UnmarshalJSON(data []byte) error
type ContactNewResponseArrayItemUnion ¶
type ContactNewResponseArrayItemUnion 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.
OfContactNewResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactNewResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactNewResponseArrayItemUnion 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 OfContactNewResponseArrayItemMapItem]
func (ContactNewResponseArrayItemUnion) AsAnyArray ¶
func (u ContactNewResponseArrayItemUnion) AsAnyArray() (v []any)
func (ContactNewResponseArrayItemUnion) AsAnyMap ¶
func (u ContactNewResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactNewResponseArrayItemUnion) AsBool ¶
func (u ContactNewResponseArrayItemUnion) AsBool() (v bool)
func (ContactNewResponseArrayItemUnion) AsFloat ¶
func (u ContactNewResponseArrayItemUnion) AsFloat() (v float64)
func (ContactNewResponseArrayItemUnion) AsString ¶
func (u ContactNewResponseArrayItemUnion) AsString() (v string)
func (ContactNewResponseArrayItemUnion) RawJSON ¶
func (u ContactNewResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactNewResponseArrayItemUnion) UnmarshalJSON ¶
func (r *ContactNewResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactNewResponseField ¶
type ContactNewResponseField struct {
// The field value, or null if unset.
Value ContactNewResponseFieldValueUnion `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 (ContactNewResponseField) RawJSON ¶
func (r ContactNewResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactNewResponseField) UnmarshalJSON ¶
func (r *ContactNewResponseField) UnmarshalJSON(data []byte) error
type ContactNewResponseFieldValueArrayItemUnion ¶
type ContactNewResponseFieldValueArrayItemUnion 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.
OfContactNewResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactNewResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactNewResponseFieldValueArrayItemUnion 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 OfContactNewResponseFieldValueArrayItemMapItem]
func (ContactNewResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u ContactNewResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (ContactNewResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u ContactNewResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (ContactNewResponseFieldValueArrayItemUnion) AsBool ¶
func (u ContactNewResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (ContactNewResponseFieldValueArrayItemUnion) AsFloat ¶
func (u ContactNewResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (ContactNewResponseFieldValueArrayItemUnion) AsString ¶
func (u ContactNewResponseFieldValueArrayItemUnion) AsString() (v string)
func (ContactNewResponseFieldValueArrayItemUnion) RawJSON ¶
func (u ContactNewResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactNewResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *ContactNewResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type ContactNewResponseFieldValueMapItemUnion ¶
type ContactNewResponseFieldValueMapItemUnion 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.
OfContactNewResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactNewResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactNewResponseFieldValueMapItemUnion 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 OfContactNewResponseFieldValueMapItemMapItem]
func (ContactNewResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u ContactNewResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (ContactNewResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u ContactNewResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactNewResponseFieldValueMapItemUnion) AsBool ¶
func (u ContactNewResponseFieldValueMapItemUnion) AsBool() (v bool)
func (ContactNewResponseFieldValueMapItemUnion) AsFloat ¶
func (u ContactNewResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (ContactNewResponseFieldValueMapItemUnion) AsString ¶
func (u ContactNewResponseFieldValueMapItemUnion) AsString() (v string)
func (ContactNewResponseFieldValueMapItemUnion) RawJSON ¶
func (u ContactNewResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactNewResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *ContactNewResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type ContactNewResponseFieldValueUnion ¶
type ContactNewResponseFieldValueUnion 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
// [[]ContactNewResponseFieldValueArrayItemUnion] instead of an object.
OfContactNewResponseFieldValueArray []ContactNewResponseFieldValueArrayItemUnion `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.
OfContactNewResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactNewResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfContactNewResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactNewResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactNewResponseFieldValueArrayItemUnion], [map[string]ContactNewResponseFieldValueMapItemUnion].
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 OfContactNewResponseFieldValueArray OfAnyArray OfContactNewResponseFieldValueMapItemMapItem]
func (ContactNewResponseFieldValueUnion) AsBool ¶
func (u ContactNewResponseFieldValueUnion) AsBool() (v bool)
func (ContactNewResponseFieldValueUnion) AsContactNewResponseFieldValueArray ¶
func (u ContactNewResponseFieldValueUnion) AsContactNewResponseFieldValueArray() (v []ContactNewResponseFieldValueArrayItemUnion)
func (ContactNewResponseFieldValueUnion) AsContactNewResponseFieldValueMapMap ¶
func (u ContactNewResponseFieldValueUnion) AsContactNewResponseFieldValueMapMap() (v map[string]ContactNewResponseFieldValueMapItemUnion)
func (ContactNewResponseFieldValueUnion) AsFloat ¶
func (u ContactNewResponseFieldValueUnion) AsFloat() (v float64)
func (ContactNewResponseFieldValueUnion) AsString ¶
func (u ContactNewResponseFieldValueUnion) AsString() (v string)
func (ContactNewResponseFieldValueUnion) RawJSON ¶
func (u ContactNewResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactNewResponseFieldValueUnion) UnmarshalJSON ¶
func (r *ContactNewResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type ContactNewResponseMapItemUnion ¶
type ContactNewResponseMapItemUnion 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.
OfContactNewResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfContactNewResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactNewResponseMapItemUnion 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 OfContactNewResponseMapItemMapItem]
func (ContactNewResponseMapItemUnion) AsAnyArray ¶
func (u ContactNewResponseMapItemUnion) AsAnyArray() (v []any)
func (ContactNewResponseMapItemUnion) AsAnyMap ¶
func (u ContactNewResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (ContactNewResponseMapItemUnion) AsBool ¶
func (u ContactNewResponseMapItemUnion) AsBool() (v bool)
func (ContactNewResponseMapItemUnion) AsFloat ¶
func (u ContactNewResponseMapItemUnion) AsFloat() (v float64)
func (ContactNewResponseMapItemUnion) AsString ¶
func (u ContactNewResponseMapItemUnion) AsString() (v string)
func (ContactNewResponseMapItemUnion) RawJSON ¶
func (u ContactNewResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactNewResponseMapItemUnion) UnmarshalJSON ¶
func (r *ContactNewResponseMapItemUnion) UnmarshalJSON(data []byte) error
type ContactNewResponseRelationship ¶
type ContactNewResponseRelationship 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 (ContactNewResponseRelationship) RawJSON ¶
func (r ContactNewResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactNewResponseRelationship) UnmarshalJSON ¶
func (r *ContactNewResponseRelationship) UnmarshalJSON(data []byte) error
type ContactNewResponseUnion ¶
type ContactNewResponseUnion 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
// [[]ContactNewResponseArrayItemUnion] instead of an object.
OfContactNewResponseArray []ContactNewResponseArrayItemUnion `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.
OfContactNewResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfContactNewResponseArray respjson.Field
OfAnyArray respjson.Field
OfContactNewResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
ContactNewResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactNewResponseArrayItemUnion], [map[string]ContactNewResponseMapItemUnion].
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 OfContactNewResponseArray OfAnyArray OfContactNewResponseMapItemMapItem]
func (ContactNewResponseUnion) AsBool ¶
func (u ContactNewResponseUnion) AsBool() (v bool)
func (ContactNewResponseUnion) AsContactNewResponseArray ¶
func (u ContactNewResponseUnion) AsContactNewResponseArray() (v []ContactNewResponseArrayItemUnion)
func (ContactNewResponseUnion) AsContactNewResponseMapMap ¶
func (u ContactNewResponseUnion) AsContactNewResponseMapMap() (v map[string]ContactNewResponseMapItemUnion)
func (ContactNewResponseUnion) AsFloat ¶
func (u ContactNewResponseUnion) AsFloat() (v float64)
func (ContactNewResponseUnion) AsString ¶
func (u ContactNewResponseUnion) AsString() (v string)
func (ContactNewResponseUnion) RawJSON ¶
func (u ContactNewResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*ContactNewResponseUnion) UnmarshalJSON ¶
func (r *ContactNewResponseUnion) 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 *ContactGetResponse, 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 *ContactNewResponse, 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 MemberGetResponse ¶
type MemberGetResponse 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]MemberGetResponseField `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 (MemberGetResponse) RawJSON ¶
func (r MemberGetResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberGetResponse) UnmarshalJSON ¶
func (r *MemberGetResponse) UnmarshalJSON(data []byte) error
type MemberGetResponseField ¶
type MemberGetResponseField struct {
// The field value, or null if unset.
Value MemberGetResponseFieldValueUnion `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 (MemberGetResponseField) RawJSON ¶
func (r MemberGetResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberGetResponseField) UnmarshalJSON ¶
func (r *MemberGetResponseField) UnmarshalJSON(data []byte) error
type MemberGetResponseFieldValueArrayItemUnion ¶
type MemberGetResponseFieldValueArrayItemUnion 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.
OfMemberGetResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfMemberGetResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
MemberGetResponseFieldValueArrayItemUnion 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 OfMemberGetResponseFieldValueArrayItemMapItem]
func (MemberGetResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u MemberGetResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (MemberGetResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u MemberGetResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (MemberGetResponseFieldValueArrayItemUnion) AsBool ¶
func (u MemberGetResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (MemberGetResponseFieldValueArrayItemUnion) AsFloat ¶
func (u MemberGetResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (MemberGetResponseFieldValueArrayItemUnion) AsString ¶
func (u MemberGetResponseFieldValueArrayItemUnion) AsString() (v string)
func (MemberGetResponseFieldValueArrayItemUnion) RawJSON ¶
func (u MemberGetResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberGetResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *MemberGetResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type MemberGetResponseFieldValueMapItemUnion ¶
type MemberGetResponseFieldValueMapItemUnion 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.
OfMemberGetResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfMemberGetResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
MemberGetResponseFieldValueMapItemUnion 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 OfMemberGetResponseFieldValueMapItemMapItem]
func (MemberGetResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u MemberGetResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (MemberGetResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u MemberGetResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (MemberGetResponseFieldValueMapItemUnion) AsBool ¶
func (u MemberGetResponseFieldValueMapItemUnion) AsBool() (v bool)
func (MemberGetResponseFieldValueMapItemUnion) AsFloat ¶
func (u MemberGetResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (MemberGetResponseFieldValueMapItemUnion) AsString ¶
func (u MemberGetResponseFieldValueMapItemUnion) AsString() (v string)
func (MemberGetResponseFieldValueMapItemUnion) RawJSON ¶
func (u MemberGetResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberGetResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *MemberGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type MemberGetResponseFieldValueUnion ¶
type MemberGetResponseFieldValueUnion 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
// [[]MemberGetResponseFieldValueArrayItemUnion] instead of an object.
OfMemberGetResponseFieldValueArray []MemberGetResponseFieldValueArrayItemUnion `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.
OfMemberGetResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfMemberGetResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfMemberGetResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
MemberGetResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]MemberGetResponseFieldValueArrayItemUnion], [map[string]MemberGetResponseFieldValueMapItemUnion].
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 OfMemberGetResponseFieldValueArray OfAnyArray OfMemberGetResponseFieldValueMapItemMapItem]
func (MemberGetResponseFieldValueUnion) AsBool ¶
func (u MemberGetResponseFieldValueUnion) AsBool() (v bool)
func (MemberGetResponseFieldValueUnion) AsFloat ¶
func (u MemberGetResponseFieldValueUnion) AsFloat() (v float64)
func (MemberGetResponseFieldValueUnion) AsMemberGetResponseFieldValueArray ¶
func (u MemberGetResponseFieldValueUnion) AsMemberGetResponseFieldValueArray() (v []MemberGetResponseFieldValueArrayItemUnion)
func (MemberGetResponseFieldValueUnion) AsMemberGetResponseFieldValueMapMap ¶
func (u MemberGetResponseFieldValueUnion) AsMemberGetResponseFieldValueMapMap() (v map[string]MemberGetResponseFieldValueMapItemUnion)
func (MemberGetResponseFieldValueUnion) AsString ¶
func (u MemberGetResponseFieldValueUnion) AsString() (v string)
func (MemberGetResponseFieldValueUnion) RawJSON ¶
func (u MemberGetResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*MemberGetResponseFieldValueUnion) UnmarshalJSON ¶
func (r *MemberGetResponseFieldValueUnion) 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 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 *MemberGetResponse, 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 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 OpportunityGetResponse ¶
type OpportunityGetResponse 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]OpportunityGetResponseField `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]OpportunityGetResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]OpportunityGetResponseUnion `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 (OpportunityGetResponse) RawJSON ¶
func (r OpportunityGetResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityGetResponse) UnmarshalJSON ¶
func (r *OpportunityGetResponse) UnmarshalJSON(data []byte) error
type OpportunityGetResponseArrayItemUnion ¶
type OpportunityGetResponseArrayItemUnion 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.
OfOpportunityGetResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityGetResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityGetResponseArrayItemUnion 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 OfOpportunityGetResponseArrayItemMapItem]
func (OpportunityGetResponseArrayItemUnion) AsAnyArray ¶
func (u OpportunityGetResponseArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityGetResponseArrayItemUnion) AsAnyMap ¶
func (u OpportunityGetResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityGetResponseArrayItemUnion) AsBool ¶
func (u OpportunityGetResponseArrayItemUnion) AsBool() (v bool)
func (OpportunityGetResponseArrayItemUnion) AsFloat ¶
func (u OpportunityGetResponseArrayItemUnion) AsFloat() (v float64)
func (OpportunityGetResponseArrayItemUnion) AsString ¶
func (u OpportunityGetResponseArrayItemUnion) AsString() (v string)
func (OpportunityGetResponseArrayItemUnion) RawJSON ¶
func (u OpportunityGetResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityGetResponseArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityGetResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityGetResponseField ¶
type OpportunityGetResponseField struct {
// The field value, or null if unset.
Value OpportunityGetResponseFieldValueUnion `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 (OpportunityGetResponseField) RawJSON ¶
func (r OpportunityGetResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityGetResponseField) UnmarshalJSON ¶
func (r *OpportunityGetResponseField) UnmarshalJSON(data []byte) error
type OpportunityGetResponseFieldValueArrayItemUnion ¶
type OpportunityGetResponseFieldValueArrayItemUnion 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.
OfOpportunityGetResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityGetResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityGetResponseFieldValueArrayItemUnion 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 OfOpportunityGetResponseFieldValueArrayItemMapItem]
func (OpportunityGetResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u OpportunityGetResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityGetResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u OpportunityGetResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityGetResponseFieldValueArrayItemUnion) AsBool ¶
func (u OpportunityGetResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (OpportunityGetResponseFieldValueArrayItemUnion) AsFloat ¶
func (u OpportunityGetResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (OpportunityGetResponseFieldValueArrayItemUnion) AsString ¶
func (u OpportunityGetResponseFieldValueArrayItemUnion) AsString() (v string)
func (OpportunityGetResponseFieldValueArrayItemUnion) RawJSON ¶
func (u OpportunityGetResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityGetResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityGetResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityGetResponseFieldValueMapItemUnion ¶
type OpportunityGetResponseFieldValueMapItemUnion 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.
OfOpportunityGetResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityGetResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityGetResponseFieldValueMapItemUnion 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 OfOpportunityGetResponseFieldValueMapItemMapItem]
func (OpportunityGetResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u OpportunityGetResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (OpportunityGetResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u OpportunityGetResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityGetResponseFieldValueMapItemUnion) AsBool ¶
func (u OpportunityGetResponseFieldValueMapItemUnion) AsBool() (v bool)
func (OpportunityGetResponseFieldValueMapItemUnion) AsFloat ¶
func (u OpportunityGetResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (OpportunityGetResponseFieldValueMapItemUnion) AsString ¶
func (u OpportunityGetResponseFieldValueMapItemUnion) AsString() (v string)
func (OpportunityGetResponseFieldValueMapItemUnion) RawJSON ¶
func (u OpportunityGetResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityGetResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityGetResponseFieldValueUnion ¶
type OpportunityGetResponseFieldValueUnion 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
// [[]OpportunityGetResponseFieldValueArrayItemUnion] instead of an object.
OfOpportunityGetResponseFieldValueArray []OpportunityGetResponseFieldValueArrayItemUnion `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.
OfOpportunityGetResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityGetResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityGetResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityGetResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityGetResponseFieldValueArrayItemUnion], [map[string]OpportunityGetResponseFieldValueMapItemUnion].
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 OfOpportunityGetResponseFieldValueArray OfAnyArray OfOpportunityGetResponseFieldValueMapItemMapItem]
func (OpportunityGetResponseFieldValueUnion) AsBool ¶
func (u OpportunityGetResponseFieldValueUnion) AsBool() (v bool)
func (OpportunityGetResponseFieldValueUnion) AsFloat ¶
func (u OpportunityGetResponseFieldValueUnion) AsFloat() (v float64)
func (OpportunityGetResponseFieldValueUnion) AsOpportunityGetResponseFieldValueArray ¶
func (u OpportunityGetResponseFieldValueUnion) AsOpportunityGetResponseFieldValueArray() (v []OpportunityGetResponseFieldValueArrayItemUnion)
func (OpportunityGetResponseFieldValueUnion) AsOpportunityGetResponseFieldValueMapMap ¶
func (u OpportunityGetResponseFieldValueUnion) AsOpportunityGetResponseFieldValueMapMap() (v map[string]OpportunityGetResponseFieldValueMapItemUnion)
func (OpportunityGetResponseFieldValueUnion) AsString ¶
func (u OpportunityGetResponseFieldValueUnion) AsString() (v string)
func (OpportunityGetResponseFieldValueUnion) RawJSON ¶
func (u OpportunityGetResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityGetResponseFieldValueUnion) UnmarshalJSON ¶
func (r *OpportunityGetResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type OpportunityGetResponseMapItemUnion ¶
type OpportunityGetResponseMapItemUnion 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.
OfOpportunityGetResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityGetResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityGetResponseMapItemUnion 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 OfOpportunityGetResponseMapItemMapItem]
func (OpportunityGetResponseMapItemUnion) AsAnyArray ¶
func (u OpportunityGetResponseMapItemUnion) AsAnyArray() (v []any)
func (OpportunityGetResponseMapItemUnion) AsAnyMap ¶
func (u OpportunityGetResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityGetResponseMapItemUnion) AsBool ¶
func (u OpportunityGetResponseMapItemUnion) AsBool() (v bool)
func (OpportunityGetResponseMapItemUnion) AsFloat ¶
func (u OpportunityGetResponseMapItemUnion) AsFloat() (v float64)
func (OpportunityGetResponseMapItemUnion) AsString ¶
func (u OpportunityGetResponseMapItemUnion) AsString() (v string)
func (OpportunityGetResponseMapItemUnion) RawJSON ¶
func (u OpportunityGetResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityGetResponseMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityGetResponseMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityGetResponseRelationship ¶
type OpportunityGetResponseRelationship 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 (OpportunityGetResponseRelationship) RawJSON ¶
func (r OpportunityGetResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityGetResponseRelationship) UnmarshalJSON ¶
func (r *OpportunityGetResponseRelationship) UnmarshalJSON(data []byte) error
type OpportunityGetResponseUnion ¶
type OpportunityGetResponseUnion 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
// [[]OpportunityGetResponseArrayItemUnion] instead of an object.
OfOpportunityGetResponseArray []OpportunityGetResponseArrayItemUnion `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.
OfOpportunityGetResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityGetResponseArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityGetResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityGetResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityGetResponseArrayItemUnion], [map[string]OpportunityGetResponseMapItemUnion].
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 OfOpportunityGetResponseArray OfAnyArray OfOpportunityGetResponseMapItemMapItem]
func (OpportunityGetResponseUnion) AsBool ¶
func (u OpportunityGetResponseUnion) AsBool() (v bool)
func (OpportunityGetResponseUnion) AsFloat ¶
func (u OpportunityGetResponseUnion) AsFloat() (v float64)
func (OpportunityGetResponseUnion) AsOpportunityGetResponseArray ¶
func (u OpportunityGetResponseUnion) AsOpportunityGetResponseArray() (v []OpportunityGetResponseArrayItemUnion)
func (OpportunityGetResponseUnion) AsOpportunityGetResponseMapMap ¶
func (u OpportunityGetResponseUnion) AsOpportunityGetResponseMapMap() (v map[string]OpportunityGetResponseMapItemUnion)
func (OpportunityGetResponseUnion) AsString ¶
func (u OpportunityGetResponseUnion) AsString() (v string)
func (OpportunityGetResponseUnion) RawJSON ¶
func (u OpportunityGetResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityGetResponseUnion) UnmarshalJSON ¶
func (r *OpportunityGetResponseUnion) 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 OpportunityNewResponse ¶
type OpportunityNewResponse 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]OpportunityNewResponseField `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]OpportunityNewResponseRelationship `json:"relationships" api:"required"`
ExtraFields map[string]OpportunityNewResponseUnion `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 (OpportunityNewResponse) RawJSON ¶
func (r OpportunityNewResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityNewResponse) UnmarshalJSON ¶
func (r *OpportunityNewResponse) UnmarshalJSON(data []byte) error
type OpportunityNewResponseArrayItemUnion ¶
type OpportunityNewResponseArrayItemUnion 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.
OfOpportunityNewResponseArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityNewResponseArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityNewResponseArrayItemUnion 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 OfOpportunityNewResponseArrayItemMapItem]
func (OpportunityNewResponseArrayItemUnion) AsAnyArray ¶
func (u OpportunityNewResponseArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityNewResponseArrayItemUnion) AsAnyMap ¶
func (u OpportunityNewResponseArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityNewResponseArrayItemUnion) AsBool ¶
func (u OpportunityNewResponseArrayItemUnion) AsBool() (v bool)
func (OpportunityNewResponseArrayItemUnion) AsFloat ¶
func (u OpportunityNewResponseArrayItemUnion) AsFloat() (v float64)
func (OpportunityNewResponseArrayItemUnion) AsString ¶
func (u OpportunityNewResponseArrayItemUnion) AsString() (v string)
func (OpportunityNewResponseArrayItemUnion) RawJSON ¶
func (u OpportunityNewResponseArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityNewResponseArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityNewResponseArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityNewResponseField ¶
type OpportunityNewResponseField struct {
// The field value, or null if unset.
Value OpportunityNewResponseFieldValueUnion `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 (OpportunityNewResponseField) RawJSON ¶
func (r OpportunityNewResponseField) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityNewResponseField) UnmarshalJSON ¶
func (r *OpportunityNewResponseField) UnmarshalJSON(data []byte) error
type OpportunityNewResponseFieldValueArrayItemUnion ¶
type OpportunityNewResponseFieldValueArrayItemUnion 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.
OfOpportunityNewResponseFieldValueArrayItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityNewResponseFieldValueArrayItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityNewResponseFieldValueArrayItemUnion 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 OfOpportunityNewResponseFieldValueArrayItemMapItem]
func (OpportunityNewResponseFieldValueArrayItemUnion) AsAnyArray ¶
func (u OpportunityNewResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)
func (OpportunityNewResponseFieldValueArrayItemUnion) AsAnyMap ¶
func (u OpportunityNewResponseFieldValueArrayItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityNewResponseFieldValueArrayItemUnion) AsBool ¶
func (u OpportunityNewResponseFieldValueArrayItemUnion) AsBool() (v bool)
func (OpportunityNewResponseFieldValueArrayItemUnion) AsFloat ¶
func (u OpportunityNewResponseFieldValueArrayItemUnion) AsFloat() (v float64)
func (OpportunityNewResponseFieldValueArrayItemUnion) AsString ¶
func (u OpportunityNewResponseFieldValueArrayItemUnion) AsString() (v string)
func (OpportunityNewResponseFieldValueArrayItemUnion) RawJSON ¶
func (u OpportunityNewResponseFieldValueArrayItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityNewResponseFieldValueArrayItemUnion) UnmarshalJSON ¶
func (r *OpportunityNewResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error
type OpportunityNewResponseFieldValueMapItemUnion ¶
type OpportunityNewResponseFieldValueMapItemUnion 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.
OfOpportunityNewResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityNewResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityNewResponseFieldValueMapItemUnion 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 OfOpportunityNewResponseFieldValueMapItemMapItem]
func (OpportunityNewResponseFieldValueMapItemUnion) AsAnyArray ¶
func (u OpportunityNewResponseFieldValueMapItemUnion) AsAnyArray() (v []any)
func (OpportunityNewResponseFieldValueMapItemUnion) AsAnyMap ¶
func (u OpportunityNewResponseFieldValueMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityNewResponseFieldValueMapItemUnion) AsBool ¶
func (u OpportunityNewResponseFieldValueMapItemUnion) AsBool() (v bool)
func (OpportunityNewResponseFieldValueMapItemUnion) AsFloat ¶
func (u OpportunityNewResponseFieldValueMapItemUnion) AsFloat() (v float64)
func (OpportunityNewResponseFieldValueMapItemUnion) AsString ¶
func (u OpportunityNewResponseFieldValueMapItemUnion) AsString() (v string)
func (OpportunityNewResponseFieldValueMapItemUnion) RawJSON ¶
func (u OpportunityNewResponseFieldValueMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityNewResponseFieldValueMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityNewResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityNewResponseFieldValueUnion ¶
type OpportunityNewResponseFieldValueUnion 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
// [[]OpportunityNewResponseFieldValueArrayItemUnion] instead of an object.
OfOpportunityNewResponseFieldValueArray []OpportunityNewResponseFieldValueArrayItemUnion `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.
OfOpportunityNewResponseFieldValueMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityNewResponseFieldValueArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityNewResponseFieldValueMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityNewResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityNewResponseFieldValueArrayItemUnion], [map[string]OpportunityNewResponseFieldValueMapItemUnion].
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 OfOpportunityNewResponseFieldValueArray OfAnyArray OfOpportunityNewResponseFieldValueMapItemMapItem]
func (OpportunityNewResponseFieldValueUnion) AsBool ¶
func (u OpportunityNewResponseFieldValueUnion) AsBool() (v bool)
func (OpportunityNewResponseFieldValueUnion) AsFloat ¶
func (u OpportunityNewResponseFieldValueUnion) AsFloat() (v float64)
func (OpportunityNewResponseFieldValueUnion) AsOpportunityNewResponseFieldValueArray ¶
func (u OpportunityNewResponseFieldValueUnion) AsOpportunityNewResponseFieldValueArray() (v []OpportunityNewResponseFieldValueArrayItemUnion)
func (OpportunityNewResponseFieldValueUnion) AsOpportunityNewResponseFieldValueMapMap ¶
func (u OpportunityNewResponseFieldValueUnion) AsOpportunityNewResponseFieldValueMapMap() (v map[string]OpportunityNewResponseFieldValueMapItemUnion)
func (OpportunityNewResponseFieldValueUnion) AsString ¶
func (u OpportunityNewResponseFieldValueUnion) AsString() (v string)
func (OpportunityNewResponseFieldValueUnion) RawJSON ¶
func (u OpportunityNewResponseFieldValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityNewResponseFieldValueUnion) UnmarshalJSON ¶
func (r *OpportunityNewResponseFieldValueUnion) UnmarshalJSON(data []byte) error
type OpportunityNewResponseMapItemUnion ¶
type OpportunityNewResponseMapItemUnion 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.
OfOpportunityNewResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfAnyArray respjson.Field
OfOpportunityNewResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityNewResponseMapItemUnion 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 OfOpportunityNewResponseMapItemMapItem]
func (OpportunityNewResponseMapItemUnion) AsAnyArray ¶
func (u OpportunityNewResponseMapItemUnion) AsAnyArray() (v []any)
func (OpportunityNewResponseMapItemUnion) AsAnyMap ¶
func (u OpportunityNewResponseMapItemUnion) AsAnyMap() (v map[string]any)
func (OpportunityNewResponseMapItemUnion) AsBool ¶
func (u OpportunityNewResponseMapItemUnion) AsBool() (v bool)
func (OpportunityNewResponseMapItemUnion) AsFloat ¶
func (u OpportunityNewResponseMapItemUnion) AsFloat() (v float64)
func (OpportunityNewResponseMapItemUnion) AsString ¶
func (u OpportunityNewResponseMapItemUnion) AsString() (v string)
func (OpportunityNewResponseMapItemUnion) RawJSON ¶
func (u OpportunityNewResponseMapItemUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityNewResponseMapItemUnion) UnmarshalJSON ¶
func (r *OpportunityNewResponseMapItemUnion) UnmarshalJSON(data []byte) error
type OpportunityNewResponseRelationship ¶
type OpportunityNewResponseRelationship 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 (OpportunityNewResponseRelationship) RawJSON ¶
func (r OpportunityNewResponseRelationship) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityNewResponseRelationship) UnmarshalJSON ¶
func (r *OpportunityNewResponseRelationship) UnmarshalJSON(data []byte) error
type OpportunityNewResponseUnion ¶
type OpportunityNewResponseUnion 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
// [[]OpportunityNewResponseArrayItemUnion] instead of an object.
OfOpportunityNewResponseArray []OpportunityNewResponseArrayItemUnion `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.
OfOpportunityNewResponseMapItemMapItem any `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
OfOpportunityNewResponseArray respjson.Field
OfAnyArray respjson.Field
OfOpportunityNewResponseMapItemMapItem respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OpportunityNewResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityNewResponseArrayItemUnion], [map[string]OpportunityNewResponseMapItemUnion].
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 OfOpportunityNewResponseArray OfAnyArray OfOpportunityNewResponseMapItemMapItem]
func (OpportunityNewResponseUnion) AsBool ¶
func (u OpportunityNewResponseUnion) AsBool() (v bool)
func (OpportunityNewResponseUnion) AsFloat ¶
func (u OpportunityNewResponseUnion) AsFloat() (v float64)
func (OpportunityNewResponseUnion) AsOpportunityNewResponseArray ¶
func (u OpportunityNewResponseUnion) AsOpportunityNewResponseArray() (v []OpportunityNewResponseArrayItemUnion)
func (OpportunityNewResponseUnion) AsOpportunityNewResponseMapMap ¶
func (u OpportunityNewResponseUnion) AsOpportunityNewResponseMapMap() (v map[string]OpportunityNewResponseMapItemUnion)
func (OpportunityNewResponseUnion) AsString ¶
func (u OpportunityNewResponseUnion) AsString() (v string)
func (OpportunityNewResponseUnion) RawJSON ¶
func (u OpportunityNewResponseUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpportunityNewResponseUnion) UnmarshalJSON ¶
func (r *OpportunityNewResponseUnion) 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 *OpportunityGetResponse, 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 *OpportunityNewResponse, 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
|
|