inventory

package
v0.0.0-...-dc3cc4a Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type 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

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

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

WithBody adds the body to the batch change inventory params

func (*BatchChangeInventoryParams) WithContext

WithContext adds the context to the batch change inventory params

func (*BatchChangeInventoryParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the batch change inventory params

func (*BatchChangeInventoryParams) WithTimeout

WithTimeout adds the timeout to the batch change inventory params

func (*BatchChangeInventoryParams) WriteToRequest

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 (*BatchRetrieveInventoryChangesOK) GetPayload

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

SetBody adds the body to the batch retrieve inventory changes params

func (*BatchRetrieveInventoryChangesParams) SetContext

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

WithBody adds the body to the batch retrieve inventory changes params

func (*BatchRetrieveInventoryChangesParams) WithContext

WithContext adds the context to the batch retrieve inventory changes params

func (*BatchRetrieveInventoryChangesParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the batch retrieve inventory changes params

func (*BatchRetrieveInventoryChangesParams) WithTimeout

WithTimeout adds the timeout to the batch retrieve inventory changes params

func (*BatchRetrieveInventoryChangesParams) WriteToRequest

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 (*BatchRetrieveInventoryCountsOK) GetPayload

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

SetBody adds the body to the batch retrieve inventory counts params

func (*BatchRetrieveInventoryCountsParams) SetContext

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

WithBody adds the body to the batch retrieve inventory counts params

func (*BatchRetrieveInventoryCountsParams) WithContext

WithContext adds the context to the batch retrieve inventory counts params

func (*BatchRetrieveInventoryCountsParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the batch retrieve inventory counts params

func (*BatchRetrieveInventoryCountsParams) WithTimeout

WithTimeout adds the timeout to the batch retrieve inventory counts params

func (*BatchRetrieveInventoryCountsParams) WriteToRequest

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 (*RetrieveInventoryAdjustmentOK) GetPayload

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

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

WithAdjustmentID adds the adjustmentID to the retrieve inventory adjustment params

func (*RetrieveInventoryAdjustmentParams) WithContext

WithContext adds the context to the retrieve inventory adjustment params

func (*RetrieveInventoryAdjustmentParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the retrieve inventory adjustment params

func (*RetrieveInventoryAdjustmentParams) WithTimeout

WithTimeout adds the timeout to the retrieve inventory adjustment params

func (*RetrieveInventoryAdjustmentParams) WriteToRequest

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 (*RetrieveInventoryChangesOK) GetPayload

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

WithContext adds the context to the retrieve inventory changes params

func (*RetrieveInventoryChangesParams) WithCursor

WithCursor adds the cursor to the retrieve inventory changes params

func (*RetrieveInventoryChangesParams) WithDefaults

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

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

WithTimeout adds the timeout to the retrieve inventory changes params

func (*RetrieveInventoryChangesParams) WriteToRequest

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

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

WithContext adds the context to the retrieve inventory count params

func (*RetrieveInventoryCountParams) WithCursor

WithCursor adds the cursor to the retrieve inventory count params

func (*RetrieveInventoryCountParams) WithDefaults

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

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

WithTimeout adds the timeout to the retrieve inventory count params

func (*RetrieveInventoryCountParams) WriteToRequest

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 (*RetrieveInventoryPhysicalCountOK) GetPayload

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

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

WithContext adds the context to the retrieve inventory physical count params

func (*RetrieveInventoryPhysicalCountParams) WithDefaults

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

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

WithTimeout adds the timeout to the retrieve inventory physical count params

func (*RetrieveInventoryPhysicalCountParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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