@chevre/domain
Version:
Chevre Domain Library for Node.js
43 lines (42 loc) • 1.56 kB
TypeScript
import type { AcceptedOfferRepo } from '../../repo/acceptedOffer';
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
import type { OrderRepo } from '../../repo/order';
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 onAssetTransactionStatusChanged(params: factory.task.IData<factory.taskName.OnAssetTransactionStatusChanged>): (repos: {
acceptedOffer: AcceptedOfferRepo;
assetTransaction: AssetTransactionRepo;
order: OrderRepo;
setting: SettingRepo;
task: TaskRepo;
transaction: TransactionRepo;
}, settings: Settings) => Promise<void>;
declare function paymentDue2Processing(params: {
project: {
id: string;
};
confirmationNumber: string;
orderNumber: string;
useOnOrderStatusChanged: boolean;
}): (repos: {
acceptedOffer: AcceptedOfferRepo;
order: OrderRepo;
setting: SettingRepo;
task: TaskRepo;
transaction: TransactionRepo;
}, settings: Settings) => Promise<void>;
declare function processing2inTransit(params: {
project: {
id: string;
};
orderNumber: string;
useOnOrderStatusChanged: boolean;
}): (repos: {
order: OrderRepo;
task: TaskRepo;
transaction: TransactionRepo;
}, settings: Settings) => Promise<void>;
export { onAssetTransactionStatusChanged, paymentDue2Processing, processing2inTransit };