@tomei/live-price
Version:
Tomei live-price Package
10 lines (9 loc) • 517 B
TypeScript
import { IPriceData } from '../interfaces/price-data.interface';
export declare abstract class PriceSourceBase<TProductCategory extends object> {
protected sourceName: string;
protected apiUrl?: string;
protected productCategories: TProductCategory[];
constructor(sourceName: string, productCategories: TProductCategory[], apiUrl?: string);
abstract fetchPrice(productCategories: Record<string, TProductCategory>): Promise<Record<string, IPriceData>>;
abstract isActive(): Promise<boolean>;
}