File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,10 +21,12 @@ func (subscription SubscriptionName) Limit() uint {
2121 return 10_000
2222 case SubscriptionName20KMonthly , SubscriptionName20KYearly :
2323 return 20_000
24- case SubscriptionName50KMonthly , SubscriptionName50KYearly :
24+ case SubscriptionName50KMonthly :
2525 return 50_000
26- case SubscriptionName100KMonthly , SubscriptionName100KYearly :
26+ case SubscriptionName100KMonthly :
2727 return 100_000
28+ case SubscriptionName200KMonthly :
29+ return 200_000
2830 default :
2931 return 200
3032 }
@@ -57,15 +59,12 @@ const SubscriptionName100KMonthly = SubscriptionName("100k-monthly")
5759// SubscriptionName50KMonthly represents a monthly 50k subscription
5860const SubscriptionName50KMonthly = SubscriptionName ("50k-monthly" )
5961
62+ // SubscriptionName200KMonthly represents a monthly 200k subscription
63+ const SubscriptionName200KMonthly = SubscriptionName ("200k-monthly" )
64+
6065// SubscriptionName20KYearly represents a yearly 20k subscription
6166const SubscriptionName20KYearly = SubscriptionName ("20k-yearly" )
6267
63- // SubscriptionName100KYearly represents a yearly 100k subscription
64- const SubscriptionName100KYearly = SubscriptionName ("100k-yearly" )
65-
66- // SubscriptionName50KYearly represents a yearly 50k subscription
67- const SubscriptionName50KYearly = SubscriptionName ("50k-yearly" )
68-
6968// User stores information about a user
7069type User struct {
7170 ID UserID `json:"id" gorm:"primaryKey;type:string;" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
Original file line number Diff line number Diff line change @@ -197,14 +197,18 @@ func (service *LemonsqueezyService) subscriptionName(variant string) entities.Su
197197 if strings .Contains (strings .ToLower (variant ), "monthly" ) {
198198 return entities .SubscriptionName100KMonthly
199199 }
200- return entities .SubscriptionName100KYearly
201200 }
202201
203202 if strings .Contains (strings .ToLower (variant ), "50k" ) {
204203 if strings .Contains (strings .ToLower (variant ), "monthly" ) {
205204 return entities .SubscriptionName50KMonthly
206205 }
207- return entities .SubscriptionName50KYearly
206+ }
207+
208+ if strings .Contains (strings .ToLower (variant ), "200k" ) {
209+ if strings .Contains (strings .ToLower (variant ), "monthly" ) {
210+ return entities .SubscriptionName200KMonthly
211+ }
208212 }
209213
210214 return entities .SubscriptionNameFree
Original file line number Diff line number Diff line change @@ -432,23 +432,17 @@ export default Vue.extend({
432432 messagesPerMonth: 50000 ,
433433 price: 89 ,
434434 },
435- {
436- name: ' 50k - Yearly' ,
437- id: ' 50k-yearly' ,
438- messagesPerMonth: 50000 ,
439- price: 890 ,
440- },
441435 {
442436 name: ' 100k - Monthly' ,
443437 id: ' 100k-monthly' ,
444438 messagesPerMonth: 100000 ,
445439 price: 175 ,
446440 },
447441 {
448- name: ' 100k - Yearly ' ,
449- id: ' 100k-yearly ' ,
450- messagesPerMonth: 100000 ,
451- price: 1750 ,
442+ name: ' 200k - Monthly ' ,
443+ id: ' 200k-monthly ' ,
444+ messagesPerMonth: 200000 ,
445+ price: 350 ,
452446 },
453447 {
454448 name: ' PRO - Lifetime' ,
You can’t perform that action at this time.
0 commit comments