22 lines
772 B
TypeScript
22 lines
772 B
TypeScript
import { String, Price } from 'oak-domain/lib/types/DataType';
|
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
import { EntityDesc } from 'oak-domain/lib/types';
|
|
import { Schema as Account } from './Account';
|
|
type Type = 'deposit' | 'withdraw' | 'consume' | 'consumeBack' | 'loan' | 'repay' | 'withdrawBack' | 'earn' | 'cutoffRefundable' | 'tax' | 'taxRefund' | 'refund' | 'refundFailure' | 'settle';
|
|
export interface Schema extends EntityShape {
|
|
account: Account;
|
|
type: Type;
|
|
totalPlus: Price;
|
|
availPlus: Price;
|
|
refundablePlus?: Price;
|
|
total: Price;
|
|
avail: Price;
|
|
refundable: Price;
|
|
entity: String<32>;
|
|
entityId: String<64>;
|
|
}
|
|
export declare const entityDesc: EntityDesc<Schema, '', '', {
|
|
type: Type;
|
|
}>;
|
|
export {};
|