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

Documentation

Index

Constants

View Source
const CreateSkuBundleBadRequestCode int = 400

CreateSkuBundleBadRequestCode is the HTTP code returned for type CreateSkuBundleBadRequest

View Source
const CreateSkuBundleConflictCode int = 409

CreateSkuBundleConflictCode is the HTTP code returned for type CreateSkuBundleConflict

View Source
const CreateSkuBundleCreatedCode int = 201

CreateSkuBundleCreatedCode is the HTTP code returned for type CreateSkuBundleCreated

View Source
const CreateSkuBundleInternalServerErrorCode int = 500

CreateSkuBundleInternalServerErrorCode is the HTTP code returned for type CreateSkuBundleInternalServerError

View Source
const GetSkuBundleByNameInternalServerErrorCode int = 500

GetSkuBundleByNameInternalServerErrorCode is the HTTP code returned for type GetSkuBundleByNameInternalServerError

View Source
const GetSkuBundleByNameNotFoundCode int = 404

GetSkuBundleByNameNotFoundCode is the HTTP code returned for type GetSkuBundleByNameNotFound

View Source
const GetSkuBundleByNameOKCode int = 200

GetSkuBundleByNameOKCode is the HTTP code returned for type GetSkuBundleByNameOK

View Source
const GetSkuBundleInternalServerErrorCode int = 500

GetSkuBundleInternalServerErrorCode is the HTTP code returned for type GetSkuBundleInternalServerError

View Source
const GetSkuBundleNotFoundCode int = 404

GetSkuBundleNotFoundCode is the HTTP code returned for type GetSkuBundleNotFound

View Source
const GetSkuBundleOKCode int = 200

GetSkuBundleOKCode is the HTTP code returned for type GetSkuBundleOK

View Source
const ListSkuBundlesInternalServerErrorCode int = 500

ListSkuBundlesInternalServerErrorCode is the HTTP code returned for type ListSkuBundlesInternalServerError

View Source
const ListSkuBundlesOKCode int = 200

ListSkuBundlesOKCode is the HTTP code returned for type ListSkuBundlesOK

View Source
const UpdateSkuBundleInternalServerErrorCode int = 500

UpdateSkuBundleInternalServerErrorCode is the HTTP code returned for type UpdateSkuBundleInternalServerError

View Source
const UpdateSkuBundleNotFoundCode int = 404

UpdateSkuBundleNotFoundCode is the HTTP code returned for type UpdateSkuBundleNotFound

View Source
const UpdateSkuBundleOKCode int = 200

UpdateSkuBundleOKCode is the HTTP code returned for type UpdateSkuBundleOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateSkuBundle

type CreateSkuBundle struct {
	Context *middleware.Context
	Handler CreateSkuBundleHandler
}

CreateSkuBundle swagger:route POST /sku/bundle bundleManagement createSkuBundle

create SKU bundle

Creates a new sku bundle

func NewCreateSkuBundle

func NewCreateSkuBundle(ctx *middleware.Context, handler CreateSkuBundleHandler) *CreateSkuBundle

NewCreateSkuBundle creates a new http.Handler for the create sku bundle operation

func (*CreateSkuBundle) ServeHTTP

func (o *CreateSkuBundle) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateSkuBundleBadRequest

type CreateSkuBundleBadRequest struct {
}

CreateSkuBundleBadRequest invalid input, object invalid

swagger:response createSkuBundleBadRequest

func NewCreateSkuBundleBadRequest

func NewCreateSkuBundleBadRequest() *CreateSkuBundleBadRequest

NewCreateSkuBundleBadRequest creates CreateSkuBundleBadRequest with default headers values

func (*CreateSkuBundleBadRequest) WriteResponse

func (o *CreateSkuBundleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateSkuBundleConflict

type CreateSkuBundleConflict struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

CreateSkuBundleConflict an existing item already exists

swagger:response createSkuBundleConflict

func NewCreateSkuBundleConflict

func NewCreateSkuBundleConflict() *CreateSkuBundleConflict

NewCreateSkuBundleConflict creates CreateSkuBundleConflict with default headers values

func (*CreateSkuBundleConflict) SetPayload

func (o *CreateSkuBundleConflict) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the create sku bundle conflict response

func (*CreateSkuBundleConflict) WithPayload

WithPayload adds the payload to the create sku bundle conflict response

func (*CreateSkuBundleConflict) WriteResponse

func (o *CreateSkuBundleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateSkuBundleCreated

type CreateSkuBundleCreated struct {

	/*
	  In: Body
	*/
	Payload *models.ItemCreatedResponse `json:"body,omitempty"`
}

CreateSkuBundleCreated item created

swagger:response createSkuBundleCreated

func NewCreateSkuBundleCreated

func NewCreateSkuBundleCreated() *CreateSkuBundleCreated

NewCreateSkuBundleCreated creates CreateSkuBundleCreated with default headers values

func (*CreateSkuBundleCreated) SetPayload

func (o *CreateSkuBundleCreated) SetPayload(payload *models.ItemCreatedResponse)

SetPayload sets the payload to the create sku bundle created response

func (*CreateSkuBundleCreated) WithPayload

WithPayload adds the payload to the create sku bundle created response

func (*CreateSkuBundleCreated) WriteResponse

func (o *CreateSkuBundleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateSkuBundleHandler

type CreateSkuBundleHandler interface {
	Handle(CreateSkuBundleParams, interface{}) middleware.Responder
}

CreateSkuBundleHandler interface for that can handle valid create sku bundle params

type CreateSkuBundleHandlerFunc

type CreateSkuBundleHandlerFunc func(CreateSkuBundleParams, interface{}) middleware.Responder

CreateSkuBundleHandlerFunc turns a function with the right signature into a create sku bundle handler

func (CreateSkuBundleHandlerFunc) Handle

func (fn CreateSkuBundleHandlerFunc) Handle(params CreateSkuBundleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateSkuBundleInternalServerError

type CreateSkuBundleInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

CreateSkuBundleInternalServerError unexpected error

swagger:response createSkuBundleInternalServerError

func NewCreateSkuBundleInternalServerError

func NewCreateSkuBundleInternalServerError() *CreateSkuBundleInternalServerError

NewCreateSkuBundleInternalServerError creates CreateSkuBundleInternalServerError with default headers values

func (*CreateSkuBundleInternalServerError) SetPayload

SetPayload sets the payload to the create sku bundle internal server error response

func (*CreateSkuBundleInternalServerError) WithPayload

WithPayload adds the payload to the create sku bundle internal server error response

func (*CreateSkuBundleInternalServerError) WriteResponse

WriteResponse to the client

type CreateSkuBundleParams

type CreateSkuBundleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*SKU bundle to be added
	  In: body
	*/
	Bundle *models.SkuBundle
}

CreateSkuBundleParams contains all the bound params for the create sku bundle operation typically these are obtained from a http.Request

swagger:parameters createSkuBundle

func NewCreateSkuBundleParams

func NewCreateSkuBundleParams() CreateSkuBundleParams

NewCreateSkuBundleParams creates a new CreateSkuBundleParams object no default values defined in spec.

func (*CreateSkuBundleParams) BindRequest

func (o *CreateSkuBundleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateSkuBundleParams() beforehand.

type CreateSkuBundleURL

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

CreateSkuBundleURL generates an URL for the create sku bundle operation

func (*CreateSkuBundleURL) Build

func (o *CreateSkuBundleURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateSkuBundleURL) BuildFull

func (o *CreateSkuBundleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateSkuBundleURL) Must

func (o *CreateSkuBundleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateSkuBundleURL) SetBasePath

func (o *CreateSkuBundleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateSkuBundleURL) String

func (o *CreateSkuBundleURL) String() string

String returns the string representation of the path with query string

func (*CreateSkuBundleURL) StringFull

func (o *CreateSkuBundleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateSkuBundleURL) WithBasePath

func (o *CreateSkuBundleURL) WithBasePath(bp string) *CreateSkuBundleURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetSkuBundle

type GetSkuBundle struct {
	Context *middleware.Context
	Handler GetSkuBundleHandler
}

GetSkuBundle swagger:route GET /sku/bundle/{id} bundleManagement getSkuBundle

Get specific sku bundle

get sku bundle with given id

func NewGetSkuBundle

func NewGetSkuBundle(ctx *middleware.Context, handler GetSkuBundleHandler) *GetSkuBundle

NewGetSkuBundle creates a new http.Handler for the get sku bundle operation

func (*GetSkuBundle) ServeHTTP

func (o *GetSkuBundle) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetSkuBundleByName

type GetSkuBundleByName struct {
	Context *middleware.Context
	Handler GetSkuBundleByNameHandler
}

GetSkuBundleByName swagger:route GET /sku/bundle/name/{name} bundleManagement getSkuBundleByName

Get specific sku bundle

get sku bundle with given name

func NewGetSkuBundleByName

func NewGetSkuBundleByName(ctx *middleware.Context, handler GetSkuBundleByNameHandler) *GetSkuBundleByName

NewGetSkuBundleByName creates a new http.Handler for the get sku bundle by name operation

func (*GetSkuBundleByName) ServeHTTP

func (o *GetSkuBundleByName) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetSkuBundleByNameHandler

type GetSkuBundleByNameHandler interface {
	Handle(GetSkuBundleByNameParams, interface{}) middleware.Responder
}

GetSkuBundleByNameHandler interface for that can handle valid get sku bundle by name params

type GetSkuBundleByNameHandlerFunc

type GetSkuBundleByNameHandlerFunc func(GetSkuBundleByNameParams, interface{}) middleware.Responder

GetSkuBundleByNameHandlerFunc turns a function with the right signature into a get sku bundle by name handler

func (GetSkuBundleByNameHandlerFunc) Handle

func (fn GetSkuBundleByNameHandlerFunc) Handle(params GetSkuBundleByNameParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetSkuBundleByNameInternalServerError

type GetSkuBundleByNameInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetSkuBundleByNameInternalServerError unexpected error

swagger:response getSkuBundleByNameInternalServerError

func NewGetSkuBundleByNameInternalServerError

func NewGetSkuBundleByNameInternalServerError() *GetSkuBundleByNameInternalServerError

NewGetSkuBundleByNameInternalServerError creates GetSkuBundleByNameInternalServerError with default headers values

func (*GetSkuBundleByNameInternalServerError) SetPayload

SetPayload sets the payload to the get sku bundle by name internal server error response

func (*GetSkuBundleByNameInternalServerError) WithPayload

WithPayload adds the payload to the get sku bundle by name internal server error response

func (*GetSkuBundleByNameInternalServerError) WriteResponse

WriteResponse to the client

type GetSkuBundleByNameNotFound

type GetSkuBundleByNameNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetSkuBundleByNameNotFound sku bundle with name not found

swagger:response getSkuBundleByNameNotFound

func NewGetSkuBundleByNameNotFound

func NewGetSkuBundleByNameNotFound() *GetSkuBundleByNameNotFound

NewGetSkuBundleByNameNotFound creates GetSkuBundleByNameNotFound with default headers values

func (*GetSkuBundleByNameNotFound) SetPayload

func (o *GetSkuBundleByNameNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get sku bundle by name not found response

func (*GetSkuBundleByNameNotFound) WithPayload

WithPayload adds the payload to the get sku bundle by name not found response

func (*GetSkuBundleByNameNotFound) WriteResponse

func (o *GetSkuBundleByNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSkuBundleByNameOK

type GetSkuBundleByNameOK struct {

	/*
	  In: Body
	*/
	Payload *models.SkuBundle `json:"body,omitempty"`
}

GetSkuBundleByNameOK sku bundle returned

swagger:response getSkuBundleByNameOK

func NewGetSkuBundleByNameOK

func NewGetSkuBundleByNameOK() *GetSkuBundleByNameOK

NewGetSkuBundleByNameOK creates GetSkuBundleByNameOK with default headers values

func (*GetSkuBundleByNameOK) SetPayload

func (o *GetSkuBundleByNameOK) SetPayload(payload *models.SkuBundle)

SetPayload sets the payload to the get sku bundle by name o k response

func (*GetSkuBundleByNameOK) WithPayload

func (o *GetSkuBundleByNameOK) WithPayload(payload *models.SkuBundle) *GetSkuBundleByNameOK

WithPayload adds the payload to the get sku bundle by name o k response

func (*GetSkuBundleByNameOK) WriteResponse

func (o *GetSkuBundleByNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSkuBundleByNameParams

type GetSkuBundleByNameParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Id of sku bundle to be obtained
	  Required: true
	  In: path
	*/
	Name string
}

GetSkuBundleByNameParams contains all the bound params for the get sku bundle by name operation typically these are obtained from a http.Request

swagger:parameters getSkuBundleByName

func NewGetSkuBundleByNameParams

func NewGetSkuBundleByNameParams() GetSkuBundleByNameParams

NewGetSkuBundleByNameParams creates a new GetSkuBundleByNameParams object no default values defined in spec.

func (*GetSkuBundleByNameParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetSkuBundleByNameParams() beforehand.

type GetSkuBundleByNameURL

type GetSkuBundleByNameURL struct {
	Name string
	// contains filtered or unexported fields
}

GetSkuBundleByNameURL generates an URL for the get sku bundle by name operation

func (*GetSkuBundleByNameURL) Build

func (o *GetSkuBundleByNameURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetSkuBundleByNameURL) BuildFull

func (o *GetSkuBundleByNameURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetSkuBundleByNameURL) Must

func (o *GetSkuBundleByNameURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetSkuBundleByNameURL) SetBasePath

func (o *GetSkuBundleByNameURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetSkuBundleByNameURL) String

func (o *GetSkuBundleByNameURL) String() string

String returns the string representation of the path with query string

func (*GetSkuBundleByNameURL) StringFull

func (o *GetSkuBundleByNameURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetSkuBundleByNameURL) WithBasePath

func (o *GetSkuBundleByNameURL) WithBasePath(bp string) *GetSkuBundleByNameURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetSkuBundleHandler

type GetSkuBundleHandler interface {
	Handle(GetSkuBundleParams, interface{}) middleware.Responder
}

GetSkuBundleHandler interface for that can handle valid get sku bundle params

type GetSkuBundleHandlerFunc

type GetSkuBundleHandlerFunc func(GetSkuBundleParams, interface{}) middleware.Responder

GetSkuBundleHandlerFunc turns a function with the right signature into a get sku bundle handler

func (GetSkuBundleHandlerFunc) Handle

func (fn GetSkuBundleHandlerFunc) Handle(params GetSkuBundleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetSkuBundleInternalServerError

type GetSkuBundleInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetSkuBundleInternalServerError unexpected error

swagger:response getSkuBundleInternalServerError

func NewGetSkuBundleInternalServerError

func NewGetSkuBundleInternalServerError() *GetSkuBundleInternalServerError

NewGetSkuBundleInternalServerError creates GetSkuBundleInternalServerError with default headers values

func (*GetSkuBundleInternalServerError) SetPayload

func (o *GetSkuBundleInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get sku bundle internal server error response

func (*GetSkuBundleInternalServerError) WithPayload

WithPayload adds the payload to the get sku bundle internal server error response

func (*GetSkuBundleInternalServerError) WriteResponse

func (o *GetSkuBundleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSkuBundleNotFound

type GetSkuBundleNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetSkuBundleNotFound sku bundle with id not found

swagger:response getSkuBundleNotFound

func NewGetSkuBundleNotFound

func NewGetSkuBundleNotFound() *GetSkuBundleNotFound

NewGetSkuBundleNotFound creates GetSkuBundleNotFound with default headers values

func (*GetSkuBundleNotFound) SetPayload

func (o *GetSkuBundleNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get sku bundle not found response

func (*GetSkuBundleNotFound) WithPayload

WithPayload adds the payload to the get sku bundle not found response

func (*GetSkuBundleNotFound) WriteResponse

func (o *GetSkuBundleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSkuBundleOK

type GetSkuBundleOK struct {

	/*
	  In: Body
	*/
	Payload *models.SkuBundle `json:"body,omitempty"`
}

GetSkuBundleOK sku bundle returned

swagger:response getSkuBundleOK

func NewGetSkuBundleOK

func NewGetSkuBundleOK() *GetSkuBundleOK

NewGetSkuBundleOK creates GetSkuBundleOK with default headers values

func (*GetSkuBundleOK) SetPayload

func (o *GetSkuBundleOK) SetPayload(payload *models.SkuBundle)

SetPayload sets the payload to the get sku bundle o k response

func (*GetSkuBundleOK) WithPayload

func (o *GetSkuBundleOK) WithPayload(payload *models.SkuBundle) *GetSkuBundleOK

WithPayload adds the payload to the get sku bundle o k response

func (*GetSkuBundleOK) WriteResponse

func (o *GetSkuBundleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSkuBundleParams

type GetSkuBundleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Id of sku bundle to be obtained
	  Required: true
	  In: path
	*/
	ID string
}

GetSkuBundleParams contains all the bound params for the get sku bundle operation typically these are obtained from a http.Request

swagger:parameters getSkuBundle

func NewGetSkuBundleParams

func NewGetSkuBundleParams() GetSkuBundleParams

NewGetSkuBundleParams creates a new GetSkuBundleParams object no default values defined in spec.

func (*GetSkuBundleParams) BindRequest

func (o *GetSkuBundleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetSkuBundleParams() beforehand.

type GetSkuBundleURL

type GetSkuBundleURL struct {
	ID string
	// contains filtered or unexported fields
}

GetSkuBundleURL generates an URL for the get sku bundle operation

func (*GetSkuBundleURL) Build

func (o *GetSkuBundleURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetSkuBundleURL) BuildFull

func (o *GetSkuBundleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetSkuBundleURL) Must

func (o *GetSkuBundleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetSkuBundleURL) SetBasePath

func (o *GetSkuBundleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetSkuBundleURL) String

func (o *GetSkuBundleURL) String() string

String returns the string representation of the path with query string

func (*GetSkuBundleURL) StringFull

func (o *GetSkuBundleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetSkuBundleURL) WithBasePath

func (o *GetSkuBundleURL) WithBasePath(bp string) *GetSkuBundleURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListSkuBundles

type ListSkuBundles struct {
	Context *middleware.Context
	Handler ListSkuBundlesHandler
}

ListSkuBundles swagger:route GET /sku/bundle bundleManagement listSkuBundles

list SKU Bundles

lists all sku bundles

func NewListSkuBundles

func NewListSkuBundles(ctx *middleware.Context, handler ListSkuBundlesHandler) *ListSkuBundles

NewListSkuBundles creates a new http.Handler for the list sku bundles operation

func (*ListSkuBundles) ServeHTTP

func (o *ListSkuBundles) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListSkuBundlesHandler

type ListSkuBundlesHandler interface {
	Handle(ListSkuBundlesParams, interface{}) middleware.Responder
}

ListSkuBundlesHandler interface for that can handle valid list sku bundles params

type ListSkuBundlesHandlerFunc

type ListSkuBundlesHandlerFunc func(ListSkuBundlesParams, interface{}) middleware.Responder

ListSkuBundlesHandlerFunc turns a function with the right signature into a list sku bundles handler

func (ListSkuBundlesHandlerFunc) Handle

func (fn ListSkuBundlesHandlerFunc) Handle(params ListSkuBundlesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListSkuBundlesInternalServerError

type ListSkuBundlesInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ListSkuBundlesInternalServerError unexpected error

swagger:response listSkuBundlesInternalServerError

func NewListSkuBundlesInternalServerError

func NewListSkuBundlesInternalServerError() *ListSkuBundlesInternalServerError

NewListSkuBundlesInternalServerError creates ListSkuBundlesInternalServerError with default headers values

func (*ListSkuBundlesInternalServerError) SetPayload

func (o *ListSkuBundlesInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the list sku bundles internal server error response

func (*ListSkuBundlesInternalServerError) WithPayload

WithPayload adds the payload to the list sku bundles internal server error response

func (*ListSkuBundlesInternalServerError) WriteResponse

func (o *ListSkuBundlesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListSkuBundlesOK

type ListSkuBundlesOK struct {

	/*
	  In: Body
	*/
	Payload []*models.SkuBundle `json:"body,omitempty"`
}

ListSkuBundlesOK list of skus bundles returned

swagger:response listSkuBundlesOK

func NewListSkuBundlesOK

func NewListSkuBundlesOK() *ListSkuBundlesOK

NewListSkuBundlesOK creates ListSkuBundlesOK with default headers values

func (*ListSkuBundlesOK) SetPayload

func (o *ListSkuBundlesOK) SetPayload(payload []*models.SkuBundle)

SetPayload sets the payload to the list sku bundles o k response

func (*ListSkuBundlesOK) WithPayload

func (o *ListSkuBundlesOK) WithPayload(payload []*models.SkuBundle) *ListSkuBundlesOK

WithPayload adds the payload to the list sku bundles o k response

func (*ListSkuBundlesOK) WriteResponse

func (o *ListSkuBundlesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListSkuBundlesParams

type ListSkuBundlesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

ListSkuBundlesParams contains all the bound params for the list sku bundles operation typically these are obtained from a http.Request

swagger:parameters listSkuBundles

func NewListSkuBundlesParams

func NewListSkuBundlesParams() ListSkuBundlesParams

NewListSkuBundlesParams creates a new ListSkuBundlesParams object no default values defined in spec.

func (*ListSkuBundlesParams) BindRequest

func (o *ListSkuBundlesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListSkuBundlesParams() beforehand.

type ListSkuBundlesURL

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

ListSkuBundlesURL generates an URL for the list sku bundles operation

func (*ListSkuBundlesURL) Build

func (o *ListSkuBundlesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListSkuBundlesURL) BuildFull

func (o *ListSkuBundlesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListSkuBundlesURL) Must

func (o *ListSkuBundlesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListSkuBundlesURL) SetBasePath

func (o *ListSkuBundlesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListSkuBundlesURL) String

func (o *ListSkuBundlesURL) String() string

String returns the string representation of the path with query string

func (*ListSkuBundlesURL) StringFull

func (o *ListSkuBundlesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListSkuBundlesURL) WithBasePath

func (o *ListSkuBundlesURL) WithBasePath(bp string) *ListSkuBundlesURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateSkuBundle

type UpdateSkuBundle struct {
	Context *middleware.Context
	Handler UpdateSkuBundleHandler
}

UpdateSkuBundle swagger:route PUT /sku/bundle/{id} bundleManagement updateSkuBundle

Update specific sku bundle

Update sku bundle with given id

func NewUpdateSkuBundle

func NewUpdateSkuBundle(ctx *middleware.Context, handler UpdateSkuBundleHandler) *UpdateSkuBundle

NewUpdateSkuBundle creates a new http.Handler for the update sku bundle operation

func (*UpdateSkuBundle) ServeHTTP

func (o *UpdateSkuBundle) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateSkuBundleHandler

type UpdateSkuBundleHandler interface {
	Handle(UpdateSkuBundleParams, interface{}) middleware.Responder
}

UpdateSkuBundleHandler interface for that can handle valid update sku bundle params

type UpdateSkuBundleHandlerFunc

type UpdateSkuBundleHandlerFunc func(UpdateSkuBundleParams, interface{}) middleware.Responder

UpdateSkuBundleHandlerFunc turns a function with the right signature into a update sku bundle handler

func (UpdateSkuBundleHandlerFunc) Handle

func (fn UpdateSkuBundleHandlerFunc) Handle(params UpdateSkuBundleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateSkuBundleInternalServerError

type UpdateSkuBundleInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

UpdateSkuBundleInternalServerError unexpected error

swagger:response updateSkuBundleInternalServerError

func NewUpdateSkuBundleInternalServerError

func NewUpdateSkuBundleInternalServerError() *UpdateSkuBundleInternalServerError

NewUpdateSkuBundleInternalServerError creates UpdateSkuBundleInternalServerError with default headers values

func (*UpdateSkuBundleInternalServerError) SetPayload

SetPayload sets the payload to the update sku bundle internal server error response

func (*UpdateSkuBundleInternalServerError) WithPayload

WithPayload adds the payload to the update sku bundle internal server error response

func (*UpdateSkuBundleInternalServerError) WriteResponse

WriteResponse to the client

type UpdateSkuBundleNotFound

type UpdateSkuBundleNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

UpdateSkuBundleNotFound sku bundle with id not found

swagger:response updateSkuBundleNotFound

func NewUpdateSkuBundleNotFound

func NewUpdateSkuBundleNotFound() *UpdateSkuBundleNotFound

NewUpdateSkuBundleNotFound creates UpdateSkuBundleNotFound with default headers values

func (*UpdateSkuBundleNotFound) SetPayload

func (o *UpdateSkuBundleNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the update sku bundle not found response

func (*UpdateSkuBundleNotFound) WithPayload

WithPayload adds the payload to the update sku bundle not found response

func (*UpdateSkuBundleNotFound) WriteResponse

func (o *UpdateSkuBundleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateSkuBundleOK

type UpdateSkuBundleOK struct {

	/*
	  In: Body
	*/
	Payload *models.SkuBundle `json:"body,omitempty"`
}

UpdateSkuBundleOK updated sku bundle

swagger:response updateSkuBundleOK

func NewUpdateSkuBundleOK

func NewUpdateSkuBundleOK() *UpdateSkuBundleOK

NewUpdateSkuBundleOK creates UpdateSkuBundleOK with default headers values

func (*UpdateSkuBundleOK) SetPayload

func (o *UpdateSkuBundleOK) SetPayload(payload *models.SkuBundle)

SetPayload sets the payload to the update sku bundle o k response

func (*UpdateSkuBundleOK) WithPayload

func (o *UpdateSkuBundleOK) WithPayload(payload *models.SkuBundle) *UpdateSkuBundleOK

WithPayload adds the payload to the update sku bundle o k response

func (*UpdateSkuBundleOK) WriteResponse

func (o *UpdateSkuBundleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateSkuBundleParams

type UpdateSkuBundleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*updated sku bundle containing all parameters except id
	  Required: true
	  In: body
	*/
	Bundle *models.SkuBundle
	/*Id of sku bundle to be obtained
	  Required: true
	  In: path
	*/
	ID string
}

UpdateSkuBundleParams contains all the bound params for the update sku bundle operation typically these are obtained from a http.Request

swagger:parameters updateSkuBundle

func NewUpdateSkuBundleParams

func NewUpdateSkuBundleParams() UpdateSkuBundleParams

NewUpdateSkuBundleParams creates a new UpdateSkuBundleParams object no default values defined in spec.

func (*UpdateSkuBundleParams) BindRequest

func (o *UpdateSkuBundleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateSkuBundleParams() beforehand.

type UpdateSkuBundleURL

type UpdateSkuBundleURL struct {
	ID string
	// contains filtered or unexported fields
}

UpdateSkuBundleURL generates an URL for the update sku bundle operation

func (*UpdateSkuBundleURL) Build

func (o *UpdateSkuBundleURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateSkuBundleURL) BuildFull

func (o *UpdateSkuBundleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateSkuBundleURL) Must

func (o *UpdateSkuBundleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateSkuBundleURL) SetBasePath

func (o *UpdateSkuBundleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdateSkuBundleURL) String

func (o *UpdateSkuBundleURL) String() string

String returns the string representation of the path with query string

func (*UpdateSkuBundleURL) StringFull

func (o *UpdateSkuBundleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateSkuBundleURL) WithBasePath

func (o *UpdateSkuBundleURL) WithBasePath(bp string) *UpdateSkuBundleURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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