booking

package
v2.0.0-...-d8030fd Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookingModel

type BookingModel struct {
	//extends..
	gitdb.TimeStampedModel
	Type         RoomType
	CheckInDate  time.Time
	CheckOutDate time.Time
	CheckedOutAt time.Time
	Guests       int
	CardsIssued  int
	Status       Status
	PaymentMode  PaymentMode
	RoomPrice    float64
	RoomId       string
	CustomerId   string
	UserId       string
	NextOfKin    string
	Purpose      string
}

func NewBookingModel

func NewBookingModel() *BookingModel

func (*BookingModel) GetLockFileNames

func (b *BookingModel) GetLockFileNames() []string

GetLockFileNames example Todo add comment and date expansion function

func (*BookingModel) GetSchema

func (b *BookingModel) GetSchema() *gitdb.Schema

GetSchema example

func (*BookingModel) IsLockable

func (b *BookingModel) IsLockable() bool

IsLockable example

func (*BookingModel) NumberOfHours

func (b *BookingModel) NumberOfHours() int

func (*BookingModel) NumberOfNights

func (b *BookingModel) NumberOfNights() int

func (*BookingModel) ShouldEncrypt

func (b *BookingModel) ShouldEncrypt() bool

ShouldEncrypt example

func (*BookingModel) Validate

func (b *BookingModel) Validate() error

Validate example

type PaymentMode

type PaymentMode string
const (
	Daily  PaymentMode = "daily"
	Hourly PaymentMode = "hourly"
)

type RoomType

type RoomType string
const (
	Room RoomType = "room"
	Hall RoomType = "hall"
)

type Status

type Status string
const (
	Cancelled  Status = "cancelled"
	CheckedOut Status = "checkedout"
	CheckedIn  Status = "checkedin"
	Booked     Status = "booked"
)

Jump to

Keyboard shortcuts

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