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 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 AccountNewParamsRelationshipUnion
- type AccountNewParamsRelationships
- type AccountNewParamsRelationshipsSystemContactUnion
- type AccountNewParamsRelationshipsSystemOwnerUnion
- 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) 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 AccountUpdateParamsRelationship
- type AccountUpdateParamsRelationshipAddUnion
- type AccountUpdateParamsRelationshipRemoveUnion
- type AccountUpdateParamsRelationshipReplaceUnion
- type AccountUpdateParamsRelationships
- type AccountUpdateParamsRelationshipsSystemContact
- type AccountUpdateParamsRelationshipsSystemContactAddUnion
- type AccountUpdateParamsRelationshipsSystemContactRemoveUnion
- type AccountUpdateParamsRelationshipsSystemContactReplaceUnion
- type AccountUpdateParamsRelationshipsSystemOwner
- type AccountUpdateParamsRelationshipsSystemOwnerAddUnion
- type AccountUpdateParamsRelationshipsSystemOwnerRemoveUnion
- type AccountUpdateParamsRelationshipsSystemOwnerReplaceUnion
- 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 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 ContactNewParamsFieldsSystemName
- type ContactNewParamsRelationshipUnion
- type ContactNewParamsRelationships
- type ContactNewParamsRelationshipsSystemAccountUnion
- 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) 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 ContactUpdateParamsFieldsSystemName
- type ContactUpdateParamsRelationship
- type ContactUpdateParamsRelationshipAddUnion
- type ContactUpdateParamsRelationshipRemoveUnion
- type ContactUpdateParamsRelationshipReplaceUnion
- type ContactUpdateParamsRelationships
- type ContactUpdateParamsRelationshipsSystemAccount
- type ContactUpdateParamsRelationshipsSystemAccountAddUnion
- type ContactUpdateParamsRelationshipsSystemAccountRemoveUnion
- type ContactUpdateParamsRelationshipsSystemAccountReplaceUnion
- 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 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 OpportunityNewParamsRelationshipsSystemAccountUnion
- type OpportunityNewParamsRelationshipsSystemChampionUnion
- type OpportunityNewParamsRelationshipsSystemCreatedByUnion
- type OpportunityNewParamsRelationshipsSystemEvaluatorUnion
- type OpportunityNewParamsRelationshipsSystemOwnerUnion
- 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) 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 OpportunityUpdateParamsRelationshipsSystemAccount
- type OpportunityUpdateParamsRelationshipsSystemAccountAddUnion
- type OpportunityUpdateParamsRelationshipsSystemAccountRemoveUnion
- type OpportunityUpdateParamsRelationshipsSystemAccountReplaceUnion
- type OpportunityUpdateParamsRelationshipsSystemChampion
- type OpportunityUpdateParamsRelationshipsSystemChampionAddUnion
- type OpportunityUpdateParamsRelationshipsSystemChampionRemoveUnion
- type OpportunityUpdateParamsRelationshipsSystemChampionReplaceUnion
- type OpportunityUpdateParamsRelationshipsSystemCreatedBy
- type OpportunityUpdateParamsRelationshipsSystemCreatedByAddUnion
- type OpportunityUpdateParamsRelationshipsSystemCreatedByRemoveUnion
- type OpportunityUpdateParamsRelationshipsSystemCreatedByReplaceUnion
- type OpportunityUpdateParamsRelationshipsSystemEvaluator
- type OpportunityUpdateParamsRelationshipsSystemEvaluatorAddUnion
- type OpportunityUpdateParamsRelationshipsSystemEvaluatorRemoveUnion
- type OpportunityUpdateParamsRelationshipsSystemEvaluatorReplaceUnion
- type OpportunityUpdateParamsRelationshipsSystemOwner
- type OpportunityUpdateParamsRelationshipsSystemOwnerAddUnion
- type OpportunityUpdateParamsRelationshipsSystemOwnerRemoveUnion
- type OpportunityUpdateParamsRelationshipsSystemOwnerReplaceUnion
- 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
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 AccountGetResponse ¶
type AccountGetResponse struct {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]AccountGetResponseField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value AccountGetResponseFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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 {
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
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 {
Data []AccountListResponseData `json:"data" api:"required"`
Object string `json:"object" api:"required"`
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 {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]AccountListResponseDataField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value AccountListResponseDataFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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 {
Fields AccountNewParamsFields `json:"fields,omitzero" api:"required"`
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 {
SystemName string `json:"system_name" api:"required"`
SystemFacebook param.Opt[string] `json:"system_facebook,omitzero"`
SystemHeadcount param.Opt[string] `json:"system_headcount,omitzero"`
SystemInstagram param.Opt[string] `json:"system_instagram,omitzero"`
SystemLastFundingType param.Opt[string] `json:"system_lastFundingType,omitzero"`
SystemLinkedIn param.Opt[string] `json:"system_linkedIn,omitzero"`
SystemTwitter param.Opt[string] `json:"system_twitter,omitzero"`
SystemIndustry []string `json:"system_industry,omitzero"`
SystemPrimaryAddress map[string]string `json:"system_primaryAddress,omitzero"`
SystemWebsite []string `json:"system_website,omitzero"`
ExtraFields map[string]AccountNewParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
The property SystemName is required.
func (AccountNewParamsFields) MarshalJSON ¶
func (r AccountNewParamsFields) MarshalJSON() (data []byte, err error)
func (*AccountNewParamsFields) UnmarshalJSON ¶
func (r *AccountNewParamsFields) 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 {
SystemContact AccountNewParamsRelationshipsSystemContactUnion `json:"system_contact,omitzero"`
SystemOwner AccountNewParamsRelationshipsSystemOwnerUnion `json:"system_owner,omitzero"`
ExtraFields map[string]AccountNewParamsRelationshipUnion `json:"-"`
// contains filtered or unexported fields
}
func (AccountNewParamsRelationships) MarshalJSON ¶
func (r AccountNewParamsRelationships) MarshalJSON() (data []byte, err error)
func (*AccountNewParamsRelationships) UnmarshalJSON ¶
func (r *AccountNewParamsRelationships) UnmarshalJSON(data []byte) error
type AccountNewParamsRelationshipsSystemContactUnion ¶
type AccountNewParamsRelationshipsSystemContactUnion 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 (AccountNewParamsRelationshipsSystemContactUnion) MarshalJSON ¶
func (u AccountNewParamsRelationshipsSystemContactUnion) MarshalJSON() ([]byte, error)
func (*AccountNewParamsRelationshipsSystemContactUnion) UnmarshalJSON ¶
func (u *AccountNewParamsRelationshipsSystemContactUnion) UnmarshalJSON(data []byte) error
type AccountNewParamsRelationshipsSystemOwnerUnion ¶
type AccountNewParamsRelationshipsSystemOwnerUnion 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 (AccountNewParamsRelationshipsSystemOwnerUnion) MarshalJSON ¶
func (u AccountNewParamsRelationshipsSystemOwnerUnion) MarshalJSON() ([]byte, error)
func (*AccountNewParamsRelationshipsSystemOwnerUnion) UnmarshalJSON ¶
func (u *AccountNewParamsRelationshipsSystemOwnerUnion) UnmarshalJSON(data []byte) error
type AccountNewResponse ¶
type AccountNewResponse struct {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]AccountNewResponseField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value AccountNewResponseFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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
}
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) Get ¶
func (r *AccountService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *AccountGetResponse, err error)
func (*AccountService) List ¶
func (r *AccountService) List(ctx context.Context, query AccountListParams, opts ...option.RequestOption) (res *AccountListResponse, err error)
func (*AccountService) New ¶
func (r *AccountService) New(ctx context.Context, body AccountNewParams, opts ...option.RequestOption) (res *AccountNewResponse, err error)
func (*AccountService) Update ¶
func (r *AccountService) Update(ctx context.Context, id string, body AccountUpdateParams, opts ...option.RequestOption) (res *AccountUpdateResponse, err error)
type AccountUpdateParams ¶
type AccountUpdateParams struct {
Fields AccountUpdateParamsFields `json:"fields,omitzero"`
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 {
SystemFacebook param.Opt[string] `json:"system_facebook,omitzero"`
SystemHeadcount param.Opt[string] `json:"system_headcount,omitzero"`
SystemInstagram param.Opt[string] `json:"system_instagram,omitzero"`
SystemLastFundingType param.Opt[string] `json:"system_lastFundingType,omitzero"`
SystemLinkedIn param.Opt[string] `json:"system_linkedIn,omitzero"`
SystemName param.Opt[string] `json:"system_name,omitzero"`
SystemTwitter param.Opt[string] `json:"system_twitter,omitzero"`
SystemIndustry []string `json:"system_industry,omitzero"`
SystemPrimaryAddress map[string]string `json:"system_primaryAddress,omitzero"`
SystemWebsite []string `json:"system_website,omitzero"`
ExtraFields map[string]AccountUpdateParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
func (AccountUpdateParamsFields) MarshalJSON ¶
func (r AccountUpdateParamsFields) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParamsFields) UnmarshalJSON ¶
func (r *AccountUpdateParamsFields) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationship ¶
type AccountUpdateParamsRelationship struct {
Add AccountUpdateParamsRelationshipAddUnion `json:"add,omitzero"`
Remove AccountUpdateParamsRelationshipRemoveUnion `json:"remove,omitzero"`
Replace AccountUpdateParamsRelationshipReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
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 {
SystemContact AccountUpdateParamsRelationshipsSystemContact `json:"system_contact,omitzero"`
SystemOwner AccountUpdateParamsRelationshipsSystemOwner `json:"system_owner,omitzero"`
ExtraFields map[string]AccountUpdateParamsRelationship `json:"-"`
// contains filtered or unexported fields
}
func (AccountUpdateParamsRelationships) MarshalJSON ¶
func (r AccountUpdateParamsRelationships) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParamsRelationships) UnmarshalJSON ¶
func (r *AccountUpdateParamsRelationships) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsSystemContact ¶
type AccountUpdateParamsRelationshipsSystemContact struct {
Add AccountUpdateParamsRelationshipsSystemContactAddUnion `json:"add,omitzero"`
Remove AccountUpdateParamsRelationshipsSystemContactRemoveUnion `json:"remove,omitzero"`
Replace AccountUpdateParamsRelationshipsSystemContactReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
func (AccountUpdateParamsRelationshipsSystemContact) MarshalJSON ¶
func (r AccountUpdateParamsRelationshipsSystemContact) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParamsRelationshipsSystemContact) UnmarshalJSON ¶
func (r *AccountUpdateParamsRelationshipsSystemContact) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsSystemContactAddUnion ¶
type AccountUpdateParamsRelationshipsSystemContactAddUnion 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 (AccountUpdateParamsRelationshipsSystemContactAddUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipsSystemContactAddUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsSystemContactAddUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipsSystemContactAddUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsSystemContactRemoveUnion ¶
type AccountUpdateParamsRelationshipsSystemContactRemoveUnion 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 (AccountUpdateParamsRelationshipsSystemContactRemoveUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipsSystemContactRemoveUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsSystemContactRemoveUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipsSystemContactRemoveUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsSystemContactReplaceUnion ¶
type AccountUpdateParamsRelationshipsSystemContactReplaceUnion 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 (AccountUpdateParamsRelationshipsSystemContactReplaceUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipsSystemContactReplaceUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsSystemContactReplaceUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipsSystemContactReplaceUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsSystemOwner ¶
type AccountUpdateParamsRelationshipsSystemOwner struct {
Add AccountUpdateParamsRelationshipsSystemOwnerAddUnion `json:"add,omitzero"`
Remove AccountUpdateParamsRelationshipsSystemOwnerRemoveUnion `json:"remove,omitzero"`
Replace AccountUpdateParamsRelationshipsSystemOwnerReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
func (AccountUpdateParamsRelationshipsSystemOwner) MarshalJSON ¶
func (r AccountUpdateParamsRelationshipsSystemOwner) MarshalJSON() (data []byte, err error)
func (*AccountUpdateParamsRelationshipsSystemOwner) UnmarshalJSON ¶
func (r *AccountUpdateParamsRelationshipsSystemOwner) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsSystemOwnerAddUnion ¶
type AccountUpdateParamsRelationshipsSystemOwnerAddUnion 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 (AccountUpdateParamsRelationshipsSystemOwnerAddUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipsSystemOwnerAddUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsSystemOwnerAddUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipsSystemOwnerAddUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsSystemOwnerRemoveUnion ¶
type AccountUpdateParamsRelationshipsSystemOwnerRemoveUnion 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 (AccountUpdateParamsRelationshipsSystemOwnerRemoveUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipsSystemOwnerRemoveUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsSystemOwnerRemoveUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipsSystemOwnerRemoveUnion) UnmarshalJSON(data []byte) error
type AccountUpdateParamsRelationshipsSystemOwnerReplaceUnion ¶
type AccountUpdateParamsRelationshipsSystemOwnerReplaceUnion 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 (AccountUpdateParamsRelationshipsSystemOwnerReplaceUnion) MarshalJSON ¶
func (u AccountUpdateParamsRelationshipsSystemOwnerReplaceUnion) MarshalJSON() ([]byte, error)
func (*AccountUpdateParamsRelationshipsSystemOwnerReplaceUnion) UnmarshalJSON ¶
func (u *AccountUpdateParamsRelationshipsSystemOwnerReplaceUnion) UnmarshalJSON(data []byte) error
type AccountUpdateResponse ¶
type AccountUpdateResponse struct {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]AccountUpdateResponseField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value AccountUpdateResponseFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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
Account AccountService
Contact ContactService
Opportunity OpportunityService
}
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 ContactGetResponse ¶
type ContactGetResponse struct {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]ContactGetResponseField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value ContactGetResponseFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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 {
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
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 {
Data []ContactListResponseData `json:"data" api:"required"`
Object string `json:"object" api:"required"`
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 {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]ContactListResponseDataField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value ContactListResponseDataFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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 {
Fields ContactNewParamsFields `json:"fields,omitzero" api:"required"`
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 {
SystemProfilePhotoURL param.Opt[string] `json:"system_profilePhotoUrl,omitzero"`
SystemEmail []string `json:"system_email,omitzero"`
SystemName ContactNewParamsFieldsSystemName `json:"system_name,omitzero"`
ExtraFields map[string]ContactNewParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
func (ContactNewParamsFields) MarshalJSON ¶
func (r ContactNewParamsFields) MarshalJSON() (data []byte, err error)
func (*ContactNewParamsFields) UnmarshalJSON ¶
func (r *ContactNewParamsFields) UnmarshalJSON(data []byte) error
type ContactNewParamsFieldsSystemName ¶
type ContactNewParamsFieldsSystemName struct {
FirstName param.Opt[string] `json:"firstName,omitzero"`
LastName param.Opt[string] `json:"lastName,omitzero"`
// contains filtered or unexported fields
}
func (ContactNewParamsFieldsSystemName) MarshalJSON ¶
func (r ContactNewParamsFieldsSystemName) MarshalJSON() (data []byte, err error)
func (*ContactNewParamsFieldsSystemName) UnmarshalJSON ¶
func (r *ContactNewParamsFieldsSystemName) 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 {
SystemAccount ContactNewParamsRelationshipsSystemAccountUnion `json:"system_account,omitzero"`
ExtraFields map[string]ContactNewParamsRelationshipUnion `json:"-"`
// contains filtered or unexported fields
}
func (ContactNewParamsRelationships) MarshalJSON ¶
func (r ContactNewParamsRelationships) MarshalJSON() (data []byte, err error)
func (*ContactNewParamsRelationships) UnmarshalJSON ¶
func (r *ContactNewParamsRelationships) UnmarshalJSON(data []byte) error
type ContactNewParamsRelationshipsSystemAccountUnion ¶
type ContactNewParamsRelationshipsSystemAccountUnion 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 (ContactNewParamsRelationshipsSystemAccountUnion) MarshalJSON ¶
func (u ContactNewParamsRelationshipsSystemAccountUnion) MarshalJSON() ([]byte, error)
func (*ContactNewParamsRelationshipsSystemAccountUnion) UnmarshalJSON ¶
func (u *ContactNewParamsRelationshipsSystemAccountUnion) UnmarshalJSON(data []byte) error
type ContactNewResponse ¶
type ContactNewResponse struct {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]ContactNewResponseField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value ContactNewResponseFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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
}
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) Get ¶
func (r *ContactService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ContactGetResponse, err error)
func (*ContactService) List ¶
func (r *ContactService) List(ctx context.Context, query ContactListParams, opts ...option.RequestOption) (res *ContactListResponse, err error)
func (*ContactService) New ¶
func (r *ContactService) New(ctx context.Context, body ContactNewParams, opts ...option.RequestOption) (res *ContactNewResponse, err error)
func (*ContactService) Update ¶
func (r *ContactService) Update(ctx context.Context, id string, body ContactUpdateParams, opts ...option.RequestOption) (res *ContactUpdateResponse, err error)
type ContactUpdateParams ¶
type ContactUpdateParams struct {
Fields ContactUpdateParamsFields `json:"fields,omitzero"`
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 {
SystemProfilePhotoURL param.Opt[string] `json:"system_profilePhotoUrl,omitzero"`
SystemEmail []string `json:"system_email,omitzero"`
SystemName ContactUpdateParamsFieldsSystemName `json:"system_name,omitzero"`
ExtraFields map[string]ContactUpdateParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
func (ContactUpdateParamsFields) MarshalJSON ¶
func (r ContactUpdateParamsFields) MarshalJSON() (data []byte, err error)
func (*ContactUpdateParamsFields) UnmarshalJSON ¶
func (r *ContactUpdateParamsFields) UnmarshalJSON(data []byte) error
type ContactUpdateParamsFieldsSystemName ¶
type ContactUpdateParamsFieldsSystemName struct {
FirstName param.Opt[string] `json:"firstName,omitzero"`
LastName param.Opt[string] `json:"lastName,omitzero"`
// contains filtered or unexported fields
}
func (ContactUpdateParamsFieldsSystemName) MarshalJSON ¶
func (r ContactUpdateParamsFieldsSystemName) MarshalJSON() (data []byte, err error)
func (*ContactUpdateParamsFieldsSystemName) UnmarshalJSON ¶
func (r *ContactUpdateParamsFieldsSystemName) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationship ¶
type ContactUpdateParamsRelationship struct {
Add ContactUpdateParamsRelationshipAddUnion `json:"add,omitzero"`
Remove ContactUpdateParamsRelationshipRemoveUnion `json:"remove,omitzero"`
Replace ContactUpdateParamsRelationshipReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
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 {
SystemAccount ContactUpdateParamsRelationshipsSystemAccount `json:"system_account,omitzero"`
ExtraFields map[string]ContactUpdateParamsRelationship `json:"-"`
// contains filtered or unexported fields
}
func (ContactUpdateParamsRelationships) MarshalJSON ¶
func (r ContactUpdateParamsRelationships) MarshalJSON() (data []byte, err error)
func (*ContactUpdateParamsRelationships) UnmarshalJSON ¶
func (r *ContactUpdateParamsRelationships) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipsSystemAccount ¶
type ContactUpdateParamsRelationshipsSystemAccount struct {
Add ContactUpdateParamsRelationshipsSystemAccountAddUnion `json:"add,omitzero"`
Remove ContactUpdateParamsRelationshipsSystemAccountRemoveUnion `json:"remove,omitzero"`
Replace ContactUpdateParamsRelationshipsSystemAccountReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
func (ContactUpdateParamsRelationshipsSystemAccount) MarshalJSON ¶
func (r ContactUpdateParamsRelationshipsSystemAccount) MarshalJSON() (data []byte, err error)
func (*ContactUpdateParamsRelationshipsSystemAccount) UnmarshalJSON ¶
func (r *ContactUpdateParamsRelationshipsSystemAccount) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipsSystemAccountAddUnion ¶
type ContactUpdateParamsRelationshipsSystemAccountAddUnion 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 (ContactUpdateParamsRelationshipsSystemAccountAddUnion) MarshalJSON ¶
func (u ContactUpdateParamsRelationshipsSystemAccountAddUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsRelationshipsSystemAccountAddUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsRelationshipsSystemAccountAddUnion) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipsSystemAccountRemoveUnion ¶
type ContactUpdateParamsRelationshipsSystemAccountRemoveUnion 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 (ContactUpdateParamsRelationshipsSystemAccountRemoveUnion) MarshalJSON ¶
func (u ContactUpdateParamsRelationshipsSystemAccountRemoveUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsRelationshipsSystemAccountRemoveUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsRelationshipsSystemAccountRemoveUnion) UnmarshalJSON(data []byte) error
type ContactUpdateParamsRelationshipsSystemAccountReplaceUnion ¶
type ContactUpdateParamsRelationshipsSystemAccountReplaceUnion 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 (ContactUpdateParamsRelationshipsSystemAccountReplaceUnion) MarshalJSON ¶
func (u ContactUpdateParamsRelationshipsSystemAccountReplaceUnion) MarshalJSON() ([]byte, error)
func (*ContactUpdateParamsRelationshipsSystemAccountReplaceUnion) UnmarshalJSON ¶
func (u *ContactUpdateParamsRelationshipsSystemAccountReplaceUnion) UnmarshalJSON(data []byte) error
type ContactUpdateResponse ¶
type ContactUpdateResponse struct {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]ContactUpdateResponseField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value ContactUpdateResponseFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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 OpportunityGetResponse ¶
type OpportunityGetResponse struct {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]OpportunityGetResponseField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value OpportunityGetResponseFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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 {
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
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 {
Data []OpportunityListResponseData `json:"data" api:"required"`
Object string `json:"object" api:"required"`
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 {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]OpportunityListResponseDataField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value OpportunityListResponseDataFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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 {
Fields OpportunityNewParamsFields `json:"fields,omitzero" api:"required"`
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 {
SystemName string `json:"system_name" api:"required"`
SystemStage string `json:"system_stage" api:"required"`
ExtraFields map[string]OpportunityNewParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
The properties SystemName, SystemStage 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 {
SystemAccount OpportunityNewParamsRelationshipsSystemAccountUnion `json:"system_account,omitzero" api:"required"`
SystemChampion OpportunityNewParamsRelationshipsSystemChampionUnion `json:"system_champion,omitzero"`
SystemCreatedBy OpportunityNewParamsRelationshipsSystemCreatedByUnion `json:"system_createdBy,omitzero"`
SystemEvaluator OpportunityNewParamsRelationshipsSystemEvaluatorUnion `json:"system_evaluator,omitzero"`
SystemOwner OpportunityNewParamsRelationshipsSystemOwnerUnion `json:"system_owner,omitzero"`
ExtraFields map[string]OpportunityNewParamsRelationshipUnion `json:"-"`
// contains filtered or unexported fields
}
The property SystemAccount is required.
func (OpportunityNewParamsRelationships) MarshalJSON ¶
func (r OpportunityNewParamsRelationships) MarshalJSON() (data []byte, err error)
func (*OpportunityNewParamsRelationships) UnmarshalJSON ¶
func (r *OpportunityNewParamsRelationships) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipsSystemAccountUnion ¶
type OpportunityNewParamsRelationshipsSystemAccountUnion 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 (OpportunityNewParamsRelationshipsSystemAccountUnion) MarshalJSON ¶
func (u OpportunityNewParamsRelationshipsSystemAccountUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipsSystemAccountUnion) UnmarshalJSON ¶
func (u *OpportunityNewParamsRelationshipsSystemAccountUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipsSystemChampionUnion ¶
type OpportunityNewParamsRelationshipsSystemChampionUnion 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 (OpportunityNewParamsRelationshipsSystemChampionUnion) MarshalJSON ¶
func (u OpportunityNewParamsRelationshipsSystemChampionUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipsSystemChampionUnion) UnmarshalJSON ¶
func (u *OpportunityNewParamsRelationshipsSystemChampionUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipsSystemCreatedByUnion ¶
type OpportunityNewParamsRelationshipsSystemCreatedByUnion 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 (OpportunityNewParamsRelationshipsSystemCreatedByUnion) MarshalJSON ¶
func (u OpportunityNewParamsRelationshipsSystemCreatedByUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipsSystemCreatedByUnion) UnmarshalJSON ¶
func (u *OpportunityNewParamsRelationshipsSystemCreatedByUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipsSystemEvaluatorUnion ¶
type OpportunityNewParamsRelationshipsSystemEvaluatorUnion 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 (OpportunityNewParamsRelationshipsSystemEvaluatorUnion) MarshalJSON ¶
func (u OpportunityNewParamsRelationshipsSystemEvaluatorUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipsSystemEvaluatorUnion) UnmarshalJSON ¶
func (u *OpportunityNewParamsRelationshipsSystemEvaluatorUnion) UnmarshalJSON(data []byte) error
type OpportunityNewParamsRelationshipsSystemOwnerUnion ¶
type OpportunityNewParamsRelationshipsSystemOwnerUnion 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 (OpportunityNewParamsRelationshipsSystemOwnerUnion) MarshalJSON ¶
func (u OpportunityNewParamsRelationshipsSystemOwnerUnion) MarshalJSON() ([]byte, error)
func (*OpportunityNewParamsRelationshipsSystemOwnerUnion) UnmarshalJSON ¶
func (u *OpportunityNewParamsRelationshipsSystemOwnerUnion) UnmarshalJSON(data []byte) error
type OpportunityNewResponse ¶
type OpportunityNewResponse struct {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]OpportunityNewResponseField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value OpportunityNewResponseFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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
}
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) Get ¶
func (r *OpportunityService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *OpportunityGetResponse, err error)
func (*OpportunityService) List ¶
func (r *OpportunityService) List(ctx context.Context, query OpportunityListParams, opts ...option.RequestOption) (res *OpportunityListResponse, err error)
func (*OpportunityService) New ¶
func (r *OpportunityService) New(ctx context.Context, body OpportunityNewParams, opts ...option.RequestOption) (res *OpportunityNewResponse, err error)
func (*OpportunityService) Update ¶
func (r *OpportunityService) Update(ctx context.Context, id string, body OpportunityUpdateParams, opts ...option.RequestOption) (res *OpportunityUpdateResponse, err error)
type OpportunityUpdateParams ¶
type OpportunityUpdateParams struct {
Fields OpportunityUpdateParamsFields `json:"fields,omitzero"`
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 {
SystemName param.Opt[string] `json:"system_name,omitzero"`
SystemStage param.Opt[string] `json:"system_stage,omitzero"`
ExtraFields map[string]OpportunityUpdateParamsFieldUnion `json:"-"`
// contains filtered or unexported fields
}
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 {
Add OpportunityUpdateParamsRelationshipAddUnion `json:"add,omitzero"`
Remove OpportunityUpdateParamsRelationshipRemoveUnion `json:"remove,omitzero"`
Replace OpportunityUpdateParamsRelationshipReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
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 {
SystemAccount OpportunityUpdateParamsRelationshipsSystemAccount `json:"system_account,omitzero"`
SystemChampion OpportunityUpdateParamsRelationshipsSystemChampion `json:"system_champion,omitzero"`
SystemCreatedBy OpportunityUpdateParamsRelationshipsSystemCreatedBy `json:"system_createdBy,omitzero"`
SystemEvaluator OpportunityUpdateParamsRelationshipsSystemEvaluator `json:"system_evaluator,omitzero"`
SystemOwner OpportunityUpdateParamsRelationshipsSystemOwner `json:"system_owner,omitzero"`
ExtraFields map[string]OpportunityUpdateParamsRelationship `json:"-"`
// contains filtered or unexported fields
}
func (OpportunityUpdateParamsRelationships) MarshalJSON ¶
func (r OpportunityUpdateParamsRelationships) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationships) UnmarshalJSON ¶
func (r *OpportunityUpdateParamsRelationships) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemAccount ¶
type OpportunityUpdateParamsRelationshipsSystemAccount struct {
Add OpportunityUpdateParamsRelationshipsSystemAccountAddUnion `json:"add,omitzero"`
Remove OpportunityUpdateParamsRelationshipsSystemAccountRemoveUnion `json:"remove,omitzero"`
Replace OpportunityUpdateParamsRelationshipsSystemAccountReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
func (OpportunityUpdateParamsRelationshipsSystemAccount) MarshalJSON ¶
func (r OpportunityUpdateParamsRelationshipsSystemAccount) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationshipsSystemAccount) UnmarshalJSON ¶
func (r *OpportunityUpdateParamsRelationshipsSystemAccount) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemAccountAddUnion ¶
type OpportunityUpdateParamsRelationshipsSystemAccountAddUnion 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 (OpportunityUpdateParamsRelationshipsSystemAccountAddUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemAccountAddUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemAccountAddUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemAccountAddUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemAccountRemoveUnion ¶
type OpportunityUpdateParamsRelationshipsSystemAccountRemoveUnion 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 (OpportunityUpdateParamsRelationshipsSystemAccountRemoveUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemAccountRemoveUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemAccountRemoveUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemAccountRemoveUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemAccountReplaceUnion ¶
type OpportunityUpdateParamsRelationshipsSystemAccountReplaceUnion 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 (OpportunityUpdateParamsRelationshipsSystemAccountReplaceUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemAccountReplaceUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemAccountReplaceUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemAccountReplaceUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemChampion ¶
type OpportunityUpdateParamsRelationshipsSystemChampion struct {
Add OpportunityUpdateParamsRelationshipsSystemChampionAddUnion `json:"add,omitzero"`
Remove OpportunityUpdateParamsRelationshipsSystemChampionRemoveUnion `json:"remove,omitzero"`
Replace OpportunityUpdateParamsRelationshipsSystemChampionReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
func (OpportunityUpdateParamsRelationshipsSystemChampion) MarshalJSON ¶
func (r OpportunityUpdateParamsRelationshipsSystemChampion) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationshipsSystemChampion) UnmarshalJSON ¶
func (r *OpportunityUpdateParamsRelationshipsSystemChampion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemChampionAddUnion ¶
type OpportunityUpdateParamsRelationshipsSystemChampionAddUnion 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 (OpportunityUpdateParamsRelationshipsSystemChampionAddUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemChampionAddUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemChampionAddUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemChampionAddUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemChampionRemoveUnion ¶
type OpportunityUpdateParamsRelationshipsSystemChampionRemoveUnion 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 (OpportunityUpdateParamsRelationshipsSystemChampionRemoveUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemChampionRemoveUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemChampionRemoveUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemChampionRemoveUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemChampionReplaceUnion ¶
type OpportunityUpdateParamsRelationshipsSystemChampionReplaceUnion 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 (OpportunityUpdateParamsRelationshipsSystemChampionReplaceUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemChampionReplaceUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemChampionReplaceUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemChampionReplaceUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemCreatedBy ¶
type OpportunityUpdateParamsRelationshipsSystemCreatedBy struct {
Add OpportunityUpdateParamsRelationshipsSystemCreatedByAddUnion `json:"add,omitzero"`
Remove OpportunityUpdateParamsRelationshipsSystemCreatedByRemoveUnion `json:"remove,omitzero"`
Replace OpportunityUpdateParamsRelationshipsSystemCreatedByReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
func (OpportunityUpdateParamsRelationshipsSystemCreatedBy) MarshalJSON ¶
func (r OpportunityUpdateParamsRelationshipsSystemCreatedBy) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationshipsSystemCreatedBy) UnmarshalJSON ¶
func (r *OpportunityUpdateParamsRelationshipsSystemCreatedBy) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemCreatedByAddUnion ¶
type OpportunityUpdateParamsRelationshipsSystemCreatedByAddUnion 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 (OpportunityUpdateParamsRelationshipsSystemCreatedByAddUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemCreatedByAddUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemCreatedByAddUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemCreatedByAddUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemCreatedByRemoveUnion ¶
type OpportunityUpdateParamsRelationshipsSystemCreatedByRemoveUnion 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 (OpportunityUpdateParamsRelationshipsSystemCreatedByRemoveUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemCreatedByRemoveUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemCreatedByRemoveUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemCreatedByRemoveUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemCreatedByReplaceUnion ¶
type OpportunityUpdateParamsRelationshipsSystemCreatedByReplaceUnion 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 (OpportunityUpdateParamsRelationshipsSystemCreatedByReplaceUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemCreatedByReplaceUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemCreatedByReplaceUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemCreatedByReplaceUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemEvaluator ¶
type OpportunityUpdateParamsRelationshipsSystemEvaluator struct {
Add OpportunityUpdateParamsRelationshipsSystemEvaluatorAddUnion `json:"add,omitzero"`
Remove OpportunityUpdateParamsRelationshipsSystemEvaluatorRemoveUnion `json:"remove,omitzero"`
Replace OpportunityUpdateParamsRelationshipsSystemEvaluatorReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
func (OpportunityUpdateParamsRelationshipsSystemEvaluator) MarshalJSON ¶
func (r OpportunityUpdateParamsRelationshipsSystemEvaluator) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationshipsSystemEvaluator) UnmarshalJSON ¶
func (r *OpportunityUpdateParamsRelationshipsSystemEvaluator) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemEvaluatorAddUnion ¶
type OpportunityUpdateParamsRelationshipsSystemEvaluatorAddUnion 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 (OpportunityUpdateParamsRelationshipsSystemEvaluatorAddUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemEvaluatorAddUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemEvaluatorAddUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemEvaluatorAddUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemEvaluatorRemoveUnion ¶
type OpportunityUpdateParamsRelationshipsSystemEvaluatorRemoveUnion 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 (OpportunityUpdateParamsRelationshipsSystemEvaluatorRemoveUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemEvaluatorRemoveUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemEvaluatorRemoveUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemEvaluatorRemoveUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemEvaluatorReplaceUnion ¶
type OpportunityUpdateParamsRelationshipsSystemEvaluatorReplaceUnion 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 (OpportunityUpdateParamsRelationshipsSystemEvaluatorReplaceUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemEvaluatorReplaceUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemEvaluatorReplaceUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemEvaluatorReplaceUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemOwner ¶
type OpportunityUpdateParamsRelationshipsSystemOwner struct {
Add OpportunityUpdateParamsRelationshipsSystemOwnerAddUnion `json:"add,omitzero"`
Remove OpportunityUpdateParamsRelationshipsSystemOwnerRemoveUnion `json:"remove,omitzero"`
Replace OpportunityUpdateParamsRelationshipsSystemOwnerReplaceUnion `json:"replace,omitzero"`
// contains filtered or unexported fields
}
func (OpportunityUpdateParamsRelationshipsSystemOwner) MarshalJSON ¶
func (r OpportunityUpdateParamsRelationshipsSystemOwner) MarshalJSON() (data []byte, err error)
func (*OpportunityUpdateParamsRelationshipsSystemOwner) UnmarshalJSON ¶
func (r *OpportunityUpdateParamsRelationshipsSystemOwner) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemOwnerAddUnion ¶
type OpportunityUpdateParamsRelationshipsSystemOwnerAddUnion 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 (OpportunityUpdateParamsRelationshipsSystemOwnerAddUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemOwnerAddUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemOwnerAddUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemOwnerAddUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemOwnerRemoveUnion ¶
type OpportunityUpdateParamsRelationshipsSystemOwnerRemoveUnion 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 (OpportunityUpdateParamsRelationshipsSystemOwnerRemoveUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemOwnerRemoveUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemOwnerRemoveUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemOwnerRemoveUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateParamsRelationshipsSystemOwnerReplaceUnion ¶
type OpportunityUpdateParamsRelationshipsSystemOwnerReplaceUnion 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 (OpportunityUpdateParamsRelationshipsSystemOwnerReplaceUnion) MarshalJSON ¶
func (u OpportunityUpdateParamsRelationshipsSystemOwnerReplaceUnion) MarshalJSON() ([]byte, error)
func (*OpportunityUpdateParamsRelationshipsSystemOwnerReplaceUnion) UnmarshalJSON ¶
func (u *OpportunityUpdateParamsRelationshipsSystemOwnerReplaceUnion) UnmarshalJSON(data []byte) error
type OpportunityUpdateResponse ¶
type OpportunityUpdateResponse struct {
ID string `json:"id" api:"required"`
CreatedAt string `json:"createdAt" api:"required"`
Fields map[string]OpportunityUpdateResponseField `json:"fields" api:"required"`
HTTPLink string `json:"httpLink" api:"required"`
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 {
Value OpportunityUpdateResponseFieldValueUnion `json:"value" api:"required"`
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 {
Cardinality string `json:"cardinality" api:"required"`
ObjectType string `json:"objectType" api:"required"`
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
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
|
|