reservation

package
v2.21.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 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 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"`
	ReservationId     int64        `protobuf:"varint,2,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,4,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,6,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,8,opt,name=cinema_wp_id,json=cinemaWpId,proto3" json:"cinema_wp_id,omitempty" bson:"cinema_wp_id"`
	SeanceWpId        int64        `protobuf:"varint,9,opt,name=seance_wp_id,json=seanceWpId,proto3" json:"seance_wp_id,omitempty" bson:"seance_wp_id"`
	Result            int64        `protobuf:"varint,10,opt,name=result,proto3" json:"result,omitempty" bson:"result"`
	ResultText        string       `protobuf:"bytes,11,opt,name=result_text,json=resultText,proto3" json:"result_text,omitempty" bson:"result_text"`
	Seats             []*seat.Seat `protobuf:"bytes,12,rep,name=seats,proto3" json:"seats,omitempty" bson:"seats"`
	Qrcode            string       `protobuf:"bytes,13,opt,name=qrcode,proto3" json:"qrcode,omitempty" bson:"qrcode"`
	CreatedAt         string       `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"`
	UpdatedAt         string       `protobuf:"bytes,15,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) 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)
}

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