import { factory } from '../../../factory'; import type { IntegrationSettingRepo as Settings } from '../../../repo/setting/integration'; 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 { AuthorizeInvoiceActionRepo } from '../../../repo/action/authorizeInvoice'; import type { AssetTransactionRepo } from '../../../repo/assetTransaction'; import type { CredentialsRepo } from '../../../repo/credentials'; import type { EventRepo } from '../../../repo/event'; import type { EventSeriesRepo } from '../../../repo/eventSeries'; import type { IssuerRepo } from '../../../repo/issuer'; import type { PaymentServiceRepo } from '../../../repo/paymentService'; import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider'; import type { PotentialActionRepo } from '../../../repo/potentialAction'; import type { ProductRepo } from '../../../repo/product'; import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted'; import type { TaskRepo } from '../../../repo/task'; import { IPaymentAgencyTransaction } from '../../payment/creditCard'; export interface IStartOperationRepos { accountingReport: AccountingReportRepo; actions: { pay: PayActionRepo; refund: RefundActionRepo; checkMovieTicket: CheckMovieTicketActionRepo; }; authorizeInvoiceAction: AuthorizeInvoiceActionRepo; credentials: CredentialsRepo; event: EventRepo; issuer: IssuerRepo; eventSeries: EventSeriesRepo; paymentAccepted: SellerPaymentAcceptedRepo; paymentService: PaymentServiceRepo; paymentServiceProvider: PaymentServiceProviderRepo; potentialAction: PotentialActionRepo; product: ProductRepo; assetTransaction: AssetTransactionRepo; task: TaskRepo; } export type IStartOperation = (repos: IStartOperationRepos, settings: Settings) => Promise; export { IPaymentAgencyTransaction }; /** * 取引開始 */ export declare function start(params: factory.assetTransaction.pay.IStartParamsWithoutDetail & { instrument: factory.action.trade.pay.IPayTransactionInstrument[]; }, options: { pendingPaymentAgencyTransaction?: IPaymentAgencyTransaction; /** * 実行者 */ executor?: { /** * task ID * taskによって実行されている場合値が存在する */ id?: string; }; purpose: { /** * placeOrder ID */ id?: string; }; checkedAction: { id: string; }; }): IStartOperation>;