catalog_product_custom_option_repository_v1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogProductCustomOptionRepositoryV1GetGetDefault

type CatalogProductCustomOptionRepositoryV1GetGetDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
CatalogProductCustomOptionRepositoryV1GetGetDefault describes a response with status code -1, with default header values.

Unexpected error

func NewCatalogProductCustomOptionRepositoryV1GetGetDefault

func NewCatalogProductCustomOptionRepositoryV1GetGetDefault(code int) *CatalogProductCustomOptionRepositoryV1GetGetDefault

NewCatalogProductCustomOptionRepositoryV1GetGetDefault creates a CatalogProductCustomOptionRepositoryV1GetGetDefault with default headers values

func (*CatalogProductCustomOptionRepositoryV1GetGetDefault) Code

Code gets the status code for the catalog product custom option repository v1 get get default response

func (*CatalogProductCustomOptionRepositoryV1GetGetDefault) Error

func (*CatalogProductCustomOptionRepositoryV1GetGetDefault) GetPayload

type CatalogProductCustomOptionRepositoryV1GetGetOK

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

200 Success.

func NewCatalogProductCustomOptionRepositoryV1GetGetOK

func NewCatalogProductCustomOptionRepositoryV1GetGetOK() *CatalogProductCustomOptionRepositoryV1GetGetOK

NewCatalogProductCustomOptionRepositoryV1GetGetOK creates a CatalogProductCustomOptionRepositoryV1GetGetOK with default headers values

func (*CatalogProductCustomOptionRepositoryV1GetGetOK) Error

func (*CatalogProductCustomOptionRepositoryV1GetGetOK) GetPayload

type CatalogProductCustomOptionRepositoryV1GetGetParams

type CatalogProductCustomOptionRepositoryV1GetGetParams struct {

	// OptionID.
	OptionID int64

	// Sku.
	Sku string

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

CatalogProductCustomOptionRepositoryV1GetGetParams contains all the parameters to send to the API endpoint

for the catalog product custom option repository v1 get get operation.

Typically these are written to a http.Request.

func NewCatalogProductCustomOptionRepositoryV1GetGetParams

func NewCatalogProductCustomOptionRepositoryV1GetGetParams() *CatalogProductCustomOptionRepositoryV1GetGetParams

NewCatalogProductCustomOptionRepositoryV1GetGetParams creates a new CatalogProductCustomOptionRepositoryV1GetGetParams 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 NewCatalogProductCustomOptionRepositoryV1GetGetParamsWithContext

func NewCatalogProductCustomOptionRepositoryV1GetGetParamsWithContext(ctx context.Context) *CatalogProductCustomOptionRepositoryV1GetGetParams

NewCatalogProductCustomOptionRepositoryV1GetGetParamsWithContext creates a new CatalogProductCustomOptionRepositoryV1GetGetParams object with the ability to set a context for a request.

func NewCatalogProductCustomOptionRepositoryV1GetGetParamsWithHTTPClient

func NewCatalogProductCustomOptionRepositoryV1GetGetParamsWithHTTPClient(client *http.Client) *CatalogProductCustomOptionRepositoryV1GetGetParams

NewCatalogProductCustomOptionRepositoryV1GetGetParamsWithHTTPClient creates a new CatalogProductCustomOptionRepositoryV1GetGetParams object with the ability to set a custom HTTPClient for a request.

func NewCatalogProductCustomOptionRepositoryV1GetGetParamsWithTimeout

func NewCatalogProductCustomOptionRepositoryV1GetGetParamsWithTimeout(timeout time.Duration) *CatalogProductCustomOptionRepositoryV1GetGetParams

NewCatalogProductCustomOptionRepositoryV1GetGetParamsWithTimeout creates a new CatalogProductCustomOptionRepositoryV1GetGetParams object with the ability to set a timeout on a request.

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) SetContext

SetContext adds the context to the catalog product custom option repository v1 get get params

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) SetDefaults

SetDefaults hydrates default values in the catalog product custom option repository v1 get get params (not the query body).

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

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the catalog product custom option repository v1 get get params

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) SetOptionID

SetOptionID adds the optionId to the catalog product custom option repository v1 get get params

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) SetSku

SetSku adds the sku to the catalog product custom option repository v1 get get params

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) SetTimeout

SetTimeout adds the timeout to the catalog product custom option repository v1 get get params

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) WithContext

WithContext adds the context to the catalog product custom option repository v1 get get params

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) WithDefaults

WithDefaults hydrates default values in the catalog product custom option repository v1 get get params (not the query body).

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

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the catalog product custom option repository v1 get get params

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) WithOptionID

WithOptionID adds the optionID to the catalog product custom option repository v1 get get params

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) WithSku

WithSku adds the sku to the catalog product custom option repository v1 get get params

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) WithTimeout

WithTimeout adds the timeout to the catalog product custom option repository v1 get get params

func (*CatalogProductCustomOptionRepositoryV1GetGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CatalogProductCustomOptionRepositoryV1GetGetReader

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

CatalogProductCustomOptionRepositoryV1GetGetReader is a Reader for the CatalogProductCustomOptionRepositoryV1GetGet structure.

func (*CatalogProductCustomOptionRepositoryV1GetGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CatalogProductCustomOptionRepositoryV1GetListGetDefault

type CatalogProductCustomOptionRepositoryV1GetListGetDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
CatalogProductCustomOptionRepositoryV1GetListGetDefault describes a response with status code -1, with default header values.

Unexpected error

func NewCatalogProductCustomOptionRepositoryV1GetListGetDefault

func NewCatalogProductCustomOptionRepositoryV1GetListGetDefault(code int) *CatalogProductCustomOptionRepositoryV1GetListGetDefault

NewCatalogProductCustomOptionRepositoryV1GetListGetDefault creates a CatalogProductCustomOptionRepositoryV1GetListGetDefault with default headers values

func (*CatalogProductCustomOptionRepositoryV1GetListGetDefault) Code

Code gets the status code for the catalog product custom option repository v1 get list get default response

func (*CatalogProductCustomOptionRepositoryV1GetListGetDefault) Error

func (*CatalogProductCustomOptionRepositoryV1GetListGetDefault) GetPayload

type CatalogProductCustomOptionRepositoryV1GetListGetOK

type CatalogProductCustomOptionRepositoryV1GetListGetOK struct {
	Payload []*models.CatalogDataProductCustomOptionInterface
}
CatalogProductCustomOptionRepositoryV1GetListGetOK describes a response with status code 200, with default header values.

200 Success.

func NewCatalogProductCustomOptionRepositoryV1GetListGetOK

func NewCatalogProductCustomOptionRepositoryV1GetListGetOK() *CatalogProductCustomOptionRepositoryV1GetListGetOK

NewCatalogProductCustomOptionRepositoryV1GetListGetOK creates a CatalogProductCustomOptionRepositoryV1GetListGetOK with default headers values

func (*CatalogProductCustomOptionRepositoryV1GetListGetOK) Error

func (*CatalogProductCustomOptionRepositoryV1GetListGetOK) GetPayload

type CatalogProductCustomOptionRepositoryV1GetListGetParams

type CatalogProductCustomOptionRepositoryV1GetListGetParams struct {

	// Sku.
	Sku string

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

CatalogProductCustomOptionRepositoryV1GetListGetParams contains all the parameters to send to the API endpoint

for the catalog product custom option repository v1 get list get operation.

Typically these are written to a http.Request.

func NewCatalogProductCustomOptionRepositoryV1GetListGetParams

func NewCatalogProductCustomOptionRepositoryV1GetListGetParams() *CatalogProductCustomOptionRepositoryV1GetListGetParams

NewCatalogProductCustomOptionRepositoryV1GetListGetParams creates a new CatalogProductCustomOptionRepositoryV1GetListGetParams 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 NewCatalogProductCustomOptionRepositoryV1GetListGetParamsWithContext

func NewCatalogProductCustomOptionRepositoryV1GetListGetParamsWithContext(ctx context.Context) *CatalogProductCustomOptionRepositoryV1GetListGetParams

NewCatalogProductCustomOptionRepositoryV1GetListGetParamsWithContext creates a new CatalogProductCustomOptionRepositoryV1GetListGetParams object with the ability to set a context for a request.

func NewCatalogProductCustomOptionRepositoryV1GetListGetParamsWithHTTPClient

func NewCatalogProductCustomOptionRepositoryV1GetListGetParamsWithHTTPClient(client *http.Client) *CatalogProductCustomOptionRepositoryV1GetListGetParams

NewCatalogProductCustomOptionRepositoryV1GetListGetParamsWithHTTPClient creates a new CatalogProductCustomOptionRepositoryV1GetListGetParams object with the ability to set a custom HTTPClient for a request.

func NewCatalogProductCustomOptionRepositoryV1GetListGetParamsWithTimeout

func NewCatalogProductCustomOptionRepositoryV1GetListGetParamsWithTimeout(timeout time.Duration) *CatalogProductCustomOptionRepositoryV1GetListGetParams

NewCatalogProductCustomOptionRepositoryV1GetListGetParamsWithTimeout creates a new CatalogProductCustomOptionRepositoryV1GetListGetParams object with the ability to set a timeout on a request.

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) SetContext

SetContext adds the context to the catalog product custom option repository v1 get list get params

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) SetDefaults

SetDefaults hydrates default values in the catalog product custom option repository v1 get list get params (not the query body).

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

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the catalog product custom option repository v1 get list get params

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) SetSku

SetSku adds the sku to the catalog product custom option repository v1 get list get params

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) SetTimeout

SetTimeout adds the timeout to the catalog product custom option repository v1 get list get params

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) WithContext

WithContext adds the context to the catalog product custom option repository v1 get list get params

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) WithDefaults

WithDefaults hydrates default values in the catalog product custom option repository v1 get list get params (not the query body).

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

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the catalog product custom option repository v1 get list get params

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) WithSku

WithSku adds the sku to the catalog product custom option repository v1 get list get params

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) WithTimeout

WithTimeout adds the timeout to the catalog product custom option repository v1 get list get params

func (*CatalogProductCustomOptionRepositoryV1GetListGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CatalogProductCustomOptionRepositoryV1GetListGetReader

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

CatalogProductCustomOptionRepositoryV1GetListGetReader is a Reader for the CatalogProductCustomOptionRepositoryV1GetListGet structure.

func (*CatalogProductCustomOptionRepositoryV1GetListGetReader) ReadResponse

func (o *CatalogProductCustomOptionRepositoryV1GetListGetReader) 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 product custom option repository v1 API

func (*Client) CatalogProductCustomOptionRepositoryV1GetGet

func (a *Client) CatalogProductCustomOptionRepositoryV1GetGet(params *CatalogProductCustomOptionRepositoryV1GetGetParams, opts ...ClientOption) (*CatalogProductCustomOptionRepositoryV1GetGetOK, error)

CatalogProductCustomOptionRepositoryV1GetGet Get custom option for a specific product

func (*Client) CatalogProductCustomOptionRepositoryV1GetListGet

func (a *Client) CatalogProductCustomOptionRepositoryV1GetListGet(params *CatalogProductCustomOptionRepositoryV1GetListGetParams, opts ...ClientOption) (*CatalogProductCustomOptionRepositoryV1GetListGetOK, error)

CatalogProductCustomOptionRepositoryV1GetListGet Get the list of custom options for a specific product

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CatalogProductCustomOptionRepositoryV1GetGet(params *CatalogProductCustomOptionRepositoryV1GetGetParams, opts ...ClientOption) (*CatalogProductCustomOptionRepositoryV1GetGetOK, error)

	CatalogProductCustomOptionRepositoryV1GetListGet(params *CatalogProductCustomOptionRepositoryV1GetListGetParams, opts ...ClientOption) (*CatalogProductCustomOptionRepositoryV1GetListGetOK, 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 product custom option repository v1 API client.

Jump to

Keyboard shortcuts

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