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