@dbbs/strapi-stripe-payment
Version:
Strapi integration plugin for Stripe payment system
40 lines (34 loc) • 694 B
text/typescript
import { BillingPeriod, PlanType, SupportedCurrency } from '../enums'
export interface CreatePlanParams {
price: number
interval: BillingPeriod
productId: number
currency: SupportedCurrency
type: PlanType
}
export interface GetPlanByIdParams {
id: number
}
export interface DeletePlanParams {
id: number
}
export interface Plan {
price: number
interval: BillingPeriod
stripe_id: string
currency: SupportedCurrency
type: PlanType
product: {
name: string
id: number
stripe_id: string
}
}
export interface CreateStripePriceParams {
currency: SupportedCurrency
product: string
unit_amount: number
recurring?: {
interval: BillingPeriod
}
}