UNPKG

@tomei/live-price

Version:

Tomei live-price Package

21 lines (20 loc) 1.13 kB
import { ApplicationLog } from '@tomei/log'; import { IFeedAttr } from '../../interfaces/price-feed-attr.interface'; import { FeedRepository } from './feed.repository'; import { NonSourceFeedName, SourceFeedName } from '../../enum/feed.enum'; import { FeedHistory } from '../feed-history/feed-history'; export declare class Feed implements IFeedAttr { FeedName: SourceFeedName | NonSourceFeedName; IsSourcePriceYN: string; IsManualPriceActivatedYN: string; CurrentManualPriceHistoryId: string; Weight: number; protected static _Repo: FeedRepository; protected static logger: ApplicationLog; constructor(feedAttr?: IFeedAttr); static init(dbTransaction: any, FeedName?: string): Promise<Feed>; save(dbTransaction: any): Promise<void>; setManualPrice(activatedById: string, buyPrice: number, sellPrice: number, dbTransaction: any, companyCode?: string): Promise<void>; deactivateManualPrice(dbTransaction: any, deactivatedById: string, companyCode?: string): Promise<void>; createTomeiPriceHistory(feedHistory: FeedHistory, dbTransaction: any, companyCode?: string): Promise<void>; }