@chevre/domain 26.0.0 → 26.1.0-alpha.0
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 +8 -0
- package/lib/chevre/repo/action/acceptCOAOffer.js +17 -0
- package/lib/chevre/repo/action/acceptPay.d.ts +8 -0
- package/lib/chevre/repo/action/acceptPay.js +19 -2
- package/lib/chevre/repo/action/anyAction/actionProcess.d.ts +12 -21
- package/lib/chevre/repo/action/anyAction/actionProcess.js +4 -360
- package/lib/chevre/repo/action/anyAction/actionRecipe.d.ts +1 -1
- package/lib/chevre/repo/action/authorizeInvoice.js +1 -1
- package/lib/chevre/repo/action/authorizeOffer.js +1 -5
- package/lib/chevre/repo/action/authorizePaymentMethod.d.ts +8 -0
- package/lib/chevre/repo/action/authorizePaymentMethod.js +18 -1
- package/lib/chevre/repo/action/checkMovieTicket.d.ts +8 -0
- package/lib/chevre/repo/action/checkMovieTicket.js +17 -0
- package/lib/chevre/repo/action/dedicatedAction/dedicatedActionProcess.d.ts +46 -0
- package/lib/chevre/repo/action/dedicatedAction/dedicatedActionProcess.js +92 -0
- package/lib/chevre/repo/action/inform.d.ts +2 -1
- package/lib/chevre/repo/action/inform.js +14 -45
- package/lib/chevre/repo/action/pay.js +1 -1
- package/lib/chevre/repo/action/update.d.ts +8 -6
- package/lib/chevre/repo/action/update.js +14 -51
- package/lib/chevre/repo/action/use.d.ts +2 -1
- package/lib/chevre/repo/action/use.js +14 -45
- package/lib/chevre/repo/adminAction.d.ts +1 -1
- package/lib/chevre/repo/adminAction.js +27 -1
- package/lib/chevre/repo/factory/action/createMongoConditions.d.ts +4 -0
- package/lib/chevre/repo/factory/action/createMongoConditions.js +335 -0
- package/lib/chevre/repo/mongoose/schemas/action/abstractAction.d.ts +5 -0
- package/lib/chevre/repo/mongoose/schemas/action/abstractAction.js +2 -0
- package/lib/chevre/service/assetTransaction/pay/check.d.ts +3 -1
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorize.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay/start.d.ts +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.js +4 -5
- package/lib/chevre/service/payment/any/authorize.d.ts +1 -1
- package/lib/chevre/service/payment/any/findAcceptAction.js +4 -5
- package/lib/chevre/service/payment/any/findAuthorizeAction.js +4 -5
- package/lib/chevre/service/payment/any/findCheckAction.d.ts +3 -1
- package/lib/chevre/service/payment/any/findCheckAction.js +5 -6
- package/lib/chevre/service/payment/movieTicket/authorize.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket/checkMovieTicket.d.ts +3 -1
- package/lib/chevre/service/payment/movieTicket/checkMovieTicket.js +3 -3
- package/lib/chevre/service/payment/movieTicket/validation.d.ts +3 -1
- package/lib/chevre/service/payment/movieTicket/validation.js +2 -2
- package/lib/chevre/service/task/acceptCOAOffer.js +4 -5
- package/lib/chevre/service/task/authorizePayment.js +5 -6
- package/lib/chevre/service/task/checkMovieTicket.js +7 -6
- package/lib/chevre/service/task/pay.js +3 -2
- package/lib/chevre/service/task/payment/payByTask.d.ts +3 -1
- package/lib/chevre/service/task/payment/payByTask.js +1 -1
- package/lib/chevre/service/task/publishPaymentUrl.js +4 -5
- package/package.json +1 -1
|
@@ -16,7 +16,9 @@ import type { TaskRepo } from '../../../repo/task';
|
|
|
16
16
|
import { factory } from '../../../factory';
|
|
17
17
|
import type { IntegrationSettingRepo as Settings } from '../../../repo/setting/integration';
|
|
18
18
|
interface IPayTask2payActionAttributesRepos {
|
|
19
|
-
|
|
19
|
+
actions: {
|
|
20
|
+
checkMovieTicket: CheckMovieTicketActionRepo;
|
|
21
|
+
};
|
|
20
22
|
acceptedOffer: AcceptedOfferRepo;
|
|
21
23
|
assetTransaction: AssetTransactionRepo;
|
|
22
24
|
order: OrderRepo;
|
|
@@ -133,7 +133,7 @@ function payTask2payActionAttributes(params) {
|
|
|
133
133
|
let checkResult;
|
|
134
134
|
const checkedActionId = transaction.object.checkedAction?.id;
|
|
135
135
|
if (typeof checkedActionId === 'string' && checkedActionId !== '') {
|
|
136
|
-
const recipe = await repos.
|
|
136
|
+
const recipe = await repos.actions.checkMovieTicket.findRecipeByAction({
|
|
137
137
|
project: { id: transaction.project.id },
|
|
138
138
|
recipeFor: { id: checkedActionId }
|
|
139
139
|
});
|
|
@@ -55,11 +55,10 @@ function call(params) {
|
|
|
55
55
|
catch (error) {
|
|
56
56
|
let throwsError = true;
|
|
57
57
|
// アクションが存在すればタスクを実行済扱いにする
|
|
58
|
-
const action = (await actionRepo.
|
|
59
|
-
sameAs: { id:
|
|
60
|
-
purpose: { id:
|
|
61
|
-
|
|
62
|
-
})).shift();
|
|
58
|
+
const action = (await actionRepo.findActionBySameAs({
|
|
59
|
+
sameAs: { id: params.id },
|
|
60
|
+
purpose: { id: params.data.purpose.id }
|
|
61
|
+
}));
|
|
63
62
|
if (typeof action?.id === 'string') {
|
|
64
63
|
throwsError = false;
|
|
65
64
|
}
|
package/package.json
CHANGED