price_management

package
v0.0.0-...-33e56a9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   CreateSkuPrice creates s k u price

	   Creates a new sku price*/
	CreateSkuPrice(ctx context.Context, params *CreateSkuPriceParams) (*CreateSkuPriceCreated, error)
	/*
	   GetSkuPrice gets specific sku price

	   get sku price with given skupriceid*/
	GetSkuPrice(ctx context.Context, params *GetSkuPriceParams) (*GetSkuPriceOK, error)
	/*
	   ListSkuPrices lists s k u prices

	   lists all sku prices*/
	ListSkuPrices(ctx context.Context, params *ListSkuPricesParams) (*ListSkuPricesOK, error)
	/*
	   UpdateSkuPrice updates specific sku price

	   Update sku price with given skupriceid*/
	UpdateSkuPrice(ctx context.Context, params *UpdateSkuPriceParams) (*UpdateSkuPriceOK, error)
}

API is the interface of the price management client

type Client

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

Client for price management API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new price management API client.

func (*Client) CreateSkuPrice

func (a *Client) CreateSkuPrice(ctx context.Context, params *CreateSkuPriceParams) (*CreateSkuPriceCreated, error)

CreateSkuPrice creates s k u price

Creates a new sku price

func (*Client) GetSkuPrice

func (a *Client) GetSkuPrice(ctx context.Context, params *GetSkuPriceParams) (*GetSkuPriceOK, error)

GetSkuPrice gets specific sku price

get sku price with given skupriceid

func (*Client) ListSkuPrices

func (a *Client) ListSkuPrices(ctx context.Context, params *ListSkuPricesParams) (*ListSkuPricesOK, error)

ListSkuPrices lists s k u prices

lists all sku prices

func (*Client) UpdateSkuPrice

func (a *Client) UpdateSkuPrice(ctx context.Context, params *UpdateSkuPriceParams) (*UpdateSkuPriceOK, error)

UpdateSkuPrice updates specific sku price

Update sku price with given skupriceid

type CreateSkuPriceBadRequest

type CreateSkuPriceBadRequest struct {
}

CreateSkuPriceBadRequest handles this case with default header values.

invalid input, object invalid

func NewCreateSkuPriceBadRequest

func NewCreateSkuPriceBadRequest() *CreateSkuPriceBadRequest

NewCreateSkuPriceBadRequest creates a CreateSkuPriceBadRequest with default headers values

func (*CreateSkuPriceBadRequest) Error

func (o *CreateSkuPriceBadRequest) Error() string

type CreateSkuPriceConflict

type CreateSkuPriceConflict struct {
	Payload *models.ErrorResponse
}

CreateSkuPriceConflict handles this case with default header values.

an existing item already exists

func NewCreateSkuPriceConflict

func NewCreateSkuPriceConflict() *CreateSkuPriceConflict

NewCreateSkuPriceConflict creates a CreateSkuPriceConflict with default headers values

func (*CreateSkuPriceConflict) Error

func (o *CreateSkuPriceConflict) Error() string

func (*CreateSkuPriceConflict) GetPayload

func (o *CreateSkuPriceConflict) GetPayload() *models.ErrorResponse

type CreateSkuPriceCreated

type CreateSkuPriceCreated struct {
	Payload *models.ItemCreatedResponse
}

CreateSkuPriceCreated handles this case with default header values.

item created

func NewCreateSkuPriceCreated

func NewCreateSkuPriceCreated() *CreateSkuPriceCreated

NewCreateSkuPriceCreated creates a CreateSkuPriceCreated with default headers values

func (*CreateSkuPriceCreated) Error

func (o *CreateSkuPriceCreated) Error() string

func (*CreateSkuPriceCreated) GetPayload

type CreateSkuPriceInternalServerError

type CreateSkuPriceInternalServerError struct {
	Payload *models.ErrorResponse
}

CreateSkuPriceInternalServerError handles this case with default header values.

unexpected error

func NewCreateSkuPriceInternalServerError

func NewCreateSkuPriceInternalServerError() *CreateSkuPriceInternalServerError

NewCreateSkuPriceInternalServerError creates a CreateSkuPriceInternalServerError with default headers values

func (*CreateSkuPriceInternalServerError) Error

func (*CreateSkuPriceInternalServerError) GetPayload

type CreateSkuPriceParams

type CreateSkuPriceParams struct {

	/*Price
	  SKU price to be added

	*/
	Price *models.SkuPrice

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

CreateSkuPriceParams contains all the parameters to send to the API endpoint for the create sku price operation typically these are written to a http.Request

func NewCreateSkuPriceParams

func NewCreateSkuPriceParams() *CreateSkuPriceParams

NewCreateSkuPriceParams creates a new CreateSkuPriceParams object with the default values initialized.

func NewCreateSkuPriceParamsWithContext

func NewCreateSkuPriceParamsWithContext(ctx context.Context) *CreateSkuPriceParams

NewCreateSkuPriceParamsWithContext creates a new CreateSkuPriceParams object with the default values initialized, and the ability to set a context for a request

func NewCreateSkuPriceParamsWithHTTPClient

func NewCreateSkuPriceParamsWithHTTPClient(client *http.Client) *CreateSkuPriceParams

NewCreateSkuPriceParamsWithHTTPClient creates a new CreateSkuPriceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateSkuPriceParamsWithTimeout

func NewCreateSkuPriceParamsWithTimeout(timeout time.Duration) *CreateSkuPriceParams

NewCreateSkuPriceParamsWithTimeout creates a new CreateSkuPriceParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateSkuPriceParams) SetContext

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

SetContext adds the context to the create sku price params

func (*CreateSkuPriceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create sku price params

func (*CreateSkuPriceParams) SetPrice

func (o *CreateSkuPriceParams) SetPrice(price *models.SkuPrice)

SetPrice adds the price to the create sku price params

func (*CreateSkuPriceParams) SetTimeout

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

SetTimeout adds the timeout to the create sku price params

func (*CreateSkuPriceParams) WithContext

WithContext adds the context to the create sku price params

func (*CreateSkuPriceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create sku price params

func (*CreateSkuPriceParams) WithPrice

WithPrice adds the price to the create sku price params

func (*CreateSkuPriceParams) WithTimeout

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

WithTimeout adds the timeout to the create sku price params

func (*CreateSkuPriceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateSkuPriceReader

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

CreateSkuPriceReader is a Reader for the CreateSkuPrice structure.

func (*CreateSkuPriceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSkuPriceInternalServerError

type GetSkuPriceInternalServerError struct {
	Payload *models.ErrorResponse
}

GetSkuPriceInternalServerError handles this case with default header values.

unexpected error

func NewGetSkuPriceInternalServerError

func NewGetSkuPriceInternalServerError() *GetSkuPriceInternalServerError

NewGetSkuPriceInternalServerError creates a GetSkuPriceInternalServerError with default headers values

func (*GetSkuPriceInternalServerError) Error

func (*GetSkuPriceInternalServerError) GetPayload

type GetSkuPriceNotFound

type GetSkuPriceNotFound struct {
	Payload *models.ErrorResponse
}

GetSkuPriceNotFound handles this case with default header values.

sku price with skupriceid not found

func NewGetSkuPriceNotFound

func NewGetSkuPriceNotFound() *GetSkuPriceNotFound

NewGetSkuPriceNotFound creates a GetSkuPriceNotFound with default headers values

func (*GetSkuPriceNotFound) Error

func (o *GetSkuPriceNotFound) Error() string

func (*GetSkuPriceNotFound) GetPayload

func (o *GetSkuPriceNotFound) GetPayload() *models.ErrorResponse

type GetSkuPriceOK

type GetSkuPriceOK struct {
	Payload *models.SkuPrice
}

GetSkuPriceOK handles this case with default header values.

sku price returned

func NewGetSkuPriceOK

func NewGetSkuPriceOK() *GetSkuPriceOK

NewGetSkuPriceOK creates a GetSkuPriceOK with default headers values

func (*GetSkuPriceOK) Error

func (o *GetSkuPriceOK) Error() string

func (*GetSkuPriceOK) GetPayload

func (o *GetSkuPriceOK) GetPayload() *models.SkuPrice

type GetSkuPriceParams

type GetSkuPriceParams struct {

	/*ID
	  Id of sku price to be obtained

	*/
	ID string

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

GetSkuPriceParams contains all the parameters to send to the API endpoint for the get sku price operation typically these are written to a http.Request

func NewGetSkuPriceParams

func NewGetSkuPriceParams() *GetSkuPriceParams

NewGetSkuPriceParams creates a new GetSkuPriceParams object with the default values initialized.

func NewGetSkuPriceParamsWithContext

func NewGetSkuPriceParamsWithContext(ctx context.Context) *GetSkuPriceParams

NewGetSkuPriceParamsWithContext creates a new GetSkuPriceParams object with the default values initialized, and the ability to set a context for a request

func NewGetSkuPriceParamsWithHTTPClient

func NewGetSkuPriceParamsWithHTTPClient(client *http.Client) *GetSkuPriceParams

NewGetSkuPriceParamsWithHTTPClient creates a new GetSkuPriceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetSkuPriceParamsWithTimeout

func NewGetSkuPriceParamsWithTimeout(timeout time.Duration) *GetSkuPriceParams

NewGetSkuPriceParamsWithTimeout creates a new GetSkuPriceParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetSkuPriceParams) SetContext

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

SetContext adds the context to the get sku price params

func (*GetSkuPriceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sku price params

func (*GetSkuPriceParams) SetID

func (o *GetSkuPriceParams) SetID(id string)

SetID adds the id to the get sku price params

func (*GetSkuPriceParams) SetTimeout

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

SetTimeout adds the timeout to the get sku price params

func (*GetSkuPriceParams) WithContext

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

WithContext adds the context to the get sku price params

func (*GetSkuPriceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get sku price params

func (*GetSkuPriceParams) WithID

WithID adds the id to the get sku price params

func (*GetSkuPriceParams) WithTimeout

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

WithTimeout adds the timeout to the get sku price params

func (*GetSkuPriceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSkuPriceReader

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

GetSkuPriceReader is a Reader for the GetSkuPrice structure.

func (*GetSkuPriceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListSkuPricesInternalServerError

type ListSkuPricesInternalServerError struct {
	Payload *models.ErrorResponse
}

ListSkuPricesInternalServerError handles this case with default header values.

unexpected error

func NewListSkuPricesInternalServerError

func NewListSkuPricesInternalServerError() *ListSkuPricesInternalServerError

NewListSkuPricesInternalServerError creates a ListSkuPricesInternalServerError with default headers values

func (*ListSkuPricesInternalServerError) Error

func (*ListSkuPricesInternalServerError) GetPayload

type ListSkuPricesOK

type ListSkuPricesOK struct {
	Payload []*models.SkuPrice
}

ListSkuPricesOK handles this case with default header values.

list of skus prices returned

func NewListSkuPricesOK

func NewListSkuPricesOK() *ListSkuPricesOK

NewListSkuPricesOK creates a ListSkuPricesOK with default headers values

func (*ListSkuPricesOK) Error

func (o *ListSkuPricesOK) Error() string

func (*ListSkuPricesOK) GetPayload

func (o *ListSkuPricesOK) GetPayload() []*models.SkuPrice

type ListSkuPricesParams

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

ListSkuPricesParams contains all the parameters to send to the API endpoint for the list sku prices operation typically these are written to a http.Request

func NewListSkuPricesParams

func NewListSkuPricesParams() *ListSkuPricesParams

NewListSkuPricesParams creates a new ListSkuPricesParams object with the default values initialized.

func NewListSkuPricesParamsWithContext

func NewListSkuPricesParamsWithContext(ctx context.Context) *ListSkuPricesParams

NewListSkuPricesParamsWithContext creates a new ListSkuPricesParams object with the default values initialized, and the ability to set a context for a request

func NewListSkuPricesParamsWithHTTPClient

func NewListSkuPricesParamsWithHTTPClient(client *http.Client) *ListSkuPricesParams

NewListSkuPricesParamsWithHTTPClient creates a new ListSkuPricesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListSkuPricesParamsWithTimeout

func NewListSkuPricesParamsWithTimeout(timeout time.Duration) *ListSkuPricesParams

NewListSkuPricesParamsWithTimeout creates a new ListSkuPricesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListSkuPricesParams) SetContext

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

SetContext adds the context to the list sku prices params

func (*ListSkuPricesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list sku prices params

func (*ListSkuPricesParams) SetTimeout

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

SetTimeout adds the timeout to the list sku prices params

func (*ListSkuPricesParams) WithContext

WithContext adds the context to the list sku prices params

func (*ListSkuPricesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list sku prices params

func (*ListSkuPricesParams) WithTimeout

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

WithTimeout adds the timeout to the list sku prices params

func (*ListSkuPricesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListSkuPricesReader

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

ListSkuPricesReader is a Reader for the ListSkuPrices structure.

func (*ListSkuPricesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateSkuPriceInternalServerError

type UpdateSkuPriceInternalServerError struct {
	Payload *models.ErrorResponse
}

UpdateSkuPriceInternalServerError handles this case with default header values.

unexpected error

func NewUpdateSkuPriceInternalServerError

func NewUpdateSkuPriceInternalServerError() *UpdateSkuPriceInternalServerError

NewUpdateSkuPriceInternalServerError creates a UpdateSkuPriceInternalServerError with default headers values

func (*UpdateSkuPriceInternalServerError) Error

func (*UpdateSkuPriceInternalServerError) GetPayload

type UpdateSkuPriceNotFound

type UpdateSkuPriceNotFound struct {
	Payload *models.ErrorResponse
}

UpdateSkuPriceNotFound handles this case with default header values.

sku price with skupriceid not found

func NewUpdateSkuPriceNotFound

func NewUpdateSkuPriceNotFound() *UpdateSkuPriceNotFound

NewUpdateSkuPriceNotFound creates a UpdateSkuPriceNotFound with default headers values

func (*UpdateSkuPriceNotFound) Error

func (o *UpdateSkuPriceNotFound) Error() string

func (*UpdateSkuPriceNotFound) GetPayload

func (o *UpdateSkuPriceNotFound) GetPayload() *models.ErrorResponse

type UpdateSkuPriceOK

type UpdateSkuPriceOK struct {
	Payload *models.SkuPrice
}

UpdateSkuPriceOK handles this case with default header values.

updated sku price

func NewUpdateSkuPriceOK

func NewUpdateSkuPriceOK() *UpdateSkuPriceOK

NewUpdateSkuPriceOK creates a UpdateSkuPriceOK with default headers values

func (*UpdateSkuPriceOK) Error

func (o *UpdateSkuPriceOK) Error() string

func (*UpdateSkuPriceOK) GetPayload

func (o *UpdateSkuPriceOK) GetPayload() *models.SkuPrice

type UpdateSkuPriceParams

type UpdateSkuPriceParams struct {

	/*ID
	  Id of sku price to be obtained

	*/
	ID string
	/*Price
	  updated sku containing all parameters except id

	*/
	Price *models.SkuPrice

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

UpdateSkuPriceParams contains all the parameters to send to the API endpoint for the update sku price operation typically these are written to a http.Request

func NewUpdateSkuPriceParams

func NewUpdateSkuPriceParams() *UpdateSkuPriceParams

NewUpdateSkuPriceParams creates a new UpdateSkuPriceParams object with the default values initialized.

func NewUpdateSkuPriceParamsWithContext

func NewUpdateSkuPriceParamsWithContext(ctx context.Context) *UpdateSkuPriceParams

NewUpdateSkuPriceParamsWithContext creates a new UpdateSkuPriceParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateSkuPriceParamsWithHTTPClient

func NewUpdateSkuPriceParamsWithHTTPClient(client *http.Client) *UpdateSkuPriceParams

NewUpdateSkuPriceParamsWithHTTPClient creates a new UpdateSkuPriceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateSkuPriceParamsWithTimeout

func NewUpdateSkuPriceParamsWithTimeout(timeout time.Duration) *UpdateSkuPriceParams

NewUpdateSkuPriceParamsWithTimeout creates a new UpdateSkuPriceParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateSkuPriceParams) SetContext

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

SetContext adds the context to the update sku price params

func (*UpdateSkuPriceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update sku price params

func (*UpdateSkuPriceParams) SetID

func (o *UpdateSkuPriceParams) SetID(id string)

SetID adds the id to the update sku price params

func (*UpdateSkuPriceParams) SetPrice

func (o *UpdateSkuPriceParams) SetPrice(price *models.SkuPrice)

SetPrice adds the price to the update sku price params

func (*UpdateSkuPriceParams) SetTimeout

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

SetTimeout adds the timeout to the update sku price params

func (*UpdateSkuPriceParams) WithContext

WithContext adds the context to the update sku price params

func (*UpdateSkuPriceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update sku price params

func (*UpdateSkuPriceParams) WithID

WithID adds the id to the update sku price params

func (*UpdateSkuPriceParams) WithPrice

WithPrice adds the price to the update sku price params

func (*UpdateSkuPriceParams) WithTimeout

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

WithTimeout adds the timeout to the update sku price params

func (*UpdateSkuPriceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateSkuPriceReader

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

UpdateSkuPriceReader is a Reader for the UpdateSkuPrice structure.

func (*UpdateSkuPriceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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