subcategories

package
v0.0.0-...-fda5bac Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for subcategories API

func New

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

New creates a new subcategories API client.

func (*Client) CreateSubCategoryByCategory

func (a *Client) CreateSubCategoryByCategory(params *CreateSubCategoryByCategoryParams) (*CreateSubCategoryByCategoryCreated, error)

CreateSubCategoryByCategory creates a sub category by category

func (*Client) DeleteSubCategories

func (a *Client) DeleteSubCategories(params *DeleteSubCategoriesParams) (*DeleteSubCategoriesOK, error)

DeleteSubCategories deletes all sub categories

removes all subcategories.

func (*Client) DeleteSubCategoriesByCategory

func (a *Client) DeleteSubCategoriesByCategory(params *DeleteSubCategoriesByCategoryParams) (*DeleteSubCategoriesByCategoryOK, error)

DeleteSubCategoriesByCategory deletes all sub categories by category

removes all subcategories from a given category.

func (*Client) DeleteSubCategory

func (a *Client) DeleteSubCategory(params *DeleteSubCategoryParams) (*DeleteSubCategoryOK, error)

DeleteSubCategory deletes a specific sub category

removes a specfic subcategory.

func (*Client) GetSubCategories

func (a *Client) GetSubCategories(params *GetSubCategoriesParams) (*GetSubCategoriesOK, error)

GetSubCategories gets all sub categories

func (*Client) GetSubCategoriesByCategory

func (a *Client) GetSubCategoriesByCategory(params *GetSubCategoriesByCategoryParams) (*GetSubCategoriesByCategoryOK, error)

GetSubCategoriesByCategory gets all sub categories by category

func (*Client) GetSubCategory

func (a *Client) GetSubCategory(params *GetSubCategoryParams) (*GetSubCategoryOK, error)

GetSubCategory gets a specific sub category

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateSubCategory

func (a *Client) UpdateSubCategory(params *UpdateSubCategoryParams) (*UpdateSubCategoryCreated, error)

UpdateSubCategory updates a specific sub category

type CreateSubCategoryBadRequest

type CreateSubCategoryBadRequest struct {
}

CreateSubCategoryBadRequest handles this case with default header values.

Invalid input

func NewCreateSubCategoryBadRequest

func NewCreateSubCategoryBadRequest() *CreateSubCategoryBadRequest

NewCreateSubCategoryBadRequest creates a CreateSubCategoryBadRequest with default headers values

func (*CreateSubCategoryBadRequest) Error

type CreateSubCategoryByCategoryBadRequest

type CreateSubCategoryByCategoryBadRequest struct {
}

CreateSubCategoryByCategoryBadRequest handles this case with default header values.

Invalid input

func NewCreateSubCategoryByCategoryBadRequest

func NewCreateSubCategoryByCategoryBadRequest() *CreateSubCategoryByCategoryBadRequest

NewCreateSubCategoryByCategoryBadRequest creates a CreateSubCategoryByCategoryBadRequest with default headers values

func (*CreateSubCategoryByCategoryBadRequest) Error

type CreateSubCategoryByCategoryCreated

type CreateSubCategoryByCategoryCreated struct {
	Payload *models.SubCategory
}

CreateSubCategoryByCategoryCreated handles this case with default header values.

SubCategory Created

func NewCreateSubCategoryByCategoryCreated

func NewCreateSubCategoryByCategoryCreated() *CreateSubCategoryByCategoryCreated

NewCreateSubCategoryByCategoryCreated creates a CreateSubCategoryByCategoryCreated with default headers values

func (*CreateSubCategoryByCategoryCreated) Error

type CreateSubCategoryByCategoryParams

type CreateSubCategoryByCategoryParams struct {

	/*Body
	  Category that needs to be added to the DB

	*/
	Body *models.SubCategory
	/*ID
	  Category ID Associated to Subcategory(s)

	*/
	ID int64

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

CreateSubCategoryByCategoryParams contains all the parameters to send to the API endpoint for the create sub category by category operation typically these are written to a http.Request

func NewCreateSubCategoryByCategoryParams

func NewCreateSubCategoryByCategoryParams() *CreateSubCategoryByCategoryParams

NewCreateSubCategoryByCategoryParams creates a new CreateSubCategoryByCategoryParams object with the default values initialized.

func NewCreateSubCategoryByCategoryParamsWithContext

func NewCreateSubCategoryByCategoryParamsWithContext(ctx context.Context) *CreateSubCategoryByCategoryParams

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

func NewCreateSubCategoryByCategoryParamsWithHTTPClient

func NewCreateSubCategoryByCategoryParamsWithHTTPClient(client *http.Client) *CreateSubCategoryByCategoryParams

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

func NewCreateSubCategoryByCategoryParamsWithTimeout

func NewCreateSubCategoryByCategoryParamsWithTimeout(timeout time.Duration) *CreateSubCategoryByCategoryParams

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

func (*CreateSubCategoryByCategoryParams) SetBody

SetBody adds the body to the create sub category by category params

func (*CreateSubCategoryByCategoryParams) SetContext

SetContext adds the context to the create sub category by category params

func (*CreateSubCategoryByCategoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create sub category by category params

func (*CreateSubCategoryByCategoryParams) SetID

SetID adds the id to the create sub category by category params

func (*CreateSubCategoryByCategoryParams) SetTimeout

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

SetTimeout adds the timeout to the create sub category by category params

func (*CreateSubCategoryByCategoryParams) WithBody

WithBody adds the body to the create sub category by category params

func (*CreateSubCategoryByCategoryParams) WithContext

WithContext adds the context to the create sub category by category params

func (*CreateSubCategoryByCategoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create sub category by category params

func (*CreateSubCategoryByCategoryParams) WithID

WithID adds the id to the create sub category by category params

func (*CreateSubCategoryByCategoryParams) WithTimeout

WithTimeout adds the timeout to the create sub category by category params

func (*CreateSubCategoryByCategoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateSubCategoryByCategoryReader

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

CreateSubCategoryByCategoryReader is a Reader for the CreateSubCategoryByCategory structure.

func (*CreateSubCategoryByCategoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateSubCategoryCreated

type CreateSubCategoryCreated struct {
	Payload *models.SubCategory
}

CreateSubCategoryCreated handles this case with default header values.

SubCategory Created

func NewCreateSubCategoryCreated

func NewCreateSubCategoryCreated() *CreateSubCategoryCreated

NewCreateSubCategoryCreated creates a CreateSubCategoryCreated with default headers values

func (*CreateSubCategoryCreated) Error

func (o *CreateSubCategoryCreated) Error() string

type CreateSubCategoryParams

type CreateSubCategoryParams struct {

	/*Body
	  Category that needs to be added to the DB

	*/
	Body *models.SubCategory

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

CreateSubCategoryParams contains all the parameters to send to the API endpoint for the create sub category operation typically these are written to a http.Request

func NewCreateSubCategoryParams

func NewCreateSubCategoryParams() *CreateSubCategoryParams

NewCreateSubCategoryParams creates a new CreateSubCategoryParams object with the default values initialized.

func NewCreateSubCategoryParamsWithContext

func NewCreateSubCategoryParamsWithContext(ctx context.Context) *CreateSubCategoryParams

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

func NewCreateSubCategoryParamsWithHTTPClient

func NewCreateSubCategoryParamsWithHTTPClient(client *http.Client) *CreateSubCategoryParams

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

func NewCreateSubCategoryParamsWithTimeout

func NewCreateSubCategoryParamsWithTimeout(timeout time.Duration) *CreateSubCategoryParams

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

func (*CreateSubCategoryParams) SetBody

func (o *CreateSubCategoryParams) SetBody(body *models.SubCategory)

SetBody adds the body to the create sub category params

func (*CreateSubCategoryParams) SetContext

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

SetContext adds the context to the create sub category params

func (*CreateSubCategoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create sub category params

func (*CreateSubCategoryParams) SetTimeout

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

SetTimeout adds the timeout to the create sub category params

func (*CreateSubCategoryParams) WithBody

WithBody adds the body to the create sub category params

func (*CreateSubCategoryParams) WithContext

WithContext adds the context to the create sub category params

func (*CreateSubCategoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create sub category params

func (*CreateSubCategoryParams) WithTimeout

WithTimeout adds the timeout to the create sub category params

func (*CreateSubCategoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateSubCategoryReader

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

CreateSubCategoryReader is a Reader for the CreateSubCategory structure.

func (*CreateSubCategoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSubCategoriesByCategoryNotFound

type DeleteSubCategoriesByCategoryNotFound struct {
}

DeleteSubCategoriesByCategoryNotFound handles this case with default header values.

No items found

func NewDeleteSubCategoriesByCategoryNotFound

func NewDeleteSubCategoriesByCategoryNotFound() *DeleteSubCategoriesByCategoryNotFound

NewDeleteSubCategoriesByCategoryNotFound creates a DeleteSubCategoriesByCategoryNotFound with default headers values

func (*DeleteSubCategoriesByCategoryNotFound) Error

type DeleteSubCategoriesByCategoryOK

type DeleteSubCategoriesByCategoryOK struct {
}

DeleteSubCategoriesByCategoryOK handles this case with default header values.

Status Ok

func NewDeleteSubCategoriesByCategoryOK

func NewDeleteSubCategoriesByCategoryOK() *DeleteSubCategoriesByCategoryOK

NewDeleteSubCategoriesByCategoryOK creates a DeleteSubCategoriesByCategoryOK with default headers values

func (*DeleteSubCategoriesByCategoryOK) Error

type DeleteSubCategoriesByCategoryParams

type DeleteSubCategoriesByCategoryParams struct {

	/*ID
	  Category ID Associated to Subcategory(s)

	*/
	ID int64

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

DeleteSubCategoriesByCategoryParams contains all the parameters to send to the API endpoint for the delete sub categories by category operation typically these are written to a http.Request

func NewDeleteSubCategoriesByCategoryParams

func NewDeleteSubCategoriesByCategoryParams() *DeleteSubCategoriesByCategoryParams

NewDeleteSubCategoriesByCategoryParams creates a new DeleteSubCategoriesByCategoryParams object with the default values initialized.

func NewDeleteSubCategoriesByCategoryParamsWithContext

func NewDeleteSubCategoriesByCategoryParamsWithContext(ctx context.Context) *DeleteSubCategoriesByCategoryParams

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

func NewDeleteSubCategoriesByCategoryParamsWithHTTPClient

func NewDeleteSubCategoriesByCategoryParamsWithHTTPClient(client *http.Client) *DeleteSubCategoriesByCategoryParams

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

func NewDeleteSubCategoriesByCategoryParamsWithTimeout

func NewDeleteSubCategoriesByCategoryParamsWithTimeout(timeout time.Duration) *DeleteSubCategoriesByCategoryParams

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

func (*DeleteSubCategoriesByCategoryParams) SetContext

SetContext adds the context to the delete sub categories by category params

func (*DeleteSubCategoriesByCategoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete sub categories by category params

func (*DeleteSubCategoriesByCategoryParams) SetID

SetID adds the id to the delete sub categories by category params

func (*DeleteSubCategoriesByCategoryParams) SetTimeout

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

SetTimeout adds the timeout to the delete sub categories by category params

func (*DeleteSubCategoriesByCategoryParams) WithContext

WithContext adds the context to the delete sub categories by category params

func (*DeleteSubCategoriesByCategoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete sub categories by category params

func (*DeleteSubCategoriesByCategoryParams) WithID

WithID adds the id to the delete sub categories by category params

func (*DeleteSubCategoriesByCategoryParams) WithTimeout

WithTimeout adds the timeout to the delete sub categories by category params

func (*DeleteSubCategoriesByCategoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSubCategoriesByCategoryReader

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

DeleteSubCategoriesByCategoryReader is a Reader for the DeleteSubCategoriesByCategory structure.

func (*DeleteSubCategoriesByCategoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSubCategoriesNotFound

type DeleteSubCategoriesNotFound struct {
}

DeleteSubCategoriesNotFound handles this case with default header values.

No items found

func NewDeleteSubCategoriesNotFound

func NewDeleteSubCategoriesNotFound() *DeleteSubCategoriesNotFound

NewDeleteSubCategoriesNotFound creates a DeleteSubCategoriesNotFound with default headers values

func (*DeleteSubCategoriesNotFound) Error

type DeleteSubCategoriesOK

type DeleteSubCategoriesOK struct {
}

DeleteSubCategoriesOK handles this case with default header values.

Status Ok

func NewDeleteSubCategoriesOK

func NewDeleteSubCategoriesOK() *DeleteSubCategoriesOK

NewDeleteSubCategoriesOK creates a DeleteSubCategoriesOK with default headers values

func (*DeleteSubCategoriesOK) Error

func (o *DeleteSubCategoriesOK) Error() string

type DeleteSubCategoriesParams

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

DeleteSubCategoriesParams contains all the parameters to send to the API endpoint for the delete sub categories operation typically these are written to a http.Request

func NewDeleteSubCategoriesParams

func NewDeleteSubCategoriesParams() *DeleteSubCategoriesParams

NewDeleteSubCategoriesParams creates a new DeleteSubCategoriesParams object with the default values initialized.

func NewDeleteSubCategoriesParamsWithContext

func NewDeleteSubCategoriesParamsWithContext(ctx context.Context) *DeleteSubCategoriesParams

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

func NewDeleteSubCategoriesParamsWithHTTPClient

func NewDeleteSubCategoriesParamsWithHTTPClient(client *http.Client) *DeleteSubCategoriesParams

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

func NewDeleteSubCategoriesParamsWithTimeout

func NewDeleteSubCategoriesParamsWithTimeout(timeout time.Duration) *DeleteSubCategoriesParams

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

func (*DeleteSubCategoriesParams) SetContext

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

SetContext adds the context to the delete sub categories params

func (*DeleteSubCategoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete sub categories params

func (*DeleteSubCategoriesParams) SetTimeout

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

SetTimeout adds the timeout to the delete sub categories params

func (*DeleteSubCategoriesParams) WithContext

WithContext adds the context to the delete sub categories params

func (*DeleteSubCategoriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete sub categories params

func (*DeleteSubCategoriesParams) WithTimeout

WithTimeout adds the timeout to the delete sub categories params

func (*DeleteSubCategoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSubCategoriesReader

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

DeleteSubCategoriesReader is a Reader for the DeleteSubCategories structure.

func (*DeleteSubCategoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSubCategoryBadRequest

type DeleteSubCategoryBadRequest struct {
}

DeleteSubCategoryBadRequest handles this case with default header values.

Invalid input

func NewDeleteSubCategoryBadRequest

func NewDeleteSubCategoryBadRequest() *DeleteSubCategoryBadRequest

NewDeleteSubCategoryBadRequest creates a DeleteSubCategoryBadRequest with default headers values

func (*DeleteSubCategoryBadRequest) Error

type DeleteSubCategoryNotFound

type DeleteSubCategoryNotFound struct {
}

DeleteSubCategoryNotFound handles this case with default header values.

No items found

func NewDeleteSubCategoryNotFound

func NewDeleteSubCategoryNotFound() *DeleteSubCategoryNotFound

NewDeleteSubCategoryNotFound creates a DeleteSubCategoryNotFound with default headers values

func (*DeleteSubCategoryNotFound) Error

func (o *DeleteSubCategoryNotFound) Error() string

type DeleteSubCategoryOK

type DeleteSubCategoryOK struct {
}

DeleteSubCategoryOK handles this case with default header values.

Status Ok

func NewDeleteSubCategoryOK

func NewDeleteSubCategoryOK() *DeleteSubCategoryOK

NewDeleteSubCategoryOK creates a DeleteSubCategoryOK with default headers values

func (*DeleteSubCategoryOK) Error

func (o *DeleteSubCategoryOK) Error() string

type DeleteSubCategoryParams

type DeleteSubCategoryParams struct {

	/*ID*/
	ID int64

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

DeleteSubCategoryParams contains all the parameters to send to the API endpoint for the delete sub category operation typically these are written to a http.Request

func NewDeleteSubCategoryParams

func NewDeleteSubCategoryParams() *DeleteSubCategoryParams

NewDeleteSubCategoryParams creates a new DeleteSubCategoryParams object with the default values initialized.

func NewDeleteSubCategoryParamsWithContext

func NewDeleteSubCategoryParamsWithContext(ctx context.Context) *DeleteSubCategoryParams

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

func NewDeleteSubCategoryParamsWithHTTPClient

func NewDeleteSubCategoryParamsWithHTTPClient(client *http.Client) *DeleteSubCategoryParams

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

func NewDeleteSubCategoryParamsWithTimeout

func NewDeleteSubCategoryParamsWithTimeout(timeout time.Duration) *DeleteSubCategoryParams

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

func (*DeleteSubCategoryParams) SetContext

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

SetContext adds the context to the delete sub category params

func (*DeleteSubCategoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete sub category params

func (*DeleteSubCategoryParams) SetID

func (o *DeleteSubCategoryParams) SetID(id int64)

SetID adds the id to the delete sub category params

func (*DeleteSubCategoryParams) SetTimeout

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

SetTimeout adds the timeout to the delete sub category params

func (*DeleteSubCategoryParams) WithContext

WithContext adds the context to the delete sub category params

func (*DeleteSubCategoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete sub category params

func (*DeleteSubCategoryParams) WithID

WithID adds the id to the delete sub category params

func (*DeleteSubCategoryParams) WithTimeout

WithTimeout adds the timeout to the delete sub category params

func (*DeleteSubCategoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSubCategoryReader

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

DeleteSubCategoryReader is a Reader for the DeleteSubCategory structure.

func (*DeleteSubCategoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubCategoriesByCategoryNotFound

type GetSubCategoriesByCategoryNotFound struct {
}

GetSubCategoriesByCategoryNotFound handles this case with default header values.

No items found

func NewGetSubCategoriesByCategoryNotFound

func NewGetSubCategoriesByCategoryNotFound() *GetSubCategoriesByCategoryNotFound

NewGetSubCategoriesByCategoryNotFound creates a GetSubCategoriesByCategoryNotFound with default headers values

func (*GetSubCategoriesByCategoryNotFound) Error

type GetSubCategoriesByCategoryOK

type GetSubCategoriesByCategoryOK struct {
	Payload models.SubCategories
}

GetSubCategoriesByCategoryOK handles this case with default header values.

Status Ok

func NewGetSubCategoriesByCategoryOK

func NewGetSubCategoriesByCategoryOK() *GetSubCategoriesByCategoryOK

NewGetSubCategoriesByCategoryOK creates a GetSubCategoriesByCategoryOK with default headers values

func (*GetSubCategoriesByCategoryOK) Error

type GetSubCategoriesByCategoryParams

type GetSubCategoriesByCategoryParams struct {

	/*ID
	  Category ID Associated to Subcategory(s)

	*/
	ID int64

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

GetSubCategoriesByCategoryParams contains all the parameters to send to the API endpoint for the get sub categories by category operation typically these are written to a http.Request

func NewGetSubCategoriesByCategoryParams

func NewGetSubCategoriesByCategoryParams() *GetSubCategoriesByCategoryParams

NewGetSubCategoriesByCategoryParams creates a new GetSubCategoriesByCategoryParams object with the default values initialized.

func NewGetSubCategoriesByCategoryParamsWithContext

func NewGetSubCategoriesByCategoryParamsWithContext(ctx context.Context) *GetSubCategoriesByCategoryParams

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

func NewGetSubCategoriesByCategoryParamsWithHTTPClient

func NewGetSubCategoriesByCategoryParamsWithHTTPClient(client *http.Client) *GetSubCategoriesByCategoryParams

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

func NewGetSubCategoriesByCategoryParamsWithTimeout

func NewGetSubCategoriesByCategoryParamsWithTimeout(timeout time.Duration) *GetSubCategoriesByCategoryParams

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

func (*GetSubCategoriesByCategoryParams) SetContext

SetContext adds the context to the get sub categories by category params

func (*GetSubCategoriesByCategoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sub categories by category params

func (*GetSubCategoriesByCategoryParams) SetID

SetID adds the id to the get sub categories by category params

func (*GetSubCategoriesByCategoryParams) SetTimeout

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

SetTimeout adds the timeout to the get sub categories by category params

func (*GetSubCategoriesByCategoryParams) WithContext

WithContext adds the context to the get sub categories by category params

func (*GetSubCategoriesByCategoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get sub categories by category params

func (*GetSubCategoriesByCategoryParams) WithID

WithID adds the id to the get sub categories by category params

func (*GetSubCategoriesByCategoryParams) WithTimeout

WithTimeout adds the timeout to the get sub categories by category params

func (*GetSubCategoriesByCategoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSubCategoriesByCategoryReader

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

GetSubCategoriesByCategoryReader is a Reader for the GetSubCategoriesByCategory structure.

func (*GetSubCategoriesByCategoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubCategoriesNotFound

type GetSubCategoriesNotFound struct {
}

GetSubCategoriesNotFound handles this case with default header values.

No items found

func NewGetSubCategoriesNotFound

func NewGetSubCategoriesNotFound() *GetSubCategoriesNotFound

NewGetSubCategoriesNotFound creates a GetSubCategoriesNotFound with default headers values

func (*GetSubCategoriesNotFound) Error

func (o *GetSubCategoriesNotFound) Error() string

type GetSubCategoriesOK

type GetSubCategoriesOK struct {
	Payload models.SubCategories
}

GetSubCategoriesOK handles this case with default header values.

Status Ok

func NewGetSubCategoriesOK

func NewGetSubCategoriesOK() *GetSubCategoriesOK

NewGetSubCategoriesOK creates a GetSubCategoriesOK with default headers values

func (*GetSubCategoriesOK) Error

func (o *GetSubCategoriesOK) Error() string

type GetSubCategoriesParams

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

GetSubCategoriesParams contains all the parameters to send to the API endpoint for the get sub categories operation typically these are written to a http.Request

func NewGetSubCategoriesParams

func NewGetSubCategoriesParams() *GetSubCategoriesParams

NewGetSubCategoriesParams creates a new GetSubCategoriesParams object with the default values initialized.

func NewGetSubCategoriesParamsWithContext

func NewGetSubCategoriesParamsWithContext(ctx context.Context) *GetSubCategoriesParams

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

func NewGetSubCategoriesParamsWithHTTPClient

func NewGetSubCategoriesParamsWithHTTPClient(client *http.Client) *GetSubCategoriesParams

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

func NewGetSubCategoriesParamsWithTimeout

func NewGetSubCategoriesParamsWithTimeout(timeout time.Duration) *GetSubCategoriesParams

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

func (*GetSubCategoriesParams) SetContext

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

SetContext adds the context to the get sub categories params

func (*GetSubCategoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sub categories params

func (*GetSubCategoriesParams) SetTimeout

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

SetTimeout adds the timeout to the get sub categories params

func (*GetSubCategoriesParams) WithContext

WithContext adds the context to the get sub categories params

func (*GetSubCategoriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get sub categories params

func (*GetSubCategoriesParams) WithTimeout

WithTimeout adds the timeout to the get sub categories params

func (*GetSubCategoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSubCategoriesReader

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

GetSubCategoriesReader is a Reader for the GetSubCategories structure.

func (*GetSubCategoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubCategoryBadRequest

type GetSubCategoryBadRequest struct {
}

GetSubCategoryBadRequest handles this case with default header values.

Invalid input

func NewGetSubCategoryBadRequest

func NewGetSubCategoryBadRequest() *GetSubCategoryBadRequest

NewGetSubCategoryBadRequest creates a GetSubCategoryBadRequest with default headers values

func (*GetSubCategoryBadRequest) Error

func (o *GetSubCategoryBadRequest) Error() string

type GetSubCategoryNotFound

type GetSubCategoryNotFound struct {
}

GetSubCategoryNotFound handles this case with default header values.

No items found

func NewGetSubCategoryNotFound

func NewGetSubCategoryNotFound() *GetSubCategoryNotFound

NewGetSubCategoryNotFound creates a GetSubCategoryNotFound with default headers values

func (*GetSubCategoryNotFound) Error

func (o *GetSubCategoryNotFound) Error() string

type GetSubCategoryOK

type GetSubCategoryOK struct {
	Payload *models.SubCategory
}

GetSubCategoryOK handles this case with default header values.

Status Ok

func NewGetSubCategoryOK

func NewGetSubCategoryOK() *GetSubCategoryOK

NewGetSubCategoryOK creates a GetSubCategoryOK with default headers values

func (*GetSubCategoryOK) Error

func (o *GetSubCategoryOK) Error() string

type GetSubCategoryParams

type GetSubCategoryParams struct {

	/*ID*/
	ID int64

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

GetSubCategoryParams contains all the parameters to send to the API endpoint for the get sub category operation typically these are written to a http.Request

func NewGetSubCategoryParams

func NewGetSubCategoryParams() *GetSubCategoryParams

NewGetSubCategoryParams creates a new GetSubCategoryParams object with the default values initialized.

func NewGetSubCategoryParamsWithContext

func NewGetSubCategoryParamsWithContext(ctx context.Context) *GetSubCategoryParams

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

func NewGetSubCategoryParamsWithHTTPClient

func NewGetSubCategoryParamsWithHTTPClient(client *http.Client) *GetSubCategoryParams

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

func NewGetSubCategoryParamsWithTimeout

func NewGetSubCategoryParamsWithTimeout(timeout time.Duration) *GetSubCategoryParams

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

func (*GetSubCategoryParams) SetContext

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

SetContext adds the context to the get sub category params

func (*GetSubCategoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sub category params

func (*GetSubCategoryParams) SetID

func (o *GetSubCategoryParams) SetID(id int64)

SetID adds the id to the get sub category params

func (*GetSubCategoryParams) SetTimeout

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

SetTimeout adds the timeout to the get sub category params

func (*GetSubCategoryParams) WithContext

WithContext adds the context to the get sub category params

func (*GetSubCategoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get sub category params

func (*GetSubCategoryParams) WithID

WithID adds the id to the get sub category params

func (*GetSubCategoryParams) WithTimeout

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

WithTimeout adds the timeout to the get sub category params

func (*GetSubCategoryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSubCategoryReader

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

GetSubCategoryReader is a Reader for the GetSubCategory structure.

func (*GetSubCategoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateSubCategoryBadRequest

type UpdateSubCategoryBadRequest struct {
}

UpdateSubCategoryBadRequest handles this case with default header values.

Invalid input

func NewUpdateSubCategoryBadRequest

func NewUpdateSubCategoryBadRequest() *UpdateSubCategoryBadRequest

NewUpdateSubCategoryBadRequest creates a UpdateSubCategoryBadRequest with default headers values

func (*UpdateSubCategoryBadRequest) Error

type UpdateSubCategoryCreated

type UpdateSubCategoryCreated struct {
	Payload *models.SubCategory
}

UpdateSubCategoryCreated handles this case with default header values.

SubCategory Updated

func NewUpdateSubCategoryCreated

func NewUpdateSubCategoryCreated() *UpdateSubCategoryCreated

NewUpdateSubCategoryCreated creates a UpdateSubCategoryCreated with default headers values

func (*UpdateSubCategoryCreated) Error

func (o *UpdateSubCategoryCreated) Error() string

type UpdateSubCategoryNotFound

type UpdateSubCategoryNotFound struct {
}

UpdateSubCategoryNotFound handles this case with default header values.

No items found

func NewUpdateSubCategoryNotFound

func NewUpdateSubCategoryNotFound() *UpdateSubCategoryNotFound

NewUpdateSubCategoryNotFound creates a UpdateSubCategoryNotFound with default headers values

func (*UpdateSubCategoryNotFound) Error

func (o *UpdateSubCategoryNotFound) Error() string

type UpdateSubCategoryParams

type UpdateSubCategoryParams struct {

	/*Body
	  a subcategory that will be updated

	*/
	Body *models.SubCategory
	/*ID*/
	ID int64

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

UpdateSubCategoryParams contains all the parameters to send to the API endpoint for the update sub category operation typically these are written to a http.Request

func NewUpdateSubCategoryParams

func NewUpdateSubCategoryParams() *UpdateSubCategoryParams

NewUpdateSubCategoryParams creates a new UpdateSubCategoryParams object with the default values initialized.

func NewUpdateSubCategoryParamsWithContext

func NewUpdateSubCategoryParamsWithContext(ctx context.Context) *UpdateSubCategoryParams

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

func NewUpdateSubCategoryParamsWithHTTPClient

func NewUpdateSubCategoryParamsWithHTTPClient(client *http.Client) *UpdateSubCategoryParams

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

func NewUpdateSubCategoryParamsWithTimeout

func NewUpdateSubCategoryParamsWithTimeout(timeout time.Duration) *UpdateSubCategoryParams

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

func (*UpdateSubCategoryParams) SetBody

func (o *UpdateSubCategoryParams) SetBody(body *models.SubCategory)

SetBody adds the body to the update sub category params

func (*UpdateSubCategoryParams) SetContext

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

SetContext adds the context to the update sub category params

func (*UpdateSubCategoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update sub category params

func (*UpdateSubCategoryParams) SetID

func (o *UpdateSubCategoryParams) SetID(id int64)

SetID adds the id to the update sub category params

func (*UpdateSubCategoryParams) SetTimeout

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

SetTimeout adds the timeout to the update sub category params

func (*UpdateSubCategoryParams) WithBody

WithBody adds the body to the update sub category params

func (*UpdateSubCategoryParams) WithContext

WithContext adds the context to the update sub category params

func (*UpdateSubCategoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update sub category params

func (*UpdateSubCategoryParams) WithID

WithID adds the id to the update sub category params

func (*UpdateSubCategoryParams) WithTimeout

WithTimeout adds the timeout to the update sub category params

func (*UpdateSubCategoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateSubCategoryReader

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

UpdateSubCategoryReader is a Reader for the UpdateSubCategory structure.

func (*UpdateSubCategoryReader) ReadResponse

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