Documentation ¶
Index ¶
- type BatchChangeInventoryOK
- type BatchChangeInventoryParams
- func NewBatchChangeInventoryParams() *BatchChangeInventoryParams
- func NewBatchChangeInventoryParamsWithContext(ctx context.Context) *BatchChangeInventoryParams
- func NewBatchChangeInventoryParamsWithHTTPClient(client *http.Client) *BatchChangeInventoryParams
- func NewBatchChangeInventoryParamsWithTimeout(timeout time.Duration) *BatchChangeInventoryParams
- func (o *BatchChangeInventoryParams) SetBody(body *models.BatchChangeInventoryRequest)
- func (o *BatchChangeInventoryParams) SetContext(ctx context.Context)
- func (o *BatchChangeInventoryParams) SetDefaults()
- func (o *BatchChangeInventoryParams) SetHTTPClient(client *http.Client)
- func (o *BatchChangeInventoryParams) SetTimeout(timeout time.Duration)
- func (o *BatchChangeInventoryParams) WithBody(body *models.BatchChangeInventoryRequest) *BatchChangeInventoryParams
- func (o *BatchChangeInventoryParams) WithContext(ctx context.Context) *BatchChangeInventoryParams
- func (o *BatchChangeInventoryParams) WithDefaults() *BatchChangeInventoryParams
- func (o *BatchChangeInventoryParams) WithHTTPClient(client *http.Client) *BatchChangeInventoryParams
- func (o *BatchChangeInventoryParams) WithTimeout(timeout time.Duration) *BatchChangeInventoryParams
- func (o *BatchChangeInventoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BatchChangeInventoryReader
- type BatchRetrieveInventoryChangesOK
- type BatchRetrieveInventoryChangesParams
- func NewBatchRetrieveInventoryChangesParams() *BatchRetrieveInventoryChangesParams
- func NewBatchRetrieveInventoryChangesParamsWithContext(ctx context.Context) *BatchRetrieveInventoryChangesParams
- func NewBatchRetrieveInventoryChangesParamsWithHTTPClient(client *http.Client) *BatchRetrieveInventoryChangesParams
- func NewBatchRetrieveInventoryChangesParamsWithTimeout(timeout time.Duration) *BatchRetrieveInventoryChangesParams
- func (o *BatchRetrieveInventoryChangesParams) SetBody(body *models.BatchRetrieveInventoryChangesRequest)
- func (o *BatchRetrieveInventoryChangesParams) SetContext(ctx context.Context)
- func (o *BatchRetrieveInventoryChangesParams) SetDefaults()
- func (o *BatchRetrieveInventoryChangesParams) SetHTTPClient(client *http.Client)
- func (o *BatchRetrieveInventoryChangesParams) SetTimeout(timeout time.Duration)
- func (o *BatchRetrieveInventoryChangesParams) WithBody(body *models.BatchRetrieveInventoryChangesRequest) *BatchRetrieveInventoryChangesParams
- func (o *BatchRetrieveInventoryChangesParams) WithContext(ctx context.Context) *BatchRetrieveInventoryChangesParams
- func (o *BatchRetrieveInventoryChangesParams) WithDefaults() *BatchRetrieveInventoryChangesParams
- func (o *BatchRetrieveInventoryChangesParams) WithHTTPClient(client *http.Client) *BatchRetrieveInventoryChangesParams
- func (o *BatchRetrieveInventoryChangesParams) WithTimeout(timeout time.Duration) *BatchRetrieveInventoryChangesParams
- func (o *BatchRetrieveInventoryChangesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BatchRetrieveInventoryChangesReader
- type BatchRetrieveInventoryCountsOK
- type BatchRetrieveInventoryCountsParams
- func NewBatchRetrieveInventoryCountsParams() *BatchRetrieveInventoryCountsParams
- func NewBatchRetrieveInventoryCountsParamsWithContext(ctx context.Context) *BatchRetrieveInventoryCountsParams
- func NewBatchRetrieveInventoryCountsParamsWithHTTPClient(client *http.Client) *BatchRetrieveInventoryCountsParams
- func NewBatchRetrieveInventoryCountsParamsWithTimeout(timeout time.Duration) *BatchRetrieveInventoryCountsParams
- func (o *BatchRetrieveInventoryCountsParams) SetBody(body *models.BatchRetrieveInventoryCountsRequest)
- func (o *BatchRetrieveInventoryCountsParams) SetContext(ctx context.Context)
- func (o *BatchRetrieveInventoryCountsParams) SetDefaults()
- func (o *BatchRetrieveInventoryCountsParams) SetHTTPClient(client *http.Client)
- func (o *BatchRetrieveInventoryCountsParams) SetTimeout(timeout time.Duration)
- func (o *BatchRetrieveInventoryCountsParams) WithBody(body *models.BatchRetrieveInventoryCountsRequest) *BatchRetrieveInventoryCountsParams
- func (o *BatchRetrieveInventoryCountsParams) WithContext(ctx context.Context) *BatchRetrieveInventoryCountsParams
- func (o *BatchRetrieveInventoryCountsParams) WithDefaults() *BatchRetrieveInventoryCountsParams
- func (o *BatchRetrieveInventoryCountsParams) WithHTTPClient(client *http.Client) *BatchRetrieveInventoryCountsParams
- func (o *BatchRetrieveInventoryCountsParams) WithTimeout(timeout time.Duration) *BatchRetrieveInventoryCountsParams
- func (o *BatchRetrieveInventoryCountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BatchRetrieveInventoryCountsReader
- type Client
- func (a *Client) BatchChangeInventory(params *BatchChangeInventoryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*BatchChangeInventoryOK, error)
- func (a *Client) BatchRetrieveInventoryChanges(params *BatchRetrieveInventoryChangesParams, ...) (*BatchRetrieveInventoryChangesOK, error)
- func (a *Client) BatchRetrieveInventoryCounts(params *BatchRetrieveInventoryCountsParams, ...) (*BatchRetrieveInventoryCountsOK, error)
- func (a *Client) RetrieveInventoryAdjustment(params *RetrieveInventoryAdjustmentParams, ...) (*RetrieveInventoryAdjustmentOK, error)
- func (a *Client) RetrieveInventoryChanges(params *RetrieveInventoryChangesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RetrieveInventoryChangesOK, error)
- func (a *Client) RetrieveInventoryCount(params *RetrieveInventoryCountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RetrieveInventoryCountOK, error)
- func (a *Client) RetrieveInventoryPhysicalCount(params *RetrieveInventoryPhysicalCountParams, ...) (*RetrieveInventoryPhysicalCountOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type RetrieveInventoryAdjustmentOK
- type RetrieveInventoryAdjustmentParams
- func NewRetrieveInventoryAdjustmentParams() *RetrieveInventoryAdjustmentParams
- func NewRetrieveInventoryAdjustmentParamsWithContext(ctx context.Context) *RetrieveInventoryAdjustmentParams
- func NewRetrieveInventoryAdjustmentParamsWithHTTPClient(client *http.Client) *RetrieveInventoryAdjustmentParams
- func NewRetrieveInventoryAdjustmentParamsWithTimeout(timeout time.Duration) *RetrieveInventoryAdjustmentParams
- func (o *RetrieveInventoryAdjustmentParams) SetAdjustmentID(adjustmentID string)
- func (o *RetrieveInventoryAdjustmentParams) SetContext(ctx context.Context)
- func (o *RetrieveInventoryAdjustmentParams) SetDefaults()
- func (o *RetrieveInventoryAdjustmentParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveInventoryAdjustmentParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveInventoryAdjustmentParams) WithAdjustmentID(adjustmentID string) *RetrieveInventoryAdjustmentParams
- func (o *RetrieveInventoryAdjustmentParams) WithContext(ctx context.Context) *RetrieveInventoryAdjustmentParams
- func (o *RetrieveInventoryAdjustmentParams) WithDefaults() *RetrieveInventoryAdjustmentParams
- func (o *RetrieveInventoryAdjustmentParams) WithHTTPClient(client *http.Client) *RetrieveInventoryAdjustmentParams
- func (o *RetrieveInventoryAdjustmentParams) WithTimeout(timeout time.Duration) *RetrieveInventoryAdjustmentParams
- func (o *RetrieveInventoryAdjustmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveInventoryAdjustmentReader
- type RetrieveInventoryChangesOK
- type RetrieveInventoryChangesParams
- func NewRetrieveInventoryChangesParams() *RetrieveInventoryChangesParams
- func NewRetrieveInventoryChangesParamsWithContext(ctx context.Context) *RetrieveInventoryChangesParams
- func NewRetrieveInventoryChangesParamsWithHTTPClient(client *http.Client) *RetrieveInventoryChangesParams
- func NewRetrieveInventoryChangesParamsWithTimeout(timeout time.Duration) *RetrieveInventoryChangesParams
- func (o *RetrieveInventoryChangesParams) SetCatalogObjectID(catalogObjectID string)
- func (o *RetrieveInventoryChangesParams) SetContext(ctx context.Context)
- func (o *RetrieveInventoryChangesParams) SetCursor(cursor *string)
- func (o *RetrieveInventoryChangesParams) SetDefaults()
- func (o *RetrieveInventoryChangesParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveInventoryChangesParams) SetLocationIds(locationIds *string)
- func (o *RetrieveInventoryChangesParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveInventoryChangesParams) WithCatalogObjectID(catalogObjectID string) *RetrieveInventoryChangesParams
- func (o *RetrieveInventoryChangesParams) WithContext(ctx context.Context) *RetrieveInventoryChangesParams
- func (o *RetrieveInventoryChangesParams) WithCursor(cursor *string) *RetrieveInventoryChangesParams
- func (o *RetrieveInventoryChangesParams) WithDefaults() *RetrieveInventoryChangesParams
- func (o *RetrieveInventoryChangesParams) WithHTTPClient(client *http.Client) *RetrieveInventoryChangesParams
- func (o *RetrieveInventoryChangesParams) WithLocationIds(locationIds *string) *RetrieveInventoryChangesParams
- func (o *RetrieveInventoryChangesParams) WithTimeout(timeout time.Duration) *RetrieveInventoryChangesParams
- func (o *RetrieveInventoryChangesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveInventoryChangesReader
- type RetrieveInventoryCountOK
- type RetrieveInventoryCountParams
- func NewRetrieveInventoryCountParams() *RetrieveInventoryCountParams
- func NewRetrieveInventoryCountParamsWithContext(ctx context.Context) *RetrieveInventoryCountParams
- func NewRetrieveInventoryCountParamsWithHTTPClient(client *http.Client) *RetrieveInventoryCountParams
- func NewRetrieveInventoryCountParamsWithTimeout(timeout time.Duration) *RetrieveInventoryCountParams
- func (o *RetrieveInventoryCountParams) SetCatalogObjectID(catalogObjectID string)
- func (o *RetrieveInventoryCountParams) SetContext(ctx context.Context)
- func (o *RetrieveInventoryCountParams) SetCursor(cursor *string)
- func (o *RetrieveInventoryCountParams) SetDefaults()
- func (o *RetrieveInventoryCountParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveInventoryCountParams) SetLocationIds(locationIds *string)
- func (o *RetrieveInventoryCountParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveInventoryCountParams) WithCatalogObjectID(catalogObjectID string) *RetrieveInventoryCountParams
- func (o *RetrieveInventoryCountParams) WithContext(ctx context.Context) *RetrieveInventoryCountParams
- func (o *RetrieveInventoryCountParams) WithCursor(cursor *string) *RetrieveInventoryCountParams
- func (o *RetrieveInventoryCountParams) WithDefaults() *RetrieveInventoryCountParams
- func (o *RetrieveInventoryCountParams) WithHTTPClient(client *http.Client) *RetrieveInventoryCountParams
- func (o *RetrieveInventoryCountParams) WithLocationIds(locationIds *string) *RetrieveInventoryCountParams
- func (o *RetrieveInventoryCountParams) WithTimeout(timeout time.Duration) *RetrieveInventoryCountParams
- func (o *RetrieveInventoryCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveInventoryCountReader
- type RetrieveInventoryPhysicalCountOK
- type RetrieveInventoryPhysicalCountParams
- func NewRetrieveInventoryPhysicalCountParams() *RetrieveInventoryPhysicalCountParams
- func NewRetrieveInventoryPhysicalCountParamsWithContext(ctx context.Context) *RetrieveInventoryPhysicalCountParams
- func NewRetrieveInventoryPhysicalCountParamsWithHTTPClient(client *http.Client) *RetrieveInventoryPhysicalCountParams
- func NewRetrieveInventoryPhysicalCountParamsWithTimeout(timeout time.Duration) *RetrieveInventoryPhysicalCountParams
- func (o *RetrieveInventoryPhysicalCountParams) SetContext(ctx context.Context)
- func (o *RetrieveInventoryPhysicalCountParams) SetDefaults()
- func (o *RetrieveInventoryPhysicalCountParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveInventoryPhysicalCountParams) SetPhysicalCountID(physicalCountID string)
- func (o *RetrieveInventoryPhysicalCountParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveInventoryPhysicalCountParams) WithContext(ctx context.Context) *RetrieveInventoryPhysicalCountParams
- func (o *RetrieveInventoryPhysicalCountParams) WithDefaults() *RetrieveInventoryPhysicalCountParams
- func (o *RetrieveInventoryPhysicalCountParams) WithHTTPClient(client *http.Client) *RetrieveInventoryPhysicalCountParams
- func (o *RetrieveInventoryPhysicalCountParams) WithPhysicalCountID(physicalCountID string) *RetrieveInventoryPhysicalCountParams
- func (o *RetrieveInventoryPhysicalCountParams) WithTimeout(timeout time.Duration) *RetrieveInventoryPhysicalCountParams
- func (o *RetrieveInventoryPhysicalCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveInventoryPhysicalCountReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchChangeInventoryOK ¶
type BatchChangeInventoryOK struct {
Payload *models.BatchChangeInventoryResponse
}
BatchChangeInventoryOK describes a response with status code 200, with default header values.
Success
func NewBatchChangeInventoryOK ¶
func NewBatchChangeInventoryOK() *BatchChangeInventoryOK
NewBatchChangeInventoryOK creates a BatchChangeInventoryOK with default headers values
func (*BatchChangeInventoryOK) Error ¶
func (o *BatchChangeInventoryOK) Error() string
func (*BatchChangeInventoryOK) GetPayload ¶
func (o *BatchChangeInventoryOK) GetPayload() *models.BatchChangeInventoryResponse
type BatchChangeInventoryParams ¶
type BatchChangeInventoryParams struct { /* Body. An object containing the fields to POST for the request. See the corresponding object definition for field details. */ Body *models.BatchChangeInventoryRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BatchChangeInventoryParams contains all the parameters to send to the API endpoint
for the batch change inventory operation. Typically these are written to a http.Request.
func NewBatchChangeInventoryParams ¶
func NewBatchChangeInventoryParams() *BatchChangeInventoryParams
NewBatchChangeInventoryParams creates a new BatchChangeInventoryParams 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 NewBatchChangeInventoryParamsWithContext ¶
func NewBatchChangeInventoryParamsWithContext(ctx context.Context) *BatchChangeInventoryParams
NewBatchChangeInventoryParamsWithContext creates a new BatchChangeInventoryParams object with the ability to set a context for a request.
func NewBatchChangeInventoryParamsWithHTTPClient ¶
func NewBatchChangeInventoryParamsWithHTTPClient(client *http.Client) *BatchChangeInventoryParams
NewBatchChangeInventoryParamsWithHTTPClient creates a new BatchChangeInventoryParams object with the ability to set a custom HTTPClient for a request.
func NewBatchChangeInventoryParamsWithTimeout ¶
func NewBatchChangeInventoryParamsWithTimeout(timeout time.Duration) *BatchChangeInventoryParams
NewBatchChangeInventoryParamsWithTimeout creates a new BatchChangeInventoryParams object with the ability to set a timeout on a request.
func (*BatchChangeInventoryParams) SetBody ¶
func (o *BatchChangeInventoryParams) SetBody(body *models.BatchChangeInventoryRequest)
SetBody adds the body to the batch change inventory params
func (*BatchChangeInventoryParams) SetContext ¶
func (o *BatchChangeInventoryParams) SetContext(ctx context.Context)
SetContext adds the context to the batch change inventory params
func (*BatchChangeInventoryParams) SetDefaults ¶
func (o *BatchChangeInventoryParams) SetDefaults()
SetDefaults hydrates default values in the batch change inventory params (not the query body).
All values with no default are reset to their zero value.
func (*BatchChangeInventoryParams) SetHTTPClient ¶
func (o *BatchChangeInventoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the batch change inventory params
func (*BatchChangeInventoryParams) SetTimeout ¶
func (o *BatchChangeInventoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the batch change inventory params
func (*BatchChangeInventoryParams) WithBody ¶
func (o *BatchChangeInventoryParams) WithBody(body *models.BatchChangeInventoryRequest) *BatchChangeInventoryParams
WithBody adds the body to the batch change inventory params
func (*BatchChangeInventoryParams) WithContext ¶
func (o *BatchChangeInventoryParams) WithContext(ctx context.Context) *BatchChangeInventoryParams
WithContext adds the context to the batch change inventory params
func (*BatchChangeInventoryParams) WithDefaults ¶
func (o *BatchChangeInventoryParams) WithDefaults() *BatchChangeInventoryParams
WithDefaults hydrates default values in the batch change inventory params (not the query body).
All values with no default are reset to their zero value.
func (*BatchChangeInventoryParams) WithHTTPClient ¶
func (o *BatchChangeInventoryParams) WithHTTPClient(client *http.Client) *BatchChangeInventoryParams
WithHTTPClient adds the HTTPClient to the batch change inventory params
func (*BatchChangeInventoryParams) WithTimeout ¶
func (o *BatchChangeInventoryParams) WithTimeout(timeout time.Duration) *BatchChangeInventoryParams
WithTimeout adds the timeout to the batch change inventory params
func (*BatchChangeInventoryParams) WriteToRequest ¶
func (o *BatchChangeInventoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BatchChangeInventoryReader ¶
type BatchChangeInventoryReader struct {
// contains filtered or unexported fields
}
BatchChangeInventoryReader is a Reader for the BatchChangeInventory structure.
func (*BatchChangeInventoryReader) ReadResponse ¶
func (o *BatchChangeInventoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BatchRetrieveInventoryChangesOK ¶
type BatchRetrieveInventoryChangesOK struct {
Payload *models.BatchRetrieveInventoryChangesResponse
}
BatchRetrieveInventoryChangesOK describes a response with status code 200, with default header values.
Success
func NewBatchRetrieveInventoryChangesOK ¶
func NewBatchRetrieveInventoryChangesOK() *BatchRetrieveInventoryChangesOK
NewBatchRetrieveInventoryChangesOK creates a BatchRetrieveInventoryChangesOK with default headers values
func (*BatchRetrieveInventoryChangesOK) Error ¶
func (o *BatchRetrieveInventoryChangesOK) Error() string
func (*BatchRetrieveInventoryChangesOK) GetPayload ¶
func (o *BatchRetrieveInventoryChangesOK) GetPayload() *models.BatchRetrieveInventoryChangesResponse
type BatchRetrieveInventoryChangesParams ¶
type BatchRetrieveInventoryChangesParams struct { /* Body. An object containing the fields to POST for the request. See the corresponding object definition for field details. */ Body *models.BatchRetrieveInventoryChangesRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BatchRetrieveInventoryChangesParams contains all the parameters to send to the API endpoint
for the batch retrieve inventory changes operation. Typically these are written to a http.Request.
func NewBatchRetrieveInventoryChangesParams ¶
func NewBatchRetrieveInventoryChangesParams() *BatchRetrieveInventoryChangesParams
NewBatchRetrieveInventoryChangesParams creates a new BatchRetrieveInventoryChangesParams 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 NewBatchRetrieveInventoryChangesParamsWithContext ¶
func NewBatchRetrieveInventoryChangesParamsWithContext(ctx context.Context) *BatchRetrieveInventoryChangesParams
NewBatchRetrieveInventoryChangesParamsWithContext creates a new BatchRetrieveInventoryChangesParams object with the ability to set a context for a request.
func NewBatchRetrieveInventoryChangesParamsWithHTTPClient ¶
func NewBatchRetrieveInventoryChangesParamsWithHTTPClient(client *http.Client) *BatchRetrieveInventoryChangesParams
NewBatchRetrieveInventoryChangesParamsWithHTTPClient creates a new BatchRetrieveInventoryChangesParams object with the ability to set a custom HTTPClient for a request.
func NewBatchRetrieveInventoryChangesParamsWithTimeout ¶
func NewBatchRetrieveInventoryChangesParamsWithTimeout(timeout time.Duration) *BatchRetrieveInventoryChangesParams
NewBatchRetrieveInventoryChangesParamsWithTimeout creates a new BatchRetrieveInventoryChangesParams object with the ability to set a timeout on a request.
func (*BatchRetrieveInventoryChangesParams) SetBody ¶
func (o *BatchRetrieveInventoryChangesParams) SetBody(body *models.BatchRetrieveInventoryChangesRequest)
SetBody adds the body to the batch retrieve inventory changes params
func (*BatchRetrieveInventoryChangesParams) SetContext ¶
func (o *BatchRetrieveInventoryChangesParams) SetContext(ctx context.Context)
SetContext adds the context to the batch retrieve inventory changes params
func (*BatchRetrieveInventoryChangesParams) SetDefaults ¶
func (o *BatchRetrieveInventoryChangesParams) SetDefaults()
SetDefaults hydrates default values in the batch retrieve inventory changes params (not the query body).
All values with no default are reset to their zero value.
func (*BatchRetrieveInventoryChangesParams) SetHTTPClient ¶
func (o *BatchRetrieveInventoryChangesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the batch retrieve inventory changes params
func (*BatchRetrieveInventoryChangesParams) SetTimeout ¶
func (o *BatchRetrieveInventoryChangesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the batch retrieve inventory changes params
func (*BatchRetrieveInventoryChangesParams) WithBody ¶
func (o *BatchRetrieveInventoryChangesParams) WithBody(body *models.BatchRetrieveInventoryChangesRequest) *BatchRetrieveInventoryChangesParams
WithBody adds the body to the batch retrieve inventory changes params
func (*BatchRetrieveInventoryChangesParams) WithContext ¶
func (o *BatchRetrieveInventoryChangesParams) WithContext(ctx context.Context) *BatchRetrieveInventoryChangesParams
WithContext adds the context to the batch retrieve inventory changes params
func (*BatchRetrieveInventoryChangesParams) WithDefaults ¶
func (o *BatchRetrieveInventoryChangesParams) WithDefaults() *BatchRetrieveInventoryChangesParams
WithDefaults hydrates default values in the batch retrieve inventory changes params (not the query body).
All values with no default are reset to their zero value.
func (*BatchRetrieveInventoryChangesParams) WithHTTPClient ¶
func (o *BatchRetrieveInventoryChangesParams) WithHTTPClient(client *http.Client) *BatchRetrieveInventoryChangesParams
WithHTTPClient adds the HTTPClient to the batch retrieve inventory changes params
func (*BatchRetrieveInventoryChangesParams) WithTimeout ¶
func (o *BatchRetrieveInventoryChangesParams) WithTimeout(timeout time.Duration) *BatchRetrieveInventoryChangesParams
WithTimeout adds the timeout to the batch retrieve inventory changes params
func (*BatchRetrieveInventoryChangesParams) WriteToRequest ¶
func (o *BatchRetrieveInventoryChangesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BatchRetrieveInventoryChangesReader ¶
type BatchRetrieveInventoryChangesReader struct {
// contains filtered or unexported fields
}
BatchRetrieveInventoryChangesReader is a Reader for the BatchRetrieveInventoryChanges structure.
func (*BatchRetrieveInventoryChangesReader) ReadResponse ¶
func (o *BatchRetrieveInventoryChangesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BatchRetrieveInventoryCountsOK ¶
type BatchRetrieveInventoryCountsOK struct {
Payload *models.BatchRetrieveInventoryCountsResponse
}
BatchRetrieveInventoryCountsOK describes a response with status code 200, with default header values.
Success
func NewBatchRetrieveInventoryCountsOK ¶
func NewBatchRetrieveInventoryCountsOK() *BatchRetrieveInventoryCountsOK
NewBatchRetrieveInventoryCountsOK creates a BatchRetrieveInventoryCountsOK with default headers values
func (*BatchRetrieveInventoryCountsOK) Error ¶
func (o *BatchRetrieveInventoryCountsOK) Error() string
func (*BatchRetrieveInventoryCountsOK) GetPayload ¶
func (o *BatchRetrieveInventoryCountsOK) GetPayload() *models.BatchRetrieveInventoryCountsResponse
type BatchRetrieveInventoryCountsParams ¶
type BatchRetrieveInventoryCountsParams struct { /* Body. An object containing the fields to POST for the request. See the corresponding object definition for field details. */ Body *models.BatchRetrieveInventoryCountsRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BatchRetrieveInventoryCountsParams contains all the parameters to send to the API endpoint
for the batch retrieve inventory counts operation. Typically these are written to a http.Request.
func NewBatchRetrieveInventoryCountsParams ¶
func NewBatchRetrieveInventoryCountsParams() *BatchRetrieveInventoryCountsParams
NewBatchRetrieveInventoryCountsParams creates a new BatchRetrieveInventoryCountsParams 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 NewBatchRetrieveInventoryCountsParamsWithContext ¶
func NewBatchRetrieveInventoryCountsParamsWithContext(ctx context.Context) *BatchRetrieveInventoryCountsParams
NewBatchRetrieveInventoryCountsParamsWithContext creates a new BatchRetrieveInventoryCountsParams object with the ability to set a context for a request.
func NewBatchRetrieveInventoryCountsParamsWithHTTPClient ¶
func NewBatchRetrieveInventoryCountsParamsWithHTTPClient(client *http.Client) *BatchRetrieveInventoryCountsParams
NewBatchRetrieveInventoryCountsParamsWithHTTPClient creates a new BatchRetrieveInventoryCountsParams object with the ability to set a custom HTTPClient for a request.
func NewBatchRetrieveInventoryCountsParamsWithTimeout ¶
func NewBatchRetrieveInventoryCountsParamsWithTimeout(timeout time.Duration) *BatchRetrieveInventoryCountsParams
NewBatchRetrieveInventoryCountsParamsWithTimeout creates a new BatchRetrieveInventoryCountsParams object with the ability to set a timeout on a request.
func (*BatchRetrieveInventoryCountsParams) SetBody ¶
func (o *BatchRetrieveInventoryCountsParams) SetBody(body *models.BatchRetrieveInventoryCountsRequest)
SetBody adds the body to the batch retrieve inventory counts params
func (*BatchRetrieveInventoryCountsParams) SetContext ¶
func (o *BatchRetrieveInventoryCountsParams) SetContext(ctx context.Context)
SetContext adds the context to the batch retrieve inventory counts params
func (*BatchRetrieveInventoryCountsParams) SetDefaults ¶
func (o *BatchRetrieveInventoryCountsParams) SetDefaults()
SetDefaults hydrates default values in the batch retrieve inventory counts params (not the query body).
All values with no default are reset to their zero value.
func (*BatchRetrieveInventoryCountsParams) SetHTTPClient ¶
func (o *BatchRetrieveInventoryCountsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the batch retrieve inventory counts params
func (*BatchRetrieveInventoryCountsParams) SetTimeout ¶
func (o *BatchRetrieveInventoryCountsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the batch retrieve inventory counts params
func (*BatchRetrieveInventoryCountsParams) WithBody ¶
func (o *BatchRetrieveInventoryCountsParams) WithBody(body *models.BatchRetrieveInventoryCountsRequest) *BatchRetrieveInventoryCountsParams
WithBody adds the body to the batch retrieve inventory counts params
func (*BatchRetrieveInventoryCountsParams) WithContext ¶
func (o *BatchRetrieveInventoryCountsParams) WithContext(ctx context.Context) *BatchRetrieveInventoryCountsParams
WithContext adds the context to the batch retrieve inventory counts params
func (*BatchRetrieveInventoryCountsParams) WithDefaults ¶
func (o *BatchRetrieveInventoryCountsParams) WithDefaults() *BatchRetrieveInventoryCountsParams
WithDefaults hydrates default values in the batch retrieve inventory counts params (not the query body).
All values with no default are reset to their zero value.
func (*BatchRetrieveInventoryCountsParams) WithHTTPClient ¶
func (o *BatchRetrieveInventoryCountsParams) WithHTTPClient(client *http.Client) *BatchRetrieveInventoryCountsParams
WithHTTPClient adds the HTTPClient to the batch retrieve inventory counts params
func (*BatchRetrieveInventoryCountsParams) WithTimeout ¶
func (o *BatchRetrieveInventoryCountsParams) WithTimeout(timeout time.Duration) *BatchRetrieveInventoryCountsParams
WithTimeout adds the timeout to the batch retrieve inventory counts params
func (*BatchRetrieveInventoryCountsParams) WriteToRequest ¶
func (o *BatchRetrieveInventoryCountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BatchRetrieveInventoryCountsReader ¶
type BatchRetrieveInventoryCountsReader struct {
// contains filtered or unexported fields
}
BatchRetrieveInventoryCountsReader is a Reader for the BatchRetrieveInventoryCounts structure.
func (*BatchRetrieveInventoryCountsReader) ReadResponse ¶
func (o *BatchRetrieveInventoryCountsReader) 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 inventory API
func (*Client) BatchChangeInventory ¶
func (a *Client) BatchChangeInventory(params *BatchChangeInventoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchChangeInventoryOK, error)
BatchChangeInventory batches change inventory Applies adjustments and counts to the provided item quantities.
On success: returns the current calculated counts for all objects referenced in the request. On failure: returns a list of related errors.
func (*Client) BatchRetrieveInventoryChanges ¶
func (a *Client) BatchRetrieveInventoryChanges(params *BatchRetrieveInventoryChangesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchRetrieveInventoryChangesOK, error)
BatchRetrieveInventoryChanges batches retrieve inventory changes Returns historical physical counts and adjustments based on the
provided filter criteria.
Results are paginated and sorted in ascending order according their `occurred_at` timestamp (oldest first).
BatchRetrieveInventoryChanges is a catch-all query endpoint for queries that cannot be handled by other, simpler endpoints.
func (*Client) BatchRetrieveInventoryCounts ¶
func (a *Client) BatchRetrieveInventoryCounts(params *BatchRetrieveInventoryCountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchRetrieveInventoryCountsOK, error)
BatchRetrieveInventoryCounts batches retrieve inventory counts Returns current counts for the provided
[CatalogObject](#type-catalogobject)s at the requested [Location](#type-location)s.
Results are paginated and sorted in descending order according to their `calculated_at` timestamp (newest first).
When `updated_after` is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a "sync" operation, for example in response to receiving a Webhook notification.
func (*Client) RetrieveInventoryAdjustment ¶
func (a *Client) RetrieveInventoryAdjustment(params *RetrieveInventoryAdjustmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveInventoryAdjustmentOK, error)
RetrieveInventoryAdjustment retrieves inventory adjustment Returns the [InventoryAdjustment](#type-inventoryadjustment) object
with the provided `adjustment_id`.
func (*Client) RetrieveInventoryChanges ¶
func (a *Client) RetrieveInventoryChanges(params *RetrieveInventoryChangesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveInventoryChangesOK, error)
RetrieveInventoryChanges retrieves inventory changes Returns a set of physical counts and inventory adjustments for the
provided [CatalogObject](#type-catalogobject) at the requested [Location](#type-location)s.
Results are paginated and sorted in descending order according to their `occurred_at` timestamp (newest first).
There are no limits on how far back the caller can page. This endpoint can be used to display recent changes for a specific item. For more sophisticated queries, use a batch endpoint.
func (*Client) RetrieveInventoryCount ¶
func (a *Client) RetrieveInventoryCount(params *RetrieveInventoryCountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveInventoryCountOK, error)
RetrieveInventoryCount retrieves inventory count Retrieves the current calculated stock count for a given
[CatalogObject](#type-catalogobject) at a given set of [Location](#type-location)s. Responses are paginated and unsorted. For more sophisticated queries, use a batch endpoint.
func (*Client) RetrieveInventoryPhysicalCount ¶
func (a *Client) RetrieveInventoryPhysicalCount(params *RetrieveInventoryPhysicalCountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveInventoryPhysicalCountOK, error)
RetrieveInventoryPhysicalCount retrieves inventory physical count Returns the [InventoryPhysicalCount](#type-inventoryphysicalcount)
object with the provided `physical_count_id`.
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 { BatchChangeInventory(params *BatchChangeInventoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchChangeInventoryOK, error) BatchRetrieveInventoryChanges(params *BatchRetrieveInventoryChangesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchRetrieveInventoryChangesOK, error) BatchRetrieveInventoryCounts(params *BatchRetrieveInventoryCountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchRetrieveInventoryCountsOK, error) RetrieveInventoryAdjustment(params *RetrieveInventoryAdjustmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveInventoryAdjustmentOK, error) RetrieveInventoryChanges(params *RetrieveInventoryChangesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveInventoryChangesOK, error) RetrieveInventoryCount(params *RetrieveInventoryCountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveInventoryCountOK, error) RetrieveInventoryPhysicalCount(params *RetrieveInventoryPhysicalCountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveInventoryPhysicalCountOK, 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 inventory API client.
type RetrieveInventoryAdjustmentOK ¶
type RetrieveInventoryAdjustmentOK struct {
Payload *models.RetrieveInventoryAdjustmentResponse
}
RetrieveInventoryAdjustmentOK describes a response with status code 200, with default header values.
Success
func NewRetrieveInventoryAdjustmentOK ¶
func NewRetrieveInventoryAdjustmentOK() *RetrieveInventoryAdjustmentOK
NewRetrieveInventoryAdjustmentOK creates a RetrieveInventoryAdjustmentOK with default headers values
func (*RetrieveInventoryAdjustmentOK) Error ¶
func (o *RetrieveInventoryAdjustmentOK) Error() string
func (*RetrieveInventoryAdjustmentOK) GetPayload ¶
func (o *RetrieveInventoryAdjustmentOK) GetPayload() *models.RetrieveInventoryAdjustmentResponse
type RetrieveInventoryAdjustmentParams ¶
type RetrieveInventoryAdjustmentParams struct { /* AdjustmentID. ID of the `InventoryAdjustment` to retrieve. */ AdjustmentID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrieveInventoryAdjustmentParams contains all the parameters to send to the API endpoint
for the retrieve inventory adjustment operation. Typically these are written to a http.Request.
func NewRetrieveInventoryAdjustmentParams ¶
func NewRetrieveInventoryAdjustmentParams() *RetrieveInventoryAdjustmentParams
NewRetrieveInventoryAdjustmentParams creates a new RetrieveInventoryAdjustmentParams 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 NewRetrieveInventoryAdjustmentParamsWithContext ¶
func NewRetrieveInventoryAdjustmentParamsWithContext(ctx context.Context) *RetrieveInventoryAdjustmentParams
NewRetrieveInventoryAdjustmentParamsWithContext creates a new RetrieveInventoryAdjustmentParams object with the ability to set a context for a request.
func NewRetrieveInventoryAdjustmentParamsWithHTTPClient ¶
func NewRetrieveInventoryAdjustmentParamsWithHTTPClient(client *http.Client) *RetrieveInventoryAdjustmentParams
NewRetrieveInventoryAdjustmentParamsWithHTTPClient creates a new RetrieveInventoryAdjustmentParams object with the ability to set a custom HTTPClient for a request.
func NewRetrieveInventoryAdjustmentParamsWithTimeout ¶
func NewRetrieveInventoryAdjustmentParamsWithTimeout(timeout time.Duration) *RetrieveInventoryAdjustmentParams
NewRetrieveInventoryAdjustmentParamsWithTimeout creates a new RetrieveInventoryAdjustmentParams object with the ability to set a timeout on a request.
func (*RetrieveInventoryAdjustmentParams) SetAdjustmentID ¶
func (o *RetrieveInventoryAdjustmentParams) SetAdjustmentID(adjustmentID string)
SetAdjustmentID adds the adjustmentId to the retrieve inventory adjustment params
func (*RetrieveInventoryAdjustmentParams) SetContext ¶
func (o *RetrieveInventoryAdjustmentParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve inventory adjustment params
func (*RetrieveInventoryAdjustmentParams) SetDefaults ¶
func (o *RetrieveInventoryAdjustmentParams) SetDefaults()
SetDefaults hydrates default values in the retrieve inventory adjustment params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveInventoryAdjustmentParams) SetHTTPClient ¶
func (o *RetrieveInventoryAdjustmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve inventory adjustment params
func (*RetrieveInventoryAdjustmentParams) SetTimeout ¶
func (o *RetrieveInventoryAdjustmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve inventory adjustment params
func (*RetrieveInventoryAdjustmentParams) WithAdjustmentID ¶
func (o *RetrieveInventoryAdjustmentParams) WithAdjustmentID(adjustmentID string) *RetrieveInventoryAdjustmentParams
WithAdjustmentID adds the adjustmentID to the retrieve inventory adjustment params
func (*RetrieveInventoryAdjustmentParams) WithContext ¶
func (o *RetrieveInventoryAdjustmentParams) WithContext(ctx context.Context) *RetrieveInventoryAdjustmentParams
WithContext adds the context to the retrieve inventory adjustment params
func (*RetrieveInventoryAdjustmentParams) WithDefaults ¶
func (o *RetrieveInventoryAdjustmentParams) WithDefaults() *RetrieveInventoryAdjustmentParams
WithDefaults hydrates default values in the retrieve inventory adjustment params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveInventoryAdjustmentParams) WithHTTPClient ¶
func (o *RetrieveInventoryAdjustmentParams) WithHTTPClient(client *http.Client) *RetrieveInventoryAdjustmentParams
WithHTTPClient adds the HTTPClient to the retrieve inventory adjustment params
func (*RetrieveInventoryAdjustmentParams) WithTimeout ¶
func (o *RetrieveInventoryAdjustmentParams) WithTimeout(timeout time.Duration) *RetrieveInventoryAdjustmentParams
WithTimeout adds the timeout to the retrieve inventory adjustment params
func (*RetrieveInventoryAdjustmentParams) WriteToRequest ¶
func (o *RetrieveInventoryAdjustmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrieveInventoryAdjustmentReader ¶
type RetrieveInventoryAdjustmentReader struct {
// contains filtered or unexported fields
}
RetrieveInventoryAdjustmentReader is a Reader for the RetrieveInventoryAdjustment structure.
func (*RetrieveInventoryAdjustmentReader) ReadResponse ¶
func (o *RetrieveInventoryAdjustmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RetrieveInventoryChangesOK ¶
type RetrieveInventoryChangesOK struct {
Payload *models.RetrieveInventoryChangesResponse
}
RetrieveInventoryChangesOK describes a response with status code 200, with default header values.
Success
func NewRetrieveInventoryChangesOK ¶
func NewRetrieveInventoryChangesOK() *RetrieveInventoryChangesOK
NewRetrieveInventoryChangesOK creates a RetrieveInventoryChangesOK with default headers values
func (*RetrieveInventoryChangesOK) Error ¶
func (o *RetrieveInventoryChangesOK) Error() string
func (*RetrieveInventoryChangesOK) GetPayload ¶
func (o *RetrieveInventoryChangesOK) GetPayload() *models.RetrieveInventoryChangesResponse
type RetrieveInventoryChangesParams ¶
type RetrieveInventoryChangesParams struct { /* CatalogObjectID. ID of the `CatalogObject` to retrieve. */ CatalogObjectID string /* Cursor. A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information. */ Cursor *string /* LocationIds. The `Location` IDs to look up as a comma-separated list. An empty list queries all locations. */ LocationIds *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrieveInventoryChangesParams contains all the parameters to send to the API endpoint
for the retrieve inventory changes operation. Typically these are written to a http.Request.
func NewRetrieveInventoryChangesParams ¶
func NewRetrieveInventoryChangesParams() *RetrieveInventoryChangesParams
NewRetrieveInventoryChangesParams creates a new RetrieveInventoryChangesParams 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 NewRetrieveInventoryChangesParamsWithContext ¶
func NewRetrieveInventoryChangesParamsWithContext(ctx context.Context) *RetrieveInventoryChangesParams
NewRetrieveInventoryChangesParamsWithContext creates a new RetrieveInventoryChangesParams object with the ability to set a context for a request.
func NewRetrieveInventoryChangesParamsWithHTTPClient ¶
func NewRetrieveInventoryChangesParamsWithHTTPClient(client *http.Client) *RetrieveInventoryChangesParams
NewRetrieveInventoryChangesParamsWithHTTPClient creates a new RetrieveInventoryChangesParams object with the ability to set a custom HTTPClient for a request.
func NewRetrieveInventoryChangesParamsWithTimeout ¶
func NewRetrieveInventoryChangesParamsWithTimeout(timeout time.Duration) *RetrieveInventoryChangesParams
NewRetrieveInventoryChangesParamsWithTimeout creates a new RetrieveInventoryChangesParams object with the ability to set a timeout on a request.
func (*RetrieveInventoryChangesParams) SetCatalogObjectID ¶
func (o *RetrieveInventoryChangesParams) SetCatalogObjectID(catalogObjectID string)
SetCatalogObjectID adds the catalogObjectId to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) SetContext ¶
func (o *RetrieveInventoryChangesParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) SetCursor ¶
func (o *RetrieveInventoryChangesParams) SetCursor(cursor *string)
SetCursor adds the cursor to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) SetDefaults ¶
func (o *RetrieveInventoryChangesParams) SetDefaults()
SetDefaults hydrates default values in the retrieve inventory changes params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveInventoryChangesParams) SetHTTPClient ¶
func (o *RetrieveInventoryChangesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) SetLocationIds ¶
func (o *RetrieveInventoryChangesParams) SetLocationIds(locationIds *string)
SetLocationIds adds the locationIds to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) SetTimeout ¶
func (o *RetrieveInventoryChangesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) WithCatalogObjectID ¶
func (o *RetrieveInventoryChangesParams) WithCatalogObjectID(catalogObjectID string) *RetrieveInventoryChangesParams
WithCatalogObjectID adds the catalogObjectID to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) WithContext ¶
func (o *RetrieveInventoryChangesParams) WithContext(ctx context.Context) *RetrieveInventoryChangesParams
WithContext adds the context to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) WithCursor ¶
func (o *RetrieveInventoryChangesParams) WithCursor(cursor *string) *RetrieveInventoryChangesParams
WithCursor adds the cursor to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) WithDefaults ¶
func (o *RetrieveInventoryChangesParams) WithDefaults() *RetrieveInventoryChangesParams
WithDefaults hydrates default values in the retrieve inventory changes params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveInventoryChangesParams) WithHTTPClient ¶
func (o *RetrieveInventoryChangesParams) WithHTTPClient(client *http.Client) *RetrieveInventoryChangesParams
WithHTTPClient adds the HTTPClient to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) WithLocationIds ¶
func (o *RetrieveInventoryChangesParams) WithLocationIds(locationIds *string) *RetrieveInventoryChangesParams
WithLocationIds adds the locationIds to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) WithTimeout ¶
func (o *RetrieveInventoryChangesParams) WithTimeout(timeout time.Duration) *RetrieveInventoryChangesParams
WithTimeout adds the timeout to the retrieve inventory changes params
func (*RetrieveInventoryChangesParams) WriteToRequest ¶
func (o *RetrieveInventoryChangesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrieveInventoryChangesReader ¶
type RetrieveInventoryChangesReader struct {
// contains filtered or unexported fields
}
RetrieveInventoryChangesReader is a Reader for the RetrieveInventoryChanges structure.
func (*RetrieveInventoryChangesReader) ReadResponse ¶
func (o *RetrieveInventoryChangesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RetrieveInventoryCountOK ¶
type RetrieveInventoryCountOK struct {
Payload *models.RetrieveInventoryCountResponse
}
RetrieveInventoryCountOK describes a response with status code 200, with default header values.
Success
func NewRetrieveInventoryCountOK ¶
func NewRetrieveInventoryCountOK() *RetrieveInventoryCountOK
NewRetrieveInventoryCountOK creates a RetrieveInventoryCountOK with default headers values
func (*RetrieveInventoryCountOK) Error ¶
func (o *RetrieveInventoryCountOK) Error() string
func (*RetrieveInventoryCountOK) GetPayload ¶
func (o *RetrieveInventoryCountOK) GetPayload() *models.RetrieveInventoryCountResponse
type RetrieveInventoryCountParams ¶
type RetrieveInventoryCountParams struct { /* CatalogObjectID. ID of the `CatalogObject` to retrieve. */ CatalogObjectID string /* Cursor. A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. */ Cursor *string /* LocationIds. The `Location` IDs to look up as a comma-separated list. An empty list queries all locations. */ LocationIds *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrieveInventoryCountParams contains all the parameters to send to the API endpoint
for the retrieve inventory count operation. Typically these are written to a http.Request.
func NewRetrieveInventoryCountParams ¶
func NewRetrieveInventoryCountParams() *RetrieveInventoryCountParams
NewRetrieveInventoryCountParams creates a new RetrieveInventoryCountParams 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 NewRetrieveInventoryCountParamsWithContext ¶
func NewRetrieveInventoryCountParamsWithContext(ctx context.Context) *RetrieveInventoryCountParams
NewRetrieveInventoryCountParamsWithContext creates a new RetrieveInventoryCountParams object with the ability to set a context for a request.
func NewRetrieveInventoryCountParamsWithHTTPClient ¶
func NewRetrieveInventoryCountParamsWithHTTPClient(client *http.Client) *RetrieveInventoryCountParams
NewRetrieveInventoryCountParamsWithHTTPClient creates a new RetrieveInventoryCountParams object with the ability to set a custom HTTPClient for a request.
func NewRetrieveInventoryCountParamsWithTimeout ¶
func NewRetrieveInventoryCountParamsWithTimeout(timeout time.Duration) *RetrieveInventoryCountParams
NewRetrieveInventoryCountParamsWithTimeout creates a new RetrieveInventoryCountParams object with the ability to set a timeout on a request.
func (*RetrieveInventoryCountParams) SetCatalogObjectID ¶
func (o *RetrieveInventoryCountParams) SetCatalogObjectID(catalogObjectID string)
SetCatalogObjectID adds the catalogObjectId to the retrieve inventory count params
func (*RetrieveInventoryCountParams) SetContext ¶
func (o *RetrieveInventoryCountParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve inventory count params
func (*RetrieveInventoryCountParams) SetCursor ¶
func (o *RetrieveInventoryCountParams) SetCursor(cursor *string)
SetCursor adds the cursor to the retrieve inventory count params
func (*RetrieveInventoryCountParams) SetDefaults ¶
func (o *RetrieveInventoryCountParams) SetDefaults()
SetDefaults hydrates default values in the retrieve inventory count params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveInventoryCountParams) SetHTTPClient ¶
func (o *RetrieveInventoryCountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve inventory count params
func (*RetrieveInventoryCountParams) SetLocationIds ¶
func (o *RetrieveInventoryCountParams) SetLocationIds(locationIds *string)
SetLocationIds adds the locationIds to the retrieve inventory count params
func (*RetrieveInventoryCountParams) SetTimeout ¶
func (o *RetrieveInventoryCountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve inventory count params
func (*RetrieveInventoryCountParams) WithCatalogObjectID ¶
func (o *RetrieveInventoryCountParams) WithCatalogObjectID(catalogObjectID string) *RetrieveInventoryCountParams
WithCatalogObjectID adds the catalogObjectID to the retrieve inventory count params
func (*RetrieveInventoryCountParams) WithContext ¶
func (o *RetrieveInventoryCountParams) WithContext(ctx context.Context) *RetrieveInventoryCountParams
WithContext adds the context to the retrieve inventory count params
func (*RetrieveInventoryCountParams) WithCursor ¶
func (o *RetrieveInventoryCountParams) WithCursor(cursor *string) *RetrieveInventoryCountParams
WithCursor adds the cursor to the retrieve inventory count params
func (*RetrieveInventoryCountParams) WithDefaults ¶
func (o *RetrieveInventoryCountParams) WithDefaults() *RetrieveInventoryCountParams
WithDefaults hydrates default values in the retrieve inventory count params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveInventoryCountParams) WithHTTPClient ¶
func (o *RetrieveInventoryCountParams) WithHTTPClient(client *http.Client) *RetrieveInventoryCountParams
WithHTTPClient adds the HTTPClient to the retrieve inventory count params
func (*RetrieveInventoryCountParams) WithLocationIds ¶
func (o *RetrieveInventoryCountParams) WithLocationIds(locationIds *string) *RetrieveInventoryCountParams
WithLocationIds adds the locationIds to the retrieve inventory count params
func (*RetrieveInventoryCountParams) WithTimeout ¶
func (o *RetrieveInventoryCountParams) WithTimeout(timeout time.Duration) *RetrieveInventoryCountParams
WithTimeout adds the timeout to the retrieve inventory count params
func (*RetrieveInventoryCountParams) WriteToRequest ¶
func (o *RetrieveInventoryCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrieveInventoryCountReader ¶
type RetrieveInventoryCountReader struct {
// contains filtered or unexported fields
}
RetrieveInventoryCountReader is a Reader for the RetrieveInventoryCount structure.
func (*RetrieveInventoryCountReader) ReadResponse ¶
func (o *RetrieveInventoryCountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RetrieveInventoryPhysicalCountOK ¶
type RetrieveInventoryPhysicalCountOK struct {
Payload *models.RetrieveInventoryPhysicalCountResponse
}
RetrieveInventoryPhysicalCountOK describes a response with status code 200, with default header values.
Success
func NewRetrieveInventoryPhysicalCountOK ¶
func NewRetrieveInventoryPhysicalCountOK() *RetrieveInventoryPhysicalCountOK
NewRetrieveInventoryPhysicalCountOK creates a RetrieveInventoryPhysicalCountOK with default headers values
func (*RetrieveInventoryPhysicalCountOK) Error ¶
func (o *RetrieveInventoryPhysicalCountOK) Error() string
func (*RetrieveInventoryPhysicalCountOK) GetPayload ¶
func (o *RetrieveInventoryPhysicalCountOK) GetPayload() *models.RetrieveInventoryPhysicalCountResponse
type RetrieveInventoryPhysicalCountParams ¶
type RetrieveInventoryPhysicalCountParams struct { /* PhysicalCountID. ID of the `InventoryPhysicalCount` to retrieve. */ PhysicalCountID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrieveInventoryPhysicalCountParams contains all the parameters to send to the API endpoint
for the retrieve inventory physical count operation. Typically these are written to a http.Request.
func NewRetrieveInventoryPhysicalCountParams ¶
func NewRetrieveInventoryPhysicalCountParams() *RetrieveInventoryPhysicalCountParams
NewRetrieveInventoryPhysicalCountParams creates a new RetrieveInventoryPhysicalCountParams 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 NewRetrieveInventoryPhysicalCountParamsWithContext ¶
func NewRetrieveInventoryPhysicalCountParamsWithContext(ctx context.Context) *RetrieveInventoryPhysicalCountParams
NewRetrieveInventoryPhysicalCountParamsWithContext creates a new RetrieveInventoryPhysicalCountParams object with the ability to set a context for a request.
func NewRetrieveInventoryPhysicalCountParamsWithHTTPClient ¶
func NewRetrieveInventoryPhysicalCountParamsWithHTTPClient(client *http.Client) *RetrieveInventoryPhysicalCountParams
NewRetrieveInventoryPhysicalCountParamsWithHTTPClient creates a new RetrieveInventoryPhysicalCountParams object with the ability to set a custom HTTPClient for a request.
func NewRetrieveInventoryPhysicalCountParamsWithTimeout ¶
func NewRetrieveInventoryPhysicalCountParamsWithTimeout(timeout time.Duration) *RetrieveInventoryPhysicalCountParams
NewRetrieveInventoryPhysicalCountParamsWithTimeout creates a new RetrieveInventoryPhysicalCountParams object with the ability to set a timeout on a request.
func (*RetrieveInventoryPhysicalCountParams) SetContext ¶
func (o *RetrieveInventoryPhysicalCountParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve inventory physical count params
func (*RetrieveInventoryPhysicalCountParams) SetDefaults ¶
func (o *RetrieveInventoryPhysicalCountParams) SetDefaults()
SetDefaults hydrates default values in the retrieve inventory physical count params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveInventoryPhysicalCountParams) SetHTTPClient ¶
func (o *RetrieveInventoryPhysicalCountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve inventory physical count params
func (*RetrieveInventoryPhysicalCountParams) SetPhysicalCountID ¶
func (o *RetrieveInventoryPhysicalCountParams) SetPhysicalCountID(physicalCountID string)
SetPhysicalCountID adds the physicalCountId to the retrieve inventory physical count params
func (*RetrieveInventoryPhysicalCountParams) SetTimeout ¶
func (o *RetrieveInventoryPhysicalCountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve inventory physical count params
func (*RetrieveInventoryPhysicalCountParams) WithContext ¶
func (o *RetrieveInventoryPhysicalCountParams) WithContext(ctx context.Context) *RetrieveInventoryPhysicalCountParams
WithContext adds the context to the retrieve inventory physical count params
func (*RetrieveInventoryPhysicalCountParams) WithDefaults ¶
func (o *RetrieveInventoryPhysicalCountParams) WithDefaults() *RetrieveInventoryPhysicalCountParams
WithDefaults hydrates default values in the retrieve inventory physical count params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveInventoryPhysicalCountParams) WithHTTPClient ¶
func (o *RetrieveInventoryPhysicalCountParams) WithHTTPClient(client *http.Client) *RetrieveInventoryPhysicalCountParams
WithHTTPClient adds the HTTPClient to the retrieve inventory physical count params
func (*RetrieveInventoryPhysicalCountParams) WithPhysicalCountID ¶
func (o *RetrieveInventoryPhysicalCountParams) WithPhysicalCountID(physicalCountID string) *RetrieveInventoryPhysicalCountParams
WithPhysicalCountID adds the physicalCountID to the retrieve inventory physical count params
func (*RetrieveInventoryPhysicalCountParams) WithTimeout ¶
func (o *RetrieveInventoryPhysicalCountParams) WithTimeout(timeout time.Duration) *RetrieveInventoryPhysicalCountParams
WithTimeout adds the timeout to the retrieve inventory physical count params
func (*RetrieveInventoryPhysicalCountParams) WriteToRequest ¶
func (o *RetrieveInventoryPhysicalCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrieveInventoryPhysicalCountReader ¶
type RetrieveInventoryPhysicalCountReader struct {
// contains filtered or unexported fields
}
RetrieveInventoryPhysicalCountReader is a Reader for the RetrieveInventoryPhysicalCount structure.
func (*RetrieveInventoryPhysicalCountReader) ReadResponse ¶
func (o *RetrieveInventoryPhysicalCountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- batch_change_inventory_parameters.go
- batch_change_inventory_responses.go
- batch_retrieve_inventory_changes_parameters.go
- batch_retrieve_inventory_changes_responses.go
- batch_retrieve_inventory_counts_parameters.go
- batch_retrieve_inventory_counts_responses.go
- inventory_client.go
- retrieve_inventory_adjustment_parameters.go
- retrieve_inventory_adjustment_responses.go
- retrieve_inventory_changes_parameters.go
- retrieve_inventory_changes_responses.go
- retrieve_inventory_count_parameters.go
- retrieve_inventory_count_responses.go
- retrieve_inventory_physical_count_parameters.go
- retrieve_inventory_physical_count_responses.go