import { factory } from '../../../../factory'; import type { AcceptPayActionRepo } from '../../../../repo/action/acceptPay'; import type { AuthorizePaymentMethodActionRepo } from '../../../../repo/action/authorizePaymentMethod'; import type { AuthorizationRepo } from '../../../../repo/authorization'; import type { TicketRepo } from '../../../../repo/ticket'; import type { OrderInTransactionRepo } from '../../../../repo/orderInTransaction'; import type { ITransactionInProgress } from '../../../../repo/transaction/placeOrder'; import * as PayTransactionService from '../../../assetTransaction/pay'; import type { IInvoiceByTicketToken } from '../factory'; type IObjectWithoutDetail = factory.action.authorize.paymentMethod.any.IObjectWithoutDetail; interface IAcceptAction2ticketResult { invoiceByTicketToken: IInvoiceByTicketToken; ticketToken: string; } interface IHandlePrePublishedPaymentMethodIdOnAuthorizingRepos { acceptPayAction: AcceptPayActionRepo; authorizePaymentMethodAction: AuthorizePaymentMethodActionRepo; authorization: AuthorizationRepo; ticket: TicketRepo; orderInTransaction: OrderInTransactionRepo; } /** * 決済承認前の決済採用アクションを参照する */ declare function handlePrePublishedPaymentMethodIdOnAuthorizing(params: { object: Pick; prePublishedPaymentMethodId: string; transaction: Pick; }): (repos: IHandlePrePublishedPaymentMethodIdOnAuthorizingRepos) => Promise<{ authorizeParams?: { creditCard: factory.action.authorize.paymentMethod.any.ICreditCard; pendingPaymentAgencyTransaction: PayTransactionService.IPaymentAgencyTransaction; acceptAction2ticketResult?: IAcceptAction2ticketResult; paymentMethodByTransaction?: never; }; existingCompletedAuthorizeAction?: never; } | { existingCompletedAuthorizeAction: { id: string; }; authorizeParams?: never; acceptAction2ticketResult?: never; }>; export { IHandlePrePublishedPaymentMethodIdOnAuthorizingRepos, handlePrePublishedPaymentMethodIdOnAuthorizing };