1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-08 23:46:14 +01:00
fab-manager/app/frontend/src/javascript/models/price.ts

33 lines
583 B
TypeScript
Raw Normal View History

export interface PriceIndexFilter {
key: 'priceable_type' | 'priceable_id' | 'group_id' | 'plan_id',
value?: number|string,
}
2020-10-28 14:23:27 +01:00
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
}>
}
2020-10-28 14:23:27 +01:00
}