mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-06 21:46:17 +01:00
35 lines
589 B
TypeScript
35 lines
589 B
TypeScript
export interface PriceIndexFilter {
|
|
priceable_type?: string,
|
|
priceable_id?: number,
|
|
group_id?: number,
|
|
plan_id?: number|null,
|
|
}
|
|
|
|
export interface Price {
|
|
id: number,
|
|
group_id: number,
|
|
plan_id: number,
|
|
priceable_type: string,
|
|
priceable_id: number,
|
|
amount: number
|
|
}
|
|
|
|
export interface ComputePriceResult {
|
|
price: number,
|
|
price_without_coupon: number,
|
|
details?: {
|
|
slots: Array<{
|
|
start_at: Date,
|
|
price: number,
|
|
promo: boolean
|
|
}>
|
|
plan?: number
|
|
},
|
|
schedule?: {
|
|
items: Array<{
|
|
amount: number,
|
|
due_date: Date
|
|
}>
|
|
}
|
|
}
|