@chevre/domain 24.0.0-alpha.73 → 24.0.0-alpha.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/chevre/credentials.js +3 -26
- package/lib/chevre/errorHandler.js +15 -38
- package/lib/chevre/eventEmitter.js +17 -7
- package/lib/chevre/index.d.ts +0 -2
- package/lib/chevre/index.js +17 -29
- package/lib/chevre/repo/aggregateOffer.js +3 -26
- package/lib/chevre/repo/event.js +17 -7
- package/lib/chevre/repo/eventSeries.js +1 -24
- package/lib/chevre/repo/offerCatalog.js +3 -26
- package/lib/chevre/repository.js +103 -126
- package/lib/chevre/service/accountTransaction.js +17 -7
- package/lib/chevre/service/aggregation.js +17 -7
- package/lib/chevre/service/assetTransaction/pay/check.js +17 -7
- package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.js +17 -7
- package/lib/chevre/service/assetTransaction/pay/searchGMOTrade.js +17 -7
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorize.js +5 -5
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeCreditCard.js +17 -7
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.js +17 -7
- package/lib/chevre/service/assetTransaction/registerService/potentialActions.js +0 -1
- package/lib/chevre/service/assetTransaction/registerService.d.ts +3 -0
- package/lib/chevre/service/assetTransaction/registerService.js +19 -62
- package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +52 -76
- package/lib/chevre/service/assetTransaction/reserve/start.js +18 -75
- package/lib/chevre/service/assetTransaction.d.ts +0 -2
- package/lib/chevre/service/assetTransaction.js +18 -17
- package/lib/chevre/service/notification/notifyByEmail.js +1 -1
- package/lib/chevre/service/notification/sendEmailMessage.js +1 -1
- package/lib/chevre/service/notification/triggerWebhook.js +22 -12
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.js +17 -7
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.js +2 -2
- package/lib/chevre/service/offer/product.js +17 -7
- package/lib/chevre/service/offer.js +17 -7
- package/lib/chevre/service/order/confirmPayTransaction.js +17 -7
- package/lib/chevre/service/payment/any/authorize.js +17 -7
- package/lib/chevre/service/payment/any/processVoidPayTransaction.js +17 -7
- package/lib/chevre/service/payment/any/publishPaymentUrl.js +17 -7
- package/lib/chevre/service/payment/creditCard/authorize/handleAuthorizeError.js +1 -1
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/processSeatInfoSync.js +1 -1
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSync.js +4 -4
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSyncCancel.js +1 -1
- package/lib/chevre/service/permit.js +17 -7
- package/lib/chevre/service/reserveCOA/cancelReservation.js +1 -1
- package/lib/chevre/service/task/aggregateScreeningEvent.js +17 -7
- package/lib/chevre/service/task/deletePerson.js +2 -25
- package/lib/chevre/service/task/deleteTransaction.js +17 -7
- package/lib/chevre/service/task/importEventCapacitiesFromCOA.js +17 -7
- package/lib/chevre/service/task/importEventsFromCOA.js +17 -7
- package/lib/chevre/service/task/importOffersFromCOA.js +17 -7
- package/lib/chevre/service/task/payment/invalidatePaymentUrlByTask.js +17 -7
- package/lib/chevre/service/task/payment/payByTask.js +21 -11
- package/lib/chevre/service/task/payment/refundByTask.js +21 -11
- package/lib/chevre/service/task/payment/voidPaymentByTask.js +21 -11
- package/lib/chevre/service/task/returnPayTransaction.js +17 -7
- package/lib/chevre/service/task/returnReserveTransaction.js +17 -7
- package/lib/chevre/service/task.js +2 -25
- package/lib/chevre/service/taskHandler.js +3 -26
- package/lib/chevre/service/transaction/returnOrder/preStart/getReturnPolicyByProject.js +5 -5
- package/lib/chevre/service/transaction.js +17 -7
- package/lib/chevre/service.d.ts +0 -4
- package/lib/chevre/service.js +33 -43
- package/lib/index.js +17 -7
- package/package.json +9 -14
- package/lib/chevre/pecorinoapi.d.ts +0 -5
- package/lib/chevre/pecorinoapi.js +0 -9
- package/lib/chevre/service/assetTransaction/moneyTransfer/potentialActions.d.ts +0 -7
- package/lib/chevre/service/assetTransaction/moneyTransfer/potentialActions.js +0 -104
- package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +0 -51
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +0 -434
- package/lib/chevre/service/assetTransaction/pay/start/account/validation.d.ts +0 -8
- package/lib/chevre/service/assetTransaction/pay/start/account/validation.js +0 -43
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeAccount.d.ts +0 -13
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeAccount.js +0 -62
- package/lib/chevre/service/delivery.d.ts +0 -27
- package/lib/chevre/service/delivery.js +0 -305
- package/lib/chevre/service/moneyTransfer.d.ts +0 -76
- package/lib/chevre/service/moneyTransfer.js +0 -659
- package/lib/chevre/service/payment/paymentCard.d.ts +0 -42
- package/lib/chevre/service/payment/paymentCard.js +0 -442
- package/lib/chevre/service/task/cancelMoneyTransfer.d.ts +0 -6
- package/lib/chevre/service/task/cancelMoneyTransfer.js +0 -19
- package/lib/chevre/service/task/givePointAward.d.ts +0 -6
- package/lib/chevre/service/task/givePointAward.js +0 -55
- package/lib/chevre/service/task/moneyTransfer.d.ts +0 -6
- package/lib/chevre/service/task/moneyTransfer.js +0 -49
- package/lib/chevre/service/task/returnPointAward.d.ts +0 -6
- package/lib/chevre/service/task/returnPointAward.js +0 -55
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.call = call;
|
|
27
|
-
const factory_1 = require("../../factory");
|
|
28
|
-
const action_1 = require("../../repo/action");
|
|
29
|
-
const assetTransaction_1 = require("../../repo/assetTransaction");
|
|
30
|
-
const product_1 = require("../../repo/product");
|
|
31
|
-
const project_1 = require("../../repo/project");
|
|
32
|
-
const transactionNumber_1 = require("../../repo/transactionNumber");
|
|
33
|
-
const DeliveryService = __importStar(require("../delivery"));
|
|
34
|
-
/**
|
|
35
|
-
* タスク実行関数
|
|
36
|
-
*/
|
|
37
|
-
function call(data) {
|
|
38
|
-
return async ({ redisClient, connection }) => {
|
|
39
|
-
if (redisClient === undefined) {
|
|
40
|
-
throw new factory_1.factory.errors.Argument('settings', 'redisClient required');
|
|
41
|
-
}
|
|
42
|
-
const actionRepo = new action_1.ActionRepo(connection);
|
|
43
|
-
const assetTransactionRepo = new assetTransaction_1.AssetTransactionRepo(connection);
|
|
44
|
-
const productRepo = new product_1.ProductRepo(connection);
|
|
45
|
-
const projectRepo = new project_1.ProjectRepo(connection);
|
|
46
|
-
const transactionNumberRepo = new transactionNumber_1.TransactionNumberRepo({ connection });
|
|
47
|
-
await DeliveryService.returnPointAward(data)({
|
|
48
|
-
action: actionRepo,
|
|
49
|
-
assetTransaction: assetTransactionRepo,
|
|
50
|
-
product: productRepo,
|
|
51
|
-
project: projectRepo,
|
|
52
|
-
transactionNumber: transactionNumberRepo
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
}
|