Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusCreated = 10 StatusWaitingForPayment = 100 StatusWaitingForPaymentConfirmation = 105 StatusWaitingForOwnerConfirmation = 110 StatusConfirmed = 120 StatusActive = 150 StatusFinished = 200 StatusCancelled = 500 StatusCancelledBySystem = 505 StatusRejected = 510 )
booking status list
Variables ¶
View Source
var (
ErrInvalidType = errors.New("booking: type is not valid")
)
list of booking errors
Functions ¶
This section is empty.
Types ¶
type Booking ¶
type Booking struct { ID string PropertyID string BookingType Type Price int64 Deposit int64 Status Status // mark that booking really happens IsPaid bool // a hack, so owner can see booking attempt IsCreatedByOwner bool CreatedAt time.Time UpdatedAt time.Time CreatedBy int64 IsTest bool }
Booking record attempt of booking data in attempt is dirty because its mixed from attempt to booking
Click to show internal directories.
Click to hide internal directories.