initial commit

This commit is contained in:
2025-05-23 09:44:40 +02:00
commit 90abfe05b2
7 changed files with 168 additions and 0 deletions

19
pricing/pricing.go Normal file
View File

@@ -0,0 +1,19 @@
package pricing
import "fmt"
type PricingService interface {
Prices(vars map[string]any) (map[string]Price, error)
}
func NewPricingService(implementation string) (PricingService, error) {
switch implementation {
case "mms43":
return NewMMS43PricingService()
case "pfm63":
return NewPFM63PricingService()
default:
return nil, fmt.Errorf("pricing implementation %v is not supported", implementation)
}
}