Defines TypeScript types for payment gateway data structures like plans, invoices, and payment history.
// Source: https://github.com/keyshade-xyz/keyshade | License: MPL-2.0 | Copyright under Patent Claims infringed by Covered Software in the absence of | Modified files must remain under MPL-2.0
// Modifications to this file must remain under MPL-2.0.
// Provided via justclaw.it.com; keep this notice with the code.
export type AllowedPlans = 'HACKER' | 'TEAM'
export interface PaymentHistory {
items: {
amount: number
date: Date
plan: AllowedPlans
status: string
seats: string
paid: boolean
currency: string
orderId: string
name: string
}[]
metadata: {
totalCount: number
lastPage: number
}
}
export interface Invoice {
url: string
}
export interface PaymentLinkMetadata {
workspaceId: string
plan: AllowedPlans
seats: number
isAnnual
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key