reservation

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReservationServiceEndpoints

func NewReservationServiceEndpoints() []*api.Endpoint

func RegisterReservationServiceHandler

func RegisterReservationServiceHandler(s server.Server, hdlr ReservationServiceHandler, opts ...server.HandlerOption) error

Types

type GetQrcodeResponse

type GetQrcodeResponse struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
}

func (*GetQrcodeResponse) Descriptor

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

func (*GetQrcodeResponse) GetCode

func (m *GetQrcodeResponse) GetCode() string

func (*GetQrcodeResponse) ProtoMessage

func (*GetQrcodeResponse) ProtoMessage()

func (*GetQrcodeResponse) Reset

func (m *GetQrcodeResponse) Reset()

func (*GetQrcodeResponse) String

func (m *GetQrcodeResponse) String() string

func (*GetQrcodeResponse) Validate

func (m *GetQrcodeResponse) Validate() error

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

func (*GetQrcodeResponse) XXX_DiscardUnknown

func (m *GetQrcodeResponse) XXX_DiscardUnknown()

func (*GetQrcodeResponse) XXX_Marshal

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

func (*GetQrcodeResponse) XXX_Merge

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

func (*GetQrcodeResponse) XXX_Size

func (m *GetQrcodeResponse) XXX_Size() int

func (*GetQrcodeResponse) XXX_Unmarshal

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

type GetQrcodeResponseValidationError

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

GetQrcodeResponseValidationError is the validation error returned by GetQrcodeResponse.Validate if the designated constraints aren't met.

func (GetQrcodeResponseValidationError) Cause

Cause function returns cause value.

func (GetQrcodeResponseValidationError) Error

Error satisfies the builtin error interface

func (GetQrcodeResponseValidationError) ErrorName

ErrorName returns error name.

func (GetQrcodeResponseValidationError) Field

Field function returns field value.

func (GetQrcodeResponseValidationError) Key

Key function returns key value.

func (GetQrcodeResponseValidationError) Reason

Reason function returns reason value.

type Request

type Request struct {
	OrderUuid string `protobuf:"bytes,1,opt,name=order_uuid,json=orderUuid,proto3" json:"order_uuid,omitempty"`
}

func (*Request) Descriptor

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

func (*Request) GetOrderUuid

func (m *Request) GetOrderUuid() 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.

type Reservation

type Reservation struct {
	Uuid              string       `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" bson:"uuid"`
	PaymentUuid       string       `protobuf:"bytes,2,opt,name=payment_uuid,json=paymentUuid,proto3" json:"payment_uuid,omitempty" bson:"payment_uuid"`
	ReservationId     int64        `protobuf:"varint,3,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty" bson:"reservation_id"`
	ReservationNumber string       `` /* 138-byte string literal not displayed */
	VoidDate          string       `protobuf:"bytes,5,opt,name=void_date,json=voidDate,proto3" json:"void_date,omitempty" bson:"void_date"`
	ConfirmationDate  string       `` /* 134-byte string literal not displayed */
	SeatsPrice        float64      `protobuf:"fixed64,7,opt,name=seats_price,json=seatsPrice,proto3" json:"seats_price,omitempty" bson:"seats_price"`
	ReservationPrice  float64      `` /* 136-byte string literal not displayed */
	CinemaWpId        int64        `protobuf:"varint,9,opt,name=cinema_wp_id,json=cinemaWpId,proto3" json:"cinema_wp_id,omitempty" bson:"cinema_wp_id"`
	SeanceWpId        int64        `protobuf:"varint,10,opt,name=seance_wp_id,json=seanceWpId,proto3" json:"seance_wp_id,omitempty" bson:"seance_wp_id"`
	Result            int64        `protobuf:"varint,11,opt,name=result,proto3" json:"result,omitempty" bson:"result"`
	ResultText        string       `protobuf:"bytes,12,opt,name=result_text,json=resultText,proto3" json:"result_text,omitempty" bson:"result_text"`
	Seats             []*seat.Seat `protobuf:"bytes,13,rep,name=seats,proto3" json:"seats,omitempty" bson:"seats"`
	Qrcode            string       `protobuf:"bytes,14,opt,name=qrcode,proto3" json:"qrcode,omitempty" bson:"qrcode"`
	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"`
}

func (*Reservation) Descriptor

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

func (*Reservation) GetCinemaWpId

func (m *Reservation) GetCinemaWpId() int64

func (*Reservation) GetConfirmationDate

func (m *Reservation) GetConfirmationDate() string

func (*Reservation) GetCreatedAt

func (m *Reservation) GetCreatedAt() string

func (*Reservation) GetPaymentUuid

func (m *Reservation) GetPaymentUuid() string

func (*Reservation) GetQrcode

func (m *Reservation) GetQrcode() string

func (*Reservation) GetReservationId

func (m *Reservation) GetReservationId() int64

func (*Reservation) GetReservationNumber

func (m *Reservation) GetReservationNumber() string

func (*Reservation) GetReservationPrice

func (m *Reservation) GetReservationPrice() float64

func (*Reservation) GetResult

func (m *Reservation) GetResult() int64

func (*Reservation) GetResultText

func (m *Reservation) GetResultText() string

func (*Reservation) GetSeanceWpId

func (m *Reservation) GetSeanceWpId() int64

func (*Reservation) GetSeats

func (m *Reservation) GetSeats() []*seat.Seat

func (*Reservation) GetSeatsPrice

func (m *Reservation) GetSeatsPrice() float64

func (*Reservation) GetUpdatedAt

func (m *Reservation) GetUpdatedAt() string

func (*Reservation) GetUuid

func (m *Reservation) GetUuid() string

func (*Reservation) GetVoidDate

func (m *Reservation) GetVoidDate() string

func (*Reservation) ProtoMessage

func (*Reservation) ProtoMessage()

func (*Reservation) Reset

func (m *Reservation) Reset()

func (*Reservation) String

func (m *Reservation) String() string

func (*Reservation) Validate

func (m *Reservation) Validate() error

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

func (*Reservation) XXX_DiscardUnknown

func (m *Reservation) XXX_DiscardUnknown()

func (*Reservation) XXX_Marshal

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

func (*Reservation) XXX_Merge

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

func (*Reservation) XXX_Size

func (m *Reservation) XXX_Size() int

func (*Reservation) XXX_Unmarshal

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

type ReservationService

type ReservationService interface {
	Hold(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error)
	Payed(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error)
	Clear(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error)
	DiscountApply(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error)
	GetQrcode(ctx context.Context, in *Request, opts ...client.CallOption) (*GetQrcodeResponse, error)
}

func NewReservationService

func NewReservationService(name string, c client.Client) ReservationService

type ReservationValidationError

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

ReservationValidationError is the validation error returned by Reservation.Validate if the designated constraints aren't met.

func (ReservationValidationError) Cause

Cause function returns cause value.

func (ReservationValidationError) Error

Error satisfies the builtin error interface

func (ReservationValidationError) ErrorName

func (e ReservationValidationError) ErrorName() string

ErrorName returns error name.

func (ReservationValidationError) Field

Field function returns field value.

func (ReservationValidationError) Key

Key function returns key value.

func (ReservationValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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