57 lines
1.8 KiB
Go
57 lines
1.8 KiB
Go
package entity
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type PartnerSettings struct {
|
|
PartnerID int64 `json:"partner_id"`
|
|
TaxEnabled bool `json:"tax_enabled"`
|
|
TaxPercentage float64 `json:"tax_percentage"`
|
|
InvoicePrefix string `json:"invoice_prefix"`
|
|
BusinessHours string `json:"business_hours"`
|
|
LogoURL string `json:"logo_url"`
|
|
ThemeColor string `json:"theme_color"`
|
|
ReceiptFooterText string `json:"receipt_footer_text"`
|
|
ReceiptHeaderText string `json:"receipt_header_text"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type PartnerPaymentMethod struct {
|
|
ID int64 `json:"id"`
|
|
PartnerID int64 `json:"partner_id"`
|
|
PaymentMethod string `json:"payment_method"`
|
|
IsEnabled bool `json:"is_enabled"`
|
|
DisplayName string `json:"display_name"`
|
|
DisplayOrder int `json:"display_order"`
|
|
AdditionalInfo string `json:"additional_info"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type PartnerFeatureFlag struct {
|
|
ID int64 `json:"id"`
|
|
PartnerID int64 `json:"partner_id"`
|
|
FeatureKey string `json:"feature_key"`
|
|
IsEnabled bool `json:"is_enabled"`
|
|
Config string `json:"config"` // JSON string
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type BusinessHoursSetting struct {
|
|
Monday DayHours `json:"monday"`
|
|
Tuesday DayHours `json:"tuesday"`
|
|
Wednesday DayHours `json:"wednesday"`
|
|
Thursday DayHours `json:"thursday"`
|
|
Friday DayHours `json:"friday"`
|
|
Saturday DayHours `json:"saturday"`
|
|
Sunday DayHours `json:"sunday"`
|
|
}
|
|
|
|
type DayHours struct {
|
|
Open string `json:"open"` // Format: "HH:MM"
|
|
Close string `json:"close"` // Format: "HH:MM"
|
|
}
|