import { ICurrency } from './currency'; import { ILocale } from './locale'; import { IPrice } from './price'; import { IRegion } from './region'; /** * The Offer Interface */ export interface IOffer extends ICurrency, IPrice { /** The offer ID * @memberof IOffer */ id: string; /** The object type * @memberof IOffer */ object: string; /** The list of coverage options of this offer * @memberof IOffer */ coverage: string[]; /** A positive integer representing the term length of the insurance offer in months. * @memberof IOffer */ term: number; coverage_id: string; price: number; currency: string; policy_id: string; required_products: 'exactly_one' | 'at_least_one' | 'any'; payment_type: 'one_time' | 'subscription'; recurring_interval?: 'month' | 'year'; } export interface IOffersData { /** The list of offer options of the product * @memberof IOffersData */ offers: IOffer[]; /** Optional localization datas * @memberof IOffersData */ locale: ILocale; } /** * The GetCategoriesOffer Query Parameters Interface */ export interface IGetCategoryOffersQueryParameters extends Partial, Partial { product_price: number; }