UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

15 lines (14 loc) 698 B
import * as factory from '../../../factory'; import type { SettingRepo } from '../../../repo/setting'; import type { TaskRepo } from '../../../repo/task'; type IPlaceOrderTransaction = Pick<factory.transaction.placeOrder.ITransaction, 'id' | 'project' | 'typeOf' | 'potentialActions'>; declare function onOrderDelivered(params: { order: Pick<factory.order.IOrder, 'id' | 'customer' | 'orderDate' | 'orderNumber' | 'project' | 'typeOf' | 'price' | 'priceCurrency'> & { orderStatus: factory.orderStatus.OrderDelivered; }; placeOrderTransaction?: IPlaceOrderTransaction; }): (repos: { setting: SettingRepo; task: TaskRepo; }) => Promise<void>; export { onOrderDelivered };