mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Merge pull request #35836 from overleaf/rh-prices-split
[web] Update monthly plan prices for new subscriptions with split test GitOrigin-RevId: 42d0adaf68647adc93f4c05d5ddeefb356753db2
This commit is contained in:
@@ -40,6 +40,7 @@ type PaymentProviderRecord = {
|
||||
nextPaymentDueAt: string
|
||||
nextPaymentDueDate: string
|
||||
currency: CurrencyCode
|
||||
planPrice: number
|
||||
state?: SubscriptionState
|
||||
trialEndsAtFormatted: Nullable<string>
|
||||
trialEndsAt: Nullable<string>
|
||||
|
||||
@@ -53,6 +53,9 @@ export type PendingPaymentProviderPlan = {
|
||||
export type Plan = {
|
||||
annual?: boolean
|
||||
displayPrice?: string
|
||||
// list price excluding tax, in the subscription's currency, resolved from the
|
||||
// user's assigned price version. Only set for the change plan modal.
|
||||
listPrice?: number
|
||||
featureDescription?: Record<string, unknown>[]
|
||||
addOns?: AddOn[]
|
||||
features?: Features
|
||||
@@ -109,8 +112,10 @@ export type StripeBaseLookupKey =
|
||||
| 'group_standard_educational'
|
||||
| 'group_professional_educational'
|
||||
|
||||
// Keep in sync with LATEST_STRIPE_LOOKUP_KEY_VERSION in PlansLocator.mjs
|
||||
export type StripeLookupKeyVersion = 'feb2026'
|
||||
// A version of prices we start subscriptions at: PlansLocator's
|
||||
// DEFAULT_STRIPE_LOOKUP_KEY_VERSION, or any additional versions
|
||||
// defined in settings
|
||||
export type StripeLookupKeyVersion = 'feb2026' | (string & {})
|
||||
|
||||
export type StripeLookupKey =
|
||||
`${StripeBaseLookupKey}_${StripeLookupKeyVersion}_${StripeCurrencyCode}`
|
||||
|
||||
Reference in New Issue
Block a user