Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Add a new 20k plan
Acho Arnold7d2db1f652eb
diff --git a/api/pkg/entities/user.go b/api/pkg/entities/user.goindex a51959b4..4716425c 100644--- a/api/pkg/entities/user.go+++ b/api/pkg/entities/user.go@@ -20,7 +20,15 @@ func (subscription SubscriptionName) Limit() uint {if subscription == SubscriptionNameProMonthly || subscription == SubscriptionNameProYearly || subscription == SubscriptionNameProLifetime {return 5000}- return 10000++ if subscription == SubscriptionNameUltraMonthly || subscription == SubscriptionNameUltraYearly {+ return 10_000+ }++ if subscription == SubscriptionName20KMonthly || subscription == SubscriptionName20KYearly {+ return 20_000+ }+ return 200}// SubscriptionNameFree represents a free subscription@@ -41,6 +49,12 @@ const SubscriptionNameUltraYearly = SubscriptionName("ultra-yearly")// SubscriptionNameProLifetime represents a pro lifetime subscriptionconst SubscriptionNameProLifetime = SubscriptionName("pro-lifetime")+// SubscriptionName20KMonthly represents a monthly 20k subscription+const SubscriptionName20KMonthly = SubscriptionName("20k-monthly")++// SubscriptionName20KYearly represents a yearly 20k subscription+const SubscriptionName20KYearly = SubscriptionName("20k-yearly")+// User stores information about a usertype User struct {ID UserID `json:"id" gorm:"primaryKey;type:string;" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`diff --git a/api/pkg/services/lemonsqueezy_service.go b/api/pkg/services/lemonsqueezy_service.goindex 5c8b7deb..2c97cc01 100644--- a/api/pkg/services/lemonsqueezy_service.go+++ b/api/pkg/services/lemonsqueezy_service.go@@ -143,11 +143,20 @@ func (service *LemonsqueezyService) subscriptionName(variant string) entities.Su}return entities.SubscriptionNameProYearly}+if strings.Contains(strings.ToLower(variant), "ultra") {if strings.Contains(strings.ToLower(variant), "monthly") {return entities.SubscriptionNameUltraMonthly}return entities.SubscriptionNameUltraYearly}++ if strings.Contains(strings.ToLower(variant), "20k") {+ if strings.Contains(strings.ToLower(variant), "monthly") {+ return entities.SubscriptionName20KMonthly+ }+ return entities.SubscriptionName20KYearly+ }+return entities.SubscriptionNameFree}diff --git a/web/pages/billing/index.vue b/web/pages/billing/index.vueindex 42a40b61..05cf298d 100644--- a/web/pages/billing/index.vue+++ b/web/pages/billing/index.vue@@ -385,6 +385,18 @@ export default Vue.extend({messagesPerMonth: 10000,price: 200,},+ {+ name: '20k - Monthly',+ id: '20k-monthly',+ messagesPerMonth: 20000,+ price: 35,+ },+ {+ name: '20k - Yearly',+ id: '20k-yearly',+ messagesPerMonth: 20000,+ price: 350,+ },{name: 'PRO - Lifetime',id: 'pro-lifetime',