@chevre/domain
Version:
Chevre Domain Library for Node.js
37 lines (36 loc) • 1.25 kB
TypeScript
import type { AcceptedOfferRepo } from '../../repo/acceptedOffer';
import type { AccountingReportRepo } from '../../repo/accountingReport';
import type { ActionRepo } from '../../repo/action';
import type { OrderRepo } from '../../repo/order';
import type { OrderInTransactionRepo } from '../../repo/orderInTransaction';
import type { SettingRepo } from '../../repo/setting';
import type { TaskRepo } from '../../repo/task';
import type { TransactionRepo } from '../../repo/transaction';
import * as factory from '../../factory';
import { Settings } from '../../settings';
/**
* 注文を作成する
*/
declare function placeOrder(params: {
agent?: factory.action.trade.order.IAgent;
project: {
id: string;
};
object: {
confirmationNumber: string;
orderNumber: string;
};
useOnOrderStatusChanged: boolean;
}): (repos: {
acceptedOffer: AcceptedOfferRepo;
accountingReport: AccountingReportRepo;
action: ActionRepo;
order: OrderRepo;
orderInTransaction: OrderInTransactionRepo;
setting: SettingRepo;
task: TaskRepo;
transaction: TransactionRepo;
}, settings: Settings) => Promise<{
order: factory.transaction.placeOrder.IOrderAsResult;
}>;
export { placeOrder };