catalog

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchDeleteCatalogObjectsOK

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

Success

func NewBatchDeleteCatalogObjectsOK

func NewBatchDeleteCatalogObjectsOK() *BatchDeleteCatalogObjectsOK

NewBatchDeleteCatalogObjectsOK creates a BatchDeleteCatalogObjectsOK with default headers values

func (*BatchDeleteCatalogObjectsOK) Error

func (*BatchDeleteCatalogObjectsOK) GetPayload

type BatchDeleteCatalogObjectsParams

type BatchDeleteCatalogObjectsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.BatchDeleteCatalogObjectsRequest

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

BatchDeleteCatalogObjectsParams contains all the parameters to send to the API endpoint

for the batch delete catalog objects operation.

Typically these are written to a http.Request.

func NewBatchDeleteCatalogObjectsParams

func NewBatchDeleteCatalogObjectsParams() *BatchDeleteCatalogObjectsParams

NewBatchDeleteCatalogObjectsParams creates a new BatchDeleteCatalogObjectsParams 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 NewBatchDeleteCatalogObjectsParamsWithContext

func NewBatchDeleteCatalogObjectsParamsWithContext(ctx context.Context) *BatchDeleteCatalogObjectsParams

NewBatchDeleteCatalogObjectsParamsWithContext creates a new BatchDeleteCatalogObjectsParams object with the ability to set a context for a request.

func NewBatchDeleteCatalogObjectsParamsWithHTTPClient

func NewBatchDeleteCatalogObjectsParamsWithHTTPClient(client *http.Client) *BatchDeleteCatalogObjectsParams

NewBatchDeleteCatalogObjectsParamsWithHTTPClient creates a new BatchDeleteCatalogObjectsParams object with the ability to set a custom HTTPClient for a request.

func NewBatchDeleteCatalogObjectsParamsWithTimeout

func NewBatchDeleteCatalogObjectsParamsWithTimeout(timeout time.Duration) *BatchDeleteCatalogObjectsParams

NewBatchDeleteCatalogObjectsParamsWithTimeout creates a new BatchDeleteCatalogObjectsParams object with the ability to set a timeout on a request.

func (*BatchDeleteCatalogObjectsParams) SetBody

SetBody adds the body to the batch delete catalog objects params

func (*BatchDeleteCatalogObjectsParams) SetContext

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

SetContext adds the context to the batch delete catalog objects params

func (*BatchDeleteCatalogObjectsParams) SetDefaults

func (o *BatchDeleteCatalogObjectsParams) SetDefaults()

SetDefaults hydrates default values in the batch delete catalog objects params (not the query body).

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

func (*BatchDeleteCatalogObjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the batch delete catalog objects params

func (*BatchDeleteCatalogObjectsParams) SetTimeout

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

SetTimeout adds the timeout to the batch delete catalog objects params

func (*BatchDeleteCatalogObjectsParams) WithBody

WithBody adds the body to the batch delete catalog objects params

func (*BatchDeleteCatalogObjectsParams) WithContext

WithContext adds the context to the batch delete catalog objects params

func (*BatchDeleteCatalogObjectsParams) WithDefaults

WithDefaults hydrates default values in the batch delete catalog objects params (not the query body).

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

func (*BatchDeleteCatalogObjectsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the batch delete catalog objects params

func (*BatchDeleteCatalogObjectsParams) WithTimeout

WithTimeout adds the timeout to the batch delete catalog objects params

func (*BatchDeleteCatalogObjectsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BatchDeleteCatalogObjectsReader

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

BatchDeleteCatalogObjectsReader is a Reader for the BatchDeleteCatalogObjects structure.

func (*BatchDeleteCatalogObjectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BatchRetrieveCatalogObjectsOK

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

Success

func NewBatchRetrieveCatalogObjectsOK

func NewBatchRetrieveCatalogObjectsOK() *BatchRetrieveCatalogObjectsOK

NewBatchRetrieveCatalogObjectsOK creates a BatchRetrieveCatalogObjectsOK with default headers values

func (*BatchRetrieveCatalogObjectsOK) Error

func (*BatchRetrieveCatalogObjectsOK) GetPayload

type BatchRetrieveCatalogObjectsParams

type BatchRetrieveCatalogObjectsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.BatchRetrieveCatalogObjectsRequest

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

BatchRetrieveCatalogObjectsParams contains all the parameters to send to the API endpoint

for the batch retrieve catalog objects operation.

Typically these are written to a http.Request.

func NewBatchRetrieveCatalogObjectsParams

func NewBatchRetrieveCatalogObjectsParams() *BatchRetrieveCatalogObjectsParams

NewBatchRetrieveCatalogObjectsParams creates a new BatchRetrieveCatalogObjectsParams 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 NewBatchRetrieveCatalogObjectsParamsWithContext

func NewBatchRetrieveCatalogObjectsParamsWithContext(ctx context.Context) *BatchRetrieveCatalogObjectsParams

NewBatchRetrieveCatalogObjectsParamsWithContext creates a new BatchRetrieveCatalogObjectsParams object with the ability to set a context for a request.

func NewBatchRetrieveCatalogObjectsParamsWithHTTPClient

func NewBatchRetrieveCatalogObjectsParamsWithHTTPClient(client *http.Client) *BatchRetrieveCatalogObjectsParams

NewBatchRetrieveCatalogObjectsParamsWithHTTPClient creates a new BatchRetrieveCatalogObjectsParams object with the ability to set a custom HTTPClient for a request.

func NewBatchRetrieveCatalogObjectsParamsWithTimeout

func NewBatchRetrieveCatalogObjectsParamsWithTimeout(timeout time.Duration) *BatchRetrieveCatalogObjectsParams

NewBatchRetrieveCatalogObjectsParamsWithTimeout creates a new BatchRetrieveCatalogObjectsParams object with the ability to set a timeout on a request.

func (*BatchRetrieveCatalogObjectsParams) SetBody

SetBody adds the body to the batch retrieve catalog objects params

func (*BatchRetrieveCatalogObjectsParams) SetContext

SetContext adds the context to the batch retrieve catalog objects params

func (*BatchRetrieveCatalogObjectsParams) SetDefaults

func (o *BatchRetrieveCatalogObjectsParams) SetDefaults()

SetDefaults hydrates default values in the batch retrieve catalog objects params (not the query body).

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

func (*BatchRetrieveCatalogObjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the batch retrieve catalog objects params

func (*BatchRetrieveCatalogObjectsParams) SetTimeout

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

SetTimeout adds the timeout to the batch retrieve catalog objects params

func (*BatchRetrieveCatalogObjectsParams) WithBody

WithBody adds the body to the batch retrieve catalog objects params

func (*BatchRetrieveCatalogObjectsParams) WithContext

WithContext adds the context to the batch retrieve catalog objects params

func (*BatchRetrieveCatalogObjectsParams) WithDefaults

WithDefaults hydrates default values in the batch retrieve catalog objects params (not the query body).

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

func (*BatchRetrieveCatalogObjectsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the batch retrieve catalog objects params

func (*BatchRetrieveCatalogObjectsParams) WithTimeout

WithTimeout adds the timeout to the batch retrieve catalog objects params

func (*BatchRetrieveCatalogObjectsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BatchRetrieveCatalogObjectsReader

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

BatchRetrieveCatalogObjectsReader is a Reader for the BatchRetrieveCatalogObjects structure.

func (*BatchRetrieveCatalogObjectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BatchUpsertCatalogObjectsOK

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

Success

func NewBatchUpsertCatalogObjectsOK

func NewBatchUpsertCatalogObjectsOK() *BatchUpsertCatalogObjectsOK

NewBatchUpsertCatalogObjectsOK creates a BatchUpsertCatalogObjectsOK with default headers values

func (*BatchUpsertCatalogObjectsOK) Error

func (*BatchUpsertCatalogObjectsOK) GetPayload

type BatchUpsertCatalogObjectsParams

type BatchUpsertCatalogObjectsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.BatchUpsertCatalogObjectsRequest

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

BatchUpsertCatalogObjectsParams contains all the parameters to send to the API endpoint

for the batch upsert catalog objects operation.

Typically these are written to a http.Request.

func NewBatchUpsertCatalogObjectsParams

func NewBatchUpsertCatalogObjectsParams() *BatchUpsertCatalogObjectsParams

NewBatchUpsertCatalogObjectsParams creates a new BatchUpsertCatalogObjectsParams 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 NewBatchUpsertCatalogObjectsParamsWithContext

func NewBatchUpsertCatalogObjectsParamsWithContext(ctx context.Context) *BatchUpsertCatalogObjectsParams

NewBatchUpsertCatalogObjectsParamsWithContext creates a new BatchUpsertCatalogObjectsParams object with the ability to set a context for a request.

func NewBatchUpsertCatalogObjectsParamsWithHTTPClient

func NewBatchUpsertCatalogObjectsParamsWithHTTPClient(client *http.Client) *BatchUpsertCatalogObjectsParams

NewBatchUpsertCatalogObjectsParamsWithHTTPClient creates a new BatchUpsertCatalogObjectsParams object with the ability to set a custom HTTPClient for a request.

func NewBatchUpsertCatalogObjectsParamsWithTimeout

func NewBatchUpsertCatalogObjectsParamsWithTimeout(timeout time.Duration) *BatchUpsertCatalogObjectsParams

NewBatchUpsertCatalogObjectsParamsWithTimeout creates a new BatchUpsertCatalogObjectsParams object with the ability to set a timeout on a request.

func (*BatchUpsertCatalogObjectsParams) SetBody

SetBody adds the body to the batch upsert catalog objects params

func (*BatchUpsertCatalogObjectsParams) SetContext

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

SetContext adds the context to the batch upsert catalog objects params

func (*BatchUpsertCatalogObjectsParams) SetDefaults

func (o *BatchUpsertCatalogObjectsParams) SetDefaults()

SetDefaults hydrates default values in the batch upsert catalog objects params (not the query body).

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

func (*BatchUpsertCatalogObjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the batch upsert catalog objects params

func (*BatchUpsertCatalogObjectsParams) SetTimeout

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

SetTimeout adds the timeout to the batch upsert catalog objects params

func (*BatchUpsertCatalogObjectsParams) WithBody

WithBody adds the body to the batch upsert catalog objects params

func (*BatchUpsertCatalogObjectsParams) WithContext

WithContext adds the context to the batch upsert catalog objects params

func (*BatchUpsertCatalogObjectsParams) WithDefaults

WithDefaults hydrates default values in the batch upsert catalog objects params (not the query body).

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

func (*BatchUpsertCatalogObjectsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the batch upsert catalog objects params

func (*BatchUpsertCatalogObjectsParams) WithTimeout

WithTimeout adds the timeout to the batch upsert catalog objects params

func (*BatchUpsertCatalogObjectsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BatchUpsertCatalogObjectsReader

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

BatchUpsertCatalogObjectsReader is a Reader for the BatchUpsertCatalogObjects structure.

func (*BatchUpsertCatalogObjectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CatalogInfoOK

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

Success

func NewCatalogInfoOK

func NewCatalogInfoOK() *CatalogInfoOK

NewCatalogInfoOK creates a CatalogInfoOK with default headers values

func (*CatalogInfoOK) Error

func (o *CatalogInfoOK) Error() string

func (*CatalogInfoOK) GetPayload

func (o *CatalogInfoOK) GetPayload() *models.CatalogInfoResponse

type CatalogInfoParams

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

CatalogInfoParams contains all the parameters to send to the API endpoint

for the catalog info operation.

Typically these are written to a http.Request.

func NewCatalogInfoParams

func NewCatalogInfoParams() *CatalogInfoParams

NewCatalogInfoParams creates a new CatalogInfoParams 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 NewCatalogInfoParamsWithContext

func NewCatalogInfoParamsWithContext(ctx context.Context) *CatalogInfoParams

NewCatalogInfoParamsWithContext creates a new CatalogInfoParams object with the ability to set a context for a request.

func NewCatalogInfoParamsWithHTTPClient

func NewCatalogInfoParamsWithHTTPClient(client *http.Client) *CatalogInfoParams

NewCatalogInfoParamsWithHTTPClient creates a new CatalogInfoParams object with the ability to set a custom HTTPClient for a request.

func NewCatalogInfoParamsWithTimeout

func NewCatalogInfoParamsWithTimeout(timeout time.Duration) *CatalogInfoParams

NewCatalogInfoParamsWithTimeout creates a new CatalogInfoParams object with the ability to set a timeout on a request.

func (*CatalogInfoParams) SetContext

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

SetContext adds the context to the catalog info params

func (*CatalogInfoParams) SetDefaults

func (o *CatalogInfoParams) SetDefaults()

SetDefaults hydrates default values in the catalog info params (not the query body).

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

func (*CatalogInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the catalog info params

func (*CatalogInfoParams) SetTimeout

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

SetTimeout adds the timeout to the catalog info params

func (*CatalogInfoParams) WithContext

func (o *CatalogInfoParams) WithContext(ctx context.Context) *CatalogInfoParams

WithContext adds the context to the catalog info params

func (*CatalogInfoParams) WithDefaults

func (o *CatalogInfoParams) WithDefaults() *CatalogInfoParams

WithDefaults hydrates default values in the catalog info params (not the query body).

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

func (*CatalogInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the catalog info params

func (*CatalogInfoParams) WithTimeout

func (o *CatalogInfoParams) WithTimeout(timeout time.Duration) *CatalogInfoParams

WithTimeout adds the timeout to the catalog info params

func (*CatalogInfoParams) WriteToRequest

func (o *CatalogInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CatalogInfoReader

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

CatalogInfoReader is a Reader for the CatalogInfo structure.

func (*CatalogInfoReader) ReadResponse

func (o *CatalogInfoReader) 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 catalog API

func (*Client) BatchDeleteCatalogObjects

func (a *Client) BatchDeleteCatalogObjects(params *BatchDeleteCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchDeleteCatalogObjectsOK, error)
BatchDeleteCatalogObjects batches delete catalog objects

Deletes a set of [CatalogItem](#type-catalogitem)s based on the

provided list of target IDs and returns a set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. For example, deleting a CatalogItem will also delete all of its [CatalogItemVariation](#type-catalogitemvariation) children.

`BatchDeleteCatalogObjects` succeeds even if only a portion of the targeted IDs can be deleted. The response will only include IDs that were actually deleted.

func (*Client) BatchRetrieveCatalogObjects

func (a *Client) BatchRetrieveCatalogObjects(params *BatchRetrieveCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchRetrieveCatalogObjectsOK, error)
BatchRetrieveCatalogObjects batches retrieve catalog objects

Returns a set of objects based on the provided ID.

Each [CatalogItem](#type-catalogitem) returned in the set includes all of its child information including: all of its [CatalogItemVariation](#type-catalogitemvariation) objects, references to its [CatalogModifierList](#type-catalogmodifierlist) objects, and the ids of any [CatalogTax](#type-catalogtax) objects that apply to it.

func (*Client) BatchUpsertCatalogObjects

func (a *Client) BatchUpsertCatalogObjects(params *BatchUpsertCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchUpsertCatalogObjectsOK, error)
BatchUpsertCatalogObjects batches upsert catalog objects

Creates or updates up to 10,000 target objects based on the provided

list of objects. The target objects are grouped into batches and each batch is inserted/updated in an all-or-nothing manner. If an object within a batch is malformed in some way, or violates a database constraint, the entire batch containing that item will be disregarded. However, other batches in the same request may still succeed. Each batch may contain up to 1,000 objects, and batches will be processed in order as long as the total object count for the request (items, variations, modifier lists, discounts, and taxes) is no more than 10,000.

func (*Client) CatalogInfo

func (a *Client) CatalogInfo(params *CatalogInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CatalogInfoOK, error)
CatalogInfo catalogs info

Retrieves information about the Square Catalog API, such as batch size

limits that can be used by the `BatchUpsertCatalogObjects` endpoint.

func (*Client) DeleteCatalogObject

func (a *Client) DeleteCatalogObject(params *DeleteCatalogObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCatalogObjectOK, error)
DeleteCatalogObject deletes catalog object

Deletes a single [CatalogObject](#type-catalogobject) based on the

provided ID and returns the set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. For example, deleting a [CatalogItem](#type-catalogitem) will also delete all of its [CatalogItemVariation](#type-catalogitemvariation) children.

func (*Client) ListCatalog

func (a *Client) ListCatalog(params *ListCatalogParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCatalogOK, error)
ListCatalog lists catalog

Returns a list of [CatalogObject](#type-catalogobject)s that includes

all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The `types` parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`, `IMAGE`.

__Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use [SearchCatalogObjects](#endpoint-Catalog-SearchCatalogObjects) and set the `include_deleted_objects` attribute value to `true`.

func (*Client) RetrieveCatalogObject

func (a *Client) RetrieveCatalogObject(params *RetrieveCatalogObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveCatalogObjectOK, error)
RetrieveCatalogObject retrieves catalog object

Returns a single [CatalogItem](#type-catalogitem) as a

[CatalogObject](#type-catalogobject) based on the provided ID. The returned object includes all of the relevant [CatalogItem](#type-catalogitem) information including: [CatalogItemVariation](#type-catalogitemvariation) children, references to its [CatalogModifierList](#type-catalogmodifierlist) objects, and the ids of any [CatalogTax](#type-catalogtax) objects that apply to it.

func (*Client) SearchCatalogItems

func (a *Client) SearchCatalogItems(params *SearchCatalogItemsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchCatalogItemsOK, error)
SearchCatalogItems searches catalog items

Searches for catalog items or item variations by matching supported search attribute values, including

custom attribute values, against one or more of the specified query expressions.

This (`SearchCatalogItems`) endpoint differs from the [SearchCatalogObjects](#endpoint-Catalog-SearchCatalogObjects) endpoint in the following aspects:

- `SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects. - `SearchCatalogItems` supports the custom attribute query filters to return items or item variations that contain custom attribute values, where `SearchCatalogObjects` does not. - `SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted items or item variations, whereas `SearchCatalogObjects` does. - The both endpoints use different call conventions, including the query filter formats.

func (*Client) SearchCatalogObjects

func (a *Client) SearchCatalogObjects(params *SearchCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchCatalogObjectsOK, error)
SearchCatalogObjects searches catalog objects

Searches for [CatalogObject](#type-CatalogObject) of any type by matching supported search attribute values,

excluding custom attribute values on items or item variations, against one or more of the specified query expressions.

This (`SearchCatalogObjects`) endpoint differs from the [SearchCatalogItems](#endpoint-Catalog-SearchCatalogItems) endpoint in the following aspects:

- `SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects. - `SearchCatalogItems` supports the custom attribute query filters to return items or item variations that contain custom attribute values, where `SearchCatalogObjects` does not. - `SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted items or item variations, whereas `SearchCatalogObjects` does. - The both endpoints have different call conventions, including the query filter formats.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateItemModifierLists

func (a *Client) UpdateItemModifierLists(params *UpdateItemModifierListsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateItemModifierListsOK, error)
UpdateItemModifierLists updates item modifier lists

Updates the [CatalogModifierList](#type-catalogmodifierlist) objects

that apply to the targeted [CatalogItem](#type-catalogitem) without having to perform an upsert on the entire item.

func (*Client) UpdateItemTaxes

func (a *Client) UpdateItemTaxes(params *UpdateItemTaxesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateItemTaxesOK, error)
UpdateItemTaxes updates item taxes

Updates the [CatalogTax](#type-catalogtax) objects that apply to the

targeted [CatalogItem](#type-catalogitem) without having to perform an upsert on the entire item.

func (*Client) UpsertCatalogObject

func (a *Client) UpsertCatalogObject(params *UpsertCatalogObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpsertCatalogObjectOK, error)

UpsertCatalogObject upserts catalog object

Creates or updates the target [CatalogObject](#type-catalogobject).

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	BatchDeleteCatalogObjects(params *BatchDeleteCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchDeleteCatalogObjectsOK, error)

	BatchRetrieveCatalogObjects(params *BatchRetrieveCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchRetrieveCatalogObjectsOK, error)

	BatchUpsertCatalogObjects(params *BatchUpsertCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BatchUpsertCatalogObjectsOK, error)

	CatalogInfo(params *CatalogInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CatalogInfoOK, error)

	DeleteCatalogObject(params *DeleteCatalogObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCatalogObjectOK, error)

	ListCatalog(params *ListCatalogParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCatalogOK, error)

	RetrieveCatalogObject(params *RetrieveCatalogObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveCatalogObjectOK, error)

	SearchCatalogItems(params *SearchCatalogItemsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchCatalogItemsOK, error)

	SearchCatalogObjects(params *SearchCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchCatalogObjectsOK, error)

	UpdateItemModifierLists(params *UpdateItemModifierListsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateItemModifierListsOK, error)

	UpdateItemTaxes(params *UpdateItemTaxesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateItemTaxesOK, error)

	UpsertCatalogObject(params *UpsertCatalogObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpsertCatalogObjectOK, 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 catalog API client.

type DeleteCatalogObjectOK

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

Success

func NewDeleteCatalogObjectOK

func NewDeleteCatalogObjectOK() *DeleteCatalogObjectOK

NewDeleteCatalogObjectOK creates a DeleteCatalogObjectOK with default headers values

func (*DeleteCatalogObjectOK) Error

func (o *DeleteCatalogObjectOK) Error() string

func (*DeleteCatalogObjectOK) GetPayload

type DeleteCatalogObjectParams

type DeleteCatalogObjectParams struct {

	/* ObjectID.

	     The ID of the catalog object to be deleted. When an object is deleted, other
	objects in the graph that depend on that object will be deleted as well (for example, deleting a
	catalog item will delete its catalog item variations).
	*/
	ObjectID string

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

DeleteCatalogObjectParams contains all the parameters to send to the API endpoint

for the delete catalog object operation.

Typically these are written to a http.Request.

func NewDeleteCatalogObjectParams

func NewDeleteCatalogObjectParams() *DeleteCatalogObjectParams

NewDeleteCatalogObjectParams creates a new DeleteCatalogObjectParams 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 NewDeleteCatalogObjectParamsWithContext

func NewDeleteCatalogObjectParamsWithContext(ctx context.Context) *DeleteCatalogObjectParams

NewDeleteCatalogObjectParamsWithContext creates a new DeleteCatalogObjectParams object with the ability to set a context for a request.

func NewDeleteCatalogObjectParamsWithHTTPClient

func NewDeleteCatalogObjectParamsWithHTTPClient(client *http.Client) *DeleteCatalogObjectParams

NewDeleteCatalogObjectParamsWithHTTPClient creates a new DeleteCatalogObjectParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCatalogObjectParamsWithTimeout

func NewDeleteCatalogObjectParamsWithTimeout(timeout time.Duration) *DeleteCatalogObjectParams

NewDeleteCatalogObjectParamsWithTimeout creates a new DeleteCatalogObjectParams object with the ability to set a timeout on a request.

func (*DeleteCatalogObjectParams) SetContext

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

SetContext adds the context to the delete catalog object params

func (*DeleteCatalogObjectParams) SetDefaults

func (o *DeleteCatalogObjectParams) SetDefaults()

SetDefaults hydrates default values in the delete catalog object params (not the query body).

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

func (*DeleteCatalogObjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete catalog object params

func (*DeleteCatalogObjectParams) SetObjectID

func (o *DeleteCatalogObjectParams) SetObjectID(objectID string)

SetObjectID adds the objectId to the delete catalog object params

func (*DeleteCatalogObjectParams) SetTimeout

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

SetTimeout adds the timeout to the delete catalog object params

func (*DeleteCatalogObjectParams) WithContext

WithContext adds the context to the delete catalog object params

func (*DeleteCatalogObjectParams) WithDefaults

WithDefaults hydrates default values in the delete catalog object params (not the query body).

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

func (*DeleteCatalogObjectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete catalog object params

func (*DeleteCatalogObjectParams) WithObjectID

func (o *DeleteCatalogObjectParams) WithObjectID(objectID string) *DeleteCatalogObjectParams

WithObjectID adds the objectID to the delete catalog object params

func (*DeleteCatalogObjectParams) WithTimeout

WithTimeout adds the timeout to the delete catalog object params

func (*DeleteCatalogObjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteCatalogObjectReader

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

DeleteCatalogObjectReader is a Reader for the DeleteCatalogObject structure.

func (*DeleteCatalogObjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListCatalogOK

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

Success

func NewListCatalogOK

func NewListCatalogOK() *ListCatalogOK

NewListCatalogOK creates a ListCatalogOK with default headers values

func (*ListCatalogOK) Error

func (o *ListCatalogOK) Error() string

func (*ListCatalogOK) GetPayload

func (o *ListCatalogOK) GetPayload() *models.ListCatalogResponse

type ListCatalogParams

type ListCatalogParams struct {

	/* CatalogVersion.

	     The specific version of the catalog objects to be included in the response.
	This allows you to retrieve historical
	versions of objects. The specified version value is matched against
	the `CatalogObject`s' `version` attribute.

	     Format: int64
	*/
	CatalogVersion *int64

	/* Cursor.

	     The pagination cursor returned in the previous response. Leave unset for an initial request.
	See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information.
	*/
	Cursor *string

	/* Types.

	     An optional case-insensitive, comma-separated list of object types to retrieve, for example
	`ITEM,ITEM_VARIATION,CATEGORY,IMAGE`.

	The legal values are taken from the CatalogObjectType enum:
	`ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`,
	`MODIFIER`, `MODIFIER_LIST`, or `IMAGE`.
	*/
	Types *string

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

ListCatalogParams contains all the parameters to send to the API endpoint

for the list catalog operation.

Typically these are written to a http.Request.

func NewListCatalogParams

func NewListCatalogParams() *ListCatalogParams

NewListCatalogParams creates a new ListCatalogParams 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 NewListCatalogParamsWithContext

func NewListCatalogParamsWithContext(ctx context.Context) *ListCatalogParams

NewListCatalogParamsWithContext creates a new ListCatalogParams object with the ability to set a context for a request.

func NewListCatalogParamsWithHTTPClient

func NewListCatalogParamsWithHTTPClient(client *http.Client) *ListCatalogParams

NewListCatalogParamsWithHTTPClient creates a new ListCatalogParams object with the ability to set a custom HTTPClient for a request.

func NewListCatalogParamsWithTimeout

func NewListCatalogParamsWithTimeout(timeout time.Duration) *ListCatalogParams

NewListCatalogParamsWithTimeout creates a new ListCatalogParams object with the ability to set a timeout on a request.

func (*ListCatalogParams) SetCatalogVersion

func (o *ListCatalogParams) SetCatalogVersion(catalogVersion *int64)

SetCatalogVersion adds the catalogVersion to the list catalog params

func (*ListCatalogParams) SetContext

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

SetContext adds the context to the list catalog params

func (*ListCatalogParams) SetCursor

func (o *ListCatalogParams) SetCursor(cursor *string)

SetCursor adds the cursor to the list catalog params

func (*ListCatalogParams) SetDefaults

func (o *ListCatalogParams) SetDefaults()

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

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

func (*ListCatalogParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list catalog params

func (*ListCatalogParams) SetTimeout

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

SetTimeout adds the timeout to the list catalog params

func (*ListCatalogParams) SetTypes

func (o *ListCatalogParams) SetTypes(types *string)

SetTypes adds the types to the list catalog params

func (*ListCatalogParams) WithCatalogVersion

func (o *ListCatalogParams) WithCatalogVersion(catalogVersion *int64) *ListCatalogParams

WithCatalogVersion adds the catalogVersion to the list catalog params

func (*ListCatalogParams) WithContext

func (o *ListCatalogParams) WithContext(ctx context.Context) *ListCatalogParams

WithContext adds the context to the list catalog params

func (*ListCatalogParams) WithCursor

func (o *ListCatalogParams) WithCursor(cursor *string) *ListCatalogParams

WithCursor adds the cursor to the list catalog params

func (*ListCatalogParams) WithDefaults

func (o *ListCatalogParams) WithDefaults() *ListCatalogParams

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

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

func (*ListCatalogParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list catalog params

func (*ListCatalogParams) WithTimeout

func (o *ListCatalogParams) WithTimeout(timeout time.Duration) *ListCatalogParams

WithTimeout adds the timeout to the list catalog params

func (*ListCatalogParams) WithTypes

func (o *ListCatalogParams) WithTypes(types *string) *ListCatalogParams

WithTypes adds the types to the list catalog params

func (*ListCatalogParams) WriteToRequest

func (o *ListCatalogParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListCatalogReader

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

ListCatalogReader is a Reader for the ListCatalog structure.

func (*ListCatalogReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RetrieveCatalogObjectOK

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

Success

func NewRetrieveCatalogObjectOK

func NewRetrieveCatalogObjectOK() *RetrieveCatalogObjectOK

NewRetrieveCatalogObjectOK creates a RetrieveCatalogObjectOK with default headers values

func (*RetrieveCatalogObjectOK) Error

func (o *RetrieveCatalogObjectOK) Error() string

func (*RetrieveCatalogObjectOK) GetPayload

type RetrieveCatalogObjectParams

type RetrieveCatalogObjectParams struct {

	/* CatalogVersion.

	     Requests objects as of a specific version of the catalog. This allows you to retrieve historical
	versions of objects. The value to retrieve a specific version of an object can be found
	in the version field of `CatalogObject`s.

	     Format: int64
	*/
	CatalogVersion *int64

	/* IncludeRelatedObjects.

	     If `true`, the response will include additional objects that are related to the
	requested object, as follows:

	If the `object` field of the response contains a `CatalogItem`, its associated
	`CatalogCategory`, `CatalogTax`, `CatalogImage` and `CatalogModifierList` objects will
	be returned in the `related_objects` field of the response. If the `object` field of
	the response contains a `CatalogItemVariation`, its parent `CatalogItem` will be returned
	in the `related_objects` field of the response.

	Default value: `false`
	*/
	IncludeRelatedObjects *bool

	/* ObjectID.

	   The object ID of any type of catalog objects to be retrieved.
	*/
	ObjectID string

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

RetrieveCatalogObjectParams contains all the parameters to send to the API endpoint

for the retrieve catalog object operation.

Typically these are written to a http.Request.

func NewRetrieveCatalogObjectParams

func NewRetrieveCatalogObjectParams() *RetrieveCatalogObjectParams

NewRetrieveCatalogObjectParams creates a new RetrieveCatalogObjectParams 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 NewRetrieveCatalogObjectParamsWithContext

func NewRetrieveCatalogObjectParamsWithContext(ctx context.Context) *RetrieveCatalogObjectParams

NewRetrieveCatalogObjectParamsWithContext creates a new RetrieveCatalogObjectParams object with the ability to set a context for a request.

func NewRetrieveCatalogObjectParamsWithHTTPClient

func NewRetrieveCatalogObjectParamsWithHTTPClient(client *http.Client) *RetrieveCatalogObjectParams

NewRetrieveCatalogObjectParamsWithHTTPClient creates a new RetrieveCatalogObjectParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveCatalogObjectParamsWithTimeout

func NewRetrieveCatalogObjectParamsWithTimeout(timeout time.Duration) *RetrieveCatalogObjectParams

NewRetrieveCatalogObjectParamsWithTimeout creates a new RetrieveCatalogObjectParams object with the ability to set a timeout on a request.

func (*RetrieveCatalogObjectParams) SetCatalogVersion

func (o *RetrieveCatalogObjectParams) SetCatalogVersion(catalogVersion *int64)

SetCatalogVersion adds the catalogVersion to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) SetContext

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

SetContext adds the context to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) SetDefaults

func (o *RetrieveCatalogObjectParams) SetDefaults()

SetDefaults hydrates default values in the retrieve catalog object params (not the query body).

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

func (*RetrieveCatalogObjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) SetIncludeRelatedObjects

func (o *RetrieveCatalogObjectParams) SetIncludeRelatedObjects(includeRelatedObjects *bool)

SetIncludeRelatedObjects adds the includeRelatedObjects to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) SetObjectID

func (o *RetrieveCatalogObjectParams) SetObjectID(objectID string)

SetObjectID adds the objectId to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) SetTimeout

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

SetTimeout adds the timeout to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) WithCatalogVersion

func (o *RetrieveCatalogObjectParams) WithCatalogVersion(catalogVersion *int64) *RetrieveCatalogObjectParams

WithCatalogVersion adds the catalogVersion to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) WithContext

WithContext adds the context to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) WithDefaults

WithDefaults hydrates default values in the retrieve catalog object params (not the query body).

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

func (*RetrieveCatalogObjectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) WithIncludeRelatedObjects

func (o *RetrieveCatalogObjectParams) WithIncludeRelatedObjects(includeRelatedObjects *bool) *RetrieveCatalogObjectParams

WithIncludeRelatedObjects adds the includeRelatedObjects to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) WithObjectID

WithObjectID adds the objectID to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) WithTimeout

WithTimeout adds the timeout to the retrieve catalog object params

func (*RetrieveCatalogObjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrieveCatalogObjectReader

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

RetrieveCatalogObjectReader is a Reader for the RetrieveCatalogObject structure.

func (*RetrieveCatalogObjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchCatalogItemsOK

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

Success

func NewSearchCatalogItemsOK

func NewSearchCatalogItemsOK() *SearchCatalogItemsOK

NewSearchCatalogItemsOK creates a SearchCatalogItemsOK with default headers values

func (*SearchCatalogItemsOK) Error

func (o *SearchCatalogItemsOK) Error() string

func (*SearchCatalogItemsOK) GetPayload

type SearchCatalogItemsParams

type SearchCatalogItemsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.SearchCatalogItemsRequest

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

SearchCatalogItemsParams contains all the parameters to send to the API endpoint

for the search catalog items operation.

Typically these are written to a http.Request.

func NewSearchCatalogItemsParams

func NewSearchCatalogItemsParams() *SearchCatalogItemsParams

NewSearchCatalogItemsParams creates a new SearchCatalogItemsParams 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 NewSearchCatalogItemsParamsWithContext

func NewSearchCatalogItemsParamsWithContext(ctx context.Context) *SearchCatalogItemsParams

NewSearchCatalogItemsParamsWithContext creates a new SearchCatalogItemsParams object with the ability to set a context for a request.

func NewSearchCatalogItemsParamsWithHTTPClient

func NewSearchCatalogItemsParamsWithHTTPClient(client *http.Client) *SearchCatalogItemsParams

NewSearchCatalogItemsParamsWithHTTPClient creates a new SearchCatalogItemsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchCatalogItemsParamsWithTimeout

func NewSearchCatalogItemsParamsWithTimeout(timeout time.Duration) *SearchCatalogItemsParams

NewSearchCatalogItemsParamsWithTimeout creates a new SearchCatalogItemsParams object with the ability to set a timeout on a request.

func (*SearchCatalogItemsParams) SetBody

SetBody adds the body to the search catalog items params

func (*SearchCatalogItemsParams) SetContext

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

SetContext adds the context to the search catalog items params

func (*SearchCatalogItemsParams) SetDefaults

func (o *SearchCatalogItemsParams) SetDefaults()

SetDefaults hydrates default values in the search catalog items params (not the query body).

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

func (*SearchCatalogItemsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search catalog items params

func (*SearchCatalogItemsParams) SetTimeout

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

SetTimeout adds the timeout to the search catalog items params

func (*SearchCatalogItemsParams) WithBody

WithBody adds the body to the search catalog items params

func (*SearchCatalogItemsParams) WithContext

WithContext adds the context to the search catalog items params

func (*SearchCatalogItemsParams) WithDefaults

WithDefaults hydrates default values in the search catalog items params (not the query body).

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

func (*SearchCatalogItemsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search catalog items params

func (*SearchCatalogItemsParams) WithTimeout

WithTimeout adds the timeout to the search catalog items params

func (*SearchCatalogItemsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchCatalogItemsReader

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

SearchCatalogItemsReader is a Reader for the SearchCatalogItems structure.

func (*SearchCatalogItemsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchCatalogObjectsOK

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

Success

func NewSearchCatalogObjectsOK

func NewSearchCatalogObjectsOK() *SearchCatalogObjectsOK

NewSearchCatalogObjectsOK creates a SearchCatalogObjectsOK with default headers values

func (*SearchCatalogObjectsOK) Error

func (o *SearchCatalogObjectsOK) Error() string

func (*SearchCatalogObjectsOK) GetPayload

type SearchCatalogObjectsParams

type SearchCatalogObjectsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.SearchCatalogObjectsRequest

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

SearchCatalogObjectsParams contains all the parameters to send to the API endpoint

for the search catalog objects operation.

Typically these are written to a http.Request.

func NewSearchCatalogObjectsParams

func NewSearchCatalogObjectsParams() *SearchCatalogObjectsParams

NewSearchCatalogObjectsParams creates a new SearchCatalogObjectsParams 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 NewSearchCatalogObjectsParamsWithContext

func NewSearchCatalogObjectsParamsWithContext(ctx context.Context) *SearchCatalogObjectsParams

NewSearchCatalogObjectsParamsWithContext creates a new SearchCatalogObjectsParams object with the ability to set a context for a request.

func NewSearchCatalogObjectsParamsWithHTTPClient

func NewSearchCatalogObjectsParamsWithHTTPClient(client *http.Client) *SearchCatalogObjectsParams

NewSearchCatalogObjectsParamsWithHTTPClient creates a new SearchCatalogObjectsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchCatalogObjectsParamsWithTimeout

func NewSearchCatalogObjectsParamsWithTimeout(timeout time.Duration) *SearchCatalogObjectsParams

NewSearchCatalogObjectsParamsWithTimeout creates a new SearchCatalogObjectsParams object with the ability to set a timeout on a request.

func (*SearchCatalogObjectsParams) SetBody

SetBody adds the body to the search catalog objects params

func (*SearchCatalogObjectsParams) SetContext

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

SetContext adds the context to the search catalog objects params

func (*SearchCatalogObjectsParams) SetDefaults

func (o *SearchCatalogObjectsParams) SetDefaults()

SetDefaults hydrates default values in the search catalog objects params (not the query body).

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

func (*SearchCatalogObjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search catalog objects params

func (*SearchCatalogObjectsParams) SetTimeout

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

SetTimeout adds the timeout to the search catalog objects params

func (*SearchCatalogObjectsParams) WithBody

WithBody adds the body to the search catalog objects params

func (*SearchCatalogObjectsParams) WithContext

WithContext adds the context to the search catalog objects params

func (*SearchCatalogObjectsParams) WithDefaults

WithDefaults hydrates default values in the search catalog objects params (not the query body).

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

func (*SearchCatalogObjectsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the search catalog objects params

func (*SearchCatalogObjectsParams) WithTimeout

WithTimeout adds the timeout to the search catalog objects params

func (*SearchCatalogObjectsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchCatalogObjectsReader

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

SearchCatalogObjectsReader is a Reader for the SearchCatalogObjects structure.

func (*SearchCatalogObjectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateItemModifierListsOK

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

Success

func NewUpdateItemModifierListsOK

func NewUpdateItemModifierListsOK() *UpdateItemModifierListsOK

NewUpdateItemModifierListsOK creates a UpdateItemModifierListsOK with default headers values

func (*UpdateItemModifierListsOK) Error

func (o *UpdateItemModifierListsOK) Error() string

func (*UpdateItemModifierListsOK) GetPayload

type UpdateItemModifierListsParams

type UpdateItemModifierListsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.UpdateItemModifierListsRequest

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

UpdateItemModifierListsParams contains all the parameters to send to the API endpoint

for the update item modifier lists operation.

Typically these are written to a http.Request.

func NewUpdateItemModifierListsParams

func NewUpdateItemModifierListsParams() *UpdateItemModifierListsParams

NewUpdateItemModifierListsParams creates a new UpdateItemModifierListsParams 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 NewUpdateItemModifierListsParamsWithContext

func NewUpdateItemModifierListsParamsWithContext(ctx context.Context) *UpdateItemModifierListsParams

NewUpdateItemModifierListsParamsWithContext creates a new UpdateItemModifierListsParams object with the ability to set a context for a request.

func NewUpdateItemModifierListsParamsWithHTTPClient

func NewUpdateItemModifierListsParamsWithHTTPClient(client *http.Client) *UpdateItemModifierListsParams

NewUpdateItemModifierListsParamsWithHTTPClient creates a new UpdateItemModifierListsParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateItemModifierListsParamsWithTimeout

func NewUpdateItemModifierListsParamsWithTimeout(timeout time.Duration) *UpdateItemModifierListsParams

NewUpdateItemModifierListsParamsWithTimeout creates a new UpdateItemModifierListsParams object with the ability to set a timeout on a request.

func (*UpdateItemModifierListsParams) SetBody

SetBody adds the body to the update item modifier lists params

func (*UpdateItemModifierListsParams) SetContext

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

SetContext adds the context to the update item modifier lists params

func (*UpdateItemModifierListsParams) SetDefaults

func (o *UpdateItemModifierListsParams) SetDefaults()

SetDefaults hydrates default values in the update item modifier lists params (not the query body).

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

func (*UpdateItemModifierListsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update item modifier lists params

func (*UpdateItemModifierListsParams) SetTimeout

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

SetTimeout adds the timeout to the update item modifier lists params

func (*UpdateItemModifierListsParams) WithBody

WithBody adds the body to the update item modifier lists params

func (*UpdateItemModifierListsParams) WithContext

WithContext adds the context to the update item modifier lists params

func (*UpdateItemModifierListsParams) WithDefaults

WithDefaults hydrates default values in the update item modifier lists params (not the query body).

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

func (*UpdateItemModifierListsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update item modifier lists params

func (*UpdateItemModifierListsParams) WithTimeout

WithTimeout adds the timeout to the update item modifier lists params

func (*UpdateItemModifierListsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateItemModifierListsReader

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

UpdateItemModifierListsReader is a Reader for the UpdateItemModifierLists structure.

func (*UpdateItemModifierListsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateItemTaxesOK

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

Success

func NewUpdateItemTaxesOK

func NewUpdateItemTaxesOK() *UpdateItemTaxesOK

NewUpdateItemTaxesOK creates a UpdateItemTaxesOK with default headers values

func (*UpdateItemTaxesOK) Error

func (o *UpdateItemTaxesOK) Error() string

func (*UpdateItemTaxesOK) GetPayload

type UpdateItemTaxesParams

type UpdateItemTaxesParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.UpdateItemTaxesRequest

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

UpdateItemTaxesParams contains all the parameters to send to the API endpoint

for the update item taxes operation.

Typically these are written to a http.Request.

func NewUpdateItemTaxesParams

func NewUpdateItemTaxesParams() *UpdateItemTaxesParams

NewUpdateItemTaxesParams creates a new UpdateItemTaxesParams 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 NewUpdateItemTaxesParamsWithContext

func NewUpdateItemTaxesParamsWithContext(ctx context.Context) *UpdateItemTaxesParams

NewUpdateItemTaxesParamsWithContext creates a new UpdateItemTaxesParams object with the ability to set a context for a request.

func NewUpdateItemTaxesParamsWithHTTPClient

func NewUpdateItemTaxesParamsWithHTTPClient(client *http.Client) *UpdateItemTaxesParams

NewUpdateItemTaxesParamsWithHTTPClient creates a new UpdateItemTaxesParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateItemTaxesParamsWithTimeout

func NewUpdateItemTaxesParamsWithTimeout(timeout time.Duration) *UpdateItemTaxesParams

NewUpdateItemTaxesParamsWithTimeout creates a new UpdateItemTaxesParams object with the ability to set a timeout on a request.

func (*UpdateItemTaxesParams) SetBody

SetBody adds the body to the update item taxes params

func (*UpdateItemTaxesParams) SetContext

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

SetContext adds the context to the update item taxes params

func (*UpdateItemTaxesParams) SetDefaults

func (o *UpdateItemTaxesParams) SetDefaults()

SetDefaults hydrates default values in the update item taxes params (not the query body).

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

func (*UpdateItemTaxesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update item taxes params

func (*UpdateItemTaxesParams) SetTimeout

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

SetTimeout adds the timeout to the update item taxes params

func (*UpdateItemTaxesParams) WithBody

WithBody adds the body to the update item taxes params

func (*UpdateItemTaxesParams) WithContext

WithContext adds the context to the update item taxes params

func (*UpdateItemTaxesParams) WithDefaults

func (o *UpdateItemTaxesParams) WithDefaults() *UpdateItemTaxesParams

WithDefaults hydrates default values in the update item taxes params (not the query body).

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

func (*UpdateItemTaxesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update item taxes params

func (*UpdateItemTaxesParams) WithTimeout

func (o *UpdateItemTaxesParams) WithTimeout(timeout time.Duration) *UpdateItemTaxesParams

WithTimeout adds the timeout to the update item taxes params

func (*UpdateItemTaxesParams) WriteToRequest

func (o *UpdateItemTaxesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateItemTaxesReader

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

UpdateItemTaxesReader is a Reader for the UpdateItemTaxes structure.

func (*UpdateItemTaxesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpsertCatalogObjectOK

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

Success

func NewUpsertCatalogObjectOK

func NewUpsertCatalogObjectOK() *UpsertCatalogObjectOK

NewUpsertCatalogObjectOK creates a UpsertCatalogObjectOK with default headers values

func (*UpsertCatalogObjectOK) Error

func (o *UpsertCatalogObjectOK) Error() string

func (*UpsertCatalogObjectOK) GetPayload

type UpsertCatalogObjectParams

type UpsertCatalogObjectParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.UpsertCatalogObjectRequest

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

UpsertCatalogObjectParams contains all the parameters to send to the API endpoint

for the upsert catalog object operation.

Typically these are written to a http.Request.

func NewUpsertCatalogObjectParams

func NewUpsertCatalogObjectParams() *UpsertCatalogObjectParams

NewUpsertCatalogObjectParams creates a new UpsertCatalogObjectParams 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 NewUpsertCatalogObjectParamsWithContext

func NewUpsertCatalogObjectParamsWithContext(ctx context.Context) *UpsertCatalogObjectParams

NewUpsertCatalogObjectParamsWithContext creates a new UpsertCatalogObjectParams object with the ability to set a context for a request.

func NewUpsertCatalogObjectParamsWithHTTPClient

func NewUpsertCatalogObjectParamsWithHTTPClient(client *http.Client) *UpsertCatalogObjectParams

NewUpsertCatalogObjectParamsWithHTTPClient creates a new UpsertCatalogObjectParams object with the ability to set a custom HTTPClient for a request.

func NewUpsertCatalogObjectParamsWithTimeout

func NewUpsertCatalogObjectParamsWithTimeout(timeout time.Duration) *UpsertCatalogObjectParams

NewUpsertCatalogObjectParamsWithTimeout creates a new UpsertCatalogObjectParams object with the ability to set a timeout on a request.

func (*UpsertCatalogObjectParams) SetBody

SetBody adds the body to the upsert catalog object params

func (*UpsertCatalogObjectParams) SetContext

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

SetContext adds the context to the upsert catalog object params

func (*UpsertCatalogObjectParams) SetDefaults

func (o *UpsertCatalogObjectParams) SetDefaults()

SetDefaults hydrates default values in the upsert catalog object params (not the query body).

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

func (*UpsertCatalogObjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upsert catalog object params

func (*UpsertCatalogObjectParams) SetTimeout

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

SetTimeout adds the timeout to the upsert catalog object params

func (*UpsertCatalogObjectParams) WithBody

WithBody adds the body to the upsert catalog object params

func (*UpsertCatalogObjectParams) WithContext

WithContext adds the context to the upsert catalog object params

func (*UpsertCatalogObjectParams) WithDefaults

WithDefaults hydrates default values in the upsert catalog object params (not the query body).

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

func (*UpsertCatalogObjectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upsert catalog object params

func (*UpsertCatalogObjectParams) WithTimeout

WithTimeout adds the timeout to the upsert catalog object params

func (*UpsertCatalogObjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpsertCatalogObjectReader

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

UpsertCatalogObjectReader is a Reader for the UpsertCatalogObject structure.

func (*UpsertCatalogObjectReader) ReadResponse

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