2023-03-28 17:47:34 +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
|
|
|
|
|
|
2023-04-07 18:00:15 +00:00
|
|
|
package enrollments
|
2023-03-28 17:47:34 +00:00
|
|
|
|
|
|
|
|
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-03-28 17:47:34 +00:00
|
|
|
"fmt"
|
2023-04-30 02:07:31 +00:00
|
|
|
"io"
|
2023-03-28 17:47:34 +00:00
|
|
|
|
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-03-28 17:47:34 +00:00
|
|
|
"github.com/go-openapi/runtime"
|
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// GetEnrollmentsReader is a Reader for the GetEnrollments structure.
|
|
|
|
|
type GetEnrollmentsReader 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 *GetEnrollmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error) {
|
2023-03-28 17:47:34 +00:00
|
|
|
switch response.Code() {
|
|
|
|
|
case 200:
|
|
|
|
|
result := NewGetEnrollmentsOK()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return result, nil
|
2023-04-30 02:07:31 +00:00
|
|
|
case 401:
|
|
|
|
|
result := NewGetEnrollmentsUnauthorized()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 403:
|
|
|
|
|
result := NewGetEnrollmentsForbidden()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 404:
|
|
|
|
|
result := NewGetEnrollmentsNotFound()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 422:
|
|
|
|
|
result := NewGetEnrollmentsUnprocessableEntity()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 500:
|
|
|
|
|
result := NewGetEnrollmentsInternalServerError()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
2023-03-28 17:47:34 +00:00
|
|
|
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("[GET /enrollments] getEnrollments", response, response.Code())
|
2023-03-28 17:47:34 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetEnrollmentsOK creates a GetEnrollmentsOK with default headers values
|
|
|
|
|
func NewGetEnrollmentsOK() *GetEnrollmentsOK {
|
|
|
|
|
return &GetEnrollmentsOK{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// GetEnrollmentsOK describes a response with status code 200, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Enrollment Response Object
|
2023-03-28 17:47:34 +00:00
|
|
|
type GetEnrollmentsOK struct {
|
2023-04-30 02:07:31 +00:00
|
|
|
Payload *members_models.EnrollmentResponse
|
2023-03-28 17:47:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this get enrollments o k response has a 2xx status code
|
|
|
|
|
func (o *GetEnrollmentsOK) IsSuccess() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get enrollments o k response has a 3xx status code
|
|
|
|
|
func (o *GetEnrollmentsOK) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get enrollments o k response has a 4xx status code
|
|
|
|
|
func (o *GetEnrollmentsOK) IsClientError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get enrollments o k response has a 5xx status code
|
|
|
|
|
func (o *GetEnrollmentsOK) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get enrollments o k response a status code equal to that given
|
|
|
|
|
func (o *GetEnrollmentsOK) IsCode(code int) bool {
|
|
|
|
|
return code == 200
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get enrollments o k response
|
|
|
|
|
func (o *GetEnrollmentsOK) Code() int {
|
|
|
|
|
return 200
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsOK) 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("[GET /enrollments][%d] getEnrollmentsOK %s", 200, payload)
|
2023-03-28 17:47:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsOK) 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("[GET /enrollments][%d] getEnrollmentsOK %s", 200, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsOK) GetPayload() *members_models.EnrollmentResponse {
|
|
|
|
|
return o.Payload
|
2023-03-28 17:47:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
2023-04-30 02:07:31 +00:00
|
|
|
o.Payload = new(members_models.EnrollmentResponse)
|
|
|
|
|
|
|
|
|
|
// 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-04-30 02:07:31 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetEnrollmentsUnauthorized creates a GetEnrollmentsUnauthorized with default headers values
|
|
|
|
|
func NewGetEnrollmentsUnauthorized() *GetEnrollmentsUnauthorized {
|
|
|
|
|
return &GetEnrollmentsUnauthorized{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// GetEnrollmentsUnauthorized describes a response with status code 401, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Access Unauthorized, invalid API-KEY was used
|
2023-04-30 02:07:31 +00:00
|
|
|
type GetEnrollmentsUnauthorized struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this get enrollments unauthorized response has a 2xx status code
|
|
|
|
|
func (o *GetEnrollmentsUnauthorized) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get enrollments unauthorized response has a 3xx status code
|
|
|
|
|
func (o *GetEnrollmentsUnauthorized) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get enrollments unauthorized response has a 4xx status code
|
|
|
|
|
func (o *GetEnrollmentsUnauthorized) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get enrollments unauthorized response has a 5xx status code
|
|
|
|
|
func (o *GetEnrollmentsUnauthorized) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get enrollments unauthorized response a status code equal to that given
|
|
|
|
|
func (o *GetEnrollmentsUnauthorized) IsCode(code int) bool {
|
|
|
|
|
return code == 401
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get enrollments unauthorized response
|
|
|
|
|
func (o *GetEnrollmentsUnauthorized) Code() int {
|
|
|
|
|
return 401
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsUnauthorized) 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("[GET /enrollments][%d] getEnrollmentsUnauthorized %s", 401, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsUnauthorized) 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("[GET /enrollments][%d] getEnrollmentsUnauthorized %s", 401, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsUnauthorized) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsUnauthorized) 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-04-30 02:07:31 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetEnrollmentsForbidden creates a GetEnrollmentsForbidden with default headers values
|
|
|
|
|
func NewGetEnrollmentsForbidden() *GetEnrollmentsForbidden {
|
|
|
|
|
return &GetEnrollmentsForbidden{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// GetEnrollmentsForbidden describes a response with status code 403, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Access forbidden, account lacks access
|
2023-04-30 02:07:31 +00:00
|
|
|
type GetEnrollmentsForbidden struct {
|
|
|
|
|
AccessControlAllowOrigin string
|
|
|
|
|
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this get enrollments forbidden response has a 2xx status code
|
|
|
|
|
func (o *GetEnrollmentsForbidden) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get enrollments forbidden response has a 3xx status code
|
|
|
|
|
func (o *GetEnrollmentsForbidden) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get enrollments forbidden response has a 4xx status code
|
|
|
|
|
func (o *GetEnrollmentsForbidden) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get enrollments forbidden response has a 5xx status code
|
|
|
|
|
func (o *GetEnrollmentsForbidden) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get enrollments forbidden response a status code equal to that given
|
|
|
|
|
func (o *GetEnrollmentsForbidden) IsCode(code int) bool {
|
|
|
|
|
return code == 403
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get enrollments forbidden response
|
|
|
|
|
func (o *GetEnrollmentsForbidden) Code() int {
|
|
|
|
|
return 403
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsForbidden) 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("[GET /enrollments][%d] getEnrollmentsForbidden %s", 403, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsForbidden) 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("[GET /enrollments][%d] getEnrollmentsForbidden %s", 403, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsForbidden) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsForbidden) 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-04-30 02:07:31 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetEnrollmentsNotFound creates a GetEnrollmentsNotFound with default headers values
|
|
|
|
|
func NewGetEnrollmentsNotFound() *GetEnrollmentsNotFound {
|
|
|
|
|
return &GetEnrollmentsNotFound{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// GetEnrollmentsNotFound describes a response with status code 404, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Resource was not found
|
2023-04-30 02:07:31 +00:00
|
|
|
type GetEnrollmentsNotFound struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this get enrollments not found response has a 2xx status code
|
|
|
|
|
func (o *GetEnrollmentsNotFound) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get enrollments not found response has a 3xx status code
|
|
|
|
|
func (o *GetEnrollmentsNotFound) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get enrollments not found response has a 4xx status code
|
|
|
|
|
func (o *GetEnrollmentsNotFound) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get enrollments not found response has a 5xx status code
|
|
|
|
|
func (o *GetEnrollmentsNotFound) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get enrollments not found response a status code equal to that given
|
|
|
|
|
func (o *GetEnrollmentsNotFound) IsCode(code int) bool {
|
|
|
|
|
return code == 404
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get enrollments not found response
|
|
|
|
|
func (o *GetEnrollmentsNotFound) Code() int {
|
|
|
|
|
return 404
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsNotFound) 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("[GET /enrollments][%d] getEnrollmentsNotFound %s", 404, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsNotFound) 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("[GET /enrollments][%d] getEnrollmentsNotFound %s", 404, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsNotFound) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsNotFound) 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-04-30 02:07:31 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetEnrollmentsUnprocessableEntity creates a GetEnrollmentsUnprocessableEntity with default headers values
|
|
|
|
|
func NewGetEnrollmentsUnprocessableEntity() *GetEnrollmentsUnprocessableEntity {
|
|
|
|
|
return &GetEnrollmentsUnprocessableEntity{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// GetEnrollmentsUnprocessableEntity describes a response with status code 422, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Unprocessable Entity, likely a bad parameter
|
2023-04-30 02:07:31 +00:00
|
|
|
type GetEnrollmentsUnprocessableEntity struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this get enrollments unprocessable entity response has a 2xx status code
|
|
|
|
|
func (o *GetEnrollmentsUnprocessableEntity) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get enrollments unprocessable entity response has a 3xx status code
|
|
|
|
|
func (o *GetEnrollmentsUnprocessableEntity) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get enrollments unprocessable entity response has a 4xx status code
|
|
|
|
|
func (o *GetEnrollmentsUnprocessableEntity) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get enrollments unprocessable entity response has a 5xx status code
|
|
|
|
|
func (o *GetEnrollmentsUnprocessableEntity) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get enrollments unprocessable entity response a status code equal to that given
|
|
|
|
|
func (o *GetEnrollmentsUnprocessableEntity) IsCode(code int) bool {
|
|
|
|
|
return code == 422
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get enrollments unprocessable entity response
|
|
|
|
|
func (o *GetEnrollmentsUnprocessableEntity) Code() int {
|
|
|
|
|
return 422
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsUnprocessableEntity) 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("[GET /enrollments][%d] getEnrollmentsUnprocessableEntity %s", 422, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsUnprocessableEntity) 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("[GET /enrollments][%d] getEnrollmentsUnprocessableEntity %s", 422, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsUnprocessableEntity) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsUnprocessableEntity) 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-04-30 02:07:31 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetEnrollmentsInternalServerError creates a GetEnrollmentsInternalServerError with default headers values
|
|
|
|
|
func NewGetEnrollmentsInternalServerError() *GetEnrollmentsInternalServerError {
|
|
|
|
|
return &GetEnrollmentsInternalServerError{}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
// GetEnrollmentsInternalServerError describes a response with status code 500, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Server Internal Error
|
2023-04-30 02:07:31 +00:00
|
|
|
type GetEnrollmentsInternalServerError struct {
|
|
|
|
|
Payload *members_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsSuccess returns true when this get enrollments internal server error response has a 2xx status code
|
|
|
|
|
func (o *GetEnrollmentsInternalServerError) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get enrollments internal server error response has a 3xx status code
|
|
|
|
|
func (o *GetEnrollmentsInternalServerError) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get enrollments internal server error response has a 4xx status code
|
|
|
|
|
func (o *GetEnrollmentsInternalServerError) IsClientError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get enrollments internal server error response has a 5xx status code
|
|
|
|
|
func (o *GetEnrollmentsInternalServerError) IsServerError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get enrollments internal server error response a status code equal to that given
|
|
|
|
|
func (o *GetEnrollmentsInternalServerError) IsCode(code int) bool {
|
|
|
|
|
return code == 500
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get enrollments internal server error response
|
|
|
|
|
func (o *GetEnrollmentsInternalServerError) Code() int {
|
|
|
|
|
return 500
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsInternalServerError) 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("[GET /enrollments][%d] getEnrollmentsInternalServerError %s", 500, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsInternalServerError) 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("[GET /enrollments][%d] getEnrollmentsInternalServerError %s", 500, payload)
|
2023-04-30 02:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsInternalServerError) GetPayload() *members_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetEnrollmentsInternalServerError) 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-04-30 02:07:31 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-28 17:47:34 +00:00
|
|
|
return nil
|
|
|
|
|
}
|