mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #21556 from overleaf/em-subscription-change-interstitial
Add-on purchase preview page GitOrigin-RevId: 660e39a94e6112af020ea783d6acf01a19432605
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
export type CurrencyCode =
|
||||
| 'AUD'
|
||||
| 'BRL'
|
||||
| 'CAD'
|
||||
| 'CHF'
|
||||
| 'CLP'
|
||||
| 'COP'
|
||||
| 'DKK'
|
||||
| 'EUR'
|
||||
| 'GBP'
|
||||
| 'INR'
|
||||
| 'MXN'
|
||||
| 'NOK'
|
||||
| 'NZD'
|
||||
| 'PEN'
|
||||
| 'SEK'
|
||||
| 'SGD'
|
||||
| 'USD'
|
||||
@@ -0,0 +1,38 @@
|
||||
export type SubscriptionChangePreview = {
|
||||
change: SubscriptionChange
|
||||
currency: string
|
||||
paymentMethod: string
|
||||
immediateCharge: number
|
||||
nextInvoice: {
|
||||
date: string
|
||||
plan: {
|
||||
name: string
|
||||
amount: number
|
||||
}
|
||||
addOns: AddOn[]
|
||||
subtotal: number
|
||||
tax: {
|
||||
rate: number
|
||||
amount: number
|
||||
}
|
||||
total: number
|
||||
}
|
||||
}
|
||||
|
||||
type AddOn = {
|
||||
code: string
|
||||
name: string
|
||||
quantity: number
|
||||
unitAmount: number
|
||||
amount: number
|
||||
}
|
||||
|
||||
type SubscriptionChange = AddOnPurchase
|
||||
|
||||
type AddOnPurchase = {
|
||||
type: 'add-on-purchase'
|
||||
addOn: {
|
||||
code: string
|
||||
name: string
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user