Documentation
¶
Index ¶
- type AddItemParamsBody
- type BasketspbAddItemResponse
- type BasketspbBasket
- type BasketspbCancelBasketResponse
- type BasketspbCheckoutBasketResponse
- type BasketspbGetBasketResponse
- func (m *BasketspbGetBasketResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *BasketspbGetBasketResponse) MarshalBinary() ([]byte, error)
- func (m *BasketspbGetBasketResponse) UnmarshalBinary(b []byte) error
- func (m *BasketspbGetBasketResponse) Validate(formats strfmt.Registry) error
- type BasketspbItem
- type BasketspbRemoveItemResponse
- type BasketspbStartBasketRequest
- func (m *BasketspbStartBasketRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *BasketspbStartBasketRequest) MarshalBinary() ([]byte, error)
- func (m *BasketspbStartBasketRequest) UnmarshalBinary(b []byte) error
- func (m *BasketspbStartBasketRequest) Validate(formats strfmt.Registry) error
- type BasketspbStartBasketResponse
- func (m *BasketspbStartBasketResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *BasketspbStartBasketResponse) MarshalBinary() ([]byte, error)
- func (m *BasketspbStartBasketResponse) UnmarshalBinary(b []byte) error
- func (m *BasketspbStartBasketResponse) Validate(formats strfmt.Registry) error
- type CheckoutBasketParamsBody
- func (m *CheckoutBasketParamsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CheckoutBasketParamsBody) MarshalBinary() ([]byte, error)
- func (m *CheckoutBasketParamsBody) UnmarshalBinary(b []byte) error
- func (m *CheckoutBasketParamsBody) Validate(formats strfmt.Registry) error
- type ProtobufAny
- type RPCStatus
- type RemoveItemParamsBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddItemParamsBody ¶
type AddItemParamsBody struct { // product Id ProductID string `json:"productId,omitempty"` // quantity Quantity int32 `json:"quantity,omitempty"` }
AddItemParamsBody add item params body
swagger:model addItemParamsBody
func (*AddItemParamsBody) ContextValidate ¶
ContextValidate validates this add item params body based on context it is used
func (*AddItemParamsBody) MarshalBinary ¶
func (m *AddItemParamsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddItemParamsBody) UnmarshalBinary ¶
func (m *AddItemParamsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BasketspbAddItemResponse ¶
type BasketspbAddItemResponse interface{}
BasketspbAddItemResponse basketspb add item response
swagger:model basketspbAddItemResponse
type BasketspbBasket ¶
type BasketspbBasket struct { // id ID string `json:"id,omitempty"` // items Items []*BasketspbItem `json:"items"` }
BasketspbBasket basketspb basket
swagger:model basketspbBasket
func (*BasketspbBasket) ContextValidate ¶
ContextValidate validate this basketspb basket based on the context it is used
func (*BasketspbBasket) MarshalBinary ¶
func (m *BasketspbBasket) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BasketspbBasket) UnmarshalBinary ¶
func (m *BasketspbBasket) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BasketspbCancelBasketResponse ¶
type BasketspbCancelBasketResponse interface{}
BasketspbCancelBasketResponse basketspb cancel basket response
swagger:model basketspbCancelBasketResponse
type BasketspbCheckoutBasketResponse ¶
type BasketspbCheckoutBasketResponse interface{}
BasketspbCheckoutBasketResponse basketspb checkout basket response
swagger:model basketspbCheckoutBasketResponse
type BasketspbGetBasketResponse ¶
type BasketspbGetBasketResponse struct { // basket Basket *BasketspbBasket `json:"basket,omitempty"` }
BasketspbGetBasketResponse basketspb get basket response
swagger:model basketspbGetBasketResponse
func (*BasketspbGetBasketResponse) ContextValidate ¶
func (m *BasketspbGetBasketResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this basketspb get basket response based on the context it is used
func (*BasketspbGetBasketResponse) MarshalBinary ¶
func (m *BasketspbGetBasketResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BasketspbGetBasketResponse) UnmarshalBinary ¶
func (m *BasketspbGetBasketResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BasketspbItem ¶
type BasketspbItem struct { // product Id ProductID string `json:"productId,omitempty"` // product name ProductName string `json:"productName,omitempty"` // product price ProductPrice float64 `json:"productPrice,omitempty"` // quantity Quantity int32 `json:"quantity,omitempty"` // store Id StoreID string `json:"storeId,omitempty"` // store name StoreName string `json:"storeName,omitempty"` }
BasketspbItem basketspb item
swagger:model basketspbItem
func (*BasketspbItem) ContextValidate ¶
ContextValidate validates this basketspb item based on context it is used
func (*BasketspbItem) MarshalBinary ¶
func (m *BasketspbItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BasketspbItem) UnmarshalBinary ¶
func (m *BasketspbItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BasketspbRemoveItemResponse ¶
type BasketspbRemoveItemResponse interface{}
BasketspbRemoveItemResponse basketspb remove item response
swagger:model basketspbRemoveItemResponse
type BasketspbStartBasketRequest ¶
type BasketspbStartBasketRequest struct { // customer Id CustomerID string `json:"customerId,omitempty"` }
BasketspbStartBasketRequest basketspb start basket request
swagger:model basketspbStartBasketRequest
func (*BasketspbStartBasketRequest) ContextValidate ¶
func (m *BasketspbStartBasketRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this basketspb start basket request based on context it is used
func (*BasketspbStartBasketRequest) MarshalBinary ¶
func (m *BasketspbStartBasketRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BasketspbStartBasketRequest) UnmarshalBinary ¶
func (m *BasketspbStartBasketRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BasketspbStartBasketResponse ¶
type BasketspbStartBasketResponse struct { // id ID string `json:"id,omitempty"` }
BasketspbStartBasketResponse basketspb start basket response
swagger:model basketspbStartBasketResponse
func (*BasketspbStartBasketResponse) ContextValidate ¶
func (m *BasketspbStartBasketResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this basketspb start basket response based on context it is used
func (*BasketspbStartBasketResponse) MarshalBinary ¶
func (m *BasketspbStartBasketResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BasketspbStartBasketResponse) UnmarshalBinary ¶
func (m *BasketspbStartBasketResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CheckoutBasketParamsBody ¶
type CheckoutBasketParamsBody struct { // payment Id PaymentID string `json:"paymentId,omitempty"` }
CheckoutBasketParamsBody checkout basket params body
swagger:model checkoutBasketParamsBody
func (*CheckoutBasketParamsBody) ContextValidate ¶
func (m *CheckoutBasketParamsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this checkout basket params body based on context it is used
func (*CheckoutBasketParamsBody) MarshalBinary ¶
func (m *CheckoutBasketParamsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CheckoutBasketParamsBody) UnmarshalBinary ¶
func (m *CheckoutBasketParamsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProtobufAny ¶
type ProtobufAny struct { // at type AtType string `json:"@type,omitempty"` }
ProtobufAny protobuf any
swagger:model protobufAny
func (*ProtobufAny) ContextValidate ¶
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
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 ¶
ContextValidate validate this rpc status based on the context it is used
func (*RPCStatus) MarshalBinary ¶
MarshalBinary interface implementation
func (*RPCStatus) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RemoveItemParamsBody ¶
type RemoveItemParamsBody struct { // product Id ProductID string `json:"productId,omitempty"` // quantity Quantity int32 `json:"quantity,omitempty"` }
RemoveItemParamsBody remove item params body
swagger:model removeItemParamsBody
func (*RemoveItemParamsBody) ContextValidate ¶
ContextValidate validates this remove item params body based on context it is used
func (*RemoveItemParamsBody) MarshalBinary ¶
func (m *RemoveItemParamsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RemoveItemParamsBody) UnmarshalBinary ¶
func (m *RemoveItemParamsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- add_item_params_body.go
- basketspb_add_item_response.go
- basketspb_basket.go
- basketspb_cancel_basket_response.go
- basketspb_checkout_basket_response.go
- basketspb_get_basket_response.go
- basketspb_item.go
- basketspb_remove_item_response.go
- basketspb_start_basket_request.go
- basketspb_start_basket_response.go
- checkout_basket_params_body.go
- protobuf_any.go
- remove_item_params_body.go
- rpc_status.go