Documentation ¶
Index ¶
- type BatchDeleteCatalogObjectsOK
- type BatchDeleteCatalogObjectsParams
- func NewBatchDeleteCatalogObjectsParams() *BatchDeleteCatalogObjectsParams
- func NewBatchDeleteCatalogObjectsParamsWithContext(ctx context.Context) *BatchDeleteCatalogObjectsParams
- func NewBatchDeleteCatalogObjectsParamsWithHTTPClient(client *http.Client) *BatchDeleteCatalogObjectsParams
- func NewBatchDeleteCatalogObjectsParamsWithTimeout(timeout time.Duration) *BatchDeleteCatalogObjectsParams
- func (o *BatchDeleteCatalogObjectsParams) SetBody(body *models.BatchDeleteCatalogObjectsRequest)
- func (o *BatchDeleteCatalogObjectsParams) SetContext(ctx context.Context)
- func (o *BatchDeleteCatalogObjectsParams) SetDefaults()
- func (o *BatchDeleteCatalogObjectsParams) SetHTTPClient(client *http.Client)
- func (o *BatchDeleteCatalogObjectsParams) SetTimeout(timeout time.Duration)
- func (o *BatchDeleteCatalogObjectsParams) WithBody(body *models.BatchDeleteCatalogObjectsRequest) *BatchDeleteCatalogObjectsParams
- func (o *BatchDeleteCatalogObjectsParams) WithContext(ctx context.Context) *BatchDeleteCatalogObjectsParams
- func (o *BatchDeleteCatalogObjectsParams) WithDefaults() *BatchDeleteCatalogObjectsParams
- func (o *BatchDeleteCatalogObjectsParams) WithHTTPClient(client *http.Client) *BatchDeleteCatalogObjectsParams
- func (o *BatchDeleteCatalogObjectsParams) WithTimeout(timeout time.Duration) *BatchDeleteCatalogObjectsParams
- func (o *BatchDeleteCatalogObjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BatchDeleteCatalogObjectsReader
- type BatchRetrieveCatalogObjectsOK
- type BatchRetrieveCatalogObjectsParams
- func NewBatchRetrieveCatalogObjectsParams() *BatchRetrieveCatalogObjectsParams
- func NewBatchRetrieveCatalogObjectsParamsWithContext(ctx context.Context) *BatchRetrieveCatalogObjectsParams
- func NewBatchRetrieveCatalogObjectsParamsWithHTTPClient(client *http.Client) *BatchRetrieveCatalogObjectsParams
- func NewBatchRetrieveCatalogObjectsParamsWithTimeout(timeout time.Duration) *BatchRetrieveCatalogObjectsParams
- func (o *BatchRetrieveCatalogObjectsParams) SetBody(body *models.BatchRetrieveCatalogObjectsRequest)
- func (o *BatchRetrieveCatalogObjectsParams) SetContext(ctx context.Context)
- func (o *BatchRetrieveCatalogObjectsParams) SetDefaults()
- func (o *BatchRetrieveCatalogObjectsParams) SetHTTPClient(client *http.Client)
- func (o *BatchRetrieveCatalogObjectsParams) SetTimeout(timeout time.Duration)
- func (o *BatchRetrieveCatalogObjectsParams) WithBody(body *models.BatchRetrieveCatalogObjectsRequest) *BatchRetrieveCatalogObjectsParams
- func (o *BatchRetrieveCatalogObjectsParams) WithContext(ctx context.Context) *BatchRetrieveCatalogObjectsParams
- func (o *BatchRetrieveCatalogObjectsParams) WithDefaults() *BatchRetrieveCatalogObjectsParams
- func (o *BatchRetrieveCatalogObjectsParams) WithHTTPClient(client *http.Client) *BatchRetrieveCatalogObjectsParams
- func (o *BatchRetrieveCatalogObjectsParams) WithTimeout(timeout time.Duration) *BatchRetrieveCatalogObjectsParams
- func (o *BatchRetrieveCatalogObjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BatchRetrieveCatalogObjectsReader
- type BatchUpsertCatalogObjectsOK
- type BatchUpsertCatalogObjectsParams
- func NewBatchUpsertCatalogObjectsParams() *BatchUpsertCatalogObjectsParams
- func NewBatchUpsertCatalogObjectsParamsWithContext(ctx context.Context) *BatchUpsertCatalogObjectsParams
- func NewBatchUpsertCatalogObjectsParamsWithHTTPClient(client *http.Client) *BatchUpsertCatalogObjectsParams
- func NewBatchUpsertCatalogObjectsParamsWithTimeout(timeout time.Duration) *BatchUpsertCatalogObjectsParams
- func (o *BatchUpsertCatalogObjectsParams) SetBody(body *models.BatchUpsertCatalogObjectsRequest)
- func (o *BatchUpsertCatalogObjectsParams) SetContext(ctx context.Context)
- func (o *BatchUpsertCatalogObjectsParams) SetDefaults()
- func (o *BatchUpsertCatalogObjectsParams) SetHTTPClient(client *http.Client)
- func (o *BatchUpsertCatalogObjectsParams) SetTimeout(timeout time.Duration)
- func (o *BatchUpsertCatalogObjectsParams) WithBody(body *models.BatchUpsertCatalogObjectsRequest) *BatchUpsertCatalogObjectsParams
- func (o *BatchUpsertCatalogObjectsParams) WithContext(ctx context.Context) *BatchUpsertCatalogObjectsParams
- func (o *BatchUpsertCatalogObjectsParams) WithDefaults() *BatchUpsertCatalogObjectsParams
- func (o *BatchUpsertCatalogObjectsParams) WithHTTPClient(client *http.Client) *BatchUpsertCatalogObjectsParams
- func (o *BatchUpsertCatalogObjectsParams) WithTimeout(timeout time.Duration) *BatchUpsertCatalogObjectsParams
- func (o *BatchUpsertCatalogObjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BatchUpsertCatalogObjectsReader
- type CatalogInfoOK
- type CatalogInfoParams
- func (o *CatalogInfoParams) SetContext(ctx context.Context)
- func (o *CatalogInfoParams) SetDefaults()
- func (o *CatalogInfoParams) SetHTTPClient(client *http.Client)
- func (o *CatalogInfoParams) SetTimeout(timeout time.Duration)
- func (o *CatalogInfoParams) WithContext(ctx context.Context) *CatalogInfoParams
- func (o *CatalogInfoParams) WithDefaults() *CatalogInfoParams
- func (o *CatalogInfoParams) WithHTTPClient(client *http.Client) *CatalogInfoParams
- func (o *CatalogInfoParams) WithTimeout(timeout time.Duration) *CatalogInfoParams
- func (o *CatalogInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CatalogInfoReader
- type Client
- func (a *Client) BatchDeleteCatalogObjects(params *BatchDeleteCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*BatchDeleteCatalogObjectsOK, error)
- func (a *Client) BatchRetrieveCatalogObjects(params *BatchRetrieveCatalogObjectsParams, ...) (*BatchRetrieveCatalogObjectsOK, error)
- func (a *Client) BatchUpsertCatalogObjects(params *BatchUpsertCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*BatchUpsertCatalogObjectsOK, error)
- func (a *Client) CatalogInfo(params *CatalogInfoParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CatalogInfoOK, error)
- func (a *Client) DeleteCatalogObject(params *DeleteCatalogObjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteCatalogObjectOK, error)
- func (a *Client) ListCatalog(params *ListCatalogParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListCatalogOK, error)
- func (a *Client) RetrieveCatalogObject(params *RetrieveCatalogObjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RetrieveCatalogObjectOK, error)
- func (a *Client) SearchCatalogItems(params *SearchCatalogItemsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchCatalogItemsOK, error)
- func (a *Client) SearchCatalogObjects(params *SearchCatalogObjectsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchCatalogObjectsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateItemModifierLists(params *UpdateItemModifierListsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateItemModifierListsOK, error)
- func (a *Client) UpdateItemTaxes(params *UpdateItemTaxesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateItemTaxesOK, error)
- func (a *Client) UpsertCatalogObject(params *UpsertCatalogObjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpsertCatalogObjectOK, error)
- type ClientOption
- type ClientService
- type DeleteCatalogObjectOK
- type DeleteCatalogObjectParams
- func NewDeleteCatalogObjectParams() *DeleteCatalogObjectParams
- func NewDeleteCatalogObjectParamsWithContext(ctx context.Context) *DeleteCatalogObjectParams
- func NewDeleteCatalogObjectParamsWithHTTPClient(client *http.Client) *DeleteCatalogObjectParams
- func NewDeleteCatalogObjectParamsWithTimeout(timeout time.Duration) *DeleteCatalogObjectParams
- func (o *DeleteCatalogObjectParams) SetContext(ctx context.Context)
- func (o *DeleteCatalogObjectParams) SetDefaults()
- func (o *DeleteCatalogObjectParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCatalogObjectParams) SetObjectID(objectID string)
- func (o *DeleteCatalogObjectParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCatalogObjectParams) WithContext(ctx context.Context) *DeleteCatalogObjectParams
- func (o *DeleteCatalogObjectParams) WithDefaults() *DeleteCatalogObjectParams
- func (o *DeleteCatalogObjectParams) WithHTTPClient(client *http.Client) *DeleteCatalogObjectParams
- func (o *DeleteCatalogObjectParams) WithObjectID(objectID string) *DeleteCatalogObjectParams
- func (o *DeleteCatalogObjectParams) WithTimeout(timeout time.Duration) *DeleteCatalogObjectParams
- func (o *DeleteCatalogObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCatalogObjectReader
- type ListCatalogOK
- type ListCatalogParams
- func (o *ListCatalogParams) SetCatalogVersion(catalogVersion *int64)
- func (o *ListCatalogParams) SetContext(ctx context.Context)
- func (o *ListCatalogParams) SetCursor(cursor *string)
- func (o *ListCatalogParams) SetDefaults()
- func (o *ListCatalogParams) SetHTTPClient(client *http.Client)
- func (o *ListCatalogParams) SetTimeout(timeout time.Duration)
- func (o *ListCatalogParams) SetTypes(types *string)
- func (o *ListCatalogParams) WithCatalogVersion(catalogVersion *int64) *ListCatalogParams
- func (o *ListCatalogParams) WithContext(ctx context.Context) *ListCatalogParams
- func (o *ListCatalogParams) WithCursor(cursor *string) *ListCatalogParams
- func (o *ListCatalogParams) WithDefaults() *ListCatalogParams
- func (o *ListCatalogParams) WithHTTPClient(client *http.Client) *ListCatalogParams
- func (o *ListCatalogParams) WithTimeout(timeout time.Duration) *ListCatalogParams
- func (o *ListCatalogParams) WithTypes(types *string) *ListCatalogParams
- func (o *ListCatalogParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListCatalogReader
- type RetrieveCatalogObjectOK
- type RetrieveCatalogObjectParams
- func NewRetrieveCatalogObjectParams() *RetrieveCatalogObjectParams
- func NewRetrieveCatalogObjectParamsWithContext(ctx context.Context) *RetrieveCatalogObjectParams
- func NewRetrieveCatalogObjectParamsWithHTTPClient(client *http.Client) *RetrieveCatalogObjectParams
- func NewRetrieveCatalogObjectParamsWithTimeout(timeout time.Duration) *RetrieveCatalogObjectParams
- func (o *RetrieveCatalogObjectParams) SetCatalogVersion(catalogVersion *int64)
- func (o *RetrieveCatalogObjectParams) SetContext(ctx context.Context)
- func (o *RetrieveCatalogObjectParams) SetDefaults()
- func (o *RetrieveCatalogObjectParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveCatalogObjectParams) SetIncludeRelatedObjects(includeRelatedObjects *bool)
- func (o *RetrieveCatalogObjectParams) SetObjectID(objectID string)
- func (o *RetrieveCatalogObjectParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveCatalogObjectParams) WithCatalogVersion(catalogVersion *int64) *RetrieveCatalogObjectParams
- func (o *RetrieveCatalogObjectParams) WithContext(ctx context.Context) *RetrieveCatalogObjectParams
- func (o *RetrieveCatalogObjectParams) WithDefaults() *RetrieveCatalogObjectParams
- func (o *RetrieveCatalogObjectParams) WithHTTPClient(client *http.Client) *RetrieveCatalogObjectParams
- func (o *RetrieveCatalogObjectParams) WithIncludeRelatedObjects(includeRelatedObjects *bool) *RetrieveCatalogObjectParams
- func (o *RetrieveCatalogObjectParams) WithObjectID(objectID string) *RetrieveCatalogObjectParams
- func (o *RetrieveCatalogObjectParams) WithTimeout(timeout time.Duration) *RetrieveCatalogObjectParams
- func (o *RetrieveCatalogObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveCatalogObjectReader
- type SearchCatalogItemsOK
- type SearchCatalogItemsParams
- func NewSearchCatalogItemsParams() *SearchCatalogItemsParams
- func NewSearchCatalogItemsParamsWithContext(ctx context.Context) *SearchCatalogItemsParams
- func NewSearchCatalogItemsParamsWithHTTPClient(client *http.Client) *SearchCatalogItemsParams
- func NewSearchCatalogItemsParamsWithTimeout(timeout time.Duration) *SearchCatalogItemsParams
- func (o *SearchCatalogItemsParams) SetBody(body *models.SearchCatalogItemsRequest)
- func (o *SearchCatalogItemsParams) SetContext(ctx context.Context)
- func (o *SearchCatalogItemsParams) SetDefaults()
- func (o *SearchCatalogItemsParams) SetHTTPClient(client *http.Client)
- func (o *SearchCatalogItemsParams) SetTimeout(timeout time.Duration)
- func (o *SearchCatalogItemsParams) WithBody(body *models.SearchCatalogItemsRequest) *SearchCatalogItemsParams
- func (o *SearchCatalogItemsParams) WithContext(ctx context.Context) *SearchCatalogItemsParams
- func (o *SearchCatalogItemsParams) WithDefaults() *SearchCatalogItemsParams
- func (o *SearchCatalogItemsParams) WithHTTPClient(client *http.Client) *SearchCatalogItemsParams
- func (o *SearchCatalogItemsParams) WithTimeout(timeout time.Duration) *SearchCatalogItemsParams
- func (o *SearchCatalogItemsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchCatalogItemsReader
- type SearchCatalogObjectsOK
- type SearchCatalogObjectsParams
- func NewSearchCatalogObjectsParams() *SearchCatalogObjectsParams
- func NewSearchCatalogObjectsParamsWithContext(ctx context.Context) *SearchCatalogObjectsParams
- func NewSearchCatalogObjectsParamsWithHTTPClient(client *http.Client) *SearchCatalogObjectsParams
- func NewSearchCatalogObjectsParamsWithTimeout(timeout time.Duration) *SearchCatalogObjectsParams
- func (o *SearchCatalogObjectsParams) SetBody(body *models.SearchCatalogObjectsRequest)
- func (o *SearchCatalogObjectsParams) SetContext(ctx context.Context)
- func (o *SearchCatalogObjectsParams) SetDefaults()
- func (o *SearchCatalogObjectsParams) SetHTTPClient(client *http.Client)
- func (o *SearchCatalogObjectsParams) SetTimeout(timeout time.Duration)
- func (o *SearchCatalogObjectsParams) WithBody(body *models.SearchCatalogObjectsRequest) *SearchCatalogObjectsParams
- func (o *SearchCatalogObjectsParams) WithContext(ctx context.Context) *SearchCatalogObjectsParams
- func (o *SearchCatalogObjectsParams) WithDefaults() *SearchCatalogObjectsParams
- func (o *SearchCatalogObjectsParams) WithHTTPClient(client *http.Client) *SearchCatalogObjectsParams
- func (o *SearchCatalogObjectsParams) WithTimeout(timeout time.Duration) *SearchCatalogObjectsParams
- func (o *SearchCatalogObjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchCatalogObjectsReader
- type UpdateItemModifierListsOK
- type UpdateItemModifierListsParams
- func NewUpdateItemModifierListsParams() *UpdateItemModifierListsParams
- func NewUpdateItemModifierListsParamsWithContext(ctx context.Context) *UpdateItemModifierListsParams
- func NewUpdateItemModifierListsParamsWithHTTPClient(client *http.Client) *UpdateItemModifierListsParams
- func NewUpdateItemModifierListsParamsWithTimeout(timeout time.Duration) *UpdateItemModifierListsParams
- func (o *UpdateItemModifierListsParams) SetBody(body *models.UpdateItemModifierListsRequest)
- func (o *UpdateItemModifierListsParams) SetContext(ctx context.Context)
- func (o *UpdateItemModifierListsParams) SetDefaults()
- func (o *UpdateItemModifierListsParams) SetHTTPClient(client *http.Client)
- func (o *UpdateItemModifierListsParams) SetTimeout(timeout time.Duration)
- func (o *UpdateItemModifierListsParams) WithBody(body *models.UpdateItemModifierListsRequest) *UpdateItemModifierListsParams
- func (o *UpdateItemModifierListsParams) WithContext(ctx context.Context) *UpdateItemModifierListsParams
- func (o *UpdateItemModifierListsParams) WithDefaults() *UpdateItemModifierListsParams
- func (o *UpdateItemModifierListsParams) WithHTTPClient(client *http.Client) *UpdateItemModifierListsParams
- func (o *UpdateItemModifierListsParams) WithTimeout(timeout time.Duration) *UpdateItemModifierListsParams
- func (o *UpdateItemModifierListsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateItemModifierListsReader
- type UpdateItemTaxesOK
- type UpdateItemTaxesParams
- func NewUpdateItemTaxesParams() *UpdateItemTaxesParams
- func NewUpdateItemTaxesParamsWithContext(ctx context.Context) *UpdateItemTaxesParams
- func NewUpdateItemTaxesParamsWithHTTPClient(client *http.Client) *UpdateItemTaxesParams
- func NewUpdateItemTaxesParamsWithTimeout(timeout time.Duration) *UpdateItemTaxesParams
- func (o *UpdateItemTaxesParams) SetBody(body *models.UpdateItemTaxesRequest)
- func (o *UpdateItemTaxesParams) SetContext(ctx context.Context)
- func (o *UpdateItemTaxesParams) SetDefaults()
- func (o *UpdateItemTaxesParams) SetHTTPClient(client *http.Client)
- func (o *UpdateItemTaxesParams) SetTimeout(timeout time.Duration)
- func (o *UpdateItemTaxesParams) WithBody(body *models.UpdateItemTaxesRequest) *UpdateItemTaxesParams
- func (o *UpdateItemTaxesParams) WithContext(ctx context.Context) *UpdateItemTaxesParams
- func (o *UpdateItemTaxesParams) WithDefaults() *UpdateItemTaxesParams
- func (o *UpdateItemTaxesParams) WithHTTPClient(client *http.Client) *UpdateItemTaxesParams
- func (o *UpdateItemTaxesParams) WithTimeout(timeout time.Duration) *UpdateItemTaxesParams
- func (o *UpdateItemTaxesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateItemTaxesReader
- type UpsertCatalogObjectOK
- type UpsertCatalogObjectParams
- func NewUpsertCatalogObjectParams() *UpsertCatalogObjectParams
- func NewUpsertCatalogObjectParamsWithContext(ctx context.Context) *UpsertCatalogObjectParams
- func NewUpsertCatalogObjectParamsWithHTTPClient(client *http.Client) *UpsertCatalogObjectParams
- func NewUpsertCatalogObjectParamsWithTimeout(timeout time.Duration) *UpsertCatalogObjectParams
- func (o *UpsertCatalogObjectParams) SetBody(body *models.UpsertCatalogObjectRequest)
- func (o *UpsertCatalogObjectParams) SetContext(ctx context.Context)
- func (o *UpsertCatalogObjectParams) SetDefaults()
- func (o *UpsertCatalogObjectParams) SetHTTPClient(client *http.Client)
- func (o *UpsertCatalogObjectParams) SetTimeout(timeout time.Duration)
- func (o *UpsertCatalogObjectParams) WithBody(body *models.UpsertCatalogObjectRequest) *UpsertCatalogObjectParams
- func (o *UpsertCatalogObjectParams) WithContext(ctx context.Context) *UpsertCatalogObjectParams
- func (o *UpsertCatalogObjectParams) WithDefaults() *UpsertCatalogObjectParams
- func (o *UpsertCatalogObjectParams) WithHTTPClient(client *http.Client) *UpsertCatalogObjectParams
- func (o *UpsertCatalogObjectParams) WithTimeout(timeout time.Duration) *UpsertCatalogObjectParams
- func (o *UpsertCatalogObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpsertCatalogObjectReader
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 (o *BatchDeleteCatalogObjectsOK) Error() string
func (*BatchDeleteCatalogObjectsOK) GetPayload ¶
func (o *BatchDeleteCatalogObjectsOK) GetPayload() *models.BatchDeleteCatalogObjectsResponse
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 ¶
func (o *BatchDeleteCatalogObjectsParams) SetBody(body *models.BatchDeleteCatalogObjectsRequest)
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 ¶
func (o *BatchDeleteCatalogObjectsParams) WithBody(body *models.BatchDeleteCatalogObjectsRequest) *BatchDeleteCatalogObjectsParams
WithBody adds the body to the batch delete catalog objects params
func (*BatchDeleteCatalogObjectsParams) WithContext ¶
func (o *BatchDeleteCatalogObjectsParams) WithContext(ctx context.Context) *BatchDeleteCatalogObjectsParams
WithContext adds the context to the batch delete catalog objects params
func (*BatchDeleteCatalogObjectsParams) WithDefaults ¶
func (o *BatchDeleteCatalogObjectsParams) WithDefaults() *BatchDeleteCatalogObjectsParams
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 ¶
func (o *BatchDeleteCatalogObjectsParams) WithHTTPClient(client *http.Client) *BatchDeleteCatalogObjectsParams
WithHTTPClient adds the HTTPClient to the batch delete catalog objects params
func (*BatchDeleteCatalogObjectsParams) WithTimeout ¶
func (o *BatchDeleteCatalogObjectsParams) WithTimeout(timeout time.Duration) *BatchDeleteCatalogObjectsParams
WithTimeout adds the timeout to the batch delete catalog objects params
func (*BatchDeleteCatalogObjectsParams) WriteToRequest ¶
func (o *BatchDeleteCatalogObjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *BatchRetrieveCatalogObjectsOK) Error() string
func (*BatchRetrieveCatalogObjectsOK) GetPayload ¶
func (o *BatchRetrieveCatalogObjectsOK) GetPayload() *models.BatchRetrieveCatalogObjectsResponse
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 ¶
func (o *BatchRetrieveCatalogObjectsParams) SetBody(body *models.BatchRetrieveCatalogObjectsRequest)
SetBody adds the body to the batch retrieve catalog objects params
func (*BatchRetrieveCatalogObjectsParams) SetContext ¶
func (o *BatchRetrieveCatalogObjectsParams) SetContext(ctx context.Context)
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 ¶
func (o *BatchRetrieveCatalogObjectsParams) WithBody(body *models.BatchRetrieveCatalogObjectsRequest) *BatchRetrieveCatalogObjectsParams
WithBody adds the body to the batch retrieve catalog objects params
func (*BatchRetrieveCatalogObjectsParams) WithContext ¶
func (o *BatchRetrieveCatalogObjectsParams) WithContext(ctx context.Context) *BatchRetrieveCatalogObjectsParams
WithContext adds the context to the batch retrieve catalog objects params
func (*BatchRetrieveCatalogObjectsParams) WithDefaults ¶
func (o *BatchRetrieveCatalogObjectsParams) WithDefaults() *BatchRetrieveCatalogObjectsParams
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 ¶
func (o *BatchRetrieveCatalogObjectsParams) WithHTTPClient(client *http.Client) *BatchRetrieveCatalogObjectsParams
WithHTTPClient adds the HTTPClient to the batch retrieve catalog objects params
func (*BatchRetrieveCatalogObjectsParams) WithTimeout ¶
func (o *BatchRetrieveCatalogObjectsParams) WithTimeout(timeout time.Duration) *BatchRetrieveCatalogObjectsParams
WithTimeout adds the timeout to the batch retrieve catalog objects params
func (*BatchRetrieveCatalogObjectsParams) WriteToRequest ¶
func (o *BatchRetrieveCatalogObjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *BatchUpsertCatalogObjectsOK) Error() string
func (*BatchUpsertCatalogObjectsOK) GetPayload ¶
func (o *BatchUpsertCatalogObjectsOK) GetPayload() *models.BatchUpsertCatalogObjectsResponse
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 ¶
func (o *BatchUpsertCatalogObjectsParams) SetBody(body *models.BatchUpsertCatalogObjectsRequest)
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 ¶
func (o *BatchUpsertCatalogObjectsParams) WithBody(body *models.BatchUpsertCatalogObjectsRequest) *BatchUpsertCatalogObjectsParams
WithBody adds the body to the batch upsert catalog objects params
func (*BatchUpsertCatalogObjectsParams) WithContext ¶
func (o *BatchUpsertCatalogObjectsParams) WithContext(ctx context.Context) *BatchUpsertCatalogObjectsParams
WithContext adds the context to the batch upsert catalog objects params
func (*BatchUpsertCatalogObjectsParams) WithDefaults ¶
func (o *BatchUpsertCatalogObjectsParams) WithDefaults() *BatchUpsertCatalogObjectsParams
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 ¶
func (o *BatchUpsertCatalogObjectsParams) WithHTTPClient(client *http.Client) *BatchUpsertCatalogObjectsParams
WithHTTPClient adds the HTTPClient to the batch upsert catalog objects params
func (*BatchUpsertCatalogObjectsParams) WithTimeout ¶
func (o *BatchUpsertCatalogObjectsParams) WithTimeout(timeout time.Duration) *BatchUpsertCatalogObjectsParams
WithTimeout adds the timeout to the batch upsert catalog objects params
func (*BatchUpsertCatalogObjectsParams) WriteToRequest ¶
func (o *BatchUpsertCatalogObjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteCatalogObjectOK) GetPayload() *models.DeleteCatalogObjectResponse
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 ¶
func (o *DeleteCatalogObjectParams) WithContext(ctx context.Context) *DeleteCatalogObjectParams
WithContext adds the context to the delete catalog object params
func (*DeleteCatalogObjectParams) WithDefaults ¶
func (o *DeleteCatalogObjectParams) WithDefaults() *DeleteCatalogObjectParams
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 ¶
func (o *DeleteCatalogObjectParams) WithTimeout(timeout time.Duration) *DeleteCatalogObjectParams
WithTimeout adds the timeout to the delete catalog object params
func (*DeleteCatalogObjectParams) WriteToRequest ¶
func (o *DeleteCatalogObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RetrieveCatalogObjectOK) GetPayload() *models.RetrieveCatalogObjectResponse
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 ¶
func (o *RetrieveCatalogObjectParams) WithContext(ctx context.Context) *RetrieveCatalogObjectParams
WithContext adds the context to the retrieve catalog object params
func (*RetrieveCatalogObjectParams) WithDefaults ¶
func (o *RetrieveCatalogObjectParams) WithDefaults() *RetrieveCatalogObjectParams
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 ¶
func (o *RetrieveCatalogObjectParams) WithHTTPClient(client *http.Client) *RetrieveCatalogObjectParams
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 ¶
func (o *RetrieveCatalogObjectParams) WithObjectID(objectID string) *RetrieveCatalogObjectParams
WithObjectID adds the objectID to the retrieve catalog object params
func (*RetrieveCatalogObjectParams) WithTimeout ¶
func (o *RetrieveCatalogObjectParams) WithTimeout(timeout time.Duration) *RetrieveCatalogObjectParams
WithTimeout adds the timeout to the retrieve catalog object params
func (*RetrieveCatalogObjectParams) WriteToRequest ¶
func (o *RetrieveCatalogObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *SearchCatalogItemsOK) GetPayload() *models.SearchCatalogItemsResponse
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 ¶
func (o *SearchCatalogItemsParams) SetBody(body *models.SearchCatalogItemsRequest)
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 ¶
func (o *SearchCatalogItemsParams) WithBody(body *models.SearchCatalogItemsRequest) *SearchCatalogItemsParams
WithBody adds the body to the search catalog items params
func (*SearchCatalogItemsParams) WithContext ¶
func (o *SearchCatalogItemsParams) WithContext(ctx context.Context) *SearchCatalogItemsParams
WithContext adds the context to the search catalog items params
func (*SearchCatalogItemsParams) WithDefaults ¶
func (o *SearchCatalogItemsParams) WithDefaults() *SearchCatalogItemsParams
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 ¶
func (o *SearchCatalogItemsParams) WithTimeout(timeout time.Duration) *SearchCatalogItemsParams
WithTimeout adds the timeout to the search catalog items params
func (*SearchCatalogItemsParams) WriteToRequest ¶
func (o *SearchCatalogItemsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *SearchCatalogObjectsOK) GetPayload() *models.SearchCatalogObjectsResponse
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 ¶
func (o *SearchCatalogObjectsParams) SetBody(body *models.SearchCatalogObjectsRequest)
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 ¶
func (o *SearchCatalogObjectsParams) WithBody(body *models.SearchCatalogObjectsRequest) *SearchCatalogObjectsParams
WithBody adds the body to the search catalog objects params
func (*SearchCatalogObjectsParams) WithContext ¶
func (o *SearchCatalogObjectsParams) WithContext(ctx context.Context) *SearchCatalogObjectsParams
WithContext adds the context to the search catalog objects params
func (*SearchCatalogObjectsParams) WithDefaults ¶
func (o *SearchCatalogObjectsParams) WithDefaults() *SearchCatalogObjectsParams
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 ¶
func (o *SearchCatalogObjectsParams) WithHTTPClient(client *http.Client) *SearchCatalogObjectsParams
WithHTTPClient adds the HTTPClient to the search catalog objects params
func (*SearchCatalogObjectsParams) WithTimeout ¶
func (o *SearchCatalogObjectsParams) WithTimeout(timeout time.Duration) *SearchCatalogObjectsParams
WithTimeout adds the timeout to the search catalog objects params
func (*SearchCatalogObjectsParams) WriteToRequest ¶
func (o *SearchCatalogObjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdateItemModifierListsOK) GetPayload() *models.UpdateItemModifierListsResponse
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 ¶
func (o *UpdateItemModifierListsParams) SetBody(body *models.UpdateItemModifierListsRequest)
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 ¶
func (o *UpdateItemModifierListsParams) WithBody(body *models.UpdateItemModifierListsRequest) *UpdateItemModifierListsParams
WithBody adds the body to the update item modifier lists params
func (*UpdateItemModifierListsParams) WithContext ¶
func (o *UpdateItemModifierListsParams) WithContext(ctx context.Context) *UpdateItemModifierListsParams
WithContext adds the context to the update item modifier lists params
func (*UpdateItemModifierListsParams) WithDefaults ¶
func (o *UpdateItemModifierListsParams) WithDefaults() *UpdateItemModifierListsParams
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 ¶
func (o *UpdateItemModifierListsParams) WithHTTPClient(client *http.Client) *UpdateItemModifierListsParams
WithHTTPClient adds the HTTPClient to the update item modifier lists params
func (*UpdateItemModifierListsParams) WithTimeout ¶
func (o *UpdateItemModifierListsParams) WithTimeout(timeout time.Duration) *UpdateItemModifierListsParams
WithTimeout adds the timeout to the update item modifier lists params
func (*UpdateItemModifierListsParams) WriteToRequest ¶
func (o *UpdateItemModifierListsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdateItemTaxesOK) GetPayload() *models.UpdateItemTaxesResponse
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 ¶
func (o *UpdateItemTaxesParams) SetBody(body *models.UpdateItemTaxesRequest)
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 ¶
func (o *UpdateItemTaxesParams) WithBody(body *models.UpdateItemTaxesRequest) *UpdateItemTaxesParams
WithBody adds the body to the update item taxes params
func (*UpdateItemTaxesParams) WithContext ¶
func (o *UpdateItemTaxesParams) WithContext(ctx context.Context) *UpdateItemTaxesParams
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 ¶
func (o *UpsertCatalogObjectOK) GetPayload() *models.UpsertCatalogObjectResponse
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 ¶
func (o *UpsertCatalogObjectParams) SetBody(body *models.UpsertCatalogObjectRequest)
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 ¶
func (o *UpsertCatalogObjectParams) WithBody(body *models.UpsertCatalogObjectRequest) *UpsertCatalogObjectParams
WithBody adds the body to the upsert catalog object params
func (*UpsertCatalogObjectParams) WithContext ¶
func (o *UpsertCatalogObjectParams) WithContext(ctx context.Context) *UpsertCatalogObjectParams
WithContext adds the context to the upsert catalog object params
func (*UpsertCatalogObjectParams) WithDefaults ¶
func (o *UpsertCatalogObjectParams) WithDefaults() *UpsertCatalogObjectParams
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 ¶
func (o *UpsertCatalogObjectParams) WithTimeout(timeout time.Duration) *UpsertCatalogObjectParams
WithTimeout adds the timeout to the upsert catalog object params
func (*UpsertCatalogObjectParams) WriteToRequest ¶
func (o *UpsertCatalogObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- batch_delete_catalog_objects_parameters.go
- batch_delete_catalog_objects_responses.go
- batch_retrieve_catalog_objects_parameters.go
- batch_retrieve_catalog_objects_responses.go
- batch_upsert_catalog_objects_parameters.go
- batch_upsert_catalog_objects_responses.go
- catalog_client.go
- catalog_info_parameters.go
- catalog_info_responses.go
- delete_catalog_object_parameters.go
- delete_catalog_object_responses.go
- list_catalog_parameters.go
- list_catalog_responses.go
- retrieve_catalog_object_parameters.go
- retrieve_catalog_object_responses.go
- search_catalog_items_parameters.go
- search_catalog_items_responses.go
- search_catalog_objects_parameters.go
- search_catalog_objects_responses.go
- update_item_modifier_lists_parameters.go
- update_item_modifier_lists_responses.go
- update_item_taxes_parameters.go
- update_item_taxes_responses.go
- upsert_catalog_object_parameters.go
- upsert_catalog_object_responses.go