@chevre/domain
Version:
Chevre Domain Library for Node.js
26 lines (25 loc) • 1.22 kB
TypeScript
import type { AccountingReportRepo } from '../../../repo/accountingReport';
import type { ActionRepo } from '../../../repo/action';
import type { PaymentServiceRepo } from '../../../repo/paymentService';
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted';
import type { TaskRepo } from '../../../repo/task';
import * as factory from '../../../factory';
import { Settings } from '../../../settings';
/**
* refund CreditCard IF payment
*/
declare function refundCreditCard(params: Pick<factory.action.trade.refund.IAttributes, 'agent' | 'object' | 'potentialActions' | 'project' | 'recipient' | 'typeOf' | 'instrument'> & {
purpose: factory.action.trade.refund.IPurposeAsReturnAction | factory.action.trade.refund.IPurposeAsPlaceOrder;
sameAs?: {
id: string;
};
}): (repos: {
action: ActionRepo;
accountingReport: AccountingReportRepo;
paymentAccepted: SellerPaymentAcceptedRepo;
paymentService: PaymentServiceRepo;
paymentServiceProvider: PaymentServiceProviderRepo;
task: TaskRepo;
}, settings: Settings) => Promise<void>;
export { refundCreditCard };