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 { PaymentServiceRepo } from '../../../../repo/paymentService'; import type { PaymentServiceProviderRepo } from '../../../../repo/paymentServiceProvider'; 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 IProcessAuthorizeOperationRepos { accountingReport: AccountingReportRepo; actions: { pay: PayActionRepo; refund: RefundActionRepo; checkMovieTicket: CheckMovieTicketActionRepo; }; authorizeInvoiceAction: AuthorizeInvoiceActionRepo; credentials: CredentialsRepo; event: EventRepo; paymentAccepted: SellerPaymentAcceptedRepo; paymentService: PaymentServiceRepo; paymentServiceProvider: PaymentServiceProviderRepo; product: ProductRepo; assetTransaction: AssetTransactionRepo; task: TaskRepo; } export type IProcessAuthorizeOperation = (repos: IProcessAuthorizeOperationRepos, settings: Settings) => Promise; /** * 開始した決済取引について、決済承認を実行する */ export declare function processAuthorize(params: factory.assetTransaction.pay.IStartParamsWithoutDetail & { instrument: factory.action.trade.pay.IPlaceOrderRelatedInstrument[]; }, options: { pendingPaymentAgencyTransaction?: IPaymentAgencyTransaction; /** * 実行者 */ executor?: { /** * task ID * taskによって実行されている場合値が存在する */ id?: string; }; purpose: { /** * placeOrder ID */ id?: string; }; checkedAction: { id: string; }; }, transactionBeforeAuthorize: factory.assetTransaction.pay.ITransaction, paymentServiceType: factory.service.paymentService.PaymentServiceType, paymentService: Pick | Pick | undefined): IProcessAuthorizeOperation>;