// 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 portal_plans

import (
	"context"
	"fmt"
	"time"

	"github.com/go-openapi/runtime"
	httptransport "github.com/go-openapi/runtime/client"
	"github.com/go-openapi/strfmt"
)

// New creates a new portal plans API client.
func New(transport runtime.ContextualTransport, formats strfmt.Registry) ClientService {
	return &Client{transport: transport, formats: formats}
}

// New creates a new portal plans API client with basic auth credentials.
//
// It takes the following parameters:
// - host: http host (github.com).
// - basePath: any base path for the API client ("/v1", "/v3").
// - scheme: http scheme ("http", "https").
// - user: user for basic authentication header.
// - password: password for basic authentication header.
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService {
	transport := httptransport.New(host, basePath, []string{scheme})
	transport.DefaultAuthentication = httptransport.BasicAuth(user, password)
	return &Client{transport: transport, formats: strfmt.Default}
}

// New creates a new portal plans API client with a bearer token for authentication.
//
// It takes the following parameters:
// - host: http host (github.com).
// - basePath: any base path for the API client ("/v1", "/v3").
// - scheme: http scheme ("http", "https").
// - bearerToken: bearer token for Bearer authentication header.
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService {
	transport := httptransport.New(host, basePath, []string{scheme})
	transport.DefaultAuthentication = httptransport.BearerToken(bearerToken)
	return &Client{transport: transport, formats: strfmt.Default}
}

// Client for portal plans API.
type Client struct {
	transport runtime.ContextualTransport
	formats   strfmt.Registry
}

// ClientOption may be used to customize the behavior of Client methods.
type ClientOption func(*runtime.ClientOperation)

// ClientService is the interface for Client methods.
type ClientService interface {

	// GetBrandPlans list brand plan placements.
	GetBrandPlans(params *GetBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBrandPlansOK, error)

	// GetBrandPlansContext list brand plan placements.
	GetBrandPlansContext(ctx context.Context, params *GetBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBrandPlansOK, error)

	// GetPlanServices list plan service grants and descriptive limits.
	GetPlanServices(params *GetPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlanServicesOK, error)

	// GetPlanServicesContext list plan service grants and descriptive limits.
	GetPlanServicesContext(ctx context.Context, params *GetPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlanServicesOK, error)

	// GetPlans list immutable version commercial plans.
	GetPlans(params *GetPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlansOK, error)

	// GetPlansContext list immutable version commercial plans.
	GetPlansContext(ctx context.Context, params *GetPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlansOK, error)

	// PostBrandPlans create brand plan placements.
	PostBrandPlans(params *PostBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostBrandPlansOK, error)

	// PostBrandPlansContext create brand plan placements.
	PostBrandPlansContext(ctx context.Context, params *PostBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostBrandPlansOK, error)

	// PostPlanServices add service grants and descriptive limits to plans.
	PostPlanServices(params *PostPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostPlanServicesOK, error)

	// PostPlanServicesContext add service grants and descriptive limits to plans.
	PostPlanServicesContext(ctx context.Context, params *PostPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostPlanServicesOK, error)

	// PostPlans create plan versions.
	PostPlans(params *PostPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostPlansOK, error)

	// PostPlansContext create plan versions.
	PostPlansContext(ctx context.Context, params *PostPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostPlansOK, error)

	// PutBrandPlans update brand plan placements.
	PutBrandPlans(params *PutBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutBrandPlansOK, error)

	// PutBrandPlansContext update brand plan placements.
	PutBrandPlansContext(ctx context.Context, params *PutBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutBrandPlansOK, error)

	// PutPlanServices update draft plan service grants.
	PutPlanServices(params *PutPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutPlanServicesOK, error)

	// PutPlanServicesContext update draft plan service grants.
	PutPlanServicesContext(ctx context.Context, params *PutPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutPlanServicesOK, error)

	// PutPlans update draft or lifecycle state published versions are immutable.
	PutPlans(params *PutPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutPlansOK, error)

	// PutPlansContext update draft or lifecycle state published versions are immutable.
	PutPlansContext(ctx context.Context, params *PutPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutPlansOK, error)

	SetTransport(transport runtime.ContextualTransport)
}

// GetBrandPlans lists brand plan placements.
//
// This method does not support injected context.
// However, timeout and opentracing contexts are honored whenever enabled.
//
// If you need to pass a specific context, use [Client.GetBrandPlansContext] instead.
func (a *Client) GetBrandPlans(params *GetBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBrandPlansOK, error) {
	var ctx context.Context
	if params.inner.ctx != nil {
		ctx = params.inner.ctx
	} else {
		ctx = context.Background()
	}

	return a.GetBrandPlansContext(ctx, params, authInfo, opts...)
}

// GetBrandPlansContext lists brand plan placements.
//
// Do not use the deprecated [GetBrandPlansParams.Context] with this method: it would be ignored.
func (a *Client) GetBrandPlansContext(ctx context.Context, params *GetBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBrandPlansOK, error) {
	// NOTE: parameters are not validated before sending
	if params == nil {
		params = NewGetBrandPlansParams()
	}

	op := &runtime.ClientOperation{
		ID:                 "getBrandPlans",
		Method:             "GET",
		PathPattern:        "/brandplans",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetBrandPlansReader{formats: a.formats},
		AuthInfo:           authInfo,
		Client:             params.HTTPClient,
	}

	for _, opt := range opts {
		opt(op)
	}

	result, err := a.transport.SubmitContext(ctx, op)
	if err != nil {
		return nil, err
	}

	// only one success response has to be checked
	success, ok := result.(*GetBrandPlansOK)
	if ok {
		return success, nil
	}

	// unexpected success response.

	// no default response is defined.
	//
	// safeguard: normally, in the absence of a default response, unknown success responses return an error above: so this is a codegen issue
	msg := fmt.Sprintf("unexpected success response for getBrandPlans: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}

// GetPlanServices lists plan service grants and descriptive limits.
//
// This method does not support injected context.
// However, timeout and opentracing contexts are honored whenever enabled.
//
// If you need to pass a specific context, use [Client.GetPlanServicesContext] instead.
func (a *Client) GetPlanServices(params *GetPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlanServicesOK, error) {
	var ctx context.Context
	if params.inner.ctx != nil {
		ctx = params.inner.ctx
	} else {
		ctx = context.Background()
	}

	return a.GetPlanServicesContext(ctx, params, authInfo, opts...)
}

// GetPlanServicesContext lists plan service grants and descriptive limits.
//
// Do not use the deprecated [GetPlanServicesParams.Context] with this method: it would be ignored.
func (a *Client) GetPlanServicesContext(ctx context.Context, params *GetPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlanServicesOK, error) {
	// NOTE: parameters are not validated before sending
	if params == nil {
		params = NewGetPlanServicesParams()
	}

	op := &runtime.ClientOperation{
		ID:                 "getPlanServices",
		Method:             "GET",
		PathPattern:        "/planservices",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPlanServicesReader{formats: a.formats},
		AuthInfo:           authInfo,
		Client:             params.HTTPClient,
	}

	for _, opt := range opts {
		opt(op)
	}

	result, err := a.transport.SubmitContext(ctx, op)
	if err != nil {
		return nil, err
	}

	// only one success response has to be checked
	success, ok := result.(*GetPlanServicesOK)
	if ok {
		return success, nil
	}

	// unexpected success response.

	// no default response is defined.
	//
	// safeguard: normally, in the absence of a default response, unknown success responses return an error above: so this is a codegen issue
	msg := fmt.Sprintf("unexpected success response for getPlanServices: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}

// GetPlans lists immutable version commercial plans.
//
// This method does not support injected context.
// However, timeout and opentracing contexts are honored whenever enabled.
//
// If you need to pass a specific context, use [Client.GetPlansContext] instead.
func (a *Client) GetPlans(params *GetPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlansOK, error) {
	var ctx context.Context
	if params.inner.ctx != nil {
		ctx = params.inner.ctx
	} else {
		ctx = context.Background()
	}

	return a.GetPlansContext(ctx, params, authInfo, opts...)
}

// GetPlansContext lists immutable version commercial plans.
//
// Do not use the deprecated [GetPlansParams.Context] with this method: it would be ignored.
func (a *Client) GetPlansContext(ctx context.Context, params *GetPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlansOK, error) {
	// NOTE: parameters are not validated before sending
	if params == nil {
		params = NewGetPlansParams()
	}

	op := &runtime.ClientOperation{
		ID:                 "getPlans",
		Method:             "GET",
		PathPattern:        "/plans",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPlansReader{formats: a.formats},
		AuthInfo:           authInfo,
		Client:             params.HTTPClient,
	}

	for _, opt := range opts {
		opt(op)
	}

	result, err := a.transport.SubmitContext(ctx, op)
	if err != nil {
		return nil, err
	}

	// only one success response has to be checked
	success, ok := result.(*GetPlansOK)
	if ok {
		return success, nil
	}

	// unexpected success response.

	// no default response is defined.
	//
	// safeguard: normally, in the absence of a default response, unknown success responses return an error above: so this is a codegen issue
	msg := fmt.Sprintf("unexpected success response for getPlans: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}

// PostBrandPlans creates brand plan placements.
//
// This method does not support injected context.
// However, timeout and opentracing contexts are honored whenever enabled.
//
// If you need to pass a specific context, use [Client.PostBrandPlansContext] instead.
func (a *Client) PostBrandPlans(params *PostBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostBrandPlansOK, error) {
	var ctx context.Context
	if params.inner.ctx != nil {
		ctx = params.inner.ctx
	} else {
		ctx = context.Background()
	}

	return a.PostBrandPlansContext(ctx, params, authInfo, opts...)
}

// PostBrandPlansContext creates brand plan placements.
//
// Do not use the deprecated [PostBrandPlansParams.Context] with this method: it would be ignored.
func (a *Client) PostBrandPlansContext(ctx context.Context, params *PostBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostBrandPlansOK, error) {
	// NOTE: parameters are not validated before sending
	if params == nil {
		params = NewPostBrandPlansParams()
	}

	op := &runtime.ClientOperation{
		ID:                 "postBrandPlans",
		Method:             "POST",
		PathPattern:        "/brandplans",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &PostBrandPlansReader{formats: a.formats},
		AuthInfo:           authInfo,
		Client:             params.HTTPClient,
	}

	for _, opt := range opts {
		opt(op)
	}

	result, err := a.transport.SubmitContext(ctx, op)
	if err != nil {
		return nil, err
	}

	// only one success response has to be checked
	success, ok := result.(*PostBrandPlansOK)
	if ok {
		return success, nil
	}

	// unexpected success response.

	// no default response is defined.
	//
	// safeguard: normally, in the absence of a default response, unknown success responses return an error above: so this is a codegen issue
	msg := fmt.Sprintf("unexpected success response for postBrandPlans: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}

// PostPlanServices adds service grants and descriptive limits to plans.
//
// This method does not support injected context.
// However, timeout and opentracing contexts are honored whenever enabled.
//
// If you need to pass a specific context, use [Client.PostPlanServicesContext] instead.
func (a *Client) PostPlanServices(params *PostPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostPlanServicesOK, error) {
	var ctx context.Context
	if params.inner.ctx != nil {
		ctx = params.inner.ctx
	} else {
		ctx = context.Background()
	}

	return a.PostPlanServicesContext(ctx, params, authInfo, opts...)
}

// PostPlanServicesContext adds service grants and descriptive limits to plans.
//
// Do not use the deprecated [PostPlanServicesParams.Context] with this method: it would be ignored.
func (a *Client) PostPlanServicesContext(ctx context.Context, params *PostPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostPlanServicesOK, error) {
	// NOTE: parameters are not validated before sending
	if params == nil {
		params = NewPostPlanServicesParams()
	}

	op := &runtime.ClientOperation{
		ID:                 "postPlanServices",
		Method:             "POST",
		PathPattern:        "/planservices",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &PostPlanServicesReader{formats: a.formats},
		AuthInfo:           authInfo,
		Client:             params.HTTPClient,
	}

	for _, opt := range opts {
		opt(op)
	}

	result, err := a.transport.SubmitContext(ctx, op)
	if err != nil {
		return nil, err
	}

	// only one success response has to be checked
	success, ok := result.(*PostPlanServicesOK)
	if ok {
		return success, nil
	}

	// unexpected success response.

	// no default response is defined.
	//
	// safeguard: normally, in the absence of a default response, unknown success responses return an error above: so this is a codegen issue
	msg := fmt.Sprintf("unexpected success response for postPlanServices: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}

// PostPlans creates plan versions.
//
// This method does not support injected context.
// However, timeout and opentracing contexts are honored whenever enabled.
//
// If you need to pass a specific context, use [Client.PostPlansContext] instead.
func (a *Client) PostPlans(params *PostPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostPlansOK, error) {
	var ctx context.Context
	if params.inner.ctx != nil {
		ctx = params.inner.ctx
	} else {
		ctx = context.Background()
	}

	return a.PostPlansContext(ctx, params, authInfo, opts...)
}

// PostPlansContext creates plan versions.
//
// Do not use the deprecated [PostPlansParams.Context] with this method: it would be ignored.
func (a *Client) PostPlansContext(ctx context.Context, params *PostPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostPlansOK, error) {
	// NOTE: parameters are not validated before sending
	if params == nil {
		params = NewPostPlansParams()
	}

	op := &runtime.ClientOperation{
		ID:                 "postPlans",
		Method:             "POST",
		PathPattern:        "/plans",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &PostPlansReader{formats: a.formats},
		AuthInfo:           authInfo,
		Client:             params.HTTPClient,
	}

	for _, opt := range opts {
		opt(op)
	}

	result, err := a.transport.SubmitContext(ctx, op)
	if err != nil {
		return nil, err
	}

	// only one success response has to be checked
	success, ok := result.(*PostPlansOK)
	if ok {
		return success, nil
	}

	// unexpected success response.

	// no default response is defined.
	//
	// safeguard: normally, in the absence of a default response, unknown success responses return an error above: so this is a codegen issue
	msg := fmt.Sprintf("unexpected success response for postPlans: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}

// PutBrandPlans updates brand plan placements.
//
// This method does not support injected context.
// However, timeout and opentracing contexts are honored whenever enabled.
//
// If you need to pass a specific context, use [Client.PutBrandPlansContext] instead.
func (a *Client) PutBrandPlans(params *PutBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutBrandPlansOK, error) {
	var ctx context.Context
	if params.inner.ctx != nil {
		ctx = params.inner.ctx
	} else {
		ctx = context.Background()
	}

	return a.PutBrandPlansContext(ctx, params, authInfo, opts...)
}

// PutBrandPlansContext updates brand plan placements.
//
// Do not use the deprecated [PutBrandPlansParams.Context] with this method: it would be ignored.
func (a *Client) PutBrandPlansContext(ctx context.Context, params *PutBrandPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutBrandPlansOK, error) {
	// NOTE: parameters are not validated before sending
	if params == nil {
		params = NewPutBrandPlansParams()
	}

	op := &runtime.ClientOperation{
		ID:                 "putBrandPlans",
		Method:             "PUT",
		PathPattern:        "/brandplans",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &PutBrandPlansReader{formats: a.formats},
		AuthInfo:           authInfo,
		Client:             params.HTTPClient,
	}

	for _, opt := range opts {
		opt(op)
	}

	result, err := a.transport.SubmitContext(ctx, op)
	if err != nil {
		return nil, err
	}

	// only one success response has to be checked
	success, ok := result.(*PutBrandPlansOK)
	if ok {
		return success, nil
	}

	// unexpected success response.

	// no default response is defined.
	//
	// safeguard: normally, in the absence of a default response, unknown success responses return an error above: so this is a codegen issue
	msg := fmt.Sprintf("unexpected success response for putBrandPlans: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}

// PutPlanServices updates draft plan service grants.
//
// This method does not support injected context.
// However, timeout and opentracing contexts are honored whenever enabled.
//
// If you need to pass a specific context, use [Client.PutPlanServicesContext] instead.
func (a *Client) PutPlanServices(params *PutPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutPlanServicesOK, error) {
	var ctx context.Context
	if params.inner.ctx != nil {
		ctx = params.inner.ctx
	} else {
		ctx = context.Background()
	}

	return a.PutPlanServicesContext(ctx, params, authInfo, opts...)
}

// PutPlanServicesContext updates draft plan service grants.
//
// Do not use the deprecated [PutPlanServicesParams.Context] with this method: it would be ignored.
func (a *Client) PutPlanServicesContext(ctx context.Context, params *PutPlanServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutPlanServicesOK, error) {
	// NOTE: parameters are not validated before sending
	if params == nil {
		params = NewPutPlanServicesParams()
	}

	op := &runtime.ClientOperation{
		ID:                 "putPlanServices",
		Method:             "PUT",
		PathPattern:        "/planservices",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &PutPlanServicesReader{formats: a.formats},
		AuthInfo:           authInfo,
		Client:             params.HTTPClient,
	}

	for _, opt := range opts {
		opt(op)
	}

	result, err := a.transport.SubmitContext(ctx, op)
	if err != nil {
		return nil, err
	}

	// only one success response has to be checked
	success, ok := result.(*PutPlanServicesOK)
	if ok {
		return success, nil
	}

	// unexpected success response.

	// no default response is defined.
	//
	// safeguard: normally, in the absence of a default response, unknown success responses return an error above: so this is a codegen issue
	msg := fmt.Sprintf("unexpected success response for putPlanServices: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}

// PutPlans updates draft or lifecycle state published versions are immutable.
//
// This method does not support injected context.
// However, timeout and opentracing contexts are honored whenever enabled.
//
// If you need to pass a specific context, use [Client.PutPlansContext] instead.
func (a *Client) PutPlans(params *PutPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutPlansOK, error) {
	var ctx context.Context
	if params.inner.ctx != nil {
		ctx = params.inner.ctx
	} else {
		ctx = context.Background()
	}

	return a.PutPlansContext(ctx, params, authInfo, opts...)
}

// PutPlansContext updates draft or lifecycle state published versions are immutable.
//
// Do not use the deprecated [PutPlansParams.Context] with this method: it would be ignored.
func (a *Client) PutPlansContext(ctx context.Context, params *PutPlansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutPlansOK, error) {
	// NOTE: parameters are not validated before sending
	if params == nil {
		params = NewPutPlansParams()
	}

	op := &runtime.ClientOperation{
		ID:                 "putPlans",
		Method:             "PUT",
		PathPattern:        "/plans",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &PutPlansReader{formats: a.formats},
		AuthInfo:           authInfo,
		Client:             params.HTTPClient,
	}

	for _, opt := range opts {
		opt(op)
	}

	result, err := a.transport.SubmitContext(ctx, op)
	if err != nil {
		return nil, err
	}

	// only one success response has to be checked
	success, ok := result.(*PutPlansOK)
	if ok {
		return success, nil
	}

	// unexpected success response.

	// no default response is defined.
	//
	// safeguard: normally, in the absence of a default response, unknown success responses return an error above: so this is a codegen issue
	msg := fmt.Sprintf("unexpected success response for putPlans: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}

// SetTransport changes the transport on the client
func (a *Client) SetTransport(transport runtime.ContextualTransport) {
	a.transport = transport
}

// innerParams captures internal fields so they don't conflict with user-supplied parameters.
type innerParams struct {
	timeout time.Duration

	// Deprecated: use the operation call with context to pass the context instead of [PortalPlansParams].
	ctx context.Context
}
