import type { Connection } from 'mongoose'; import { factory } from '../../factory'; import { IKeyOfProjection, IActionRecipe, ActionProcessRepo } from './anyAction/actionProcess'; export type IAcceptPayAction = factory.action.accept.pay.IAction; /** * 決済採用リポジトリ */ export declare class AcceptPayActionRepo extends ActionProcessRepo> { constructor(connection: Connection); findActionBySameAs(params: { sameAs: { id: string; }; purpose?: { id: string; }; }): Promise | null>; /** * 注文取引から検索する * 件数はlimitされない */ findAcceptActionsByPurpose(params: { project: { id: string; }; purpose: { id: string; }; actionStatus?: factory.actionStatusType.CompletedActionStatus; limit?: number; page?: number; }, inclusion: IKeyOfProjection[]): Promise; /** * 決済取引番号から完了済の決済採用アクションを参照する */ findCompletedAcceptActionsByTransactionNumber(params: { project: { id: string; }; purpose: { id: string; }; object: { /** * 決済取引番号 */ transactionNumber: string; }; }, inclusion: IKeyOfProjection[]): Promise; /** * アクションIDからレシピのafterMediaを参照する */ findPaymentUrlById(params: { project: { id: string; }; /** * アクションID */ id: string; }): Promise<{ paymentMethodId: string; paymentUrl?: string; }>; }