| 20 | } |
| 21 | |
| 22 | function extraFeatures({ price }: { price: string }): string[] { |
| 23 | if (price === '150' || price === '1500') { |
| 24 | return ['Community Support']; |
| 25 | } else if (price === '250' || price === '2500') { |
| 26 | return ['Priority Support']; |
| 27 | } else if (price === '400' || price === '4000') { |
| 28 | return [ |
| 29 | '24-hour support response time', |
| 30 | 'Optional: Your company featured on the Linen.dev website and GitHub readme', |
| 31 | 'Prioritized feature requests', |
| 32 | ]; |
| 33 | } |
| 34 | return []; |
| 35 | } |
| 36 | |
| 37 | function serializeProduct(product: any) { |
| 38 | const { id, name, description, metadata, default_price } = product; |