2023-04-01 23:56:22 +00:00
|
|
|
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
// (c) 2012-2020 by Taxnexus, Inc.
|
|
|
|
|
// All rights reserved worldwide.
|
|
|
|
|
// Proprietary product; unlicensed use is not allowed
|
|
|
|
|
|
|
|
|
|
package sfgate_models
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
"github.com/go-openapi/strfmt"
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
"github.com/go-openapi/swag/jsonutils"
|
2023-04-01 23:56:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Observation A data point collected while analyzing a Factor
|
|
|
|
|
//
|
|
|
|
|
// swagger:model Observation
|
|
|
|
|
type Observation struct {
|
|
|
|
|
|
|
|
|
|
// The ID of the Company being analyzed
|
2023-04-15 14:27:18 +00:00
|
|
|
AccountID *string `json:"AccountID,omitempty"`
|
2023-04-01 23:56:22 +00:00
|
|
|
|
|
|
|
|
// The ID of the Product being analyzed
|
2023-04-15 14:27:18 +00:00
|
|
|
CompanyProductID *string `json:"CompanyProductID,omitempty"`
|
2023-04-01 23:56:22 +00:00
|
|
|
|
|
|
|
|
// Created By User ID
|
2023-04-15 14:27:18 +00:00
|
|
|
CreatedByID *string `json:"CreatedByID,omitempty"`
|
2023-04-01 23:56:22 +00:00
|
|
|
|
|
|
|
|
// Created Date
|
2023-04-15 14:27:18 +00:00
|
|
|
CreatedDate *string `json:"CreatedDate,omitempty"`
|
2023-04-01 23:56:22 +00:00
|
|
|
|
|
|
|
|
// Notes concerning data collection
|
2023-04-15 14:27:18 +00:00
|
|
|
Description *string `json:"Description,omitempty"`
|
2023-04-01 23:56:22 +00:00
|
|
|
|
|
|
|
|
// The ID of the Factor that owns this Observation
|
2023-04-15 14:27:18 +00:00
|
|
|
FactorID *string `json:"FactorID,omitempty"`
|
2023-04-01 23:56:22 +00:00
|
|
|
|
|
|
|
|
// Record Id
|
|
|
|
|
ID string `json:"ID,omitempty"`
|
|
|
|
|
|
|
|
|
|
// Last Modified By User ID
|
2023-04-15 14:27:18 +00:00
|
|
|
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
|
2023-04-01 23:56:22 +00:00
|
|
|
|
|
|
|
|
// Last Modified Date
|
2023-04-15 14:27:18 +00:00
|
|
|
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
|
2023-04-01 23:56:22 +00:00
|
|
|
|
|
|
|
|
// Is the subject a Company or a Product?
|
2023-04-15 14:27:18 +00:00
|
|
|
SubjectType *string `json:"SubjectType,omitempty"`
|
2023-04-01 23:56:22 +00:00
|
|
|
|
|
|
|
|
// The data point collected
|
2023-04-15 14:27:18 +00:00
|
|
|
Value *string `json:"Value,omitempty"`
|
2023-04-01 23:56:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Validate validates this observation
|
|
|
|
|
func (m *Observation) Validate(formats strfmt.Registry) error {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ContextValidate validates this observation based on context it is used
|
|
|
|
|
func (m *Observation) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MarshalBinary interface implementation
|
|
|
|
|
func (m *Observation) MarshalBinary() ([]byte, error) {
|
|
|
|
|
if m == nil {
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
return jsonutils.WriteJSON(m)
|
2023-04-01 23:56:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnmarshalBinary interface implementation
|
|
|
|
|
func (m *Observation) UnmarshalBinary(b []byte) error {
|
|
|
|
|
var res Observation
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
if err := jsonutils.ReadJSON(b, &res); err != nil {
|
2023-04-01 23:56:22 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
*m = res
|
|
|
|
|
return nil
|
|
|
|
|
}
|