2021-06-22 11:13:44 +02:00
|
|
|
export interface PriceIndexFilter {
|
2021-06-23 17:00:15 +02:00
|
|
|
priceable_type?: string,
|
|
|
|
priceable_id?: number,
|
|
|
|
group_id?: number,
|
|
|
|
plan_id?: number|null,
|
2021-06-22 11:13:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-28 14:23:27 +01:00
|
|
|
export interface Price {
|
2020-12-01 17:55:23 +01:00
|
|
|
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
|
|
|
}
|