import Endpoint from '../classes/endpoint'; import { IOffersData, Product } from '../types'; export default class Offers extends Endpoint { protected basePath: string; /** * Get an offer from a category IOffersData * @param $0 product definition * @param $0.categoryID the category of the product we want an offer on * @param $0.price price of the product * @param [region] Three letter ISO 3166-1 customer region code, in lowercase. Must be a supported region. Defaults to the one found in config * @returns A promise resolved with offer datas, or catching with API error * @memberof Offers */ get({ categoryId, price }: Product, region?: string): Promise; /** Get multiple offers in a batch * @param products Product definitions. * @param [region] Three letter ISO 3166-1 customer region code, in lowercase. Must be a supported region. Defaults to the one found in config * @returns A promise resolved with offer datas, or API errors. The order is the same as products * @memberof Array */ getMany(products: Product[], region?: string): Promise>; }