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 OrderingpbCancelOrderResponse

type OrderingpbCancelOrderResponse interface{}

OrderingpbCancelOrderResponse orderingpb cancel order response

swagger:model orderingpbCancelOrderResponse

type OrderingpbCreateOrderRequest

type OrderingpbCreateOrderRequest struct {

	// customer Id
	CustomerID string `json:"customerId,omitempty"`

	// items
	Items []*OrderingpbItem `json:"items"`

	// payment Id
	PaymentID string `json:"paymentId,omitempty"`
}

OrderingpbCreateOrderRequest orderingpb create order request

swagger:model orderingpbCreateOrderRequest

func (*OrderingpbCreateOrderRequest) ContextValidate

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

ContextValidate validate this orderingpb create order request based on the context it is used

func (*OrderingpbCreateOrderRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*OrderingpbCreateOrderRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrderingpbCreateOrderRequest) Validate

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

Validate validates this orderingpb create order request

type OrderingpbCreateOrderResponse

type OrderingpbCreateOrderResponse struct {

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

OrderingpbCreateOrderResponse orderingpb create order response

swagger:model orderingpbCreateOrderResponse

func (*OrderingpbCreateOrderResponse) ContextValidate

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

ContextValidate validates this orderingpb create order response based on context it is used

func (*OrderingpbCreateOrderResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*OrderingpbCreateOrderResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrderingpbCreateOrderResponse) Validate

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

Validate validates this orderingpb create order response

type OrderingpbGetOrderResponse

type OrderingpbGetOrderResponse struct {

	// order
	Order *OrderingpbOrder `json:"order,omitempty"`
}

OrderingpbGetOrderResponse orderingpb get order response

swagger:model orderingpbGetOrderResponse

func (*OrderingpbGetOrderResponse) ContextValidate

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

ContextValidate validate this orderingpb get order response based on the context it is used

func (*OrderingpbGetOrderResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*OrderingpbGetOrderResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrderingpbGetOrderResponse) Validate

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

Validate validates this orderingpb get order response

type OrderingpbItem

type OrderingpbItem struct {

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

	// product Id
	ProductID string `json:"productId,omitempty"`

	// product name
	ProductName string `json:"productName,omitempty"`

	// quantity
	Quantity int32 `json:"quantity,omitempty"`

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

	// store name
	StoreName string `json:"storeName,omitempty"`
}

OrderingpbItem orderingpb item

swagger:model orderingpbItem

func (*OrderingpbItem) ContextValidate

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

ContextValidate validates this orderingpb item based on context it is used

func (*OrderingpbItem) MarshalBinary

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

MarshalBinary interface implementation

func (*OrderingpbItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrderingpbItem) Validate

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

Validate validates this orderingpb item

type OrderingpbOrder

type OrderingpbOrder struct {

	// customer Id
	CustomerID string `json:"customerId,omitempty"`

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

	// items
	Items []*OrderingpbItem `json:"items"`

	// payment Id
	PaymentID string `json:"paymentId,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

OrderingpbOrder orderingpb order

swagger:model orderingpbOrder

func (*OrderingpbOrder) ContextValidate

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

ContextValidate validate this orderingpb order based on the context it is used

func (*OrderingpbOrder) MarshalBinary

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

MarshalBinary interface implementation

func (*OrderingpbOrder) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrderingpbOrder) Validate

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

Validate validates this orderingpb order

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

Jump to

Keyboard shortcuts

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