This commit is contained in:
greeneclipse committed 2026-10-16 00:34:06 +02:00
1 parent 6586722652
commit 1e7c7bbfbb
65 files changed
+1345 -640

No files matched your search

+4 -4
View File
@@ -113,24 +113,24 @@ type CreditPack struct {
Name string `json:"name"`
Description string `json:"description"`
Credits int `json:"credits"`
PriceUSD int `json:"price_usd"` // whole dollars for marketing UI
PriceEUR int `json:"price_eur"` // whole euros for marketing UI
// Approx product×language passes at CreditsPerAIProduct.
AIProducts int `json:"ai_products"`
}
func packFromCredits(id, name, desc string, credits, priceUSD int) CreditPack {
func packFromCredits(id, name, desc string, credits, priceEUR int) CreditPack {
return CreditPack{
ID: id,
Name: name,
Description: desc,
Credits: credits,
PriceUSD: priceUSD,
PriceEUR: priceEUR,
AIProducts: credits / CreditsPerAIProduct,
}
}
// DefaultCreditPacks is the public top-up ladder (credits-first sizing).
// Prices are balanced so small packs are not punitive $/credit vs larger ones,
// Prices are balanced so small packs are not punitive €/credit vs larger ones,
// while staying expensive enough that packs cannot undercut plan upgrades or A1 (~€300).
func DefaultCreditPacks() []CreditPack {
return []CreditPack{