feat(backend): update admin settings and test infrastructure
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -9,17 +9,17 @@ import (
|
||||
)
|
||||
|
||||
type BusinessSettings struct {
|
||||
BusinessName string `json:"business_name"`
|
||||
BusinessAddress string `json:"business_address"`
|
||||
BusinessPhone *string `json:"business_phone,omitempty"`
|
||||
BusinessEmail *string `json:"business_email,omitempty"`
|
||||
VATRegistrationNumber *string `json:"vat_registration_number,omitempty"`
|
||||
IsVATRegistered bool `json:"is_vat_registered"`
|
||||
DefaultVATRate float64 `json:"default_vat_rate"`
|
||||
CurrencyCode string `json:"currency_code"`
|
||||
WebsiteURL *string `json:"website_url,omitempty"`
|
||||
GiftCardExpiryMonths int `json:"gift_card_expiry_months"`
|
||||
VoucherType string `json:"voucher_type"`
|
||||
BusinessName string `json:"business_name"`
|
||||
BusinessAddress string `json:"business_address"`
|
||||
BusinessPhone *string `json:"business_phone,omitempty"`
|
||||
BusinessEmail *string `json:"business_email,omitempty"`
|
||||
VATRegistrationNumber *string `json:"vat_registration_number,omitempty"`
|
||||
IsVATRegistered bool `json:"is_vat_registered"`
|
||||
DefaultVATRate float64 `json:"default_vat_rate"`
|
||||
CurrencyCode string `json:"currency_code"`
|
||||
WebsiteURL *string `json:"website_url,omitempty"`
|
||||
GiftCardExpiryMonths int `json:"gift_card_expiry_months"`
|
||||
VoucherType string `json:"voucher_type"`
|
||||
}
|
||||
|
||||
func GetBusinessSettings(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user