@chevre/domain
Version:
Chevre Domain Library for Node.js
24 lines (23 loc) • 638 B
TypeScript
import type { OrderNumberRepo } from '../../../repo/orderNumber';
import type { ProjectRepo } from '../../../repo/project';
import type { TransactionRepo } from '../../../repo/transaction';
/**
* 未発行であれば、注文番号を発行して取引に保管する
*/
declare function publishOrderNumberIfNotExist(params: {
project: {
id: string;
};
/**
* 取引ID
*/
id: string;
object: {
orderDate: Date;
};
}): (repos: {
project: ProjectRepo;
transaction: TransactionRepo;
orderNumber: OrderNumberRepo;
}) => Promise<string>;
export { publishOrderNumberIfNotExist };