Merge pull request #20571 from overleaf/jdt-ai-addon-personal-upgrade

Enable purchasing an AI add-on for users on a monthly collaborator plan

GitOrigin-RevId: 988547bf6f01f7c1477191dd202df4448e376e5f
This commit is contained in:
Jimmy Domagala-Tang
2024-10-14 11:09:04 +00:00
committed by Copybot
parent 438192fc11
commit aa9a246346
9 changed files with 244 additions and 9 deletions
@@ -5,7 +5,22 @@ import { User } from '../../user'
type SubscriptionState = 'active' | 'canceled' | 'expired'
// the add-ons attached to a recurly subsription
export type AddOn = {
add_on_code: string
add_on_type: string
quantity: number
revenue_schedule_type: string
unit_amount_in_cents: number
}
// when puchasing a new add-on in recurly, we only need to provide the code
export type PurchasingAddOnCode = {
code: string
}
type Recurly = {
addOns?: AddOn[]
tax: number
taxRate: number
billingDetailsLink: string