UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

49 lines (48 loc) 2.01 kB
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 { CredentialsRepo } from '../../../repo/credentials'; import type { EventRepo } from '../../../repo/event'; import type { OrderRepo } from '../../../repo/order'; import type { PaymentServiceRepo } from '../../../repo/paymentService'; import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider'; import type { ProductRepo } from '../../../repo/product'; import type { ProjectRepo } from '../../../repo/project'; import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted'; import type { TaskRepo } from '../../../repo/task'; import * as factory from '../../../factory'; import { Settings } from '../../../settings'; declare function payTask2payActionAttributes(params: factory.task.pay.IData & { sameAs?: { /** * 実行元タスクID */ id: string; typeOf: 'Task'; }; }): (repos: { action: ActionRepo; acceptedOffer: AcceptedOfferRepo; assetTransaction: AssetTransactionRepo; order: OrderRepo; }) => Promise<factory.action.trade.pay.IAttributes>; /** * 決済確定 */ declare function payByTask(payActionAttributes: factory.action.trade.pay.IAttributes): (repos: { acceptedOffer: AcceptedOfferRepo; action: ActionRepo; accountingReport: AccountingReportRepo; assetTransaction: AssetTransactionRepo; credentials: CredentialsRepo; event: EventRepo; order: OrderRepo; paymentAccepted: SellerPaymentAcceptedRepo; paymentService: PaymentServiceRepo; paymentServiceProvider: PaymentServiceProviderRepo; product: ProductRepo; project: ProjectRepo; task: TaskRepo; }, settings: Settings) => Promise<void>; export { payByTask, payTask2payActionAttributes };