participation

package
v0.0.0-...-76fafce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for participation API

func (*Client) DisableParticipation

func (a *Client) DisableParticipation(params *DisableParticipationParams, opts ...ClientOption) (*DisableParticipationOK, error)

DisableParticipation disables store service participation

func (*Client) EnableParticipation

func (a *Client) EnableParticipation(params *EnableParticipationParams, opts ...ClientOption) (*EnableParticipationOK, error)

EnableParticipation enables store service participation

func (*Client) GetParticipatingStores

func (a *Client) GetParticipatingStores(params *GetParticipatingStoresParams, opts ...ClientOption) (*GetParticipatingStoresOK, error)

GetParticipatingStores gets a list of participating stores

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DisableParticipation(params *DisableParticipationParams, opts ...ClientOption) (*DisableParticipationOK, error)

	EnableParticipation(params *EnableParticipationParams, opts ...ClientOption) (*EnableParticipationOK, error)

	GetParticipatingStores(params *GetParticipatingStoresParams, opts ...ClientOption) (*GetParticipatingStoresOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new participation API client.

type DisableParticipationDefault

type DisableParticipationDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
DisableParticipationDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewDisableParticipationDefault

func NewDisableParticipationDefault(code int) *DisableParticipationDefault

NewDisableParticipationDefault creates a DisableParticipationDefault with default headers values

func (*DisableParticipationDefault) Code

func (o *DisableParticipationDefault) Code() int

Code gets the status code for the disable participation default response

func (*DisableParticipationDefault) Error

func (*DisableParticipationDefault) GetPayload

func (o *DisableParticipationDefault) GetPayload() *models.RPCStatus

func (*DisableParticipationDefault) IsClientError

func (o *DisableParticipationDefault) IsClientError() bool

IsClientError returns true when this disable participation default response has a 4xx status code

func (*DisableParticipationDefault) IsCode

func (o *DisableParticipationDefault) IsCode(code int) bool

IsCode returns true when this disable participation default response a status code equal to that given

func (*DisableParticipationDefault) IsRedirect

func (o *DisableParticipationDefault) IsRedirect() bool

IsRedirect returns true when this disable participation default response has a 3xx status code

func (*DisableParticipationDefault) IsServerError

func (o *DisableParticipationDefault) IsServerError() bool

IsServerError returns true when this disable participation default response has a 5xx status code

func (*DisableParticipationDefault) IsSuccess

func (o *DisableParticipationDefault) IsSuccess() bool

IsSuccess returns true when this disable participation default response has a 2xx status code

func (*DisableParticipationDefault) String

func (o *DisableParticipationDefault) String() string

type DisableParticipationOK

type DisableParticipationOK struct {
	Payload models.StorespbDisableParticipationResponse
}
DisableParticipationOK describes a response with status code 200, with default header values.

A successful response.

func NewDisableParticipationOK

func NewDisableParticipationOK() *DisableParticipationOK

NewDisableParticipationOK creates a DisableParticipationOK with default headers values

func (*DisableParticipationOK) Error

func (o *DisableParticipationOK) Error() string

func (*DisableParticipationOK) GetPayload

func (*DisableParticipationOK) IsClientError

func (o *DisableParticipationOK) IsClientError() bool

IsClientError returns true when this disable participation o k response has a 4xx status code

func (*DisableParticipationOK) IsCode

func (o *DisableParticipationOK) IsCode(code int) bool

IsCode returns true when this disable participation o k response a status code equal to that given

func (*DisableParticipationOK) IsRedirect

func (o *DisableParticipationOK) IsRedirect() bool

IsRedirect returns true when this disable participation o k response has a 3xx status code

func (*DisableParticipationOK) IsServerError

func (o *DisableParticipationOK) IsServerError() bool

IsServerError returns true when this disable participation o k response has a 5xx status code

func (*DisableParticipationOK) IsSuccess

func (o *DisableParticipationOK) IsSuccess() bool

IsSuccess returns true when this disable participation o k response has a 2xx status code

func (*DisableParticipationOK) String

func (o *DisableParticipationOK) String() string

type DisableParticipationParams

type DisableParticipationParams struct {

	// ID.
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DisableParticipationParams contains all the parameters to send to the API endpoint

for the disable participation operation.

Typically these are written to a http.Request.

func NewDisableParticipationParams

func NewDisableParticipationParams() *DisableParticipationParams

NewDisableParticipationParams creates a new DisableParticipationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDisableParticipationParamsWithContext

func NewDisableParticipationParamsWithContext(ctx context.Context) *DisableParticipationParams

NewDisableParticipationParamsWithContext creates a new DisableParticipationParams object with the ability to set a context for a request.

func NewDisableParticipationParamsWithHTTPClient

func NewDisableParticipationParamsWithHTTPClient(client *http.Client) *DisableParticipationParams

NewDisableParticipationParamsWithHTTPClient creates a new DisableParticipationParams object with the ability to set a custom HTTPClient for a request.

func NewDisableParticipationParamsWithTimeout

func NewDisableParticipationParamsWithTimeout(timeout time.Duration) *DisableParticipationParams

NewDisableParticipationParamsWithTimeout creates a new DisableParticipationParams object with the ability to set a timeout on a request.

func (*DisableParticipationParams) SetContext

func (o *DisableParticipationParams) SetContext(ctx context.Context)

SetContext adds the context to the disable participation params

func (*DisableParticipationParams) SetDefaults

func (o *DisableParticipationParams) SetDefaults()

SetDefaults hydrates default values in the disable participation params (not the query body).

All values with no default are reset to their zero value.

func (*DisableParticipationParams) SetHTTPClient

func (o *DisableParticipationParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the disable participation params

func (*DisableParticipationParams) SetID

func (o *DisableParticipationParams) SetID(id string)

SetID adds the id to the disable participation params

func (*DisableParticipationParams) SetTimeout

func (o *DisableParticipationParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the disable participation params

func (*DisableParticipationParams) WithContext

WithContext adds the context to the disable participation params

func (*DisableParticipationParams) WithDefaults

WithDefaults hydrates default values in the disable participation params (not the query body).

All values with no default are reset to their zero value.

func (*DisableParticipationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the disable participation params

func (*DisableParticipationParams) WithID

WithID adds the id to the disable participation params

func (*DisableParticipationParams) WithTimeout

WithTimeout adds the timeout to the disable participation params

func (*DisableParticipationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DisableParticipationReader

type DisableParticipationReader struct {
	// contains filtered or unexported fields
}

DisableParticipationReader is a Reader for the DisableParticipation structure.

func (*DisableParticipationReader) ReadResponse

func (o *DisableParticipationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type EnableParticipationDefault

type EnableParticipationDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
EnableParticipationDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewEnableParticipationDefault

func NewEnableParticipationDefault(code int) *EnableParticipationDefault

NewEnableParticipationDefault creates a EnableParticipationDefault with default headers values

func (*EnableParticipationDefault) Code

func (o *EnableParticipationDefault) Code() int

Code gets the status code for the enable participation default response

func (*EnableParticipationDefault) Error

func (*EnableParticipationDefault) GetPayload

func (o *EnableParticipationDefault) GetPayload() *models.RPCStatus

func (*EnableParticipationDefault) IsClientError

func (o *EnableParticipationDefault) IsClientError() bool

IsClientError returns true when this enable participation default response has a 4xx status code

func (*EnableParticipationDefault) IsCode

func (o *EnableParticipationDefault) IsCode(code int) bool

IsCode returns true when this enable participation default response a status code equal to that given

func (*EnableParticipationDefault) IsRedirect

func (o *EnableParticipationDefault) IsRedirect() bool

IsRedirect returns true when this enable participation default response has a 3xx status code

func (*EnableParticipationDefault) IsServerError

func (o *EnableParticipationDefault) IsServerError() bool

IsServerError returns true when this enable participation default response has a 5xx status code

func (*EnableParticipationDefault) IsSuccess

func (o *EnableParticipationDefault) IsSuccess() bool

IsSuccess returns true when this enable participation default response has a 2xx status code

func (*EnableParticipationDefault) String

func (o *EnableParticipationDefault) String() string

type EnableParticipationOK

type EnableParticipationOK struct {
	Payload models.StorespbEnableParticipationResponse
}
EnableParticipationOK describes a response with status code 200, with default header values.

A successful response.

func NewEnableParticipationOK

func NewEnableParticipationOK() *EnableParticipationOK

NewEnableParticipationOK creates a EnableParticipationOK with default headers values

func (*EnableParticipationOK) Error

func (o *EnableParticipationOK) Error() string

func (*EnableParticipationOK) GetPayload

func (*EnableParticipationOK) IsClientError

func (o *EnableParticipationOK) IsClientError() bool

IsClientError returns true when this enable participation o k response has a 4xx status code

func (*EnableParticipationOK) IsCode

func (o *EnableParticipationOK) IsCode(code int) bool

IsCode returns true when this enable participation o k response a status code equal to that given

func (*EnableParticipationOK) IsRedirect

func (o *EnableParticipationOK) IsRedirect() bool

IsRedirect returns true when this enable participation o k response has a 3xx status code

func (*EnableParticipationOK) IsServerError

func (o *EnableParticipationOK) IsServerError() bool

IsServerError returns true when this enable participation o k response has a 5xx status code

func (*EnableParticipationOK) IsSuccess

func (o *EnableParticipationOK) IsSuccess() bool

IsSuccess returns true when this enable participation o k response has a 2xx status code

func (*EnableParticipationOK) String

func (o *EnableParticipationOK) String() string

type EnableParticipationParams

type EnableParticipationParams struct {

	// Body.
	Body interface{}

	// ID.
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

EnableParticipationParams contains all the parameters to send to the API endpoint

for the enable participation operation.

Typically these are written to a http.Request.

func NewEnableParticipationParams

func NewEnableParticipationParams() *EnableParticipationParams

NewEnableParticipationParams creates a new EnableParticipationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewEnableParticipationParamsWithContext

func NewEnableParticipationParamsWithContext(ctx context.Context) *EnableParticipationParams

NewEnableParticipationParamsWithContext creates a new EnableParticipationParams object with the ability to set a context for a request.

func NewEnableParticipationParamsWithHTTPClient

func NewEnableParticipationParamsWithHTTPClient(client *http.Client) *EnableParticipationParams

NewEnableParticipationParamsWithHTTPClient creates a new EnableParticipationParams object with the ability to set a custom HTTPClient for a request.

func NewEnableParticipationParamsWithTimeout

func NewEnableParticipationParamsWithTimeout(timeout time.Duration) *EnableParticipationParams

NewEnableParticipationParamsWithTimeout creates a new EnableParticipationParams object with the ability to set a timeout on a request.

func (*EnableParticipationParams) SetBody

func (o *EnableParticipationParams) SetBody(body interface{})

SetBody adds the body to the enable participation params

func (*EnableParticipationParams) SetContext

func (o *EnableParticipationParams) SetContext(ctx context.Context)

SetContext adds the context to the enable participation params

func (*EnableParticipationParams) SetDefaults

func (o *EnableParticipationParams) SetDefaults()

SetDefaults hydrates default values in the enable participation params (not the query body).

All values with no default are reset to their zero value.

func (*EnableParticipationParams) SetHTTPClient

func (o *EnableParticipationParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the enable participation params

func (*EnableParticipationParams) SetID

func (o *EnableParticipationParams) SetID(id string)

SetID adds the id to the enable participation params

func (*EnableParticipationParams) SetTimeout

func (o *EnableParticipationParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the enable participation params

func (*EnableParticipationParams) WithBody

func (o *EnableParticipationParams) WithBody(body interface{}) *EnableParticipationParams

WithBody adds the body to the enable participation params

func (*EnableParticipationParams) WithContext

WithContext adds the context to the enable participation params

func (*EnableParticipationParams) WithDefaults

WithDefaults hydrates default values in the enable participation params (not the query body).

All values with no default are reset to their zero value.

func (*EnableParticipationParams) WithHTTPClient

func (o *EnableParticipationParams) WithHTTPClient(client *http.Client) *EnableParticipationParams

WithHTTPClient adds the HTTPClient to the enable participation params

func (*EnableParticipationParams) WithID

WithID adds the id to the enable participation params

func (*EnableParticipationParams) WithTimeout

WithTimeout adds the timeout to the enable participation params

func (*EnableParticipationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EnableParticipationReader

type EnableParticipationReader struct {
	// contains filtered or unexported fields
}

EnableParticipationReader is a Reader for the EnableParticipation structure.

func (*EnableParticipationReader) ReadResponse

func (o *EnableParticipationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetParticipatingStoresDefault

type GetParticipatingStoresDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
GetParticipatingStoresDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetParticipatingStoresDefault

func NewGetParticipatingStoresDefault(code int) *GetParticipatingStoresDefault

NewGetParticipatingStoresDefault creates a GetParticipatingStoresDefault with default headers values

func (*GetParticipatingStoresDefault) Code

Code gets the status code for the get participating stores default response

func (*GetParticipatingStoresDefault) Error

func (*GetParticipatingStoresDefault) GetPayload

func (*GetParticipatingStoresDefault) IsClientError

func (o *GetParticipatingStoresDefault) IsClientError() bool

IsClientError returns true when this get participating stores default response has a 4xx status code

func (*GetParticipatingStoresDefault) IsCode

func (o *GetParticipatingStoresDefault) IsCode(code int) bool

IsCode returns true when this get participating stores default response a status code equal to that given

func (*GetParticipatingStoresDefault) IsRedirect

func (o *GetParticipatingStoresDefault) IsRedirect() bool

IsRedirect returns true when this get participating stores default response has a 3xx status code

func (*GetParticipatingStoresDefault) IsServerError

func (o *GetParticipatingStoresDefault) IsServerError() bool

IsServerError returns true when this get participating stores default response has a 5xx status code

func (*GetParticipatingStoresDefault) IsSuccess

func (o *GetParticipatingStoresDefault) IsSuccess() bool

IsSuccess returns true when this get participating stores default response has a 2xx status code

func (*GetParticipatingStoresDefault) String

type GetParticipatingStoresOK

type GetParticipatingStoresOK struct {
	Payload *models.StorespbGetParticipatingStoresResponse
}
GetParticipatingStoresOK describes a response with status code 200, with default header values.

A successful response.

func NewGetParticipatingStoresOK

func NewGetParticipatingStoresOK() *GetParticipatingStoresOK

NewGetParticipatingStoresOK creates a GetParticipatingStoresOK with default headers values

func (*GetParticipatingStoresOK) Error

func (o *GetParticipatingStoresOK) Error() string

func (*GetParticipatingStoresOK) GetPayload

func (*GetParticipatingStoresOK) IsClientError

func (o *GetParticipatingStoresOK) IsClientError() bool

IsClientError returns true when this get participating stores o k response has a 4xx status code

func (*GetParticipatingStoresOK) IsCode

func (o *GetParticipatingStoresOK) IsCode(code int) bool

IsCode returns true when this get participating stores o k response a status code equal to that given

func (*GetParticipatingStoresOK) IsRedirect

func (o *GetParticipatingStoresOK) IsRedirect() bool

IsRedirect returns true when this get participating stores o k response has a 3xx status code

func (*GetParticipatingStoresOK) IsServerError

func (o *GetParticipatingStoresOK) IsServerError() bool

IsServerError returns true when this get participating stores o k response has a 5xx status code

func (*GetParticipatingStoresOK) IsSuccess

func (o *GetParticipatingStoresOK) IsSuccess() bool

IsSuccess returns true when this get participating stores o k response has a 2xx status code

func (*GetParticipatingStoresOK) String

func (o *GetParticipatingStoresOK) String() string

type GetParticipatingStoresParams

type GetParticipatingStoresParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetParticipatingStoresParams contains all the parameters to send to the API endpoint

for the get participating stores operation.

Typically these are written to a http.Request.

func NewGetParticipatingStoresParams

func NewGetParticipatingStoresParams() *GetParticipatingStoresParams

NewGetParticipatingStoresParams creates a new GetParticipatingStoresParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetParticipatingStoresParamsWithContext

func NewGetParticipatingStoresParamsWithContext(ctx context.Context) *GetParticipatingStoresParams

NewGetParticipatingStoresParamsWithContext creates a new GetParticipatingStoresParams object with the ability to set a context for a request.

func NewGetParticipatingStoresParamsWithHTTPClient

func NewGetParticipatingStoresParamsWithHTTPClient(client *http.Client) *GetParticipatingStoresParams

NewGetParticipatingStoresParamsWithHTTPClient creates a new GetParticipatingStoresParams object with the ability to set a custom HTTPClient for a request.

func NewGetParticipatingStoresParamsWithTimeout

func NewGetParticipatingStoresParamsWithTimeout(timeout time.Duration) *GetParticipatingStoresParams

NewGetParticipatingStoresParamsWithTimeout creates a new GetParticipatingStoresParams object with the ability to set a timeout on a request.

func (*GetParticipatingStoresParams) SetContext

func (o *GetParticipatingStoresParams) SetContext(ctx context.Context)

SetContext adds the context to the get participating stores params

func (*GetParticipatingStoresParams) SetDefaults

func (o *GetParticipatingStoresParams) SetDefaults()

SetDefaults hydrates default values in the get participating stores params (not the query body).

All values with no default are reset to their zero value.

func (*GetParticipatingStoresParams) SetHTTPClient

func (o *GetParticipatingStoresParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get participating stores params

func (*GetParticipatingStoresParams) SetTimeout

func (o *GetParticipatingStoresParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get participating stores params

func (*GetParticipatingStoresParams) WithContext

WithContext adds the context to the get participating stores params

func (*GetParticipatingStoresParams) WithDefaults

WithDefaults hydrates default values in the get participating stores params (not the query body).

All values with no default are reset to their zero value.

func (*GetParticipatingStoresParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get participating stores params

func (*GetParticipatingStoresParams) WithTimeout

WithTimeout adds the timeout to the get participating stores params

func (*GetParticipatingStoresParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetParticipatingStoresReader

type GetParticipatingStoresReader struct {
	// contains filtered or unexported fields
}

GetParticipatingStoresReader is a Reader for the GetParticipatingStores structure.

func (*GetParticipatingStoresReader) ReadResponse

func (o *GetParticipatingStoresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL