shopping_list

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 AssignShoppingListDefault

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

An unexpected error response.

func NewAssignShoppingListDefault

func NewAssignShoppingListDefault(code int) *AssignShoppingListDefault

NewAssignShoppingListDefault creates a AssignShoppingListDefault with default headers values

func (*AssignShoppingListDefault) Code

func (o *AssignShoppingListDefault) Code() int

Code gets the status code for the assign shopping list default response

func (*AssignShoppingListDefault) Error

func (o *AssignShoppingListDefault) Error() string

func (*AssignShoppingListDefault) GetPayload

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

func (*AssignShoppingListDefault) IsClientError

func (o *AssignShoppingListDefault) IsClientError() bool

IsClientError returns true when this assign shopping list default response has a 4xx status code

func (*AssignShoppingListDefault) IsCode

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

IsCode returns true when this assign shopping list default response a status code equal to that given

func (*AssignShoppingListDefault) IsRedirect

func (o *AssignShoppingListDefault) IsRedirect() bool

IsRedirect returns true when this assign shopping list default response has a 3xx status code

func (*AssignShoppingListDefault) IsServerError

func (o *AssignShoppingListDefault) IsServerError() bool

IsServerError returns true when this assign shopping list default response has a 5xx status code

func (*AssignShoppingListDefault) IsSuccess

func (o *AssignShoppingListDefault) IsSuccess() bool

IsSuccess returns true when this assign shopping list default response has a 2xx status code

func (*AssignShoppingListDefault) String

func (o *AssignShoppingListDefault) String() string

type AssignShoppingListOK

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

A successful response.

func NewAssignShoppingListOK

func NewAssignShoppingListOK() *AssignShoppingListOK

NewAssignShoppingListOK creates a AssignShoppingListOK with default headers values

func (*AssignShoppingListOK) Error

func (o *AssignShoppingListOK) Error() string

func (*AssignShoppingListOK) GetPayload

func (*AssignShoppingListOK) IsClientError

func (o *AssignShoppingListOK) IsClientError() bool

IsClientError returns true when this assign shopping list o k response has a 4xx status code

func (*AssignShoppingListOK) IsCode

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

IsCode returns true when this assign shopping list o k response a status code equal to that given

func (*AssignShoppingListOK) IsRedirect

func (o *AssignShoppingListOK) IsRedirect() bool

IsRedirect returns true when this assign shopping list o k response has a 3xx status code

func (*AssignShoppingListOK) IsServerError

func (o *AssignShoppingListOK) IsServerError() bool

IsServerError returns true when this assign shopping list o k response has a 5xx status code

func (*AssignShoppingListOK) IsSuccess

func (o *AssignShoppingListOK) IsSuccess() bool

IsSuccess returns true when this assign shopping list o k response has a 2xx status code

func (*AssignShoppingListOK) String

func (o *AssignShoppingListOK) String() string

type AssignShoppingListParams

type AssignShoppingListParams struct {

	// Body.
	Body *models.AssignShoppingListParamsBody

	// ID.
	ID string

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

AssignShoppingListParams contains all the parameters to send to the API endpoint

for the assign shopping list operation.

Typically these are written to a http.Request.

func NewAssignShoppingListParams

func NewAssignShoppingListParams() *AssignShoppingListParams

NewAssignShoppingListParams creates a new AssignShoppingListParams 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 NewAssignShoppingListParamsWithContext

func NewAssignShoppingListParamsWithContext(ctx context.Context) *AssignShoppingListParams

NewAssignShoppingListParamsWithContext creates a new AssignShoppingListParams object with the ability to set a context for a request.

func NewAssignShoppingListParamsWithHTTPClient

func NewAssignShoppingListParamsWithHTTPClient(client *http.Client) *AssignShoppingListParams

NewAssignShoppingListParamsWithHTTPClient creates a new AssignShoppingListParams object with the ability to set a custom HTTPClient for a request.

func NewAssignShoppingListParamsWithTimeout

func NewAssignShoppingListParamsWithTimeout(timeout time.Duration) *AssignShoppingListParams

NewAssignShoppingListParamsWithTimeout creates a new AssignShoppingListParams object with the ability to set a timeout on a request.

func (*AssignShoppingListParams) SetBody

SetBody adds the body to the assign shopping list params

func (*AssignShoppingListParams) SetContext

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

SetContext adds the context to the assign shopping list params

func (*AssignShoppingListParams) SetDefaults

func (o *AssignShoppingListParams) SetDefaults()

SetDefaults hydrates default values in the assign shopping list params (not the query body).

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

func (*AssignShoppingListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assign shopping list params

func (*AssignShoppingListParams) SetID

func (o *AssignShoppingListParams) SetID(id string)

SetID adds the id to the assign shopping list params

func (*AssignShoppingListParams) SetTimeout

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

SetTimeout adds the timeout to the assign shopping list params

func (*AssignShoppingListParams) WithBody

WithBody adds the body to the assign shopping list params

func (*AssignShoppingListParams) WithContext

WithContext adds the context to the assign shopping list params

func (*AssignShoppingListParams) WithDefaults

WithDefaults hydrates default values in the assign shopping list params (not the query body).

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

func (*AssignShoppingListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the assign shopping list params

func (*AssignShoppingListParams) WithID

WithID adds the id to the assign shopping list params

func (*AssignShoppingListParams) WithTimeout

WithTimeout adds the timeout to the assign shopping list params

func (*AssignShoppingListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AssignShoppingListReader

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

AssignShoppingListReader is a Reader for the AssignShoppingList structure.

func (*AssignShoppingListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CancelShoppingListDefault

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

An unexpected error response.

func NewCancelShoppingListDefault

func NewCancelShoppingListDefault(code int) *CancelShoppingListDefault

NewCancelShoppingListDefault creates a CancelShoppingListDefault with default headers values

func (*CancelShoppingListDefault) Code

func (o *CancelShoppingListDefault) Code() int

Code gets the status code for the cancel shopping list default response

func (*CancelShoppingListDefault) Error

func (o *CancelShoppingListDefault) Error() string

func (*CancelShoppingListDefault) GetPayload

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

func (*CancelShoppingListDefault) IsClientError

func (o *CancelShoppingListDefault) IsClientError() bool

IsClientError returns true when this cancel shopping list default response has a 4xx status code

func (*CancelShoppingListDefault) IsCode

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

IsCode returns true when this cancel shopping list default response a status code equal to that given

func (*CancelShoppingListDefault) IsRedirect

func (o *CancelShoppingListDefault) IsRedirect() bool

IsRedirect returns true when this cancel shopping list default response has a 3xx status code

func (*CancelShoppingListDefault) IsServerError

func (o *CancelShoppingListDefault) IsServerError() bool

IsServerError returns true when this cancel shopping list default response has a 5xx status code

func (*CancelShoppingListDefault) IsSuccess

func (o *CancelShoppingListDefault) IsSuccess() bool

IsSuccess returns true when this cancel shopping list default response has a 2xx status code

func (*CancelShoppingListDefault) String

func (o *CancelShoppingListDefault) String() string

type CancelShoppingListOK

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

A successful response.

func NewCancelShoppingListOK

func NewCancelShoppingListOK() *CancelShoppingListOK

NewCancelShoppingListOK creates a CancelShoppingListOK with default headers values

func (*CancelShoppingListOK) Error

func (o *CancelShoppingListOK) Error() string

func (*CancelShoppingListOK) GetPayload

func (*CancelShoppingListOK) IsClientError

func (o *CancelShoppingListOK) IsClientError() bool

IsClientError returns true when this cancel shopping list o k response has a 4xx status code

func (*CancelShoppingListOK) IsCode

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

IsCode returns true when this cancel shopping list o k response a status code equal to that given

func (*CancelShoppingListOK) IsRedirect

func (o *CancelShoppingListOK) IsRedirect() bool

IsRedirect returns true when this cancel shopping list o k response has a 3xx status code

func (*CancelShoppingListOK) IsServerError

func (o *CancelShoppingListOK) IsServerError() bool

IsServerError returns true when this cancel shopping list o k response has a 5xx status code

func (*CancelShoppingListOK) IsSuccess

func (o *CancelShoppingListOK) IsSuccess() bool

IsSuccess returns true when this cancel shopping list o k response has a 2xx status code

func (*CancelShoppingListOK) String

func (o *CancelShoppingListOK) String() string

type CancelShoppingListParams

type CancelShoppingListParams struct {

	// Body.
	Body interface{}

	// ID.
	ID string

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

CancelShoppingListParams contains all the parameters to send to the API endpoint

for the cancel shopping list operation.

Typically these are written to a http.Request.

func NewCancelShoppingListParams

func NewCancelShoppingListParams() *CancelShoppingListParams

NewCancelShoppingListParams creates a new CancelShoppingListParams 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 NewCancelShoppingListParamsWithContext

func NewCancelShoppingListParamsWithContext(ctx context.Context) *CancelShoppingListParams

NewCancelShoppingListParamsWithContext creates a new CancelShoppingListParams object with the ability to set a context for a request.

func NewCancelShoppingListParamsWithHTTPClient

func NewCancelShoppingListParamsWithHTTPClient(client *http.Client) *CancelShoppingListParams

NewCancelShoppingListParamsWithHTTPClient creates a new CancelShoppingListParams object with the ability to set a custom HTTPClient for a request.

func NewCancelShoppingListParamsWithTimeout

func NewCancelShoppingListParamsWithTimeout(timeout time.Duration) *CancelShoppingListParams

NewCancelShoppingListParamsWithTimeout creates a new CancelShoppingListParams object with the ability to set a timeout on a request.

func (*CancelShoppingListParams) SetBody

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

SetBody adds the body to the cancel shopping list params

func (*CancelShoppingListParams) SetContext

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

SetContext adds the context to the cancel shopping list params

func (*CancelShoppingListParams) SetDefaults

func (o *CancelShoppingListParams) SetDefaults()

SetDefaults hydrates default values in the cancel shopping list params (not the query body).

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

func (*CancelShoppingListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cancel shopping list params

func (*CancelShoppingListParams) SetID

func (o *CancelShoppingListParams) SetID(id string)

SetID adds the id to the cancel shopping list params

func (*CancelShoppingListParams) SetTimeout

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

SetTimeout adds the timeout to the cancel shopping list params

func (*CancelShoppingListParams) WithBody

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

WithBody adds the body to the cancel shopping list params

func (*CancelShoppingListParams) WithContext

WithContext adds the context to the cancel shopping list params

func (*CancelShoppingListParams) WithDefaults

WithDefaults hydrates default values in the cancel shopping list params (not the query body).

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

func (*CancelShoppingListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the cancel shopping list params

func (*CancelShoppingListParams) WithID

WithID adds the id to the cancel shopping list params

func (*CancelShoppingListParams) WithTimeout

WithTimeout adds the timeout to the cancel shopping list params

func (*CancelShoppingListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CancelShoppingListReader

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

CancelShoppingListReader is a Reader for the CancelShoppingList structure.

func (*CancelShoppingListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CcompleteShoppingListDefault

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

An unexpected error response.

func NewCcompleteShoppingListDefault

func NewCcompleteShoppingListDefault(code int) *CcompleteShoppingListDefault

NewCcompleteShoppingListDefault creates a CcompleteShoppingListDefault with default headers values

func (*CcompleteShoppingListDefault) Code

Code gets the status code for the ccomplete shopping list default response

func (*CcompleteShoppingListDefault) Error

func (*CcompleteShoppingListDefault) GetPayload

func (*CcompleteShoppingListDefault) IsClientError

func (o *CcompleteShoppingListDefault) IsClientError() bool

IsClientError returns true when this ccomplete shopping list default response has a 4xx status code

func (*CcompleteShoppingListDefault) IsCode

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

IsCode returns true when this ccomplete shopping list default response a status code equal to that given

func (*CcompleteShoppingListDefault) IsRedirect

func (o *CcompleteShoppingListDefault) IsRedirect() bool

IsRedirect returns true when this ccomplete shopping list default response has a 3xx status code

func (*CcompleteShoppingListDefault) IsServerError

func (o *CcompleteShoppingListDefault) IsServerError() bool

IsServerError returns true when this ccomplete shopping list default response has a 5xx status code

func (*CcompleteShoppingListDefault) IsSuccess

func (o *CcompleteShoppingListDefault) IsSuccess() bool

IsSuccess returns true when this ccomplete shopping list default response has a 2xx status code

func (*CcompleteShoppingListDefault) String

type CcompleteShoppingListOK

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

A successful response.

func NewCcompleteShoppingListOK

func NewCcompleteShoppingListOK() *CcompleteShoppingListOK

NewCcompleteShoppingListOK creates a CcompleteShoppingListOK with default headers values

func (*CcompleteShoppingListOK) Error

func (o *CcompleteShoppingListOK) Error() string

func (*CcompleteShoppingListOK) GetPayload

func (*CcompleteShoppingListOK) IsClientError

func (o *CcompleteShoppingListOK) IsClientError() bool

IsClientError returns true when this ccomplete shopping list o k response has a 4xx status code

func (*CcompleteShoppingListOK) IsCode

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

IsCode returns true when this ccomplete shopping list o k response a status code equal to that given

func (*CcompleteShoppingListOK) IsRedirect

func (o *CcompleteShoppingListOK) IsRedirect() bool

IsRedirect returns true when this ccomplete shopping list o k response has a 3xx status code

func (*CcompleteShoppingListOK) IsServerError

func (o *CcompleteShoppingListOK) IsServerError() bool

IsServerError returns true when this ccomplete shopping list o k response has a 5xx status code

func (*CcompleteShoppingListOK) IsSuccess

func (o *CcompleteShoppingListOK) IsSuccess() bool

IsSuccess returns true when this ccomplete shopping list o k response has a 2xx status code

func (*CcompleteShoppingListOK) String

func (o *CcompleteShoppingListOK) String() string

type CcompleteShoppingListParams

type CcompleteShoppingListParams struct {

	// Body.
	Body interface{}

	// ID.
	ID string

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

CcompleteShoppingListParams contains all the parameters to send to the API endpoint

for the ccomplete shopping list operation.

Typically these are written to a http.Request.

func NewCcompleteShoppingListParams

func NewCcompleteShoppingListParams() *CcompleteShoppingListParams

NewCcompleteShoppingListParams creates a new CcompleteShoppingListParams 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 NewCcompleteShoppingListParamsWithContext

func NewCcompleteShoppingListParamsWithContext(ctx context.Context) *CcompleteShoppingListParams

NewCcompleteShoppingListParamsWithContext creates a new CcompleteShoppingListParams object with the ability to set a context for a request.

func NewCcompleteShoppingListParamsWithHTTPClient

func NewCcompleteShoppingListParamsWithHTTPClient(client *http.Client) *CcompleteShoppingListParams

NewCcompleteShoppingListParamsWithHTTPClient creates a new CcompleteShoppingListParams object with the ability to set a custom HTTPClient for a request.

func NewCcompleteShoppingListParamsWithTimeout

func NewCcompleteShoppingListParamsWithTimeout(timeout time.Duration) *CcompleteShoppingListParams

NewCcompleteShoppingListParamsWithTimeout creates a new CcompleteShoppingListParams object with the ability to set a timeout on a request.

func (*CcompleteShoppingListParams) SetBody

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

SetBody adds the body to the ccomplete shopping list params

func (*CcompleteShoppingListParams) SetContext

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

SetContext adds the context to the ccomplete shopping list params

func (*CcompleteShoppingListParams) SetDefaults

func (o *CcompleteShoppingListParams) SetDefaults()

SetDefaults hydrates default values in the ccomplete shopping list params (not the query body).

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

func (*CcompleteShoppingListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the ccomplete shopping list params

func (*CcompleteShoppingListParams) SetID

func (o *CcompleteShoppingListParams) SetID(id string)

SetID adds the id to the ccomplete shopping list params

func (*CcompleteShoppingListParams) SetTimeout

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

SetTimeout adds the timeout to the ccomplete shopping list params

func (*CcompleteShoppingListParams) WithBody

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

WithBody adds the body to the ccomplete shopping list params

func (*CcompleteShoppingListParams) WithContext

WithContext adds the context to the ccomplete shopping list params

func (*CcompleteShoppingListParams) WithDefaults

WithDefaults hydrates default values in the ccomplete shopping list params (not the query body).

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

func (*CcompleteShoppingListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the ccomplete shopping list params

func (*CcompleteShoppingListParams) WithID

WithID adds the id to the ccomplete shopping list params

func (*CcompleteShoppingListParams) WithTimeout

WithTimeout adds the timeout to the ccomplete shopping list params

func (*CcompleteShoppingListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CcompleteShoppingListReader

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

CcompleteShoppingListReader is a Reader for the CcompleteShoppingList structure.

func (*CcompleteShoppingListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for shopping list API

func (*Client) AssignShoppingList

func (a *Client) AssignShoppingList(params *AssignShoppingListParams, opts ...ClientOption) (*AssignShoppingListOK, error)

AssignShoppingList assigns a shopping list to a bot

func (*Client) CancelShoppingList

func (a *Client) CancelShoppingList(params *CancelShoppingListParams, opts ...ClientOption) (*CancelShoppingListOK, error)

CancelShoppingList cancels a shopping task

func (*Client) CcompleteShoppingList

func (a *Client) CcompleteShoppingList(params *CcompleteShoppingListParams, opts ...ClientOption) (*CcompleteShoppingListOK, error)

CcompleteShoppingList completes a shopping task

func (*Client) CreateShoppingList

func (a *Client) CreateShoppingList(params *CreateShoppingListParams, opts ...ClientOption) (*CreateShoppingListOK, error)

CreateShoppingList schedules shopping tasks for an order

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 {
	AssignShoppingList(params *AssignShoppingListParams, opts ...ClientOption) (*AssignShoppingListOK, error)

	CancelShoppingList(params *CancelShoppingListParams, opts ...ClientOption) (*CancelShoppingListOK, error)

	CcompleteShoppingList(params *CcompleteShoppingListParams, opts ...ClientOption) (*CcompleteShoppingListOK, error)

	CreateShoppingList(params *CreateShoppingListParams, opts ...ClientOption) (*CreateShoppingListOK, 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 shopping list API client.

type CreateShoppingListDefault

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

An unexpected error response.

func NewCreateShoppingListDefault

func NewCreateShoppingListDefault(code int) *CreateShoppingListDefault

NewCreateShoppingListDefault creates a CreateShoppingListDefault with default headers values

func (*CreateShoppingListDefault) Code

func (o *CreateShoppingListDefault) Code() int

Code gets the status code for the create shopping list default response

func (*CreateShoppingListDefault) Error

func (o *CreateShoppingListDefault) Error() string

func (*CreateShoppingListDefault) GetPayload

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

func (*CreateShoppingListDefault) IsClientError

func (o *CreateShoppingListDefault) IsClientError() bool

IsClientError returns true when this create shopping list default response has a 4xx status code

func (*CreateShoppingListDefault) IsCode

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

IsCode returns true when this create shopping list default response a status code equal to that given

func (*CreateShoppingListDefault) IsRedirect

func (o *CreateShoppingListDefault) IsRedirect() bool

IsRedirect returns true when this create shopping list default response has a 3xx status code

func (*CreateShoppingListDefault) IsServerError

func (o *CreateShoppingListDefault) IsServerError() bool

IsServerError returns true when this create shopping list default response has a 5xx status code

func (*CreateShoppingListDefault) IsSuccess

func (o *CreateShoppingListDefault) IsSuccess() bool

IsSuccess returns true when this create shopping list default response has a 2xx status code

func (*CreateShoppingListDefault) String

func (o *CreateShoppingListDefault) String() string

type CreateShoppingListOK

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

A successful response.

func NewCreateShoppingListOK

func NewCreateShoppingListOK() *CreateShoppingListOK

NewCreateShoppingListOK creates a CreateShoppingListOK with default headers values

func (*CreateShoppingListOK) Error

func (o *CreateShoppingListOK) Error() string

func (*CreateShoppingListOK) GetPayload

func (*CreateShoppingListOK) IsClientError

func (o *CreateShoppingListOK) IsClientError() bool

IsClientError returns true when this create shopping list o k response has a 4xx status code

func (*CreateShoppingListOK) IsCode

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

IsCode returns true when this create shopping list o k response a status code equal to that given

func (*CreateShoppingListOK) IsRedirect

func (o *CreateShoppingListOK) IsRedirect() bool

IsRedirect returns true when this create shopping list o k response has a 3xx status code

func (*CreateShoppingListOK) IsServerError

func (o *CreateShoppingListOK) IsServerError() bool

IsServerError returns true when this create shopping list o k response has a 5xx status code

func (*CreateShoppingListOK) IsSuccess

func (o *CreateShoppingListOK) IsSuccess() bool

IsSuccess returns true when this create shopping list o k response has a 2xx status code

func (*CreateShoppingListOK) String

func (o *CreateShoppingListOK) String() string

type CreateShoppingListParams

type CreateShoppingListParams struct {

	// Body.
	Body *models.DepotpbCreateShoppingListRequest

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

CreateShoppingListParams contains all the parameters to send to the API endpoint

for the create shopping list operation.

Typically these are written to a http.Request.

func NewCreateShoppingListParams

func NewCreateShoppingListParams() *CreateShoppingListParams

NewCreateShoppingListParams creates a new CreateShoppingListParams 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 NewCreateShoppingListParamsWithContext

func NewCreateShoppingListParamsWithContext(ctx context.Context) *CreateShoppingListParams

NewCreateShoppingListParamsWithContext creates a new CreateShoppingListParams object with the ability to set a context for a request.

func NewCreateShoppingListParamsWithHTTPClient

func NewCreateShoppingListParamsWithHTTPClient(client *http.Client) *CreateShoppingListParams

NewCreateShoppingListParamsWithHTTPClient creates a new CreateShoppingListParams object with the ability to set a custom HTTPClient for a request.

func NewCreateShoppingListParamsWithTimeout

func NewCreateShoppingListParamsWithTimeout(timeout time.Duration) *CreateShoppingListParams

NewCreateShoppingListParamsWithTimeout creates a new CreateShoppingListParams object with the ability to set a timeout on a request.

func (*CreateShoppingListParams) SetBody

SetBody adds the body to the create shopping list params

func (*CreateShoppingListParams) SetContext

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

SetContext adds the context to the create shopping list params

func (*CreateShoppingListParams) SetDefaults

func (o *CreateShoppingListParams) SetDefaults()

SetDefaults hydrates default values in the create shopping list params (not the query body).

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

func (*CreateShoppingListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create shopping list params

func (*CreateShoppingListParams) SetTimeout

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

SetTimeout adds the timeout to the create shopping list params

func (*CreateShoppingListParams) WithBody

WithBody adds the body to the create shopping list params

func (*CreateShoppingListParams) WithContext

WithContext adds the context to the create shopping list params

func (*CreateShoppingListParams) WithDefaults

WithDefaults hydrates default values in the create shopping list params (not the query body).

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

func (*CreateShoppingListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create shopping list params

func (*CreateShoppingListParams) WithTimeout

WithTimeout adds the timeout to the create shopping list params

func (*CreateShoppingListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateShoppingListReader

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

CreateShoppingListReader is a Reader for the CreateShoppingList structure.

func (*CreateShoppingListReader) ReadResponse

func (o *CreateShoppingListReader) 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