rentease/config/host.go

45 lines
704 B
Go

package config
type Host struct {
InvoicePrefix string
PaymentMethods []string
Platforms []string
Items []HostItem
CustomerSeed int
}
type HostItem struct {
Name string
Price float64
}
func NewHost() *Host {
return &Host{
CustomerSeed: 239,
InvoicePrefix: "VFNI",
PaymentMethods: []string{"Card", "Cash", "Cheque", "Transfer"},
Platforms: []string{"Booking", "AirBnb", "TripAdvisor", "Other"},
Items: []HostItem{
{
Name: "T2",
Price: 59.0,
},
{
Name: "T3",
Price: 80.0,
},
{
Name: "Airport",
Price: 25.0,
},
{
Name: "Port",
Price: 20.0,
},
{
Name: "Taxes",
Price: 1.5,
},
},
}
}