mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-29 05:00:06 +02:00

Support individual to group plan upgrade in Stripe GitOrigin-RevId: 24cbe7bd6de86a4d9410e1abc49b6457e0871f40
15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
export function getRecurlyGroupPlanCode(
|
|
planCode: string,
|
|
size: string,
|
|
usage: string
|
|
) {
|
|
return `group_${planCode}_${size}_${usage}`
|
|
}
|
|
|
|
export function getConsolidatedGroupPlanCode(planCode: string, usage: string) {
|
|
if (usage === 'enterprise') {
|
|
return `group_${planCode}`
|
|
}
|
|
|
|
return `group_${planCode}_${usage}`
|
|
}
|