Documentation
¶
Index ¶
- type AssignShoppingListDefault
- func (o *AssignShoppingListDefault) Code() int
- func (o *AssignShoppingListDefault) Error() string
- func (o *AssignShoppingListDefault) GetPayload() *models.RPCStatus
- func (o *AssignShoppingListDefault) IsClientError() bool
- func (o *AssignShoppingListDefault) IsCode(code int) bool
- func (o *AssignShoppingListDefault) IsRedirect() bool
- func (o *AssignShoppingListDefault) IsServerError() bool
- func (o *AssignShoppingListDefault) IsSuccess() bool
- func (o *AssignShoppingListDefault) String() string
- type AssignShoppingListOK
- func (o *AssignShoppingListOK) Error() string
- func (o *AssignShoppingListOK) GetPayload() models.DepotpbAssignShoppingListResponse
- func (o *AssignShoppingListOK) IsClientError() bool
- func (o *AssignShoppingListOK) IsCode(code int) bool
- func (o *AssignShoppingListOK) IsRedirect() bool
- func (o *AssignShoppingListOK) IsServerError() bool
- func (o *AssignShoppingListOK) IsSuccess() bool
- func (o *AssignShoppingListOK) String() string
- type AssignShoppingListParams
- func NewAssignShoppingListParams() *AssignShoppingListParams
- func NewAssignShoppingListParamsWithContext(ctx context.Context) *AssignShoppingListParams
- func NewAssignShoppingListParamsWithHTTPClient(client *http.Client) *AssignShoppingListParams
- func NewAssignShoppingListParamsWithTimeout(timeout time.Duration) *AssignShoppingListParams
- func (o *AssignShoppingListParams) SetBody(body *models.AssignShoppingListParamsBody)
- func (o *AssignShoppingListParams) SetContext(ctx context.Context)
- func (o *AssignShoppingListParams) SetDefaults()
- func (o *AssignShoppingListParams) SetHTTPClient(client *http.Client)
- func (o *AssignShoppingListParams) SetID(id string)
- func (o *AssignShoppingListParams) SetTimeout(timeout time.Duration)
- func (o *AssignShoppingListParams) WithBody(body *models.AssignShoppingListParamsBody) *AssignShoppingListParams
- func (o *AssignShoppingListParams) WithContext(ctx context.Context) *AssignShoppingListParams
- func (o *AssignShoppingListParams) WithDefaults() *AssignShoppingListParams
- func (o *AssignShoppingListParams) WithHTTPClient(client *http.Client) *AssignShoppingListParams
- func (o *AssignShoppingListParams) WithID(id string) *AssignShoppingListParams
- func (o *AssignShoppingListParams) WithTimeout(timeout time.Duration) *AssignShoppingListParams
- func (o *AssignShoppingListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AssignShoppingListReader
- type CancelShoppingListDefault
- func (o *CancelShoppingListDefault) Code() int
- func (o *CancelShoppingListDefault) Error() string
- func (o *CancelShoppingListDefault) GetPayload() *models.RPCStatus
- func (o *CancelShoppingListDefault) IsClientError() bool
- func (o *CancelShoppingListDefault) IsCode(code int) bool
- func (o *CancelShoppingListDefault) IsRedirect() bool
- func (o *CancelShoppingListDefault) IsServerError() bool
- func (o *CancelShoppingListDefault) IsSuccess() bool
- func (o *CancelShoppingListDefault) String() string
- type CancelShoppingListOK
- func (o *CancelShoppingListOK) Error() string
- func (o *CancelShoppingListOK) GetPayload() models.DepotpbCancelShoppingListResponse
- func (o *CancelShoppingListOK) IsClientError() bool
- func (o *CancelShoppingListOK) IsCode(code int) bool
- func (o *CancelShoppingListOK) IsRedirect() bool
- func (o *CancelShoppingListOK) IsServerError() bool
- func (o *CancelShoppingListOK) IsSuccess() bool
- func (o *CancelShoppingListOK) String() string
- type CancelShoppingListParams
- func NewCancelShoppingListParams() *CancelShoppingListParams
- func NewCancelShoppingListParamsWithContext(ctx context.Context) *CancelShoppingListParams
- func NewCancelShoppingListParamsWithHTTPClient(client *http.Client) *CancelShoppingListParams
- func NewCancelShoppingListParamsWithTimeout(timeout time.Duration) *CancelShoppingListParams
- func (o *CancelShoppingListParams) SetBody(body interface{})
- func (o *CancelShoppingListParams) SetContext(ctx context.Context)
- func (o *CancelShoppingListParams) SetDefaults()
- func (o *CancelShoppingListParams) SetHTTPClient(client *http.Client)
- func (o *CancelShoppingListParams) SetID(id string)
- func (o *CancelShoppingListParams) SetTimeout(timeout time.Duration)
- func (o *CancelShoppingListParams) WithBody(body interface{}) *CancelShoppingListParams
- func (o *CancelShoppingListParams) WithContext(ctx context.Context) *CancelShoppingListParams
- func (o *CancelShoppingListParams) WithDefaults() *CancelShoppingListParams
- func (o *CancelShoppingListParams) WithHTTPClient(client *http.Client) *CancelShoppingListParams
- func (o *CancelShoppingListParams) WithID(id string) *CancelShoppingListParams
- func (o *CancelShoppingListParams) WithTimeout(timeout time.Duration) *CancelShoppingListParams
- func (o *CancelShoppingListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CancelShoppingListReader
- type CcompleteShoppingListDefault
- func (o *CcompleteShoppingListDefault) Code() int
- func (o *CcompleteShoppingListDefault) Error() string
- func (o *CcompleteShoppingListDefault) GetPayload() *models.RPCStatus
- func (o *CcompleteShoppingListDefault) IsClientError() bool
- func (o *CcompleteShoppingListDefault) IsCode(code int) bool
- func (o *CcompleteShoppingListDefault) IsRedirect() bool
- func (o *CcompleteShoppingListDefault) IsServerError() bool
- func (o *CcompleteShoppingListDefault) IsSuccess() bool
- func (o *CcompleteShoppingListDefault) String() string
- type CcompleteShoppingListOK
- func (o *CcompleteShoppingListOK) Error() string
- func (o *CcompleteShoppingListOK) GetPayload() models.DepotpbCompleteShoppingListResponse
- func (o *CcompleteShoppingListOK) IsClientError() bool
- func (o *CcompleteShoppingListOK) IsCode(code int) bool
- func (o *CcompleteShoppingListOK) IsRedirect() bool
- func (o *CcompleteShoppingListOK) IsServerError() bool
- func (o *CcompleteShoppingListOK) IsSuccess() bool
- func (o *CcompleteShoppingListOK) String() string
- type CcompleteShoppingListParams
- func NewCcompleteShoppingListParams() *CcompleteShoppingListParams
- func NewCcompleteShoppingListParamsWithContext(ctx context.Context) *CcompleteShoppingListParams
- func NewCcompleteShoppingListParamsWithHTTPClient(client *http.Client) *CcompleteShoppingListParams
- func NewCcompleteShoppingListParamsWithTimeout(timeout time.Duration) *CcompleteShoppingListParams
- func (o *CcompleteShoppingListParams) SetBody(body interface{})
- func (o *CcompleteShoppingListParams) SetContext(ctx context.Context)
- func (o *CcompleteShoppingListParams) SetDefaults()
- func (o *CcompleteShoppingListParams) SetHTTPClient(client *http.Client)
- func (o *CcompleteShoppingListParams) SetID(id string)
- func (o *CcompleteShoppingListParams) SetTimeout(timeout time.Duration)
- func (o *CcompleteShoppingListParams) WithBody(body interface{}) *CcompleteShoppingListParams
- func (o *CcompleteShoppingListParams) WithContext(ctx context.Context) *CcompleteShoppingListParams
- func (o *CcompleteShoppingListParams) WithDefaults() *CcompleteShoppingListParams
- func (o *CcompleteShoppingListParams) WithHTTPClient(client *http.Client) *CcompleteShoppingListParams
- func (o *CcompleteShoppingListParams) WithID(id string) *CcompleteShoppingListParams
- func (o *CcompleteShoppingListParams) WithTimeout(timeout time.Duration) *CcompleteShoppingListParams
- func (o *CcompleteShoppingListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CcompleteShoppingListReader
- type Client
- func (a *Client) AssignShoppingList(params *AssignShoppingListParams, opts ...ClientOption) (*AssignShoppingListOK, error)
- func (a *Client) CancelShoppingList(params *CancelShoppingListParams, opts ...ClientOption) (*CancelShoppingListOK, error)
- func (a *Client) CcompleteShoppingList(params *CcompleteShoppingListParams, opts ...ClientOption) (*CcompleteShoppingListOK, error)
- func (a *Client) CreateShoppingList(params *CreateShoppingListParams, opts ...ClientOption) (*CreateShoppingListOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateShoppingListDefault
- func (o *CreateShoppingListDefault) Code() int
- func (o *CreateShoppingListDefault) Error() string
- func (o *CreateShoppingListDefault) GetPayload() *models.RPCStatus
- func (o *CreateShoppingListDefault) IsClientError() bool
- func (o *CreateShoppingListDefault) IsCode(code int) bool
- func (o *CreateShoppingListDefault) IsRedirect() bool
- func (o *CreateShoppingListDefault) IsServerError() bool
- func (o *CreateShoppingListDefault) IsSuccess() bool
- func (o *CreateShoppingListDefault) String() string
- type CreateShoppingListOK
- func (o *CreateShoppingListOK) Error() string
- func (o *CreateShoppingListOK) GetPayload() *models.DepotpbCreateShoppingListResponse
- func (o *CreateShoppingListOK) IsClientError() bool
- func (o *CreateShoppingListOK) IsCode(code int) bool
- func (o *CreateShoppingListOK) IsRedirect() bool
- func (o *CreateShoppingListOK) IsServerError() bool
- func (o *CreateShoppingListOK) IsSuccess() bool
- func (o *CreateShoppingListOK) String() string
- type CreateShoppingListParams
- func NewCreateShoppingListParams() *CreateShoppingListParams
- func NewCreateShoppingListParamsWithContext(ctx context.Context) *CreateShoppingListParams
- func NewCreateShoppingListParamsWithHTTPClient(client *http.Client) *CreateShoppingListParams
- func NewCreateShoppingListParamsWithTimeout(timeout time.Duration) *CreateShoppingListParams
- func (o *CreateShoppingListParams) SetBody(body *models.DepotpbCreateShoppingListRequest)
- func (o *CreateShoppingListParams) SetContext(ctx context.Context)
- func (o *CreateShoppingListParams) SetDefaults()
- func (o *CreateShoppingListParams) SetHTTPClient(client *http.Client)
- func (o *CreateShoppingListParams) SetTimeout(timeout time.Duration)
- func (o *CreateShoppingListParams) WithBody(body *models.DepotpbCreateShoppingListRequest) *CreateShoppingListParams
- func (o *CreateShoppingListParams) WithContext(ctx context.Context) *CreateShoppingListParams
- func (o *CreateShoppingListParams) WithDefaults() *CreateShoppingListParams
- func (o *CreateShoppingListParams) WithHTTPClient(client *http.Client) *CreateShoppingListParams
- func (o *CreateShoppingListParams) WithTimeout(timeout time.Duration) *CreateShoppingListParams
- func (o *CreateShoppingListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateShoppingListReader
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 (o *AssignShoppingListOK) GetPayload() models.DepotpbAssignShoppingListResponse
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 ¶
func (o *AssignShoppingListParams) SetBody(body *models.AssignShoppingListParamsBody)
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 ¶
func (o *AssignShoppingListParams) WithBody(body *models.AssignShoppingListParamsBody) *AssignShoppingListParams
WithBody adds the body to the assign shopping list params
func (*AssignShoppingListParams) WithContext ¶
func (o *AssignShoppingListParams) WithContext(ctx context.Context) *AssignShoppingListParams
WithContext adds the context to the assign shopping list params
func (*AssignShoppingListParams) WithDefaults ¶
func (o *AssignShoppingListParams) WithDefaults() *AssignShoppingListParams
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 ¶
func (o *AssignShoppingListParams) WithID(id string) *AssignShoppingListParams
WithID adds the id to the assign shopping list params
func (*AssignShoppingListParams) WithTimeout ¶
func (o *AssignShoppingListParams) WithTimeout(timeout time.Duration) *AssignShoppingListParams
WithTimeout adds the timeout to the assign shopping list params
func (*AssignShoppingListParams) WriteToRequest ¶
func (o *AssignShoppingListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *CancelShoppingListOK) GetPayload() models.DepotpbCancelShoppingListResponse
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 ¶
func (o *CancelShoppingListParams) WithContext(ctx context.Context) *CancelShoppingListParams
WithContext adds the context to the cancel shopping list params
func (*CancelShoppingListParams) WithDefaults ¶
func (o *CancelShoppingListParams) WithDefaults() *CancelShoppingListParams
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 ¶
func (o *CancelShoppingListParams) WithID(id string) *CancelShoppingListParams
WithID adds the id to the cancel shopping list params
func (*CancelShoppingListParams) WithTimeout ¶
func (o *CancelShoppingListParams) WithTimeout(timeout time.Duration) *CancelShoppingListParams
WithTimeout adds the timeout to the cancel shopping list params
func (*CancelShoppingListParams) WriteToRequest ¶
func (o *CancelShoppingListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CcompleteShoppingListDefault) Code() int
Code gets the status code for the ccomplete shopping list default response
func (*CcompleteShoppingListDefault) Error ¶
func (o *CcompleteShoppingListDefault) Error() string
func (*CcompleteShoppingListDefault) GetPayload ¶
func (o *CcompleteShoppingListDefault) GetPayload() *models.RPCStatus
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 ¶
func (o *CcompleteShoppingListDefault) String() 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 (o *CcompleteShoppingListOK) GetPayload() models.DepotpbCompleteShoppingListResponse
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 ¶
func (o *CcompleteShoppingListParams) WithContext(ctx context.Context) *CcompleteShoppingListParams
WithContext adds the context to the ccomplete shopping list params
func (*CcompleteShoppingListParams) WithDefaults ¶
func (o *CcompleteShoppingListParams) WithDefaults() *CcompleteShoppingListParams
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 ¶
func (o *CcompleteShoppingListParams) WithHTTPClient(client *http.Client) *CcompleteShoppingListParams
WithHTTPClient adds the HTTPClient to the ccomplete shopping list params
func (*CcompleteShoppingListParams) WithID ¶
func (o *CcompleteShoppingListParams) WithID(id string) *CcompleteShoppingListParams
WithID adds the id to the ccomplete shopping list params
func (*CcompleteShoppingListParams) WithTimeout ¶
func (o *CcompleteShoppingListParams) WithTimeout(timeout time.Duration) *CcompleteShoppingListParams
WithTimeout adds the timeout to the ccomplete shopping list params
func (*CcompleteShoppingListParams) WriteToRequest ¶
func (o *CcompleteShoppingListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *CreateShoppingListOK) GetPayload() *models.DepotpbCreateShoppingListResponse
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 ¶
func (o *CreateShoppingListParams) SetBody(body *models.DepotpbCreateShoppingListRequest)
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 ¶
func (o *CreateShoppingListParams) WithBody(body *models.DepotpbCreateShoppingListRequest) *CreateShoppingListParams
WithBody adds the body to the create shopping list params
func (*CreateShoppingListParams) WithContext ¶
func (o *CreateShoppingListParams) WithContext(ctx context.Context) *CreateShoppingListParams
WithContext adds the context to the create shopping list params
func (*CreateShoppingListParams) WithDefaults ¶
func (o *CreateShoppingListParams) WithDefaults() *CreateShoppingListParams
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 ¶
func (o *CreateShoppingListParams) WithTimeout(timeout time.Duration) *CreateShoppingListParams
WithTimeout adds the timeout to the create shopping list params
func (*CreateShoppingListParams) WriteToRequest ¶
func (o *CreateShoppingListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- assign_shopping_list_parameters.go
- assign_shopping_list_responses.go
- cancel_shopping_list_parameters.go
- cancel_shopping_list_responses.go
- ccomplete_shopping_list_parameters.go
- ccomplete_shopping_list_responses.go
- create_shopping_list_parameters.go
- create_shopping_list_responses.go
- shopping_list_client.go