UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

34 lines (33 loc) 2.17 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.call = call; const accountingReport_1 = require("../../repo/accountingReport"); const action_1 = require("../../repo/action"); const assetTransaction_1 = require("../../repo/assetTransaction"); const paymentService_1 = require("../../repo/paymentService"); const paymentServiceProvider_1 = require("../../repo/paymentServiceProvider"); const sellerPaymentAccepted_1 = require("../../repo/sellerPaymentAccepted"); const task_1 = require("../../repo/task"); const invalidatePaymentUrlByTask_1 = require("./payment/invalidatePaymentUrlByTask"); function call(params) { return (_a) => __awaiter(this, [_a], void 0, function* ({ connection, settings }) { yield (0, invalidatePaymentUrlByTask_1.invalidatePaymentUrlByTask)(Object.assign(Object.assign({}, params.data), { sameAs: { id: params.id } }))({ accountingReport: new accountingReport_1.AccountingReportRepo(connection), action: new action_1.ActionRepo(connection), assetTransaction: new assetTransaction_1.AssetTransactionRepo(connection), paymentAccepted: new sellerPaymentAccepted_1.SellerPaymentAcceptedRepo(connection), paymentService: new paymentService_1.PaymentServiceRepo(connection), paymentServiceProvider: new paymentServiceProvider_1.PaymentServiceProviderRepo(connection), task: new task_1.TaskRepo(connection) }, settings); }); }