import { factory } from '../../../factory'; import type { IntegrationSettingRepo as Settings } from '../../../repo/setting/integration'; import type { AuthorizeInvoiceActionRepo } from '../../../repo/action/authorizeInvoice'; import type { PaymentServiceRepo } from '../../../repo/paymentService'; import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider'; import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted'; import { ICreditCardPaymentAgencyTransaction } from './authorize/processAuthorizeCreditCard'; import { ICreditCardPaymentAgencyTransaction3ds } from './authorize/processAuthorizeCreditCard3ds'; type IPaymentAgencyTransaction = ICreditCardPaymentAgencyTransaction | ICreditCardPaymentAgencyTransaction3ds; type IAuthorizeResult = IPaymentAgencyTransaction & { accountId: ''; paymentMethodId: string; }; type IPayTransactionAsAuthorizeInvoiceAction = Pick & { /** * 決済取引ID */ id: string; }; /** * クレジットカード決済承認 */ declare function authorize( /** * 承認開始元の決済取引 */ payTransaction: IPayTransactionAsAuthorizeInvoiceAction, paymentServiceId: string, options: { pendingPaymentAgencyTransaction?: Pick; /** * 決済URL発行処理かどうか */ processPublishPaymentUrl: boolean; /** * 実行者 */ executor?: { /** * task ID * taskによって実行されている場合値が存在する(taskName: authorizePayment) */ id?: string; }; }): (repos: { authorizeInvoiceAction: AuthorizeInvoiceActionRepo; paymentAccepted: SellerPaymentAcceptedRepo; paymentService: PaymentServiceRepo; paymentServiceProvider: PaymentServiceProviderRepo; }, settings: Settings) => Promise; export { authorize, IPaymentAgencyTransaction };