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 tickets
|
|
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// PostTicketsReader is a Reader for the PostTickets structure.
|
|
|
|
|
type PostTicketsReader 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 *PostTicketsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error) {
|
2023-05-13 16:46:48 +00:00
|
|
|
switch response.Code() {
|
|
|
|
|
case 200:
|
|
|
|
|
result := NewPostTicketsOK()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return result, nil
|
|
|
|
|
case 401:
|
|
|
|
|
result := NewPostTicketsUnauthorized()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 403:
|
|
|
|
|
result := NewPostTicketsForbidden()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 404:
|
|
|
|
|
result := NewPostTicketsNotFound()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 422:
|
|
|
|
|
result := NewPostTicketsUnprocessableEntity()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 500:
|
|
|
|
|
result := NewPostTicketsInternalServerError()
|
|
|
|
|
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 /tickets] postTickets", response, response.Code())
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostTicketsOK creates a PostTicketsOK with default headers values
|
|
|
|
|
func NewPostTicketsOK() *PostTicketsOK {
|
|
|
|
|
return &PostTicketsOK{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostTicketsOK describes a response with status code 200, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Ticket Response Object
|
2023-05-13 16:46:48 +00:00
|
|
|
type PostTicketsOK struct {
|
|
|
|
|
Payload *members_models.TicketResponse
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post tickets o k response has a 2xx status code
|
|
|
|
|
func (o *PostTicketsOK) IsSuccess() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post tickets o k response has a 3xx status code
|
|
|
|
|
func (o *PostTicketsOK) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post tickets o k response has a 4xx status code
|
|
|
|
|
func (o *PostTicketsOK) IsClientError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post tickets o k response has a 5xx status code
|
|
|
|
|
func (o *PostTicketsOK) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post tickets o k response a status code equal to that given
|
|
|
|
|
func (o *PostTicketsOK) IsCode(code int) bool {
|
|
|
|
|
return code == 200
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post tickets o k response
|
|
|
|
|
func (o *PostTicketsOK) Code() int {
|
|
|
|
|
return 200
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsOK) 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 /tickets][%d] postTicketsOK %s", 200, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsOK) 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 /tickets][%d] postTicketsOK %s", 200, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsOK) GetPayload() *members_models.TicketResponse {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(members_models.TicketResponse)
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostTicketsUnauthorized creates a PostTicketsUnauthorized with default headers values
|
|
|
|
|
func NewPostTicketsUnauthorized() *PostTicketsUnauthorized {
|
|
|
|
|
return &PostTicketsUnauthorized{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostTicketsUnauthorized 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 PostTicketsUnauthorized struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post tickets unauthorized response has a 2xx status code
|
|
|
|
|
func (o *PostTicketsUnauthorized) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post tickets unauthorized response has a 3xx status code
|
|
|
|
|
func (o *PostTicketsUnauthorized) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post tickets unauthorized response has a 4xx status code
|
|
|
|
|
func (o *PostTicketsUnauthorized) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post tickets unauthorized response has a 5xx status code
|
|
|
|
|
func (o *PostTicketsUnauthorized) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post tickets unauthorized response a status code equal to that given
|
|
|
|
|
func (o *PostTicketsUnauthorized) IsCode(code int) bool {
|
|
|
|
|
return code == 401
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post tickets unauthorized response
|
|
|
|
|
func (o *PostTicketsUnauthorized) Code() int {
|
|
|
|
|
return 401
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsUnauthorized) 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 /tickets][%d] postTicketsUnauthorized %s", 401, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsUnauthorized) 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 /tickets][%d] postTicketsUnauthorized %s", 401, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsUnauthorized) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsUnauthorized) 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
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostTicketsForbidden creates a PostTicketsForbidden with default headers values
|
|
|
|
|
func NewPostTicketsForbidden() *PostTicketsForbidden {
|
|
|
|
|
return &PostTicketsForbidden{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostTicketsForbidden 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 PostTicketsForbidden struct {
|
|
|
|
|
AccessControlAllowOrigin string
|
|
|
|
|
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post tickets forbidden response has a 2xx status code
|
|
|
|
|
func (o *PostTicketsForbidden) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post tickets forbidden response has a 3xx status code
|
|
|
|
|
func (o *PostTicketsForbidden) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post tickets forbidden response has a 4xx status code
|
|
|
|
|
func (o *PostTicketsForbidden) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post tickets forbidden response has a 5xx status code
|
|
|
|
|
func (o *PostTicketsForbidden) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post tickets forbidden response a status code equal to that given
|
|
|
|
|
func (o *PostTicketsForbidden) IsCode(code int) bool {
|
|
|
|
|
return code == 403
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post tickets forbidden response
|
|
|
|
|
func (o *PostTicketsForbidden) Code() int {
|
|
|
|
|
return 403
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsForbidden) 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 /tickets][%d] postTicketsForbidden %s", 403, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsForbidden) 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 /tickets][%d] postTicketsForbidden %s", 403, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsForbidden) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsForbidden) 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
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostTicketsNotFound creates a PostTicketsNotFound with default headers values
|
|
|
|
|
func NewPostTicketsNotFound() *PostTicketsNotFound {
|
|
|
|
|
return &PostTicketsNotFound{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostTicketsNotFound describes a response with status code 404, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Resource was not found
|
2023-05-13 16:46:48 +00:00
|
|
|
type PostTicketsNotFound struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post tickets not found response has a 2xx status code
|
|
|
|
|
func (o *PostTicketsNotFound) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post tickets not found response has a 3xx status code
|
|
|
|
|
func (o *PostTicketsNotFound) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post tickets not found response has a 4xx status code
|
|
|
|
|
func (o *PostTicketsNotFound) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post tickets not found response has a 5xx status code
|
|
|
|
|
func (o *PostTicketsNotFound) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post tickets not found response a status code equal to that given
|
|
|
|
|
func (o *PostTicketsNotFound) IsCode(code int) bool {
|
|
|
|
|
return code == 404
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post tickets not found response
|
|
|
|
|
func (o *PostTicketsNotFound) Code() int {
|
|
|
|
|
return 404
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsNotFound) 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 /tickets][%d] postTicketsNotFound %s", 404, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsNotFound) 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 /tickets][%d] postTicketsNotFound %s", 404, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsNotFound) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsNotFound) 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
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostTicketsUnprocessableEntity creates a PostTicketsUnprocessableEntity with default headers values
|
|
|
|
|
func NewPostTicketsUnprocessableEntity() *PostTicketsUnprocessableEntity {
|
|
|
|
|
return &PostTicketsUnprocessableEntity{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostTicketsUnprocessableEntity 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 PostTicketsUnprocessableEntity struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post tickets unprocessable entity response has a 2xx status code
|
|
|
|
|
func (o *PostTicketsUnprocessableEntity) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post tickets unprocessable entity response has a 3xx status code
|
|
|
|
|
func (o *PostTicketsUnprocessableEntity) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post tickets unprocessable entity response has a 4xx status code
|
|
|
|
|
func (o *PostTicketsUnprocessableEntity) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post tickets unprocessable entity response has a 5xx status code
|
|
|
|
|
func (o *PostTicketsUnprocessableEntity) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post tickets unprocessable entity response a status code equal to that given
|
|
|
|
|
func (o *PostTicketsUnprocessableEntity) IsCode(code int) bool {
|
|
|
|
|
return code == 422
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post tickets unprocessable entity response
|
|
|
|
|
func (o *PostTicketsUnprocessableEntity) Code() int {
|
|
|
|
|
return 422
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsUnprocessableEntity) 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 /tickets][%d] postTicketsUnprocessableEntity %s", 422, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsUnprocessableEntity) 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 /tickets][%d] postTicketsUnprocessableEntity %s", 422, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsUnprocessableEntity) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsUnprocessableEntity) 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
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewPostTicketsInternalServerError creates a PostTicketsInternalServerError with default headers values
|
|
|
|
|
func NewPostTicketsInternalServerError() *PostTicketsInternalServerError {
|
|
|
|
|
return &PostTicketsInternalServerError{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// PostTicketsInternalServerError describes a response with status code 500, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Server Internal Error
|
2023-05-13 16:46:48 +00:00
|
|
|
type PostTicketsInternalServerError struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this post tickets internal server error response has a 2xx status code
|
|
|
|
|
func (o *PostTicketsInternalServerError) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this post tickets internal server error response has a 3xx status code
|
|
|
|
|
func (o *PostTicketsInternalServerError) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this post tickets internal server error response has a 4xx status code
|
|
|
|
|
func (o *PostTicketsInternalServerError) IsClientError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this post tickets internal server error response has a 5xx status code
|
|
|
|
|
func (o *PostTicketsInternalServerError) IsServerError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this post tickets internal server error response a status code equal to that given
|
|
|
|
|
func (o *PostTicketsInternalServerError) IsCode(code int) bool {
|
|
|
|
|
return code == 500
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the post tickets internal server error response
|
|
|
|
|
func (o *PostTicketsInternalServerError) Code() int {
|
|
|
|
|
return 500
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsInternalServerError) 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 /tickets][%d] postTicketsInternalServerError %s", 500, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsInternalServerError) 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 /tickets][%d] postTicketsInternalServerError %s", 500, payload)
|
2023-05-13 16:46:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsInternalServerError) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *PostTicketsInternalServerError) 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
|
|
|
|
|
}
|