UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

29 lines (28 loc) 967 B
import type { AcceptedOfferRepo } from '../../repo/acceptedOffer'; import type { ActionRepo } from '../../repo/action'; import type { OrderRepo } from '../../repo/order'; import type { OwnershipInfoRepo } from '../../repo/ownershipInfo'; import type { SettingRepo } from '../../repo/setting'; import type { TaskRepo } from '../../repo/task'; import type { TransactionRepo } from '../../repo/transaction'; import * as factory from '../../factory'; declare function returnOrder(params: { agent: factory.action.transfer.returnAction.order.IAgent; object: { orderNumber: string; dateReturned: Date; }; project: { id: string; }; useOnOrderStatusChanged: boolean; }): (repos: { acceptedOffer: AcceptedOfferRepo; action: ActionRepo; order: OrderRepo; ownershipInfo: OwnershipInfoRepo; setting: SettingRepo; task: TaskRepo; transaction: TransactionRepo; }) => Promise<void>; export { returnOrder };