UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

25 lines (24 loc) 986 B
import * as factory from '../../../factory'; import { Settings } from '../../../settings'; import type { ActionRepo } from '../../../repo/action'; import type { AssetTransactionRepo } from '../../../repo/assetTransaction'; import type { AuthorizationRepo } from '../../../repo/authorization'; import type { OrderRepo } from '../../../repo/order'; import type { ReservationRepo } from '../../../repo/reservation'; import type { SettingRepo } from '../../../repo/setting'; import type { TaskRepo } from '../../../repo/task'; interface IConfirmRepo { action: ActionRepo; assetTransaction: AssetTransactionRepo; code: AuthorizationRepo; order: OrderRepo; reservation: ReservationRepo; setting: SettingRepo; task: TaskRepo; } type IConfirmOperation<T> = (repos: IConfirmRepo, settings: Settings) => Promise<T>; /** * 取引確定 */ declare function confirm(params: factory.assetTransaction.reserve.IConfirmParams): IConfirmOperation<void>; export { confirm };