order

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOrderServiceEndpoints

func NewOrderServiceEndpoints() []*api.Endpoint

func RegisterOrderServiceHandler

func RegisterOrderServiceHandler(s server.Server, hdlr OrderServiceHandler, opts ...server.HandlerOption) error

Types

type GetResponse

type GetResponse struct {
	Data *Order `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*GetResponse) Descriptor

func (*GetResponse) Descriptor() ([]byte, []int)

func (*GetResponse) GetData

func (m *GetResponse) GetData() *Order

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) Reset

func (m *GetResponse) Reset()

func (*GetResponse) String

func (m *GetResponse) String() string

func (*GetResponse) Validate

func (m *GetResponse) Validate() error

Validate checks the field values on GetResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*GetResponse) XXX_DiscardUnknown

func (m *GetResponse) XXX_DiscardUnknown()

func (*GetResponse) XXX_Marshal

func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetResponse) XXX_Merge

func (m *GetResponse) XXX_Merge(src proto.Message)

func (*GetResponse) XXX_Size

func (m *GetResponse) XXX_Size() int

func (*GetResponse) XXX_Unmarshal

func (m *GetResponse) XXX_Unmarshal(b []byte) error

type GetResponseValidationError

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

GetResponseValidationError is the validation error returned by GetResponse.Validate if the designated constraints aren't met.

func (GetResponseValidationError) Cause

Cause function returns cause value.

func (GetResponseValidationError) Error

Error satisfies the builtin error interface

func (GetResponseValidationError) ErrorName

func (e GetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetResponseValidationError) Field

Field function returns field value.

func (GetResponseValidationError) Key

Key function returns key value.

func (GetResponseValidationError) Reason

Reason function returns reason value.

type Order

type Order struct {
	Uuid      string             `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" bson:"uuid"`
	Type      string             `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty" bson:"type"`
	Contract  *Order_Contract    `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty" bson:"contract"`
	Detail    []byte             `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty" bson:"detail"`
	Customer  *Order_Customer    `protobuf:"bytes,5,opt,name=customer,proto3" json:"customer,omitempty" bson:"customer"`
	Items     *Order_Item        `protobuf:"bytes,6,opt,name=items,proto3" json:"items,omitempty" bson:"items"`
	Payment   *payment.Payment   `protobuf:"bytes,7,opt,name=payment,proto3" json:"payment,omitempty" bson:"payment"`
	Status    map[string]string  `` /* 167-byte string literal not displayed */
	Amount    map[string]float64 `` /* 169-byte string literal not displayed */
	CreatedAt string             `protobuf:"bytes,1001,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"`
	UpdatedAt string             `protobuf:"bytes,1002,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at"`
	Details   *types.Struct      `protobuf:"bytes,10,opt,name=details,proto3" json:"details,omitempty"`
}

func (*Order) Descriptor

func (*Order) Descriptor() ([]byte, []int)

func (*Order) GetAmount

func (m *Order) GetAmount() map[string]float64

func (*Order) GetContract

func (m *Order) GetContract() *Order_Contract

func (*Order) GetCreatedAt

func (m *Order) GetCreatedAt() string

func (*Order) GetCustomer

func (m *Order) GetCustomer() *Order_Customer

func (*Order) GetDetail

func (m *Order) GetDetail() []byte

func (*Order) GetDetails

func (m *Order) GetDetails() *types.Struct

func (*Order) GetItems

func (m *Order) GetItems() *Order_Item

func (*Order) GetPayment

func (m *Order) GetPayment() *payment.Payment

func (*Order) GetStatus

func (m *Order) GetStatus() map[string]string

func (*Order) GetType

func (m *Order) GetType() string

func (*Order) GetUpdatedAt

func (m *Order) GetUpdatedAt() string

func (*Order) GetUuid

func (m *Order) GetUuid() string

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) Reset

func (m *Order) Reset()

func (*Order) String

func (m *Order) String() string

func (*Order) Validate

func (m *Order) Validate() error

Validate checks the field values on Order with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Order) XXX_DiscardUnknown

func (m *Order) XXX_DiscardUnknown()

func (*Order) XXX_Marshal

func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Order) XXX_Merge

func (m *Order) XXX_Merge(src proto.Message)

func (*Order) XXX_Size

func (m *Order) XXX_Size() int

func (*Order) XXX_Unmarshal

func (m *Order) XXX_Unmarshal(b []byte) error

type OrderService

type OrderService interface {
	Get(ctx context.Context, in *Request, opts ...client.CallOption) (*GetResponse, error)
	Paginate(ctx context.Context, in *PaginateRequest, opts ...client.CallOption) (*PaginateResponse, error)
}

func NewOrderService

func NewOrderService(name string, c client.Client) OrderService

type OrderServiceHandler

type OrderServiceHandler interface {
	Get(context.Context, *Request, *GetResponse) error
	Paginate(context.Context, *PaginateRequest, *PaginateResponse) error
}

type OrderValidationError

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

OrderValidationError is the validation error returned by Order.Validate if the designated constraints aren't met.

func (OrderValidationError) Cause

func (e OrderValidationError) Cause() error

Cause function returns cause value.

func (OrderValidationError) Error

func (e OrderValidationError) Error() string

Error satisfies the builtin error interface

func (OrderValidationError) ErrorName

func (e OrderValidationError) ErrorName() string

ErrorName returns error name.

func (OrderValidationError) Field

func (e OrderValidationError) Field() string

Field function returns field value.

func (OrderValidationError) Key

func (e OrderValidationError) Key() bool

Key function returns key value.

func (OrderValidationError) Reason

func (e OrderValidationError) Reason() string

Reason function returns reason value.

type Order_Contract

type Order_Contract struct {
	Uuid       string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" bson:"uuid"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" bson:"name"`
	ContractId string `protobuf:"bytes,3,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty" bson:"contract_id"`
}

func (*Order_Contract) Descriptor

func (*Order_Contract) Descriptor() ([]byte, []int)

func (*Order_Contract) GetContractId

func (m *Order_Contract) GetContractId() string

func (*Order_Contract) GetName

func (m *Order_Contract) GetName() string

func (*Order_Contract) GetUuid

func (m *Order_Contract) GetUuid() string

func (*Order_Contract) ProtoMessage

func (*Order_Contract) ProtoMessage()

func (*Order_Contract) Reset

func (m *Order_Contract) Reset()

func (*Order_Contract) String

func (m *Order_Contract) String() string

func (*Order_Contract) Validate

func (m *Order_Contract) Validate() error

Validate checks the field values on Order_Contract with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Order_Contract) XXX_DiscardUnknown

func (m *Order_Contract) XXX_DiscardUnknown()

func (*Order_Contract) XXX_Marshal

func (m *Order_Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Order_Contract) XXX_Merge

func (m *Order_Contract) XXX_Merge(src proto.Message)

func (*Order_Contract) XXX_Size

func (m *Order_Contract) XXX_Size() int

func (*Order_Contract) XXX_Unmarshal

func (m *Order_Contract) XXX_Unmarshal(b []byte) error

type Order_ContractValidationError

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

Order_ContractValidationError is the validation error returned by Order_Contract.Validate if the designated constraints aren't met.

func (Order_ContractValidationError) Cause

Cause function returns cause value.

func (Order_ContractValidationError) Error

Error satisfies the builtin error interface

func (Order_ContractValidationError) ErrorName

func (e Order_ContractValidationError) ErrorName() string

ErrorName returns error name.

func (Order_ContractValidationError) Field

Field function returns field value.

func (Order_ContractValidationError) Key

Key function returns key value.

func (Order_ContractValidationError) Reason

Reason function returns reason value.

type Order_Customer

type Order_Customer struct {
	Uuid  string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" bson:"uuid"`
	Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty" bson:"phone"`
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty" bson:"email"`
}

func (*Order_Customer) Descriptor

func (*Order_Customer) Descriptor() ([]byte, []int)

func (*Order_Customer) GetEmail

func (m *Order_Customer) GetEmail() string

func (*Order_Customer) GetPhone

func (m *Order_Customer) GetPhone() string

func (*Order_Customer) GetUuid

func (m *Order_Customer) GetUuid() string

func (*Order_Customer) ProtoMessage

func (*Order_Customer) ProtoMessage()

func (*Order_Customer) Reset

func (m *Order_Customer) Reset()

func (*Order_Customer) String

func (m *Order_Customer) String() string

func (*Order_Customer) Validate

func (m *Order_Customer) Validate() error

Validate checks the field values on Order_Customer with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Order_Customer) XXX_DiscardUnknown

func (m *Order_Customer) XXX_DiscardUnknown()

func (*Order_Customer) XXX_Marshal

func (m *Order_Customer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Order_Customer) XXX_Merge

func (m *Order_Customer) XXX_Merge(src proto.Message)

func (*Order_Customer) XXX_Size

func (m *Order_Customer) XXX_Size() int

func (*Order_Customer) XXX_Unmarshal

func (m *Order_Customer) XXX_Unmarshal(b []byte) error

type Order_CustomerValidationError

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

Order_CustomerValidationError is the validation error returned by Order_Customer.Validate if the designated constraints aren't met.

func (Order_CustomerValidationError) Cause

Cause function returns cause value.

func (Order_CustomerValidationError) Error

Error satisfies the builtin error interface

func (Order_CustomerValidationError) ErrorName

func (e Order_CustomerValidationError) ErrorName() string

ErrorName returns error name.

func (Order_CustomerValidationError) Field

Field function returns field value.

func (Order_CustomerValidationError) Key

Key function returns key value.

func (Order_CustomerValidationError) Reason

Reason function returns reason value.

type Order_Item

type Order_Item struct {
	Reservation *reservation.Reservation `protobuf:"bytes,1,opt,name=reservation,proto3" json:"reservation,omitempty" bson:"reservation"`
}

func (*Order_Item) Descriptor

func (*Order_Item) Descriptor() ([]byte, []int)

func (*Order_Item) GetReservation

func (m *Order_Item) GetReservation() *reservation.Reservation

func (*Order_Item) ProtoMessage

func (*Order_Item) ProtoMessage()

func (*Order_Item) Reset

func (m *Order_Item) Reset()

func (*Order_Item) String

func (m *Order_Item) String() string

func (*Order_Item) Validate

func (m *Order_Item) Validate() error

Validate checks the field values on Order_Item with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Order_Item) XXX_DiscardUnknown

func (m *Order_Item) XXX_DiscardUnknown()

func (*Order_Item) XXX_Marshal

func (m *Order_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Order_Item) XXX_Merge

func (m *Order_Item) XXX_Merge(src proto.Message)

func (*Order_Item) XXX_Size

func (m *Order_Item) XXX_Size() int

func (*Order_Item) XXX_Unmarshal

func (m *Order_Item) XXX_Unmarshal(b []byte) error

type Order_ItemValidationError

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

Order_ItemValidationError is the validation error returned by Order_Item.Validate if the designated constraints aren't met.

func (Order_ItemValidationError) Cause

func (e Order_ItemValidationError) Cause() error

Cause function returns cause value.

func (Order_ItemValidationError) Error

Error satisfies the builtin error interface

func (Order_ItemValidationError) ErrorName

func (e Order_ItemValidationError) ErrorName() string

ErrorName returns error name.

func (Order_ItemValidationError) Field

Field function returns field value.

func (Order_ItemValidationError) Key

Key function returns key value.

func (Order_ItemValidationError) Reason

func (e Order_ItemValidationError) Reason() string

Reason function returns reason value.

type PaginateRequest

type PaginateRequest struct {
	Skip   int64                   `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"`
	Limit  int64                   `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Sort   string                  `protobuf:"bytes,3,opt,name=sort,proto3" json:"sort,omitempty"`
	Filter *PaginateRequest_Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
}

func (*PaginateRequest) Descriptor

func (*PaginateRequest) Descriptor() ([]byte, []int)

func (*PaginateRequest) GetFilter

func (m *PaginateRequest) GetFilter() *PaginateRequest_Filter

func (*PaginateRequest) GetLimit

func (m *PaginateRequest) GetLimit() int64

func (*PaginateRequest) GetSkip

func (m *PaginateRequest) GetSkip() int64

func (*PaginateRequest) GetSort

func (m *PaginateRequest) GetSort() string

func (*PaginateRequest) ProtoMessage

func (*PaginateRequest) ProtoMessage()

func (*PaginateRequest) Reset

func (m *PaginateRequest) Reset()

func (*PaginateRequest) String

func (m *PaginateRequest) String() string

func (*PaginateRequest) Validate

func (m *PaginateRequest) Validate() error

Validate checks the field values on PaginateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*PaginateRequest) XXX_DiscardUnknown

func (m *PaginateRequest) XXX_DiscardUnknown()

func (*PaginateRequest) XXX_Marshal

func (m *PaginateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PaginateRequest) XXX_Merge

func (m *PaginateRequest) XXX_Merge(src proto.Message)

func (*PaginateRequest) XXX_Size

func (m *PaginateRequest) XXX_Size() int

func (*PaginateRequest) XXX_Unmarshal

func (m *PaginateRequest) XXX_Unmarshal(b []byte) error

type PaginateRequestValidationError

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

PaginateRequestValidationError is the validation error returned by PaginateRequest.Validate if the designated constraints aren't met.

func (PaginateRequestValidationError) Cause

Cause function returns cause value.

func (PaginateRequestValidationError) Error

Error satisfies the builtin error interface

func (PaginateRequestValidationError) ErrorName

func (e PaginateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PaginateRequestValidationError) Field

Field function returns field value.

func (PaginateRequestValidationError) Key

Key function returns key value.

func (PaginateRequestValidationError) Reason

Reason function returns reason value.

type PaginateRequest_Filter

type PaginateRequest_Filter struct {
	Uuid              string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	ReservationNumber string `protobuf:"bytes,2,opt,name=reservation_number,json=reservationNumber,proto3" json:"reservation_number,omitempty"`
	ExternalId        string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	SortOrder         string `protobuf:"bytes,4,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"`
}

func (*PaginateRequest_Filter) Descriptor

func (*PaginateRequest_Filter) Descriptor() ([]byte, []int)

func (*PaginateRequest_Filter) GetExternalId

func (m *PaginateRequest_Filter) GetExternalId() string

func (*PaginateRequest_Filter) GetReservationNumber

func (m *PaginateRequest_Filter) GetReservationNumber() string

func (*PaginateRequest_Filter) GetSortOrder

func (m *PaginateRequest_Filter) GetSortOrder() string

func (*PaginateRequest_Filter) GetUuid

func (m *PaginateRequest_Filter) GetUuid() string

func (*PaginateRequest_Filter) ProtoMessage

func (*PaginateRequest_Filter) ProtoMessage()

func (*PaginateRequest_Filter) Reset

func (m *PaginateRequest_Filter) Reset()

func (*PaginateRequest_Filter) String

func (m *PaginateRequest_Filter) String() string

func (*PaginateRequest_Filter) Validate

func (m *PaginateRequest_Filter) Validate() error

Validate checks the field values on PaginateRequest_Filter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*PaginateRequest_Filter) XXX_DiscardUnknown

func (m *PaginateRequest_Filter) XXX_DiscardUnknown()

func (*PaginateRequest_Filter) XXX_Marshal

func (m *PaginateRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PaginateRequest_Filter) XXX_Merge

func (m *PaginateRequest_Filter) XXX_Merge(src proto.Message)

func (*PaginateRequest_Filter) XXX_Size

func (m *PaginateRequest_Filter) XXX_Size() int

func (*PaginateRequest_Filter) XXX_Unmarshal

func (m *PaginateRequest_Filter) XXX_Unmarshal(b []byte) error

type PaginateRequest_FilterValidationError

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

PaginateRequest_FilterValidationError is the validation error returned by PaginateRequest_Filter.Validate if the designated constraints aren't met.

func (PaginateRequest_FilterValidationError) Cause

Cause function returns cause value.

func (PaginateRequest_FilterValidationError) Error

Error satisfies the builtin error interface

func (PaginateRequest_FilterValidationError) ErrorName

ErrorName returns error name.

func (PaginateRequest_FilterValidationError) Field

Field function returns field value.

func (PaginateRequest_FilterValidationError) Key

Key function returns key value.

func (PaginateRequest_FilterValidationError) Reason

Reason function returns reason value.

type PaginateResponse

type PaginateResponse struct {
	Data []*Order `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
}

func (*PaginateResponse) Descriptor

func (*PaginateResponse) Descriptor() ([]byte, []int)

func (*PaginateResponse) GetData

func (m *PaginateResponse) GetData() []*Order

func (*PaginateResponse) ProtoMessage

func (*PaginateResponse) ProtoMessage()

func (*PaginateResponse) Reset

func (m *PaginateResponse) Reset()

func (*PaginateResponse) String

func (m *PaginateResponse) String() string

func (*PaginateResponse) Validate

func (m *PaginateResponse) Validate() error

Validate checks the field values on PaginateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*PaginateResponse) XXX_DiscardUnknown

func (m *PaginateResponse) XXX_DiscardUnknown()

func (*PaginateResponse) XXX_Marshal

func (m *PaginateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PaginateResponse) XXX_Merge

func (m *PaginateResponse) XXX_Merge(src proto.Message)

func (*PaginateResponse) XXX_Size

func (m *PaginateResponse) XXX_Size() int

func (*PaginateResponse) XXX_Unmarshal

func (m *PaginateResponse) XXX_Unmarshal(b []byte) error

type PaginateResponseValidationError

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

PaginateResponseValidationError is the validation error returned by PaginateResponse.Validate if the designated constraints aren't met.

func (PaginateResponseValidationError) Cause

Cause function returns cause value.

func (PaginateResponseValidationError) Error

Error satisfies the builtin error interface

func (PaginateResponseValidationError) ErrorName

ErrorName returns error name.

func (PaginateResponseValidationError) Field

Field function returns field value.

func (PaginateResponseValidationError) Key

Key function returns key value.

func (PaginateResponseValidationError) Reason

Reason function returns reason value.

type Request

type Request struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}

func (*Request) Descriptor

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetUuid

func (m *Request) GetUuid() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) Validate

func (m *Request) Validate() error

Validate checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type RequestValidationError

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

RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.

func (RequestValidationError) Cause

func (e RequestValidationError) Cause() error

Cause function returns cause value.

func (RequestValidationError) Error

func (e RequestValidationError) Error() string

Error satisfies the builtin error interface

func (RequestValidationError) ErrorName

func (e RequestValidationError) ErrorName() string

ErrorName returns error name.

func (RequestValidationError) Field

func (e RequestValidationError) Field() string

Field function returns field value.

func (RequestValidationError) Key

func (e RequestValidationError) Key() bool

Key function returns key value.

func (RequestValidationError) Reason

func (e RequestValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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