1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-10 04:54:14 +01:00

43 lines
818 B
TypeScript
Raw Normal View History

2020-10-28 14:23:27 +01:00
import { Price } from './price';
export enum Interval {
Year = 'year',
Month = 'month',
Week = 'week'
}
export enum PlanType {
Plan = 'Plan',
PartnerPlan = 'PartnerPlan'
}
export interface Partner {
first_name: string,
last_name: string,
email: string
}
export interface Plan {
id: number,
base_name: string,
name: string,
interval: Interval,
interval_count: number,
group_id: number,
training_credit_nb: number,
is_rolling: boolean,
description: string,
type: PlanType,
ui_weight: number,
disabled: boolean,
monthly_payment: boolean
amount: number
prices: Array<Price>,
plan_file_attributes: {
id: number,
attachment_identifier: string
},
2020-11-02 11:16:13 +01:00
plan_file_url: string,
2020-10-28 14:23:27 +01:00
partners: Array<Partner>
}