@chevre/domain 24.0.0-alpha.40 → 24.0.0-alpha.42
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/accountTitle.d.ts +3 -3
- package/lib/chevre/repo/action/pay.d.ts +25 -0
- package/lib/chevre/repo/action/pay.js +54 -0
- package/lib/chevre/repo/action/refund.d.ts +9 -0
- package/lib/chevre/repo/action/refund.js +13 -0
- package/lib/chevre/repo/action.d.ts +5 -14
- package/lib/chevre/repo/action.js +20 -13
- package/lib/chevre/repo/additionalProperty.js +2 -2
- package/lib/chevre/repo/advanceBookingRequirement.d.ts +1 -3
- package/lib/chevre/repo/advanceBookingRequirement.js +2 -2
- package/lib/chevre/repo/aggregateOffer.d.ts +5 -9
- package/lib/chevre/repo/aggregateOffer.js +3 -3
- package/lib/chevre/repo/assetTransaction.d.ts +3 -3
- package/lib/chevre/repo/assetTransaction.js +12 -6
- package/lib/chevre/repo/categoryCode.d.ts +4 -6
- package/lib/chevre/repo/categoryCode.js +2 -2
- package/lib/chevre/repo/comment.d.ts +3 -3
- package/lib/chevre/repo/creativeWork.d.ts +3 -3
- package/lib/chevre/repo/creativeWork.js +3 -3
- package/lib/chevre/repo/customer.d.ts +3 -3
- package/lib/chevre/repo/customer.js +2 -2
- package/lib/chevre/repo/emailMessage.js +1 -1
- package/lib/chevre/repo/event.d.ts +6 -6
- package/lib/chevre/repo/event.js +10 -4
- package/lib/chevre/repo/eventSeries.d.ts +6 -6
- package/lib/chevre/repo/eventSeries.js +2 -2
- package/lib/chevre/repo/identity.d.ts +4 -6
- package/lib/chevre/repo/identityProvider.d.ts +4 -6
- package/lib/chevre/repo/identityProvider.js +2 -2
- package/lib/chevre/repo/issuer.d.ts +3 -3
- package/lib/chevre/repo/issuer.js +3 -3
- package/lib/chevre/repo/member.d.ts +3 -3
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +3 -3
- package/lib/chevre/repo/merchantReturnPolicy.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/account.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/advanceBookingRequirement.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateOrder.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/civicStructure.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/event.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/eventSeries.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/identity.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/member.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/message.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/note.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/pendingReservation.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/pendingReservationAggregate.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/productOffer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/reserveInterface.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/role.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/service/availableHour.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/setting.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/transactionNumber.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/trip.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +2 -2
- package/lib/chevre/repo/movieTicketType.d.ts +1 -3
- package/lib/chevre/repo/movieTicketType.js +2 -2
- package/lib/chevre/repo/offer/offerInCatalogReadOnly.d.ts +1 -3
- package/lib/chevre/repo/offer/unitPriceInCatalog.d.ts +1 -3
- package/lib/chevre/repo/offerCatalog.d.ts +3 -3
- package/lib/chevre/repo/offerCatalog.js +5 -4
- package/lib/chevre/repo/offerCatalogItem.js +4 -4
- package/lib/chevre/repo/offerItemCondition.js +2 -2
- package/lib/chevre/repo/order.d.ts +3 -3
- package/lib/chevre/repo/ownershipInfo.d.ts +3 -3
- package/lib/chevre/repo/passport.js +1 -1
- package/lib/chevre/repo/paymentService.d.ts +1 -3
- package/lib/chevre/repo/paymentService.js +2 -2
- package/lib/chevre/repo/paymentServiceChannel.d.ts +1 -3
- package/lib/chevre/repo/paymentServiceChannel.js +2 -2
- package/lib/chevre/repo/person.js +2 -2
- package/lib/chevre/repo/place/busStop.js +1 -1
- package/lib/chevre/repo/place/movieTheater.d.ts +3 -3
- package/lib/chevre/repo/place/movieTheater.js +10 -4
- package/lib/chevre/repo/place/screeningRoom.d.ts +3 -3
- package/lib/chevre/repo/place/screeningRoom.js +2 -2
- package/lib/chevre/repo/place/seat.d.ts +2 -4
- package/lib/chevre/repo/potentialAction.d.ts +4 -6
- package/lib/chevre/repo/potentialAction.js +2 -2
- package/lib/chevre/repo/priceSpecification.d.ts +3 -3
- package/lib/chevre/repo/priceSpecification.js +2 -2
- package/lib/chevre/repo/product.d.ts +5 -9
- package/lib/chevre/repo/product.js +3 -3
- package/lib/chevre/repo/productModel.js +2 -2
- package/lib/chevre/repo/project.d.ts +3 -3
- package/lib/chevre/repo/rateLimit/offer.js +1 -1
- package/lib/chevre/repo/reservation.d.ts +4 -6
- package/lib/chevre/repo/seller.d.ts +5 -9
- package/lib/chevre/repo/seller.js +2 -2
- package/lib/chevre/repo/sellerReturnPolicy.d.ts +1 -3
- package/lib/chevre/repo/sellerReturnPolicy.js +2 -2
- package/lib/chevre/repo/task.d.ts +3 -3
- package/lib/chevre/repo/task.js +1 -1
- package/lib/chevre/repo/transaction.d.ts +3 -3
- package/lib/chevre/repo/transactionProcess.js +1 -1
- package/lib/chevre/repo/trip.d.ts +4 -12
- package/lib/chevre/repo/trip.js +3 -3
- package/lib/chevre/repo/webSite.d.ts +1 -3
- package/lib/chevre/repo/webSite.js +3 -2
- package/lib/chevre/repository.d.ts +10 -0
- package/lib/chevre/repository.js +22 -0
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +8 -5
- package/lib/chevre/service/assetTransaction/pay/confirm.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay/exportTasksById.js +2 -1
- package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.js +2 -1
- package/lib/chevre/service/assetTransaction/pay/start/factory.js +2 -1
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorize.d.ts +7 -2
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.d.ts +7 -2
- package/lib/chevre/service/assetTransaction/pay/start.d.ts +7 -2
- package/lib/chevre/service/assetTransaction/refund.d.ts +5 -2
- package/lib/chevre/service/assetTransaction/refund.js +1 -1
- package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +6 -3
- package/lib/chevre/service/assetTransaction/reserve/start/factory/createStartParams.js +3 -2
- package/lib/chevre/service/delivery/factory.js +2 -1
- package/lib/chevre/service/event/saveScreeningEvents.js +2 -2
- package/lib/chevre/service/event.js +1 -1
- package/lib/chevre/service/notification/notifyByEmail.d.ts +1 -1
- package/lib/chevre/service/notification/triggerWebhook.js +1 -1
- package/lib/chevre/service/offer/event/authorize.js +2 -1
- package/lib/chevre/service/offer/event/searchEventTicketOffers.js +2 -1
- package/lib/chevre/service/offer/event/searchOffersByIds.js +2 -1
- package/lib/chevre/service/offer/event/voidTransaction.js +6 -3
- package/lib/chevre/service/offer/event/voidTransactionByActionId.js +2 -1
- package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.js +14 -11
- package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.d.ts +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.js +2 -1
- package/lib/chevre/service/offer/product.js +1 -1
- package/lib/chevre/service/order/confirmPayTransaction.d.ts +1 -1
- package/lib/chevre/service/order/onAssetTransactionStatusChanged.js +2 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned.js +4 -2
- package/lib/chevre/service/payment/any/authorize.d.ts +7 -2
- package/lib/chevre/service/payment/any/findAcceptAction.js +2 -1
- package/lib/chevre/service/payment/any/findAuthorizeAction.js +2 -1
- package/lib/chevre/service/payment/any/findCheckAction.js +2 -1
- package/lib/chevre/service/payment/any/invalidatePaymentUrl.js +2 -1
- package/lib/chevre/service/payment/any/onPayActionCompleted.d.ts +7 -2
- package/lib/chevre/service/payment/any/onPayActionCompleted.js +7 -2
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.d.ts +10 -5
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.js +21 -11
- package/lib/chevre/service/payment/any/onRefundActionCompletedOrFailed.d.ts +13 -10
- package/lib/chevre/service/payment/any/onRefundActionCompletedOrFailed.js +9 -6
- package/lib/chevre/service/payment/any/processVoidPayTransaction.js +2 -1
- package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.js +2 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.js +1 -1
- package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +7 -2
- package/lib/chevre/service/payment/creditCard/payCreditCard.js +8 -4
- package/lib/chevre/service/payment/creditCard/refundCreditCard.d.ts +7 -2
- package/lib/chevre/service/payment/creditCard/refundCreditCard.js +11 -7
- package/lib/chevre/service/payment/faceToFace.d.ts +12 -3
- package/lib/chevre/service/payment/faceToFace.js +16 -8
- package/lib/chevre/service/payment/factory/createPayObjectServiceOutput.js +2 -1
- package/lib/chevre/service/payment/factory.js +4 -2
- package/lib/chevre/service/payment/movieTicket/authorize.d.ts +7 -2
- package/lib/chevre/service/payment/movieTicket/authorize.js +1 -1
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/payActionParams2seatInfoSyncIn.d.ts +12 -0
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/payActionParams2seatInfoSyncIn.js +72 -0
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/processSeatInfoSync.d.ts +8 -0
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/processSeatInfoSync.js +29 -0
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +8 -3
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.js +14 -77
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/createSeatInfoSyncCancelInOnRefund.d.ts +14 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/createSeatInfoSyncCancelInOnRefund.js +49 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/createSeatInfoSyncInOnRefund.d.ts +14 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/createSeatInfoSyncInOnRefund.js +46 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSync.d.ts +12 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSync.js +72 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSyncCancel.d.ts +8 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSyncCancel.js +60 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket.d.ts +8 -3
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket.js +20 -125
- package/lib/chevre/service/payment/movieTicket/validation.d.ts +1 -2
- package/lib/chevre/service/payment/movieTicket/validation.js +37 -29
- package/lib/chevre/service/payment/movieTicket/voidTransaction.d.ts +6 -2
- package/lib/chevre/service/payment/movieTicket/voidTransaction.js +1 -1
- package/lib/chevre/service/payment/paymentCard.d.ts +12 -3
- package/lib/chevre/service/payment/paymentCard.js +16 -8
- package/lib/chevre/service/permit.js +4 -2
- package/lib/chevre/service/reserve/factory.d.ts +1 -1
- package/lib/chevre/service/reserve/findByCode.js +2 -1
- package/lib/chevre/service/reserve/searchByOrder.js +2 -1
- package/lib/chevre/service/reserve/verifyToken4reservation.js +2 -1
- package/lib/chevre/service/task/authorizePayment.js +8 -2
- package/lib/chevre/service/task/confirmReserveTransaction.js +4 -2
- package/lib/chevre/service/task/invalidatePaymentUrl.js +8 -2
- package/lib/chevre/service/task/onResourceUpdated.js +1 -1
- package/lib/chevre/service/task/pay.js +8 -2
- package/lib/chevre/service/task/payment/invalidatePaymentUrlByTask.d.ts +7 -2
- package/lib/chevre/service/task/payment/payByTask.d.ts +7 -2
- package/lib/chevre/service/task/payment/payByTask.js +2 -1
- package/lib/chevre/service/task/payment/refundByTask.d.ts +7 -2
- package/lib/chevre/service/task/payment/voidPaymentByTask.d.ts +6 -0
- package/lib/chevre/service/task/refund.js +8 -2
- package/lib/chevre/service/task/returnPayTransaction.js +5 -2
- package/lib/chevre/service/task/returnReserveTransaction.js +2 -1
- package/lib/chevre/service/task/voidPayment.js +6 -0
- package/lib/chevre/service/transaction/deleteTransaction.js +4 -2
- package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +2 -1
- package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +2 -1
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +2 -2
- package/lib/chevre/service/transaction/returnOrder/preStart/getReturnPolicyByProject.js +5 -3
- package/lib/chevre/service/validation/validateOrder.js +4 -2
- package/package.json +2 -2
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.call = call;
|
|
4
4
|
const accountingReport_1 = require("../../repo/accountingReport");
|
|
5
|
-
|
|
5
|
+
// import { ActionRepo } from '../../repo/action';
|
|
6
|
+
const pay_1 = require("../../repo/action/pay");
|
|
7
|
+
const refund_1 = require("../../repo/action/refund");
|
|
6
8
|
const assetTransaction_1 = require("../../repo/assetTransaction");
|
|
7
9
|
const paymentService_1 = require("../../repo/paymentService");
|
|
8
10
|
const paymentServiceProvider_1 = require("../../repo/paymentServiceProvider");
|
|
@@ -16,7 +18,11 @@ function call(params) {
|
|
|
16
18
|
sameAs: { id: params.id }
|
|
17
19
|
})({
|
|
18
20
|
accountingReport: new accountingReport_1.AccountingReportRepo(connection),
|
|
19
|
-
action: new
|
|
21
|
+
// action: new ActionRepo(connection),
|
|
22
|
+
actions: {
|
|
23
|
+
pay: new pay_1.PayActionRepo(connection),
|
|
24
|
+
refund: new refund_1.RefundActionRepo(connection),
|
|
25
|
+
},
|
|
20
26
|
assetTransaction: new assetTransaction_1.AssetTransactionRepo(connection),
|
|
21
27
|
paymentAccepted: new sellerPaymentAccepted_1.SellerPaymentAcceptedRepo(connection),
|
|
22
28
|
paymentService: new paymentService_1.PaymentServiceRepo(connection),
|
|
@@ -450,7 +450,7 @@ function createInformMovieTheaterTasks(params, setting) {
|
|
|
450
450
|
// );
|
|
451
451
|
// 入場ゲートを廃止(2026-01-17~)
|
|
452
452
|
const movieTheaters4inform = movieTheaters.map((movieTheater) => {
|
|
453
|
-
const { hasEntranceGate, ...movieTheaterWithoutEntranceGates } = movieTheater;
|
|
453
|
+
const { hasEntranceGate, ...movieTheaterWithoutEntranceGates } = movieTheater; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
454
454
|
return {
|
|
455
455
|
...movieTheaterWithoutEntranceGates
|
|
456
456
|
// ...movieTheater
|
|
@@ -27,7 +27,9 @@ exports.call = call;
|
|
|
27
27
|
const factory = __importStar(require("../../factory"));
|
|
28
28
|
const acceptedOffer_1 = require("../../repo/acceptedOffer");
|
|
29
29
|
const accountingReport_1 = require("../../repo/accountingReport");
|
|
30
|
-
|
|
30
|
+
// import { ActionRepo } from '../../repo/action';
|
|
31
|
+
const pay_1 = require("../../repo/action/pay");
|
|
32
|
+
const refund_1 = require("../../repo/action/refund");
|
|
31
33
|
const checkMovieTicket_1 = require("../../repo/action/checkMovieTicket");
|
|
32
34
|
const assetTransaction_1 = require("../../repo/assetTransaction");
|
|
33
35
|
const credentials_1 = require("../../repo/credentials");
|
|
@@ -70,7 +72,11 @@ function call(params) {
|
|
|
70
72
|
payActionAttributes)({
|
|
71
73
|
acceptedOffer: new acceptedOffer_1.AcceptedOfferRepo(connection),
|
|
72
74
|
accountingReport: new accountingReport_1.AccountingReportRepo(connection),
|
|
73
|
-
action: new
|
|
75
|
+
// action: new ActionRepo(connection),
|
|
76
|
+
actions: {
|
|
77
|
+
pay: new pay_1.PayActionRepo(connection),
|
|
78
|
+
refund: new refund_1.RefundActionRepo(connection),
|
|
79
|
+
},
|
|
74
80
|
assetTransaction: new assetTransaction_1.AssetTransactionRepo(connection),
|
|
75
81
|
credentials: new credentials_1.CredentialsRepo(redisClient, {
|
|
76
82
|
scope: `${factory.service.paymentService.PaymentServiceType.MovieTicket}:${paymentServiceId}`,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as factory from '../../../factory';
|
|
2
2
|
import { Settings } from '../../../settings';
|
|
3
3
|
import type { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
4
|
-
import type {
|
|
4
|
+
import type { PayActionRepo } from '../../../repo/action/pay';
|
|
5
|
+
import type { RefundActionRepo } from '../../../repo/action/refund';
|
|
5
6
|
import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
|
|
6
7
|
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
7
8
|
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
@@ -9,7 +10,11 @@ import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccep
|
|
|
9
10
|
import type { TaskRepo } from '../../../repo/task';
|
|
10
11
|
type IInvalidatePaymentUrlOperation<T> = (repos: {
|
|
11
12
|
accountingReport: AccountingReportRepo;
|
|
12
|
-
action
|
|
13
|
+
action?: never;
|
|
14
|
+
actions: {
|
|
15
|
+
pay: PayActionRepo;
|
|
16
|
+
refund: RefundActionRepo;
|
|
17
|
+
};
|
|
13
18
|
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
14
19
|
paymentService: PaymentServiceRepo;
|
|
15
20
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AcceptedOfferRepo } from '../../../repo/acceptedOffer';
|
|
2
2
|
import type { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PayActionRepo } from '../../../repo/action/pay';
|
|
4
|
+
import type { RefundActionRepo } from '../../../repo/action/refund';
|
|
4
5
|
import type { CheckMovieTicketActionRepo } from '../../../repo/action/checkMovieTicket';
|
|
5
6
|
import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
|
|
6
7
|
import type { CredentialsRepo } from '../../../repo/credentials';
|
|
@@ -31,7 +32,11 @@ declare function payTask2payActionAttributes(params: factory.task.pay.IData & {
|
|
|
31
32
|
}): (repos: IPayTask2payActionAttributesRepos) => Promise<factory.action.trade.pay.IAttributes>;
|
|
32
33
|
interface IPayByTaskRepos {
|
|
33
34
|
acceptedOffer: AcceptedOfferRepo;
|
|
34
|
-
action
|
|
35
|
+
action?: never;
|
|
36
|
+
actions: {
|
|
37
|
+
pay: PayActionRepo;
|
|
38
|
+
refund: RefundActionRepo;
|
|
39
|
+
};
|
|
35
40
|
accountingReport: AccountingReportRepo;
|
|
36
41
|
assetTransaction: AssetTransactionRepo;
|
|
37
42
|
credentials: CredentialsRepo;
|
|
@@ -177,7 +177,7 @@ payActionAttributes) {
|
|
|
177
177
|
case factory.service.paymentService.PaymentServiceType.CreditCard:
|
|
178
178
|
await CreditCardPaymentService.payCreditCard(payActionAttributes)(repos, settings);
|
|
179
179
|
break;
|
|
180
|
-
case factory.service.paymentService.PaymentServiceType.MovieTicket:
|
|
180
|
+
case factory.service.paymentService.PaymentServiceType.MovieTicket: {
|
|
181
181
|
// check purpose(2025-02-12~)
|
|
182
182
|
const purpose = payActionAttributes.purpose;
|
|
183
183
|
if (purpose?.typeOf !== factory.order.OrderType.Order) {
|
|
@@ -188,6 +188,7 @@ payActionAttributes) {
|
|
|
188
188
|
purpose
|
|
189
189
|
}, { callOnPayActionCompleted: true })(repos, settings);
|
|
190
190
|
break;
|
|
191
|
+
}
|
|
191
192
|
default:
|
|
192
193
|
throw new factory.errors.NotImplemented(`Payment service '${paymentServiceType}' not implemented`);
|
|
193
194
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PayActionRepo } from '../../../repo/action/pay';
|
|
3
|
+
import type { RefundActionRepo } from '../../../repo/action/refund';
|
|
3
4
|
import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
|
|
4
5
|
import type { CredentialsRepo } from '../../../repo/credentials';
|
|
5
6
|
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
@@ -16,7 +17,11 @@ declare function refundByTask(params: factory.task.refund.IData & {
|
|
|
16
17
|
id: string;
|
|
17
18
|
};
|
|
18
19
|
}): (repos: {
|
|
19
|
-
action
|
|
20
|
+
action?: never;
|
|
21
|
+
actions: {
|
|
22
|
+
pay: PayActionRepo;
|
|
23
|
+
refund: RefundActionRepo;
|
|
24
|
+
};
|
|
20
25
|
accountingReport: AccountingReportRepo;
|
|
21
26
|
credentials: CredentialsRepo;
|
|
22
27
|
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
2
2
|
import type { ActionRepo } from '../../../repo/action';
|
|
3
|
+
import type { PayActionRepo } from '../../../repo/action/pay';
|
|
4
|
+
import type { RefundActionRepo } from '../../../repo/action/refund';
|
|
3
5
|
import type { AuthorizeInvoiceActionRepo } from '../../../repo/action/authorizeInvoice';
|
|
4
6
|
import type { CredentialsRepo } from '../../../repo/credentials';
|
|
5
7
|
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
@@ -12,6 +14,10 @@ import * as factory from '../../../factory';
|
|
|
12
14
|
import { Settings } from '../../../settings';
|
|
13
15
|
declare function voidPaymentByTask(params: factory.task.voidPayment.IData): (repos: {
|
|
14
16
|
action: ActionRepo;
|
|
17
|
+
actions: {
|
|
18
|
+
pay: PayActionRepo;
|
|
19
|
+
refund: RefundActionRepo;
|
|
20
|
+
};
|
|
15
21
|
authorizeInvoiceAction: AuthorizeInvoiceActionRepo;
|
|
16
22
|
accountingReport: AccountingReportRepo;
|
|
17
23
|
credentials: CredentialsRepo;
|
|
@@ -26,7 +26,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.call = call;
|
|
27
27
|
const factory = __importStar(require("../../factory"));
|
|
28
28
|
const accountingReport_1 = require("../../repo/accountingReport");
|
|
29
|
-
|
|
29
|
+
// import { ActionRepo } from '../../repo/action';
|
|
30
|
+
const pay_1 = require("../../repo/action/pay");
|
|
31
|
+
const refund_1 = require("../../repo/action/refund");
|
|
30
32
|
const assetTransaction_1 = require("../../repo/assetTransaction");
|
|
31
33
|
const credentials_1 = require("../../repo/credentials");
|
|
32
34
|
const paymentService_1 = require("../../repo/paymentService");
|
|
@@ -61,7 +63,11 @@ function call(params) {
|
|
|
61
63
|
&& typeof credentialsExpireInSeconds === 'number' && credentialsExpireInSeconds > 0;
|
|
62
64
|
await (0, refundByTask_1.refundByTask)(data)({
|
|
63
65
|
accountingReport: new accountingReport_1.AccountingReportRepo(connection),
|
|
64
|
-
action: new
|
|
66
|
+
// action: new ActionRepo(connection),
|
|
67
|
+
actions: {
|
|
68
|
+
pay: new pay_1.PayActionRepo(connection),
|
|
69
|
+
refund: new refund_1.RefundActionRepo(connection),
|
|
70
|
+
},
|
|
65
71
|
credentials: new credentials_1.CredentialsRepo(redisClient, {
|
|
66
72
|
scope: `${factory.service.paymentService.PaymentServiceType.MovieTicket}:${paymentServiceId}`,
|
|
67
73
|
expireInSeconds: (useCredentialsRepo) ? credentialsExpireInSeconds : 0
|
|
@@ -30,13 +30,13 @@ exports.call = call;
|
|
|
30
30
|
const moment_1 = __importDefault(require("moment"));
|
|
31
31
|
const factory = __importStar(require("../../factory"));
|
|
32
32
|
const action_1 = require("../../repo/action");
|
|
33
|
+
const pay_1 = require("../../repo/action/pay");
|
|
33
34
|
const assetTransaction_1 = require("../../repo/assetTransaction");
|
|
34
35
|
const order_1 = require("../../repo/order");
|
|
35
36
|
const paymentService_1 = require("../../repo/paymentService");
|
|
36
37
|
const potentialAction_1 = require("../../repo/potentialAction");
|
|
37
38
|
const product_1 = require("../../repo/product");
|
|
38
39
|
const task_1 = require("../../repo/task");
|
|
39
|
-
// import { TransactionRepo } from '../../repo/transaction';
|
|
40
40
|
const returnOrder_1 = require("../../repo/transaction/returnOrder");
|
|
41
41
|
const transactionNumber_1 = require("../../repo/transactionNumber");
|
|
42
42
|
const RefundTransactionService = __importStar(require("../assetTransaction/refund"));
|
|
@@ -53,6 +53,9 @@ function call(params) {
|
|
|
53
53
|
sameAs: { id: params.id }
|
|
54
54
|
})({
|
|
55
55
|
action: new action_1.ActionRepo(connection),
|
|
56
|
+
actions: {
|
|
57
|
+
pay: new pay_1.PayActionRepo(connection),
|
|
58
|
+
},
|
|
56
59
|
assetTransaction: new assetTransaction_1.AssetTransactionRepo(connection),
|
|
57
60
|
order: new order_1.OrderRepo(connection),
|
|
58
61
|
paymentService: new paymentService_1.PaymentServiceRepo(connection),
|
|
@@ -158,7 +161,7 @@ function returnPayTransaction(taskData) {
|
|
|
158
161
|
});
|
|
159
162
|
const refundPurpose = createRefundPurpose(refundActionAttributes, order);
|
|
160
163
|
await RefundTransactionService.start(startRefundTransactionParams)({
|
|
161
|
-
|
|
164
|
+
actions: repos.actions,
|
|
162
165
|
paymentService: repos.paymentService,
|
|
163
166
|
potentialAction: repos.potentialAction,
|
|
164
167
|
product: repos.product,
|
|
@@ -101,7 +101,7 @@ function returnReserve(params) {
|
|
|
101
101
|
});
|
|
102
102
|
try {
|
|
103
103
|
switch (params.object.typeOf) {
|
|
104
|
-
case factory.assetTransactionType.COAReserveTransaction:
|
|
104
|
+
case factory.assetTransactionType.COAReserveTransaction: {
|
|
105
105
|
const processReturnCOAReserveResult = await CancelReservationCOAService.confirm({ object: params.object })({
|
|
106
106
|
reserveService: repos.reserveService
|
|
107
107
|
});
|
|
@@ -110,6 +110,7 @@ function returnReserve(params) {
|
|
|
110
110
|
project: { id: project.id }
|
|
111
111
|
});
|
|
112
112
|
break;
|
|
113
|
+
}
|
|
113
114
|
default:
|
|
114
115
|
await processCancelReservation4chevre(params, {
|
|
115
116
|
id: action.id,
|
|
@@ -27,6 +27,8 @@ exports.call = call;
|
|
|
27
27
|
const factory = __importStar(require("../../factory"));
|
|
28
28
|
const accountingReport_1 = require("../../repo/accountingReport");
|
|
29
29
|
const action_1 = require("../../repo/action");
|
|
30
|
+
const pay_1 = require("../../repo/action/pay");
|
|
31
|
+
const refund_1 = require("../../repo/action/refund");
|
|
30
32
|
const authorizeInvoice_1 = require("../../repo/action/authorizeInvoice");
|
|
31
33
|
const credentials_1 = require("../../repo/credentials");
|
|
32
34
|
const paymentService_1 = require("../../repo/paymentService");
|
|
@@ -51,6 +53,10 @@ function call(data) {
|
|
|
51
53
|
await (0, voidPaymentByTask_1.voidPaymentByTask)(data)({
|
|
52
54
|
accountingReport: new accountingReport_1.AccountingReportRepo(connection),
|
|
53
55
|
action: new action_1.ActionRepo(connection),
|
|
56
|
+
actions: {
|
|
57
|
+
pay: new pay_1.PayActionRepo(connection),
|
|
58
|
+
refund: new refund_1.RefundActionRepo(connection),
|
|
59
|
+
},
|
|
54
60
|
authorizeInvoiceAction: new authorizeInvoice_1.AuthorizeInvoiceActionRepo(connection),
|
|
55
61
|
credentials: new credentials_1.CredentialsRepo(redisClient, {
|
|
56
62
|
scope: `${factory.service.paymentService.PaymentServiceType.MovieTicket}:${paymentServiceId}`,
|
|
@@ -197,7 +197,7 @@ function deleteTransactionById(params) {
|
|
|
197
197
|
try {
|
|
198
198
|
const transactionTypeOf = transaction.typeOf;
|
|
199
199
|
switch (transactionTypeOf) {
|
|
200
|
-
case factory.transactionType.PlaceOrder:
|
|
200
|
+
case factory.transactionType.PlaceOrder: {
|
|
201
201
|
// 取引に対する全ての承認アクションを検索
|
|
202
202
|
const authorizeActions = await repos.action.searchByPurpose({
|
|
203
203
|
typeOf: factory.actionType.AuthorizeAction,
|
|
@@ -210,7 +210,7 @@ function deleteTransactionById(params) {
|
|
|
210
210
|
case factory.transactionStatusType.Canceled:
|
|
211
211
|
case factory.transactionStatusType.Expired:
|
|
212
212
|
break;
|
|
213
|
-
case factory.transactionStatusType.Confirmed:
|
|
213
|
+
case factory.transactionStatusType.Confirmed: {
|
|
214
214
|
const deletingOrder = transaction.result?.order;
|
|
215
215
|
if (typeof deletingOrder?.orderNumber === 'string') {
|
|
216
216
|
await (0, deleteOrder_1.deleteOrder)({
|
|
@@ -218,6 +218,7 @@ function deleteTransactionById(params) {
|
|
|
218
218
|
})(repos);
|
|
219
219
|
}
|
|
220
220
|
break;
|
|
221
|
+
}
|
|
221
222
|
default:
|
|
222
223
|
throw new factory.errors.NotImplemented(`${transaction.status} not implemented`);
|
|
223
224
|
}
|
|
@@ -256,6 +257,7 @@ function deleteTransactionById(params) {
|
|
|
256
257
|
// 取引削除
|
|
257
258
|
await repos.transaction.findByIdAndDelete({ id: transaction.id });
|
|
258
259
|
break;
|
|
260
|
+
}
|
|
259
261
|
// implemented(2022-06-09~)
|
|
260
262
|
case factory.transactionType.ReturnOrder:
|
|
261
263
|
// 取引削除
|
|
@@ -166,7 +166,7 @@ function createTasks(params, setting
|
|
|
166
166
|
};
|
|
167
167
|
taskAttributes.push(...triggerWebhookTaskAttributes, deleteTransactionTask);
|
|
168
168
|
switch (transaction.status) {
|
|
169
|
-
case factory.transactionStatusType.Confirmed:
|
|
169
|
+
case factory.transactionStatusType.Confirmed: {
|
|
170
170
|
taskAttributes.push(voidReserveTaskAttributes, voidPaymentTaskAttributes);
|
|
171
171
|
// const potentialActions = transaction.potentialActions;
|
|
172
172
|
// if (potentialActions === undefined) {
|
|
@@ -201,6 +201,7 @@ function createTasks(params, setting
|
|
|
201
201
|
};
|
|
202
202
|
taskAttributes.push(placeOrderTaskAttributes);
|
|
203
203
|
break;
|
|
204
|
+
}
|
|
204
205
|
case factory.transactionStatusType.Canceled:
|
|
205
206
|
taskAttributes.push(voidReserveTaskAttributes, voidPaymentTaskAttributes);
|
|
206
207
|
break;
|
|
@@ -92,7 +92,7 @@ function createTasks(params, setting
|
|
|
92
92
|
};
|
|
93
93
|
taskAttributes.push(deleteTransactionTask);
|
|
94
94
|
switch (transaction.status) {
|
|
95
|
-
case factory.transactionStatusType.Confirmed:
|
|
95
|
+
case factory.transactionStatusType.Confirmed: {
|
|
96
96
|
const returnOrderPotentialActions = transaction.potentialActions?.returnOrder;
|
|
97
97
|
if (Array.isArray(returnOrderPotentialActions)) {
|
|
98
98
|
// 返品タスク
|
|
@@ -118,6 +118,7 @@ function createTasks(params, setting
|
|
|
118
118
|
taskAttributes.push(...returnOrderTask);
|
|
119
119
|
}
|
|
120
120
|
break;
|
|
121
|
+
}
|
|
121
122
|
case factory.transactionStatusType.Expired:
|
|
122
123
|
// 特にタスクなし
|
|
123
124
|
break;
|
|
@@ -112,7 +112,7 @@ setting) {
|
|
|
112
112
|
: undefined
|
|
113
113
|
}, setting);
|
|
114
114
|
emailMessagesOnReturnInvoice.push(...emailMessagesOnReturnEachPaymentMethodId);
|
|
115
|
-
const { paymentStatus, ...referencedInvoiceAsObject } = referencedInvoice;
|
|
115
|
+
const { paymentStatus, ...referencedInvoiceAsObject } = referencedInvoice; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
116
116
|
const object = {
|
|
117
117
|
...referencedInvoiceAsObject,
|
|
118
118
|
typeOf: 'Invoice'
|
|
@@ -190,7 +190,7 @@ setting) {
|
|
|
190
190
|
: undefined
|
|
191
191
|
}, setting);
|
|
192
192
|
emailMessagesOnReturnMovieTicket.push(...emailMessagesOnReturnEachPaymentMethodId);
|
|
193
|
-
const { paymentStatus, ...referencedInvoiceAsObject } = referencedInvoice;
|
|
193
|
+
const { paymentStatus, ...referencedInvoiceAsObject } = referencedInvoice; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
194
194
|
const object = {
|
|
195
195
|
...referencedInvoiceAsObject,
|
|
196
196
|
typeOf: 'Invoice'
|
|
@@ -51,7 +51,8 @@ function createOrder4returnPolicy(params) {
|
|
|
51
51
|
priceSpecification: {
|
|
52
52
|
priceComponent: (Array.isArray(priceComponent))
|
|
53
53
|
? priceComponent.map((component) => {
|
|
54
|
-
const { accounting, name, priceCurrency, valueAddedTaxIncluded,
|
|
54
|
+
const { accounting, name, priceCurrency, valueAddedTaxIncluded, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
55
|
+
...postingComponent } = component;
|
|
55
56
|
return postingComponent;
|
|
56
57
|
})
|
|
57
58
|
: []
|
|
@@ -89,7 +90,7 @@ async function getReturnPolicyByProject(params) {
|
|
|
89
90
|
try {
|
|
90
91
|
body = await res.json();
|
|
91
92
|
}
|
|
92
|
-
catch (
|
|
93
|
+
catch (_error) {
|
|
93
94
|
// no op
|
|
94
95
|
}
|
|
95
96
|
let returnPolicy;
|
|
@@ -97,7 +98,7 @@ async function getReturnPolicyByProject(params) {
|
|
|
97
98
|
case http_status_1.OK:
|
|
98
99
|
case http_status_1.CREATED:
|
|
99
100
|
case http_status_1.ACCEPTED:
|
|
100
|
-
case http_status_1.NO_CONTENT:
|
|
101
|
+
case http_status_1.NO_CONTENT: {
|
|
101
102
|
const restockingFeeValue = body?.restockingFee?.value;
|
|
102
103
|
if (typeof restockingFeeValue !== 'number') {
|
|
103
104
|
throw new factory.errors.Internal('invalid return policy');
|
|
@@ -121,6 +122,7 @@ async function getReturnPolicyByProject(params) {
|
|
|
121
122
|
};
|
|
122
123
|
}
|
|
123
124
|
break;
|
|
125
|
+
}
|
|
124
126
|
case http_status_1.NOT_FOUND:
|
|
125
127
|
throw new factory.errors.Argument('', `custom return policy returned statusCode: ${res.status}`);
|
|
126
128
|
// break;
|
|
@@ -165,7 +165,7 @@ function validateOrder(params) {
|
|
|
165
165
|
let numOrderedItemExpected = 0;
|
|
166
166
|
const itemOfferedTypeOf = itemOfferedTypeOfs[0];
|
|
167
167
|
switch (itemOfferedTypeOf) {
|
|
168
|
-
case factory.reservationType.EventReservation:
|
|
168
|
+
case factory.reservationType.EventReservation: {
|
|
169
169
|
numOrderedItemExpected = reservationForIds.length;
|
|
170
170
|
const reservationAcceptedOffers = acceptedOffers;
|
|
171
171
|
const coaTicketInfoExists = reservationAcceptedOffers[0].itemOffered.reservedTicket.coaTicketInfo !== undefined;
|
|
@@ -197,13 +197,15 @@ function validateOrder(params) {
|
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
break;
|
|
200
|
-
|
|
200
|
+
}
|
|
201
|
+
case factory.permit.PermitType.Permit: {
|
|
201
202
|
numOrderedItemExpected = acceptedOffers.length;
|
|
202
203
|
const permitAcceptedOffers = acceptedOffers;
|
|
203
204
|
priceExpected = (0, factory_2.acceptedOffers2amount)({
|
|
204
205
|
acceptedOffers: permitAcceptedOffers
|
|
205
206
|
});
|
|
206
207
|
break;
|
|
208
|
+
}
|
|
207
209
|
// case factory.actionType.MoneyTransfer:
|
|
208
210
|
// break;
|
|
209
211
|
default:
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cognito-identity-provider": "3.600.0",
|
|
13
13
|
"@aws-sdk/credential-providers": "3.600.0",
|
|
14
|
-
"@chevre/factory": "6.0.0-alpha.
|
|
14
|
+
"@chevre/factory": "6.0.0-alpha.4",
|
|
15
15
|
"@cinerino/sdk": "13.2.0",
|
|
16
16
|
"@motionpicture/coa-service": "9.6.0",
|
|
17
17
|
"@motionpicture/gmo-service": "5.4.0-alpha.1",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"postversion": "git push origin --tags",
|
|
100
100
|
"prepublishOnly": "npm run clean && npm run build"
|
|
101
101
|
},
|
|
102
|
-
"version": "24.0.0-alpha.
|
|
102
|
+
"version": "24.0.0-alpha.42"
|
|
103
103
|
}
|