13 lines
652 B
TypeScript
13 lines
652 B
TypeScript
import { Feature, BasicFeatures } from "oak-frontend-base";
|
|
import { FeatureDict as GeneralFeatures } from 'oak-general-business';
|
|
import { EntityDict } from '../oak-app-domain';
|
|
import { PayChannel, PayChannels } from '../types/Pay';
|
|
export default class Pay extends Feature {
|
|
private application;
|
|
private locales;
|
|
constructor(application: GeneralFeatures<EntityDict>['application'], locales: BasicFeatures<EntityDict>['locales']);
|
|
getPayChannels(type?: 'deposit' | 'pay', accountId?: string): PayChannels;
|
|
calcDepositLoss(price: number, channel: PayChannel): [number, string, any];
|
|
getDepositRatio(channel: string): number;
|
|
}
|