| 9 | import {PlanTier} from 'getsentry/types'; |
| 10 | |
| 11 | export function BillingConfigFixture(tier: PlanTier): BillingConfig { |
| 12 | if (tier === PlanTier.TEST) { |
| 13 | return { |
| 14 | id: PlanTier.TEST, |
| 15 | freePlan: 'am3_f', |
| 16 | defaultPlan: 'am3_f', |
| 17 | defaultReserved: {errors: 1000000}, |
| 18 | annualDiscount: 0.1, |
| 19 | planList: Object.values(AM3_PLANS), |
| 20 | featureList: FeatureListFixture(), |
| 21 | }; |
| 22 | } |
| 23 | if (tier === PlanTier.AM2) { |
| 24 | return { |
| 25 | id: PlanTier.AM2, |
| 26 | freePlan: 'am2_f', |
| 27 | defaultPlan: 'am2_team', |
| 28 | defaultReserved: { |
| 29 | errors: 50000, |
| 30 | transactions: 100000, |
| 31 | attachments: 1, |
| 32 | replays: 500, |
| 33 | monitorSeats: 1, |
| 34 | uptime: 1, |
| 35 | }, |
| 36 | annualDiscount: 0.1, |
| 37 | planList: Object.values(AM2_PLANS), |
| 38 | featureList: FeatureListFixture(), |
| 39 | }; |
| 40 | } |
| 41 | |
| 42 | if (tier === PlanTier.AM3) { |
| 43 | return { |
| 44 | id: PlanTier.AM3, |
| 45 | freePlan: 'am3_f', |
| 46 | defaultPlan: 'am3_team', |
| 47 | defaultReserved: { |
| 48 | errors: 50_000, |
| 49 | attachments: 1, |
| 50 | replays: 50, |
| 51 | monitorSeats: 1, |
| 52 | spans: 10_000_000, |
| 53 | uptime: 1, |
| 54 | }, |
| 55 | annualDiscount: 0.1, |
| 56 | planList: Object.values(AM3_PLANS), |
| 57 | featureList: FeatureListFixture(), |
| 58 | }; |
| 59 | } |
| 60 | |
| 61 | if (tier === PlanTier.ALL) { |
| 62 | return { |
| 63 | id: PlanTier.AM3, |
| 64 | freePlan: 'am3_f', |
| 65 | defaultPlan: 'am3_team', |
| 66 | defaultReserved: { |
| 67 | errors: 50_000, |
| 68 | attachments: 1, |