2022-09-03 03:34:04 +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 crm_models
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
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
|
|
|
stderrors "errors"
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
"github.com/go-openapi/errors"
|
|
|
|
|
"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"
|
|
|
|
|
"github.com/go-openapi/swag/typeutils"
|
2022-09-03 03:34:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Asset asset
|
|
|
|
|
//
|
2023-04-06 01:28:58 +00:00
|
|
|
// swagger:model asset
|
2022-09-03 03:34:04 +00:00
|
|
|
type Asset struct {
|
|
|
|
|
|
|
|
|
|
// Account
|
2023-04-15 14:27:18 +00:00
|
|
|
AccountID *string `json:"AccountID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// address
|
|
|
|
|
Address *Address `json:"Address,omitempty"`
|
|
|
|
|
|
|
|
|
|
// Asset Level
|
2023-04-15 14:27:18 +00:00
|
|
|
AssetLevel *float64 `json:"AssetLevel,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Asset Provided By
|
2023-04-15 14:27:18 +00:00
|
|
|
AssetProvidedByID *string `json:"AssetProvidedByID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Asset Serviced By
|
2023-04-15 14:27:18 +00:00
|
|
|
AssetServicedByID *string `json:"AssetServicedByID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Company Product
|
2023-04-15 14:27:18 +00:00
|
|
|
CompanyProductID *string `json:"CompanyProductID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Consequence Of Failure
|
2023-04-15 14:27:18 +00:00
|
|
|
ConsequenceOfFailure *string `json:"ConsequenceOfFailure,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Contact
|
2023-04-15 14:27:18 +00:00
|
|
|
ContactID *string `json:"ContactID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Created By
|
2023-04-15 14:27:18 +00:00
|
|
|
CreatedByID *string `json:"CreatedByID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Created Date
|
2023-04-15 14:27:18 +00:00
|
|
|
CreatedDate *string `json:"CreatedDate,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Current Amount
|
2023-04-15 14:27:18 +00:00
|
|
|
CurrentAmount *float64 `json:"CurrentAmount,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Current Lifecycle End Date
|
2023-04-15 14:27:18 +00:00
|
|
|
CurrentLifecycleEndDate *string `json:"CurrentLifecycleEndDate,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Current Monthly Recurring Revenue
|
2023-04-15 14:27:18 +00:00
|
|
|
CurrentMrr *float64 `json:"CurrentMrr,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Current Quantity
|
2023-04-15 14:27:18 +00:00
|
|
|
CurrentQuantity *float64 `json:"CurrentQuantity,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Description
|
2023-04-15 14:27:18 +00:00
|
|
|
Description *string `json:"Description,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Digital Asset Status
|
2023-04-15 14:27:18 +00:00
|
|
|
DigitalAssetStatus *string `json:"DigitalAssetStatus,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// External Id
|
2023-04-15 14:27:18 +00:00
|
|
|
ExternalIdentifier *string `json:"ExternalIdentifier,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Has Lifecycle Management
|
2023-04-15 14:27:18 +00:00
|
|
|
HasLifecycleManagement *bool `json:"HasLifecycleManagement,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
2023-03-28 17:47:34 +00:00
|
|
|
// Record Id
|
2022-09-03 03:34:04 +00:00
|
|
|
ID string `json:"ID,omitempty"`
|
|
|
|
|
|
|
|
|
|
// Install Date
|
2023-04-15 14:27:18 +00:00
|
|
|
InstallDate *string `json:"InstallDate,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Competitor Asset
|
2023-04-15 14:27:18 +00:00
|
|
|
IsCompetitorProduct *bool `json:"IsCompetitorProduct,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Internal Asset
|
2023-04-15 14:27:18 +00:00
|
|
|
IsInternal *bool `json:"IsInternal,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Last Modified By
|
2023-04-15 14:27:18 +00:00
|
|
|
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Last Modified Date
|
2023-04-15 14:27:18 +00:00
|
|
|
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Location
|
2023-04-15 14:27:18 +00:00
|
|
|
LocationID *string `json:"LocationID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// MIME Type
|
2023-04-15 14:27:18 +00:00
|
|
|
MIMEType *string `json:"MIMEType,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Manufacture Date
|
2023-04-15 14:27:18 +00:00
|
|
|
ManufactureDate *string `json:"ManufactureDate,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Asset Name
|
2023-04-15 14:27:18 +00:00
|
|
|
Name *string `json:"Name,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Parent Asset
|
2023-04-15 14:27:18 +00:00
|
|
|
ParentID *string `json:"ParentID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Price
|
2023-04-15 14:27:18 +00:00
|
|
|
Price *float64 `json:"Price,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Product
|
2023-04-15 14:27:18 +00:00
|
|
|
Product2ID *string `json:"Product2ID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Product Code
|
2023-04-15 14:27:18 +00:00
|
|
|
ProductCode *string `json:"ProductCode,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Product Description
|
2023-04-15 14:27:18 +00:00
|
|
|
ProductDescription *string `json:"ProductDescription,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Product Family
|
2023-04-15 14:27:18 +00:00
|
|
|
ProductFamily *string `json:"ProductFamily,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Purchase Date
|
2023-04-15 14:27:18 +00:00
|
|
|
PurchaseDate *string `json:"PurchaseDate,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Quantity
|
2023-04-15 14:27:18 +00:00
|
|
|
Quantity *float64 `json:"Quantity,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Root Asset
|
2023-04-15 14:27:18 +00:00
|
|
|
RootAssetID *string `json:"RootAssetID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Serial Number
|
2023-04-15 14:27:18 +00:00
|
|
|
SerialNumber *string `json:"SerialNumber,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Status
|
2023-04-15 14:27:18 +00:00
|
|
|
Status *string `json:"Status,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Status Reason
|
2023-04-15 14:27:18 +00:00
|
|
|
StatusReason *string `json:"StatusReason,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Product SKU
|
2023-04-15 14:27:18 +00:00
|
|
|
StockKeepingUnit *string `json:"StockKeepingUnit,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Tenant ID
|
2023-04-15 14:27:18 +00:00
|
|
|
TenantID *string `json:"TenantID,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Total Lifecycle Amount
|
2023-04-15 14:27:18 +00:00
|
|
|
TotalLifecycleAmount *float64 `json:"TotalLifecycleAmount,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Type
|
2023-04-15 14:27:18 +00:00
|
|
|
Type *string `json:"Type,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// URL
|
2023-04-15 14:27:18 +00:00
|
|
|
URL *string `json:"URL,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
|
|
|
|
|
// Usage End Date
|
2023-04-15 14:27:18 +00:00
|
|
|
UsageEndDate *string `json:"UsageEndDate,omitempty"`
|
2022-09-03 03:34:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Validate validates this asset
|
|
|
|
|
func (m *Asset) Validate(formats strfmt.Registry) error {
|
|
|
|
|
var res []error
|
|
|
|
|
|
|
|
|
|
if err := m.validateAddress(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if len(res) > 0 {
|
|
|
|
|
return errors.CompositeValidationError(res...)
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Asset) validateAddress(formats strfmt.Registry) error {
|
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 typeutils.IsZero(m.Address) { // not required
|
2022-09-03 03:34:04 +00:00
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if m.Address != nil {
|
|
|
|
|
if err := m.Address.Validate(formats); err != 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
|
|
|
ve := new(errors.Validation)
|
|
|
|
|
if stderrors.As(err, &ve) {
|
2022-09-03 03:34:04 +00:00
|
|
|
return ve.ValidateName("Address")
|
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
|
|
|
}
|
|
|
|
|
ce := new(errors.CompositeError)
|
|
|
|
|
if stderrors.As(err, &ce) {
|
2022-09-03 03:34:04 +00:00
|
|
|
return ce.ValidateName("Address")
|
|
|
|
|
}
|
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
|
|
|
|
2022-09-03 03:34:04 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ContextValidate validate this asset based on the context it is used
|
|
|
|
|
func (m *Asset) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
|
|
|
var res []error
|
|
|
|
|
|
|
|
|
|
if err := m.contextValidateAddress(ctx, formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if len(res) > 0 {
|
|
|
|
|
return errors.CompositeValidationError(res...)
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Asset) contextValidateAddress(ctx context.Context, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
if m.Address != 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
|
|
|
|
|
|
|
|
if typeutils.IsZero(m.Address) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-03 03:34:04 +00:00
|
|
|
if err := m.Address.ContextValidate(ctx, formats); err != 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
|
|
|
ve := new(errors.Validation)
|
|
|
|
|
if stderrors.As(err, &ve) {
|
2022-09-03 03:34:04 +00:00
|
|
|
return ve.ValidateName("Address")
|
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
|
|
|
}
|
|
|
|
|
ce := new(errors.CompositeError)
|
|
|
|
|
if stderrors.As(err, &ce) {
|
2022-09-03 03:34:04 +00:00
|
|
|
return ce.ValidateName("Address")
|
|
|
|
|
}
|
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
|
|
|
|
2022-09-03 03:34:04 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MarshalBinary interface implementation
|
|
|
|
|
func (m *Asset) 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)
|
2022-09-03 03:34:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnmarshalBinary interface implementation
|
|
|
|
|
func (m *Asset) UnmarshalBinary(b []byte) error {
|
|
|
|
|
var res Asset
|
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 {
|
2022-09-03 03:34:04 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
*m = res
|
|
|
|
|
return nil
|
|
|
|
|
}
|