Documentation ¶
Index ¶
- type BookingModel
- func (b *BookingModel) GetLockFileNames() []string
- func (b *BookingModel) GetSchema() *gitdb.Schema
- func (b *BookingModel) IsLockable() bool
- func (b *BookingModel) NumberOfHours() int
- func (b *BookingModel) NumberOfNights() int
- func (b *BookingModel) ShouldEncrypt() bool
- func (b *BookingModel) Validate() error
- type PaymentMode
- type RoomType
- type Status
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 AutoId int64 }
func NewBookingModel ¶
func NewBookingModel() *BookingModel
func (*BookingModel) GetLockFileNames ¶
func (b *BookingModel) GetLockFileNames() []string
GetLockFileNames example Todo add comment and date expansion function
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
type PaymentMode ¶
type PaymentMode string
const ( Daily PaymentMode = "daily" Hourly PaymentMode = "hourly" )
Click to show internal directories.
Click to hide internal directories.