@chevre/domain
Version:
Chevre Domain Library for Node.js
24 lines (23 loc) • 1.21 kB
TypeScript
import * as factory from '../../../factory';
import type { ActionRepo } from '../../../repo/action';
import type { ITransactionInProgress, TransactionRepo } from '../../../repo/transaction';
import * as PayTransactionService from '../../assetTransaction/pay';
type IObjectWithoutDetail = factory.action.authorize.paymentMethod.any.IObjectWithoutDetail;
declare function handlePrePublishedPaymentMethodIdOnAuthorizing(params: {
object: Pick<IObjectWithoutDetail, 'amount' | 'issuedThrough' | 'paymentMethod'>;
prePublishedPaymentMethodId: string;
transaction: Pick<ITransactionInProgress<factory.transactionType.PlaceOrder>, 'agent' | 'expires' | 'id' | 'typeOf' | 'project' | 'seller'>;
}): (repos: {
action: ActionRepo;
transaction: TransactionRepo;
}) => Promise<{
authorizeParams?: {
creditCard: factory.action.authorize.paymentMethod.any.ICreditCard;
paymentMethodByTransaction: factory.transaction.placeOrder.IPaymentMethodByPaymentUrl;
pendingPaymentAgencyTransaction: PayTransactionService.IPaymentAgencyTransaction;
};
existingCompletedAuthorizeAction?: {
id: string;
};
}>;
export { handlePrePublishedPaymentMethodIdOnAuthorizing };