UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

21 lines (20 loc) 729 B
import * as factory from '../../../factory'; import type { ConfirmationNumberRepo } from '../../../repo/confirmationNumber'; import type { OrderNumberRepo } from '../../../repo/orderNumber'; import type { ProjectRepo } from '../../../repo/project'; import type { TransactionRepo } from '../../../repo/transaction'; declare function fixOrderAsNeeded(params: { project: { id: string; }; purpose: factory.action.authorize.paymentMethod.any.IPurpose; }): (repos: { project: ProjectRepo; transaction: TransactionRepo; confirmationNumber: ConfirmationNumberRepo; orderNumber: OrderNumberRepo; }) => Promise<{ confirmationNumber: string; orderNumber: string; }>; export { fixOrderAsNeeded };