models

package
v0.0.0-...-76fafce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddProductParamsBody

type AddProductParamsBody struct {

	// description
	Description string `json:"description,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// price
	Price float64 `json:"price,omitempty"`

	// sku
	Sku string `json:"sku,omitempty"`
}

AddProductParamsBody add product params body

swagger:model addProductParamsBody

func (*AddProductParamsBody) ContextValidate

func (m *AddProductParamsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add product params body based on context it is used

func (*AddProductParamsBody) MarshalBinary

func (m *AddProductParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddProductParamsBody) UnmarshalBinary

func (m *AddProductParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddProductParamsBody) Validate

func (m *AddProductParamsBody) Validate(formats strfmt.Registry) error

Validate validates this add product params body

type DecreaseProductPriceParamsBody

type DecreaseProductPriceParamsBody struct {

	// price
	Price float64 `json:"price,omitempty"`
}

DecreaseProductPriceParamsBody decrease product price params body

swagger:model decreaseProductPriceParamsBody

func (*DecreaseProductPriceParamsBody) ContextValidate

func (m *DecreaseProductPriceParamsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this decrease product price params body based on context it is used

func (*DecreaseProductPriceParamsBody) MarshalBinary

func (m *DecreaseProductPriceParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DecreaseProductPriceParamsBody) UnmarshalBinary

func (m *DecreaseProductPriceParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DecreaseProductPriceParamsBody) Validate

func (m *DecreaseProductPriceParamsBody) Validate(formats strfmt.Registry) error

Validate validates this decrease product price params body

type IncreaseProductPriceParamsBody

type IncreaseProductPriceParamsBody struct {

	// price
	Price float64 `json:"price,omitempty"`
}

IncreaseProductPriceParamsBody increase product price params body

swagger:model increaseProductPriceParamsBody

func (*IncreaseProductPriceParamsBody) ContextValidate

func (m *IncreaseProductPriceParamsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this increase product price params body based on context it is used

func (*IncreaseProductPriceParamsBody) MarshalBinary

func (m *IncreaseProductPriceParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IncreaseProductPriceParamsBody) UnmarshalBinary

func (m *IncreaseProductPriceParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IncreaseProductPriceParamsBody) Validate

func (m *IncreaseProductPriceParamsBody) Validate(formats strfmt.Registry) error

Validate validates this increase product price params body

type ProtobufAny

type ProtobufAny struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

ProtobufAny protobuf any

swagger:model protobufAny

func (*ProtobufAny) ContextValidate

func (m *ProtobufAny) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this protobuf any based on context it is used

func (*ProtobufAny) MarshalBinary

func (m *ProtobufAny) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProtobufAny) UnmarshalBinary

func (m *ProtobufAny) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProtobufAny) Validate

func (m *ProtobufAny) Validate(formats strfmt.Registry) error

Validate validates this protobuf any

type RPCStatus

type RPCStatus struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*ProtobufAny `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

RPCStatus rpc status

swagger:model rpcStatus

func (*RPCStatus) ContextValidate

func (m *RPCStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rpc status based on the context it is used

func (*RPCStatus) MarshalBinary

func (m *RPCStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RPCStatus) UnmarshalBinary

func (m *RPCStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RPCStatus) Validate

func (m *RPCStatus) Validate(formats strfmt.Registry) error

Validate validates this rpc status

type RebrandProductParamsBody

type RebrandProductParamsBody struct {

	// description
	Description string `json:"description,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

RebrandProductParamsBody rebrand product params body

swagger:model rebrandProductParamsBody

func (*RebrandProductParamsBody) ContextValidate

func (m *RebrandProductParamsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rebrand product params body based on context it is used

func (*RebrandProductParamsBody) MarshalBinary

func (m *RebrandProductParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RebrandProductParamsBody) UnmarshalBinary

func (m *RebrandProductParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RebrandProductParamsBody) Validate

func (m *RebrandProductParamsBody) Validate(formats strfmt.Registry) error

Validate validates this rebrand product params body

type RebrandStoreParamsBody

type RebrandStoreParamsBody struct {

	// name
	Name string `json:"name,omitempty"`
}

RebrandStoreParamsBody rebrand store params body

swagger:model rebrandStoreParamsBody

func (*RebrandStoreParamsBody) ContextValidate

func (m *RebrandStoreParamsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rebrand store params body based on context it is used

func (*RebrandStoreParamsBody) MarshalBinary

func (m *RebrandStoreParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RebrandStoreParamsBody) UnmarshalBinary

func (m *RebrandStoreParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RebrandStoreParamsBody) Validate

func (m *RebrandStoreParamsBody) Validate(formats strfmt.Registry) error

Validate validates this rebrand store params body

type StorespbAddProductResponse

type StorespbAddProductResponse struct {

	// id
	ID string `json:"id,omitempty"`
}

StorespbAddProductResponse storespb add product response

swagger:model storespbAddProductResponse

func (*StorespbAddProductResponse) ContextValidate

func (m *StorespbAddProductResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this storespb add product response based on context it is used

func (*StorespbAddProductResponse) MarshalBinary

func (m *StorespbAddProductResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StorespbAddProductResponse) UnmarshalBinary

func (m *StorespbAddProductResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StorespbAddProductResponse) Validate

func (m *StorespbAddProductResponse) Validate(formats strfmt.Registry) error

Validate validates this storespb add product response

type StorespbCreateStoreRequest

type StorespbCreateStoreRequest struct {

	// location
	Location string `json:"location,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

StorespbCreateStoreRequest storespb create store request

swagger:model storespbCreateStoreRequest

func (*StorespbCreateStoreRequest) ContextValidate

func (m *StorespbCreateStoreRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this storespb create store request based on context it is used

func (*StorespbCreateStoreRequest) MarshalBinary

func (m *StorespbCreateStoreRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StorespbCreateStoreRequest) UnmarshalBinary

func (m *StorespbCreateStoreRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StorespbCreateStoreRequest) Validate

func (m *StorespbCreateStoreRequest) Validate(formats strfmt.Registry) error

Validate validates this storespb create store request

type StorespbCreateStoreResponse

type StorespbCreateStoreResponse struct {

	// id
	ID string `json:"id,omitempty"`
}

StorespbCreateStoreResponse storespb create store response

swagger:model storespbCreateStoreResponse

func (*StorespbCreateStoreResponse) ContextValidate

func (m *StorespbCreateStoreResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this storespb create store response based on context it is used

func (*StorespbCreateStoreResponse) MarshalBinary

func (m *StorespbCreateStoreResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StorespbCreateStoreResponse) UnmarshalBinary

func (m *StorespbCreateStoreResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StorespbCreateStoreResponse) Validate

func (m *StorespbCreateStoreResponse) Validate(formats strfmt.Registry) error

Validate validates this storespb create store response

type StorespbDecreaseProductPriceResponse

type StorespbDecreaseProductPriceResponse interface{}

StorespbDecreaseProductPriceResponse storespb decrease product price response

swagger:model storespbDecreaseProductPriceResponse

type StorespbDisableParticipationResponse

type StorespbDisableParticipationResponse interface{}

StorespbDisableParticipationResponse storespb disable participation response

swagger:model storespbDisableParticipationResponse

type StorespbEnableParticipationResponse

type StorespbEnableParticipationResponse interface{}

StorespbEnableParticipationResponse storespb enable participation response

swagger:model storespbEnableParticipationResponse

type StorespbGetCatalogResponse

type StorespbGetCatalogResponse struct {

	// products
	Products []*StorespbProduct `json:"products"`
}

StorespbGetCatalogResponse storespb get catalog response

swagger:model storespbGetCatalogResponse

func (*StorespbGetCatalogResponse) ContextValidate

func (m *StorespbGetCatalogResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this storespb get catalog response based on the context it is used

func (*StorespbGetCatalogResponse) MarshalBinary

func (m *StorespbGetCatalogResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StorespbGetCatalogResponse) UnmarshalBinary

func (m *StorespbGetCatalogResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StorespbGetCatalogResponse) Validate

func (m *StorespbGetCatalogResponse) Validate(formats strfmt.Registry) error

Validate validates this storespb get catalog response

type StorespbGetParticipatingStoresResponse

type StorespbGetParticipatingStoresResponse struct {

	// stores
	Stores []*StorespbStore `json:"stores"`
}

StorespbGetParticipatingStoresResponse storespb get participating stores response

swagger:model storespbGetParticipatingStoresResponse

func (*StorespbGetParticipatingStoresResponse) ContextValidate

ContextValidate validate this storespb get participating stores response based on the context it is used

func (*StorespbGetParticipatingStoresResponse) MarshalBinary

func (m *StorespbGetParticipatingStoresResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StorespbGetParticipatingStoresResponse) UnmarshalBinary

func (m *StorespbGetParticipatingStoresResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StorespbGetParticipatingStoresResponse) Validate

Validate validates this storespb get participating stores response

type StorespbGetProductResponse

type StorespbGetProductResponse struct {

	// product
	Product *StorespbProduct `json:"product,omitempty"`
}

StorespbGetProductResponse storespb get product response

swagger:model storespbGetProductResponse

func (*StorespbGetProductResponse) ContextValidate

func (m *StorespbGetProductResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this storespb get product response based on the context it is used

func (*StorespbGetProductResponse) MarshalBinary

func (m *StorespbGetProductResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StorespbGetProductResponse) UnmarshalBinary

func (m *StorespbGetProductResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StorespbGetProductResponse) Validate

func (m *StorespbGetProductResponse) Validate(formats strfmt.Registry) error

Validate validates this storespb get product response

type StorespbGetStoreResponse

type StorespbGetStoreResponse struct {

	// store
	Store *StorespbStore `json:"store,omitempty"`
}

StorespbGetStoreResponse storespb get store response

swagger:model storespbGetStoreResponse

func (*StorespbGetStoreResponse) ContextValidate

func (m *StorespbGetStoreResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this storespb get store response based on the context it is used

func (*StorespbGetStoreResponse) MarshalBinary

func (m *StorespbGetStoreResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StorespbGetStoreResponse) UnmarshalBinary

func (m *StorespbGetStoreResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StorespbGetStoreResponse) Validate

func (m *StorespbGetStoreResponse) Validate(formats strfmt.Registry) error

Validate validates this storespb get store response

type StorespbGetStoresResponse

type StorespbGetStoresResponse struct {

	// stores
	Stores []*StorespbStore `json:"stores"`
}

StorespbGetStoresResponse storespb get stores response

swagger:model storespbGetStoresResponse

func (*StorespbGetStoresResponse) ContextValidate

func (m *StorespbGetStoresResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this storespb get stores response based on the context it is used

func (*StorespbGetStoresResponse) MarshalBinary

func (m *StorespbGetStoresResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StorespbGetStoresResponse) UnmarshalBinary

func (m *StorespbGetStoresResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StorespbGetStoresResponse) Validate

func (m *StorespbGetStoresResponse) Validate(formats strfmt.Registry) error

Validate validates this storespb get stores response

type StorespbIncreaseProductPriceResponse

type StorespbIncreaseProductPriceResponse interface{}

StorespbIncreaseProductPriceResponse storespb increase product price response

swagger:model storespbIncreaseProductPriceResponse

type StorespbProduct

type StorespbProduct struct {

	// description
	Description string `json:"description,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// price
	Price float64 `json:"price,omitempty"`

	// sku
	Sku string `json:"sku,omitempty"`

	// store Id
	StoreID string `json:"storeId,omitempty"`
}

StorespbProduct storespb product

swagger:model storespbProduct

func (*StorespbProduct) ContextValidate

func (m *StorespbProduct) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this storespb product based on context it is used

func (*StorespbProduct) MarshalBinary

func (m *StorespbProduct) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StorespbProduct) UnmarshalBinary

func (m *StorespbProduct) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StorespbProduct) Validate

func (m *StorespbProduct) Validate(formats strfmt.Registry) error

Validate validates this storespb product

type StorespbRebrandProductResponse

type StorespbRebrandProductResponse interface{}

StorespbRebrandProductResponse storespb rebrand product response

swagger:model storespbRebrandProductResponse

type StorespbRebrandStoreResponse

type StorespbRebrandStoreResponse interface{}

StorespbRebrandStoreResponse storespb rebrand store response

swagger:model storespbRebrandStoreResponse

type StorespbRemoveProductResponse

type StorespbRemoveProductResponse interface{}

StorespbRemoveProductResponse storespb remove product response

swagger:model storespbRemoveProductResponse

type StorespbStore

type StorespbStore struct {

	// id
	ID string `json:"id,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// participating
	Participating bool `json:"participating,omitempty"`
}

StorespbStore storespb store

swagger:model storespbStore

func (*StorespbStore) ContextValidate

func (m *StorespbStore) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this storespb store based on context it is used

func (*StorespbStore) MarshalBinary

func (m *StorespbStore) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StorespbStore) UnmarshalBinary

func (m *StorespbStore) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StorespbStore) Validate

func (m *StorespbStore) Validate(formats strfmt.Registry) error

Validate validates this storespb store

Jump to

Keyboard shortcuts

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