2023-05-13 16:46:48 +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 certificates
|
|
|
|
|
|
|
|
|
|
import (
|
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
|
|
|
"encoding/json"
|
|
|
|
|
stderrors "errors"
|
2023-05-13 16:46:48 +00:00
|
|
|
"fmt"
|
|
|
|
|
"io"
|
|
|
|
|
|
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
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_models"
|
2023-05-13 16:46:48 +00:00
|
|
|
"github.com/go-openapi/runtime"
|
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// PostCertificatesReader is a Reader for the PostCertificates structure.
|
|
|
|
|
type PostCertificatesReader struct {
|
|
|
|
|
formats strfmt.Registry
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ReadResponse reads a server response into the received o.
|
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
|
|
|
func (o *PostCertificatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error) {
|
2023-05-13 16:46:48 +00:00
|
|
|
switch response.Code() {
|
|
|
|
|
case 200:
|
|
|
|
|
result := NewPostCertificatesOK()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return result, nil
|
|
|
|
|
case 401:
|
|
|
|
|
result := NewPostCertificatesUnauthorized()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 403:
|
|
|
|
|
result := NewPostCertificatesForbidden()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 404:
|
|
|
|
|
result := NewPostCertificatesNotFound()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 422:
|
|
|
|
|
result := NewPostCertificatesUnprocessableEntity()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 500:
|
|
|
|
|
result := NewPostCertificatesInternalServerError()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
default:
|
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 nil, runtime.NewAPIError("[POST /certificates] postCertificates", response, response.Code())
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostCertificatesOK creates a PostCertificatesOK with default headers values
|
|
|
|
|
func NewPostCertificatesOK() *PostCertificatesOK {
|
|
|
|
|
return &PostCertificatesOK{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostCertificatesOK describes a response with status code 200, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Certificate Response Object
|
2023-05-13 16:46:48 +00:00
|
|
|
type PostCertificatesOK struct {
|
|
|
|
|
Payload *members_models.CertificateResponse
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post certificates o k response has a 2xx status code
|
|
|
|
|
func (o *PostCertificatesOK) IsSuccess() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post certificates o k response has a 3xx status code
|
|
|
|
|
func (o *PostCertificatesOK) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post certificates o k response has a 4xx status code
|
|
|
|
|
func (o *PostCertificatesOK) IsClientError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post certificates o k response has a 5xx status code
|
|
|
|
|
func (o *PostCertificatesOK) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post certificates o k response a status code equal to that given
|
|
|
|
|
func (o *PostCertificatesOK) IsCode(code int) bool {
|
|
|
|
|
return code == 200
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post certificates o k response
|
|
|
|
|
func (o *PostCertificatesOK) Code() int {
|
|
|
|
|
return 200
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesOK) Error() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesOK %s", 200, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesOK) String() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesOK %s", 200, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesOK) GetPayload() *members_models.CertificateResponse {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(members_models.CertificateResponse)
|
|
|
|
|
|
|
|
|
|
// response payload
|
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 := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2023-05-13 16:46:48 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostCertificatesUnauthorized creates a PostCertificatesUnauthorized with default headers values
|
|
|
|
|
func NewPostCertificatesUnauthorized() *PostCertificatesUnauthorized {
|
|
|
|
|
return &PostCertificatesUnauthorized{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostCertificatesUnauthorized describes a response with status code 401, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Access Unauthorized, invalid API-KEY was used
|
2023-05-13 16:46:48 +00:00
|
|
|
type PostCertificatesUnauthorized struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post certificates unauthorized response has a 2xx status code
|
|
|
|
|
func (o *PostCertificatesUnauthorized) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post certificates unauthorized response has a 3xx status code
|
|
|
|
|
func (o *PostCertificatesUnauthorized) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post certificates unauthorized response has a 4xx status code
|
|
|
|
|
func (o *PostCertificatesUnauthorized) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post certificates unauthorized response has a 5xx status code
|
|
|
|
|
func (o *PostCertificatesUnauthorized) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post certificates unauthorized response a status code equal to that given
|
|
|
|
|
func (o *PostCertificatesUnauthorized) IsCode(code int) bool {
|
|
|
|
|
return code == 401
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post certificates unauthorized response
|
|
|
|
|
func (o *PostCertificatesUnauthorized) Code() int {
|
|
|
|
|
return 401
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesUnauthorized) Error() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesUnauthorized %s", 401, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesUnauthorized) String() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesUnauthorized %s", 401, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesUnauthorized) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(members_models.Error)
|
|
|
|
|
|
|
|
|
|
// response payload
|
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 := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2023-05-13 16:46:48 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostCertificatesForbidden creates a PostCertificatesForbidden with default headers values
|
|
|
|
|
func NewPostCertificatesForbidden() *PostCertificatesForbidden {
|
|
|
|
|
return &PostCertificatesForbidden{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostCertificatesForbidden describes a response with status code 403, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Access forbidden, account lacks access
|
2023-05-13 16:46:48 +00:00
|
|
|
type PostCertificatesForbidden struct {
|
|
|
|
|
AccessControlAllowOrigin string
|
|
|
|
|
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post certificates forbidden response has a 2xx status code
|
|
|
|
|
func (o *PostCertificatesForbidden) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post certificates forbidden response has a 3xx status code
|
|
|
|
|
func (o *PostCertificatesForbidden) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post certificates forbidden response has a 4xx status code
|
|
|
|
|
func (o *PostCertificatesForbidden) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post certificates forbidden response has a 5xx status code
|
|
|
|
|
func (o *PostCertificatesForbidden) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post certificates forbidden response a status code equal to that given
|
|
|
|
|
func (o *PostCertificatesForbidden) IsCode(code int) bool {
|
|
|
|
|
return code == 403
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post certificates forbidden response
|
|
|
|
|
func (o *PostCertificatesForbidden) Code() int {
|
|
|
|
|
return 403
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesForbidden) Error() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesForbidden %s", 403, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesForbidden) String() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesForbidden %s", 403, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesForbidden) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
// hydrates response header Access-Control-Allow-Origin
|
|
|
|
|
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
|
|
|
|
|
|
|
|
|
if hdrAccessControlAllowOrigin != "" {
|
|
|
|
|
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
o.Payload = new(members_models.Error)
|
|
|
|
|
|
|
|
|
|
// response payload
|
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 := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2023-05-13 16:46:48 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostCertificatesNotFound creates a PostCertificatesNotFound with default headers values
|
|
|
|
|
func NewPostCertificatesNotFound() *PostCertificatesNotFound {
|
|
|
|
|
return &PostCertificatesNotFound{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostCertificatesNotFound describes a response with status code 404, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Resource was not found
|
2023-05-13 16:46:48 +00:00
|
|
|
type PostCertificatesNotFound struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post certificates not found response has a 2xx status code
|
|
|
|
|
func (o *PostCertificatesNotFound) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post certificates not found response has a 3xx status code
|
|
|
|
|
func (o *PostCertificatesNotFound) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post certificates not found response has a 4xx status code
|
|
|
|
|
func (o *PostCertificatesNotFound) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post certificates not found response has a 5xx status code
|
|
|
|
|
func (o *PostCertificatesNotFound) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post certificates not found response a status code equal to that given
|
|
|
|
|
func (o *PostCertificatesNotFound) IsCode(code int) bool {
|
|
|
|
|
return code == 404
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post certificates not found response
|
|
|
|
|
func (o *PostCertificatesNotFound) Code() int {
|
|
|
|
|
return 404
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesNotFound) Error() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesNotFound %s", 404, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesNotFound) String() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesNotFound %s", 404, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesNotFound) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(members_models.Error)
|
|
|
|
|
|
|
|
|
|
// response payload
|
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 := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2023-05-13 16:46:48 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostCertificatesUnprocessableEntity creates a PostCertificatesUnprocessableEntity with default headers values
|
|
|
|
|
func NewPostCertificatesUnprocessableEntity() *PostCertificatesUnprocessableEntity {
|
|
|
|
|
return &PostCertificatesUnprocessableEntity{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostCertificatesUnprocessableEntity describes a response with status code 422, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Unprocessable Entity, likely a bad parameter
|
2023-05-13 16:46:48 +00:00
|
|
|
type PostCertificatesUnprocessableEntity struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post certificates unprocessable entity response has a 2xx status code
|
|
|
|
|
func (o *PostCertificatesUnprocessableEntity) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post certificates unprocessable entity response has a 3xx status code
|
|
|
|
|
func (o *PostCertificatesUnprocessableEntity) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post certificates unprocessable entity response has a 4xx status code
|
|
|
|
|
func (o *PostCertificatesUnprocessableEntity) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post certificates unprocessable entity response has a 5xx status code
|
|
|
|
|
func (o *PostCertificatesUnprocessableEntity) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post certificates unprocessable entity response a status code equal to that given
|
|
|
|
|
func (o *PostCertificatesUnprocessableEntity) IsCode(code int) bool {
|
|
|
|
|
return code == 422
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post certificates unprocessable entity response
|
|
|
|
|
func (o *PostCertificatesUnprocessableEntity) Code() int {
|
|
|
|
|
return 422
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesUnprocessableEntity) Error() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesUnprocessableEntity %s", 422, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesUnprocessableEntity) String() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesUnprocessableEntity %s", 422, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesUnprocessableEntity) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(members_models.Error)
|
|
|
|
|
|
|
|
|
|
// response payload
|
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 := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2023-05-13 16:46:48 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostCertificatesInternalServerError creates a PostCertificatesInternalServerError with default headers values
|
|
|
|
|
func NewPostCertificatesInternalServerError() *PostCertificatesInternalServerError {
|
|
|
|
|
return &PostCertificatesInternalServerError{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostCertificatesInternalServerError describes a response with status code 500, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Server Internal Error
|
2023-05-13 16:46:48 +00:00
|
|
|
type PostCertificatesInternalServerError struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post certificates internal server error response has a 2xx status code
|
|
|
|
|
func (o *PostCertificatesInternalServerError) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post certificates internal server error response has a 3xx status code
|
|
|
|
|
func (o *PostCertificatesInternalServerError) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post certificates internal server error response has a 4xx status code
|
|
|
|
|
func (o *PostCertificatesInternalServerError) IsClientError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post certificates internal server error response has a 5xx status code
|
|
|
|
|
func (o *PostCertificatesInternalServerError) IsServerError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post certificates internal server error response a status code equal to that given
|
|
|
|
|
func (o *PostCertificatesInternalServerError) IsCode(code int) bool {
|
|
|
|
|
return code == 500
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post certificates internal server error response
|
|
|
|
|
func (o *PostCertificatesInternalServerError) Code() int {
|
|
|
|
|
return 500
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesInternalServerError) Error() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesInternalServerError %s", 500, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesInternalServerError) String() string {
|
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
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[POST /certificates][%d] postCertificatesInternalServerError %s", 500, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesInternalServerError) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostCertificatesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(members_models.Error)
|
|
|
|
|
|
|
|
|
|
// response payload
|
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 := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2023-05-13 16:46:48 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|