Merge pull request #26397 from overleaf/kh-use-new-price-lookups

[web] use new price lookup keys

GitOrigin-RevId: f4c077d946100862aaea0288d5035a34d6188e83
This commit is contained in:
Kristina
2025-06-17 08:05:51 +00:00
committed by Copybot
parent 9aa261eaf6
commit 6b38336c7b
5 changed files with 135 additions and 82 deletions
+17 -9
View File
@@ -1,3 +1,5 @@
import { StripeCurrencyCode } from './currency'
type Features = {
collaborators: number
compileGroup: string
@@ -60,6 +62,7 @@ export type Plan = {
name: string
planCode: string
price_in_cents: number
canUseFlexibleLicensing?: boolean
}
export type PriceForDisplayData = {
@@ -90,17 +93,22 @@ export type RecurlyPlanCode =
export type RecurlyAddOnCode = 'assistant'
export type StripeLookupKey =
| 'collaborator_may2025'
| 'collaborator_annual_may2025'
| 'professional_may2025'
| 'professional_annual_may2025'
| 'student_may2025'
| 'student_annual_may2025'
export type StripeBaseLookupKey =
| 'standard_monthly'
| 'standard_annual'
| 'professional_monthly'
| 'professional_annual'
| 'student_monthly'
| 'student_annual'
| 'assistant_annual'
| 'assistant_monthly'
// TODO: change all group plans' lookup_keys to match the UK account after they have been added
| 'group_standard_enterprise'
| 'group_professional_enterprise'
| 'group_standard_educational'
| 'group_professional_educational'
| 'assistant_annual_may2025'
| 'assistant_may2025'
export type StripeLookupKeyVersion = 'jun2025'
export type StripeLookupKey =
`${StripeBaseLookupKey}_${StripeLookupKeyVersion}_${StripeCurrencyCode}`