1
0
Fork 0
This repository has been archived on 2025-08-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-backoffice-v2-api/pkg/training/price.go
2024-05-04 18:21:45 +02:00

22 lines
484 B
Go

package training
// type Price float32
type TrainingPrice struct {
Currency string `json:"currency"`
Amount float64 `json:"amount"`
Type PriceType `json:"type"` // open | corporate
}
type PriceType string
var (
PriceTypes = []PriceType{OpenPrice, CorporatePrice, StudentPrice, GovernmentPrice}
)
const (
OpenPrice PriceType = "OPEN"
CorporatePrice PriceType = "CORPORATE"
StudentPrice PriceType = "STUDENT"
GovernmentPrice PriceType = "GOVERNMENT"
)