You've already forked AstralRinth
forked from didirus/AstralRinth
Medal promo v2 (#4220)
* Revert "Revert "feat: medal promotion on servers page (#4117)"" This reverts commit2e6cff7efc. * Revert "Revert "update changelog"" This reverts commitb2ff2d8737. * Revert "Revert "turn off medal promo"" This reverts commiteaa4b44a16. * Revert "Revert "Revert "turn off medal promo""" This reverts commit76d0ef03e7. * Revert "Revert "fix medal thing showing up for everyone"" This reverts commitee8c47adcb. * New medal colors * Update medal server listings * Upgrade modal enhancements & more medal consistency * undo app promo changes * Only apply medal promo with flag on * remove unneessary files * lint * disable medal flag
This commit is contained in:
@@ -513,6 +513,38 @@ export interface ModerationJudgements {
|
||||
[sha1: string]: ModerationJudgement
|
||||
}
|
||||
|
||||
// Subscriptions
|
||||
export interface UserSubscription {
|
||||
id: string
|
||||
user_id: string
|
||||
price_id: string
|
||||
interval: 'five-days' | 'monthly' | 'quarterly' | 'yearly'
|
||||
status: 'provisioned' | 'unprovisioned'
|
||||
created: string // ISO date string
|
||||
metadata?: SubscriptionMetadata
|
||||
}
|
||||
|
||||
export interface Charge {
|
||||
id: string
|
||||
user_id: string
|
||||
price_id: string
|
||||
amount: number
|
||||
currency_code: string
|
||||
status: 'open' | 'processing' | 'succeeded' | 'failed' | 'cancelled' | 'expiring'
|
||||
due: string // ISO date string
|
||||
last_attempt?: string // ISO date string
|
||||
type: 'one-time' | 'subscription' | 'proration' | 'refund'
|
||||
subscription_id?: string
|
||||
subscription_interval?: 'five-days' | 'monthly' | 'quarterly' | 'yearly'
|
||||
platform: 'stripe' | 'none'
|
||||
parent_charge_id?: string
|
||||
net?: number
|
||||
}
|
||||
|
||||
export type SubscriptionMetadata =
|
||||
| { type: 'pyro'; id: string; region?: string }
|
||||
| { type: 'medal'; id: string }
|
||||
|
||||
// Delphi
|
||||
export interface DelphiReport {
|
||||
id: string
|
||||
|
||||
Reference in New Issue
Block a user