diff --git a/src/endpoints/PricingTables/types.ts b/src/endpoints/PricingTables/types.ts index d85f7659..bf343353 100644 --- a/src/endpoints/PricingTables/types.ts +++ b/src/endpoints/PricingTables/types.ts @@ -2,34 +2,9 @@ export interface PricingTable { options: Option[]; } -export enum BillingCycle { - MONTH = 'month', - YEAR = 'year', -} - -export enum Currency { - EUR = 'eur', - USD = 'usd', -} - -export enum OptionId { - STARTER = 'starter', - CORE = 'core', - PREMIUM = 'premium', -} - -export enum LimitDisplayName { - STORIES = 'Stories', - USERS = 'Users', - SITES = 'Sites', - CONTACTS = 'Contacts', - EMAIL_SENDS = 'Email sends', - CUSTOM_SENDER_ADDRESSES = 'Custom sender addresses', -} - export interface Option { - id: `${OptionId}`; - display_name: string | null; + id: string; + display_name: string; description: string | null; overview_features_list: PlanFeatureRef[]; limits: Limit[]; @@ -44,16 +19,16 @@ export interface PlanFeatureRef { export interface Limit { id: string; - display_name: `${LimitDisplayName}`; + display_name: string; value: null | number; per: null | string; } export interface Price { - billing_cycle: `${BillingCycle}`; - currency: `${Currency}`; - unit_amount: number; - unit: string; + billing_cycle: string; + currency: string; + amount: number; + unit: string | null; } export interface AddOn {