@chevre/domain
Version:
Chevre Domain Library for Node.js
34 lines (33 loc) • 1.43 kB
TypeScript
import * as factory from '../../factory';
import type { AcceptedOfferRepo } from '../../repo/acceptedOffer';
import type { AccountingReportRepo } from '../../repo/accountingReport';
import type { ActionRepo } from '../../repo/action';
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
import type { EventRepo } from '../../repo/event';
import type { MessageRepo } from '../../repo/message';
import type { NoteRepo } from '../../repo/note';
import type { OrderRepo } from '../../repo/order';
import type { OwnershipInfoRepo } from '../../repo/ownershipInfo';
import type { ReservationRepo } from '../../repo/reservation';
import type { SettingRepo } from '../../repo/setting';
import type { TaskRepo } from '../../repo/task';
import type { TransactionRepo } from '../../repo/transaction';
/**
* 取引に関わるリソースを削除する
* 冪等性を確保すること
*/
export declare function deleteTransaction(params: factory.task.IData<factory.taskName.DeleteTransaction>): (repos: {
acceptedOffer: AcceptedOfferRepo;
accountingReport: AccountingReportRepo;
action: ActionRepo;
assetTransaction: AssetTransactionRepo;
event: EventRepo;
message: MessageRepo;
note: NoteRepo;
order: OrderRepo;
ownershipInfo: OwnershipInfoRepo;
reservation: ReservationRepo;
setting: SettingRepo;
task: TaskRepo;
transaction: TransactionRepo;
}) => Promise<void>;