@chevre/domain 24.0.0-alpha.16 → 24.0.0-alpha.18
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/repo/action/acceptCOAOffer.d.ts +23 -0
- package/lib/chevre/repo/action/acceptCOAOffer.js +64 -0
- package/lib/chevre/repo/action/acceptPay.d.ts +8 -0
- package/lib/chevre/repo/action/acceptPay.js +13 -0
- package/lib/chevre/repo/action/actionProcess.d.ts +115 -0
- package/lib/chevre/repo/action/actionProcess.js +293 -0
- package/lib/chevre/repo/action/authorizeOffer.d.ts +21 -0
- package/lib/chevre/repo/action/authorizeOffer.js +85 -0
- package/lib/chevre/repo/action/checkMovieTicket.d.ts +55 -0
- package/lib/chevre/repo/action/checkMovieTicket.js +145 -0
- package/lib/chevre/repo/action/checkThing.d.ts +8 -0
- package/lib/chevre/repo/action/checkThing.js +13 -0
- package/lib/chevre/repo/action.d.ts +9 -249
- package/lib/chevre/repo/action.js +308 -708
- package/lib/chevre/repo/aggregateAction.d.ts +102 -0
- package/lib/chevre/repo/aggregateAction.js +379 -0
- package/lib/chevre/repository.d.ts +27 -0
- package/lib/chevre/repository.js +60 -2
- package/lib/chevre/service/aggregation/system.d.ts +10 -10
- package/lib/chevre/service/aggregation/system.js +9 -9
- package/lib/chevre/service/assetTransaction/pay/check.d.ts +5 -4
- package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.d.ts +5 -2
- package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.js +3 -3
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.d.ts +14 -3
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.js +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +4 -2
- package/lib/chevre/service/offer/eventServiceByCOA/authorizeByAcceptAction.js +21 -13
- package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.js +17 -8
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.d.ts +2 -2
- package/lib/chevre/service/payment/any/findAcceptAction.d.ts +2 -2
- package/lib/chevre/service/payment/any/findAcceptAction.js +2 -2
- package/lib/chevre/service/payment/any/findCheckAction.d.ts +7 -6
- package/lib/chevre/service/payment/any/findCheckAction.js +2 -2
- package/lib/chevre/service/payment/any/publishPaymentUrl.d.ts +2 -0
- package/lib/chevre/service/payment/movieTicket/checkMovieTicket.d.ts +3 -3
- package/lib/chevre/service/payment/movieTicket/checkMovieTicket.js +3 -3
- package/lib/chevre/service/task/acceptCOAOffer.js +5 -2
- package/lib/chevre/service/task/checkMovieTicket.js +3 -3
- package/lib/chevre/service/task/checkResource.js +2 -2
- package/lib/chevre/service/task/publishPaymentUrl.js +4 -2
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ exports.call = call;
|
|
|
27
27
|
const factory = __importStar(require("../../factory"));
|
|
28
28
|
const acceptedPaymentMethod_1 = require("../../repo/acceptedPaymentMethod");
|
|
29
29
|
const action_1 = require("../../repo/action");
|
|
30
|
+
const acceptPay_1 = require("../../repo/action/acceptPay");
|
|
30
31
|
const assetTransaction_1 = require("../../repo/assetTransaction");
|
|
31
32
|
const authorization_1 = require("../../repo/authorization");
|
|
32
33
|
const event_1 = require("../../repo/event");
|
|
@@ -54,7 +55,7 @@ function call(params) {
|
|
|
54
55
|
if (!options.executeById) {
|
|
55
56
|
return;
|
|
56
57
|
}
|
|
57
|
-
const actionRepo = new
|
|
58
|
+
const actionRepo = new acceptPay_1.AcceptPayActionRepo(connection);
|
|
58
59
|
// const transactionProcessRepo = new TransactionProcessRepo(redisClient, { lockExpiresInSeconds: 120 });
|
|
59
60
|
try {
|
|
60
61
|
await (0, any_1.publishPaymentUrl)({
|
|
@@ -63,7 +64,8 @@ function call(params) {
|
|
|
63
64
|
sameAs: { id: params.id }
|
|
64
65
|
})({
|
|
65
66
|
acceptedPaymentMethod: new acceptedPaymentMethod_1.AcceptedPaymentMethodRepo(connection),
|
|
66
|
-
action:
|
|
67
|
+
action: new action_1.ActionRepo(connection),
|
|
68
|
+
acceptPayAction: actionRepo,
|
|
67
69
|
assetTransaction: new assetTransaction_1.AssetTransactionRepo(connection),
|
|
68
70
|
authorization: new authorization_1.AuthorizationRepo(connection),
|
|
69
71
|
event: new event_1.EventRepo(connection),
|
package/package.json
CHANGED