mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Support individual to group plan upgrade in Stripe GitOrigin-RevId: 24cbe7bd6de86a4d9410e1abc49b6457e0871f40
16 lines
334 B
TypeScript
16 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}`
|
|
}
|