@chevre/domain 21.37.0 → 22.0.0-alpha.1
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/example/src/chevre/aggregation/aggregateSystem.ts +24 -12
- package/example/src/chevre/findReservationByCode.ts +1 -1
- package/example/src/chevre/findValidAuthorization.ts +1 -1
- package/example/src/chevre/transaction/processPlaceOrder.ts +11 -5
- package/lib/chevre/repo/acceptedOffer.d.ts +1 -1
- package/lib/chevre/repo/acceptedOffer.js +4 -4
- package/lib/chevre/repo/account.d.ts +1 -1
- package/lib/chevre/repo/account.js +5 -5
- package/lib/chevre/repo/accountTitle.d.ts +1 -1
- package/lib/chevre/repo/accountTitle.js +3 -3
- package/lib/chevre/repo/accountTransaction.d.ts +1 -1
- package/lib/chevre/repo/accountTransaction.js +4 -4
- package/lib/chevre/repo/accountingReport.d.ts +1 -1
- package/lib/chevre/repo/accountingReport.js +4 -4
- package/lib/chevre/repo/action.d.ts +1 -1
- package/lib/chevre/repo/action.js +4 -4
- package/lib/chevre/repo/additionalProperty.d.ts +1 -1
- package/lib/chevre/repo/additionalProperty.js +4 -4
- package/lib/chevre/repo/aggregateOffer.d.ts +1 -1
- package/lib/chevre/repo/aggregateOffer.js +6 -6
- package/lib/chevre/repo/aggregateReservation.d.ts +1 -1
- package/lib/chevre/repo/aggregateReservation.js +4 -4
- package/lib/chevre/repo/aggregation.d.ts +1 -0
- package/lib/chevre/repo/aggregation.js +1 -0
- package/lib/chevre/repo/assetTransaction.d.ts +1 -1
- package/lib/chevre/repo/assetTransaction.js +5 -5
- package/lib/chevre/repo/categoryCode.d.ts +1 -1
- package/lib/chevre/repo/categoryCode.js +6 -6
- package/lib/chevre/repo/comment.d.ts +1 -1
- package/lib/chevre/repo/comment.js +4 -4
- package/lib/chevre/repo/creativeWork.d.ts +1 -1
- package/lib/chevre/repo/creativeWork.js +4 -4
- package/lib/chevre/repo/customer.d.ts +1 -1
- package/lib/chevre/repo/customer.js +4 -4
- package/lib/chevre/repo/customerType.d.ts +1 -1
- package/lib/chevre/repo/customerType.js +4 -4
- package/lib/chevre/repo/emailMessage.d.ts +1 -1
- package/lib/chevre/repo/emailMessage.js +4 -4
- package/lib/chevre/repo/event.d.ts +1 -1
- package/lib/chevre/repo/event.js +5 -5
- package/lib/chevre/repo/member.d.ts +1 -1
- package/lib/chevre/repo/member.js +4 -4
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -1
- package/lib/chevre/repo/merchantReturnPolicy.js +4 -4
- package/lib/chevre/repo/note.d.ts +1 -1
- package/lib/chevre/repo/note.js +4 -4
- package/lib/chevre/repo/offer.d.ts +1 -1
- package/lib/chevre/repo/offer.js +7 -7
- package/lib/chevre/repo/offerCatalog.d.ts +1 -1
- package/lib/chevre/repo/offerCatalog.js +4 -4
- package/lib/chevre/repo/offerCatalogItem.d.ts +1 -1
- package/lib/chevre/repo/offerCatalogItem.js +5 -5
- package/lib/chevre/repo/offerItemCondition.d.ts +1 -1
- package/lib/chevre/repo/offerItemCondition.js +4 -4
- package/lib/chevre/repo/order.d.ts +26 -1
- package/lib/chevre/repo/order.js +72 -5
- package/lib/chevre/repo/orderInTransaction.d.ts +1 -1
- package/lib/chevre/repo/orderInTransaction.js +3 -3
- package/lib/chevre/repo/orderNumber.d.ts +1 -1
- package/lib/chevre/repo/orderNumber.js +6 -6
- package/lib/chevre/repo/ownershipInfo.d.ts +1 -1
- package/lib/chevre/repo/ownershipInfo.js +4 -4
- package/lib/chevre/repo/passport.d.ts +7 -0
- package/lib/chevre/repo/passport.js +4 -1
- package/lib/chevre/repo/paymentMethod/creditCard.d.ts +1 -1
- package/lib/chevre/repo/paymentMethod/creditCard.js +3 -3
- package/lib/chevre/repo/paymentService.d.ts +1 -1
- package/lib/chevre/repo/paymentService.js +4 -4
- package/lib/chevre/repo/paymentServiceProvider.d.ts +1 -1
- package/lib/chevre/repo/paymentServiceProvider.js +3 -3
- package/lib/chevre/repo/permit.d.ts +1 -1
- package/lib/chevre/repo/permit.js +3 -3
- package/lib/chevre/repo/person.d.ts +1 -1
- package/lib/chevre/repo/person.js +10 -10
- package/lib/chevre/repo/place/busStop.d.ts +1 -1
- package/lib/chevre/repo/place/busStop.js +4 -4
- package/lib/chevre/repo/place/hasPOS.d.ts +1 -1
- package/lib/chevre/repo/place/hasPOS.js +3 -3
- package/lib/chevre/repo/place/movieTheater.d.ts +1 -1
- package/lib/chevre/repo/place/movieTheater.js +4 -4
- package/lib/chevre/repo/place/screeningRoom.d.ts +1 -1
- package/lib/chevre/repo/place/screeningRoom.js +3 -3
- package/lib/chevre/repo/place/seat.d.ts +1 -1
- package/lib/chevre/repo/place/seat.js +4 -4
- package/lib/chevre/repo/place/section.d.ts +1 -1
- package/lib/chevre/repo/place/section.js +3 -3
- package/lib/chevre/repo/priceSpecification.d.ts +1 -1
- package/lib/chevre/repo/priceSpecification.js +5 -5
- package/lib/chevre/repo/product.d.ts +1 -1
- package/lib/chevre/repo/product.js +4 -4
- package/lib/chevre/repo/productModel.d.ts +1 -1
- package/lib/chevre/repo/productModel.js +4 -4
- package/lib/chevre/repo/productOffer.d.ts +1 -1
- package/lib/chevre/repo/productOffer.js +3 -3
- package/lib/chevre/repo/project.d.ts +2 -1
- package/lib/chevre/repo/project.js +5 -4
- package/lib/chevre/repo/projectMakesOffer.d.ts +1 -1
- package/lib/chevre/repo/projectMakesOffer.js +3 -3
- package/lib/chevre/repo/rateLimit/offer.d.ts +1 -1
- package/lib/chevre/repo/rateLimit/offer.js +9 -8
- package/lib/chevre/repo/reservation.d.ts +1 -1
- package/lib/chevre/repo/reservation.js +5 -5
- package/lib/chevre/repo/role.d.ts +1 -1
- package/lib/chevre/repo/role.js +4 -4
- package/lib/chevre/repo/seller.d.ts +4 -2
- package/lib/chevre/repo/seller.js +19 -17
- package/lib/chevre/repo/sellerPaymentAccepted.d.ts +1 -1
- package/lib/chevre/repo/sellerPaymentAccepted.js +3 -3
- package/lib/chevre/repo/serviceOutput.d.ts +1 -1
- package/lib/chevre/repo/serviceOutput.js +4 -4
- package/lib/chevre/repo/serviceOutputIdentifier.d.ts +1 -1
- package/lib/chevre/repo/serviceOutputIdentifier.js +6 -6
- package/lib/chevre/repo/stockHolder.d.ts +1 -1
- package/lib/chevre/repo/stockHolder.js +21 -21
- package/lib/chevre/repo/task.d.ts +1 -1
- package/lib/chevre/repo/task.js +5 -5
- package/lib/chevre/repo/telemetry.d.ts +1 -1
- package/lib/chevre/repo/telemetry.js +3 -3
- package/lib/chevre/repo/transaction.d.ts +1 -10
- package/lib/chevre/repo/transaction.js +29 -42
- package/lib/chevre/repo/transactionNumber.d.ts +1 -1
- package/lib/chevre/repo/transactionNumber.js +6 -6
- package/lib/chevre/repo/transactionProcess.d.ts +1 -1
- package/lib/chevre/repo/transactionProcess.js +5 -5
- package/lib/chevre/repo/trip.d.ts +1 -1
- package/lib/chevre/repo/trip.js +4 -4
- package/lib/chevre/repository.d.ts +64 -64
- package/lib/chevre/repository.js +65 -65
- package/lib/chevre/service/account.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/deposit.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/transfer.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/withdraw.d.ts +2 -2
- package/lib/chevre/service/accountTransaction.d.ts +1 -1
- package/lib/chevre/service/aggregation/event/aggregateOffers.d.ts +10 -10
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +9 -9
- package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +7 -7
- package/lib/chevre/service/aggregation/event/findEventOffers.d.ts +3 -3
- package/lib/chevre/service/aggregation/event/importFromCOA.d.ts +1 -1
- package/lib/chevre/service/aggregation/project.d.ts +3 -3
- package/lib/chevre/service/aggregation/system.d.ts +22 -7
- package/lib/chevre/service/aggregation/system.js +35 -1
- package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +4 -4
- package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
- package/lib/chevre/service/assetTransaction/pay/account/validation.d.ts +2 -2
- package/lib/chevre/service/assetTransaction/pay.d.ts +16 -16
- package/lib/chevre/service/assetTransaction/refund.d.ts +5 -5
- package/lib/chevre/service/assetTransaction/registerService.d.ts +8 -8
- package/lib/chevre/service/assetTransaction/reserve/cancel.d.ts +6 -6
- package/lib/chevre/service/assetTransaction/reserve/confirm.d.ts +5 -5
- package/lib/chevre/service/assetTransaction/reserve/exportTasksById.d.ts +2 -2
- package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.d.ts +5 -5
- package/lib/chevre/service/assetTransaction/reserve/start.d.ts +14 -14
- package/lib/chevre/service/assetTransaction.d.ts +2 -2
- package/lib/chevre/service/code.d.ts +2 -2
- package/lib/chevre/service/delivery.d.ts +7 -7
- package/lib/chevre/service/event/createEvent.d.ts +4 -4
- package/lib/chevre/service/event.d.ts +9 -9
- package/lib/chevre/service/iam.d.ts +2 -2
- package/lib/chevre/service/moneyTransfer.d.ts +5 -5
- package/lib/chevre/service/notification.d.ts +2 -2
- package/lib/chevre/service/offer/any.d.ts +4 -4
- package/lib/chevre/service/offer/any.js +2 -2
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +16 -16
- package/lib/chevre/service/offer/event/authorize.d.ts +20 -20
- package/lib/chevre/service/offer/event/importFromCOA.d.ts +3 -3
- package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +7 -7
- package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.d.ts +8 -8
- package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4coa.d.ts +1 -1
- package/lib/chevre/service/offer/event/voidTransaction.d.ts +8 -8
- package/lib/chevre/service/offer/event/voidTransactionByActionId.d.ts +8 -8
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.d.ts +3 -3
- package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +8 -8
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.d.ts +2 -2
- package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
- package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +8 -8
- package/lib/chevre/service/offer/moneyTransfer/returnMoneyTransfer.d.ts +5 -5
- package/lib/chevre/service/offer/moneyTransfer/settleTransaction.d.ts +3 -3
- package/lib/chevre/service/offer/moneyTransfer/voidTransaction.d.ts +3 -3
- package/lib/chevre/service/offer/onEventChanged.d.ts +3 -3
- package/lib/chevre/service/offer/product/searchProductOffers.d.ts +3 -3
- package/lib/chevre/service/offer/product.d.ts +15 -15
- package/lib/chevre/service/offer/product.js +2 -2
- package/lib/chevre/service/offer.d.ts +4 -4
- package/lib/chevre/service/order/confirmPayTransaction.d.ts +9 -9
- package/lib/chevre/service/order/createAccountingReportIfNotExist.d.ts +1 -1
- package/lib/chevre/service/order/deleteOrder.d.ts +7 -7
- package/lib/chevre/service/order/findPlaceOrderTransaction.d.ts +1 -1
- package/lib/chevre/service/order/onAssetTransactionStatusChanged.d.ts +5 -5
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.d.ts +2 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderPaymentDue.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned.d.ts +2 -2
- package/lib/chevre/service/order/onOrderUpdated.d.ts +1 -1
- package/lib/chevre/service/order/payOrder.d.ts +4 -4
- package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.d.ts +3 -3
- package/lib/chevre/service/order/placeOrder/factory.d.ts +10 -1
- package/lib/chevre/service/order/placeOrder/factory.js +58 -5
- package/lib/chevre/service/order/placeOrder/voidAcceptedOfferIfNecessary.d.ts +1 -1
- package/lib/chevre/service/order/placeOrder/voidAcceptedOfferIfNecessary.js +1 -1
- package/lib/chevre/service/order/placeOrder.d.ts +7 -7
- package/lib/chevre/service/order/placeOrderWithoutTransaction.d.ts +4 -4
- package/lib/chevre/service/order/returnOrder.d.ts +6 -6
- package/lib/chevre/service/order/sendOrder.d.ts +6 -6
- package/lib/chevre/service/payment/any/handlePrePublishedPaymentMethodIdOnAuthorizing.d.ts +2 -2
- package/lib/chevre/service/payment/any/onPaid.d.ts +3 -3
- package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
- package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.d.ts +2 -2
- package/lib/chevre/service/payment/any/onRefund.d.ts +3 -3
- package/lib/chevre/service/payment/any/person2username.js +1 -1
- package/lib/chevre/service/payment/any.d.ts +18 -18
- package/lib/chevre/service/payment/any.js +1 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.d.ts +1 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.d.ts +1 -1
- package/lib/chevre/service/payment/creditCard/authorize.d.ts +5 -5
- package/lib/chevre/service/payment/creditCard/getGMOInfoFromSeller.d.ts +3 -3
- package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +7 -7
- package/lib/chevre/service/payment/creditCard/refundCreditCard.d.ts +7 -7
- package/lib/chevre/service/payment/creditCard/voidTransaction.d.ts +5 -5
- package/lib/chevre/service/payment/faceToFace.d.ts +4 -4
- package/lib/chevre/service/payment/movieTicket/authorize.d.ts +8 -8
- package/lib/chevre/service/payment/movieTicket/checkMovieTicket.d.ts +6 -6
- package/lib/chevre/service/payment/movieTicket/getCredentials.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +8 -8
- package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.d.ts +2 -2
- package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.js +1 -1
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket.d.ts +4 -4
- package/lib/chevre/service/payment/movieTicket/validation.d.ts +7 -7
- package/lib/chevre/service/payment/movieTicket/voidTransaction.d.ts +4 -4
- package/lib/chevre/service/payment/paymentCard.d.ts +6 -6
- package/lib/chevre/service/payment.d.ts +16 -16
- package/lib/chevre/service/permit.d.ts +2 -2
- package/lib/chevre/service/product.d.ts +3 -3
- package/lib/chevre/service/project.d.ts +17 -17
- package/lib/chevre/service/report/telemetry.d.ts +4 -4
- package/lib/chevre/service/reserve/cancelReservation.d.ts +6 -6
- package/lib/chevre/service/reserve/checkInReservation.d.ts +5 -5
- package/lib/chevre/service/reserve/confirmReservation.d.ts +5 -5
- package/lib/chevre/service/reserve/findByCode.d.ts +3 -3
- package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.d.ts +2 -2
- package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +1 -1
- package/lib/chevre/service/reserve/searchByOrder.d.ts +3 -3
- package/lib/chevre/service/reserve/useReservation.d.ts +5 -5
- package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +2 -2
- package/lib/chevre/service/task/acceptCOAOffer.js +6 -6
- package/lib/chevre/service/task/aggregateOffers.js +10 -10
- package/lib/chevre/service/task/aggregateScreeningEvent.js +9 -9
- package/lib/chevre/service/task/aggregateUseActionsOnEvent.js +7 -7
- package/lib/chevre/service/task/authorizePayment.js +14 -14
- package/lib/chevre/service/task/cancelMoneyTransfer.js +2 -2
- package/lib/chevre/service/task/cancelPendingReservation.js +6 -6
- package/lib/chevre/service/task/cancelReservation.js +6 -6
- package/lib/chevre/service/task/checkMovieTicket.js +6 -6
- package/lib/chevre/service/task/checkResource.js +4 -4
- package/lib/chevre/service/task/confirmMoneyTransfer.js +3 -3
- package/lib/chevre/service/task/confirmPayTransaction.js +9 -9
- package/lib/chevre/service/task/confirmRegisterService.js +3 -3
- package/lib/chevre/service/task/confirmRegisterServiceTransaction.d.ts +3 -3
- package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +3 -3
- package/lib/chevre/service/task/confirmReserveTransaction.d.ts +6 -6
- package/lib/chevre/service/task/confirmReserveTransaction.js +6 -6
- package/lib/chevre/service/task/createAccountingReport.js +4 -4
- package/lib/chevre/service/task/createEvent.js +4 -4
- package/lib/chevre/service/task/deleteTransaction.js +11 -11
- package/lib/chevre/service/task/givePointAward.js +5 -5
- package/lib/chevre/service/task/importEventCapacitiesFromCOA.js +1 -1
- package/lib/chevre/service/task/importEventsFromCOA.js +7 -7
- package/lib/chevre/service/task/importOffersFromCOA.js +3 -3
- package/lib/chevre/service/task/moneyTransfer.js +3 -3
- package/lib/chevre/service/task/onAssetTransactionStatusChanged.js +5 -5
- package/lib/chevre/service/task/onAuthorizationCreated.js +10 -10
- package/lib/chevre/service/task/onEventChanged.js +3 -3
- package/lib/chevre/service/task/onOrderPaymentCompleted.js +4 -4
- package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.d.ts +2 -2
- package/lib/chevre/service/task/onResourceUpdated/onCategoryCodeUpdated.d.ts +2 -2
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +3 -3
- package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.d.ts +4 -4
- package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.d.ts +18 -18
- package/lib/chevre/service/task/onResourceUpdated/syncCategoryCode.d.ts +2 -2
- package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.d.ts +3 -3
- package/lib/chevre/service/task/onResourceUpdated.js +19 -19
- package/lib/chevre/service/task/pay.js +12 -12
- package/lib/chevre/service/task/placeOrder.js +7 -7
- package/lib/chevre/service/task/publishPaymentUrl.js +8 -8
- package/lib/chevre/service/task/refund.js +10 -10
- package/lib/chevre/service/task/registerService.js +3 -3
- package/lib/chevre/service/task/reserve.js +4 -4
- package/lib/chevre/service/task/returnMoneyTransfer.js +5 -5
- package/lib/chevre/service/task/returnOrder.js +6 -6
- package/lib/chevre/service/task/returnPayTransaction.js +8 -8
- package/lib/chevre/service/task/returnPointAward.js +5 -5
- package/lib/chevre/service/task/returnReserveTransaction.js +5 -5
- package/lib/chevre/service/task/sendEmailMessage.js +2 -2
- package/lib/chevre/service/task/sendOrder.js +6 -6
- package/lib/chevre/service/task/triggerWebhook.js +1 -1
- package/lib/chevre/service/task/useReservation.js +5 -5
- package/lib/chevre/service/task/voidMoneyTransferTransaction.js +3 -3
- package/lib/chevre/service/task/voidPayTransaction.js +8 -8
- package/lib/chevre/service/task/voidPayment.js +8 -8
- package/lib/chevre/service/task/voidRegisterServiceTransaction.js +3 -3
- package/lib/chevre/service/task/voidReserveTransaction.js +9 -9
- package/lib/chevre/service/task.d.ts +1 -1
- package/lib/chevre/service/task.js +3 -3
- package/lib/chevre/service/transaction/deleteTransaction.d.ts +11 -11
- package/lib/chevre/service/transaction/moneyTransfer.d.ts +10 -10
- package/lib/chevre/service/transaction/placeOrder/confirm/factory/result.d.ts +11 -0
- package/lib/chevre/service/transaction/placeOrder/confirm/factory/result.js +32 -0
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions/sendEmailMessage.d.ts +1 -1
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions/sendEmailMessage.js +2 -2
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions.d.ts +1 -1
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/publishCode.d.ts +2 -2
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/publishCode.js +1 -1
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation/validateMovieTicket.d.ts +1 -1
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation/validateMovieTicket.js +2 -2
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation.d.ts +2 -2
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation.js +2 -2
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/confirm.d.ts +8 -8
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/confirm.js +18 -25
- package/lib/chevre/service/transaction/placeOrder/exportTasksById.d.ts +17 -0
- package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +39 -0
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishConfirmationNumberIfNotExist.d.ts +1 -1
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishOrderNumberIfNotExist.d.ts +3 -3
- package/lib/chevre/service/transaction/{placeOrderInProgress/validation → placeOrder/start}/validateStartRequest.d.ts +3 -3
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start.d.ts +4 -4
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start.js +4 -2
- package/lib/chevre/service/transaction/placeOrder.d.ts +6 -14
- package/lib/chevre/service/transaction/placeOrder.js +11 -37
- package/lib/chevre/service/transaction/returnOrder/preStart.d.ts +9 -9
- package/lib/chevre/service/transaction/returnOrder.d.ts +12 -12
- package/lib/chevre/service/transaction.d.ts +5 -11
- package/lib/chevre/service/transaction.js +14 -7
- package/lib/chevre/service/validation/validateOrder.d.ts +3 -3
- package/lib/chevre/service/validation/validateOrder.js +1 -1
- package/package.json +5 -5
- package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +0 -24
- package/lib/chevre/service/transaction/placeOrderInProgress/result.js +0 -120
- package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +0 -9
- package/lib/chevre/service/transaction/placeOrderInProgress.js +0 -16
- /package/lib/chevre/repo/{code.d.ts → authorization.d.ts} +0 -0
- /package/lib/chevre/repo/{code.js → authorization.js} +0 -0
- /package/lib/chevre/service/{transaction/placeOrderInProgress/result → order/placeOrder/factory}/orderedItem.d.ts +0 -0
- /package/lib/chevre/service/{transaction/placeOrderInProgress/result → order/placeOrder/factory}/orderedItem.js +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions.js +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishConfirmationNumberIfNotExist.js +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishOrderNumberIfNotExist.js +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start/factory.d.ts +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start/factory.js +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress/validation → placeOrder/start}/validateStartRequest.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
1
|
+
import type { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
2
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
3
|
+
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
4
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
5
5
|
import * as factory from '../../../factory';
|
|
6
6
|
interface IRefundOperationRepos {
|
|
7
7
|
action: ActionRepo;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
1
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
2
|
+
import type { EventRepo } from '../../../repo/event';
|
|
3
|
+
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
4
|
+
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
5
|
+
import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted';
|
|
6
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
7
7
|
import * as factory from '../../../factory';
|
|
8
8
|
export declare function validateMovieTicket(params: factory.assetTransaction.pay.IStartParamsWithoutDetail, paymentServiceId: string, useCheckByIdentifierIfNotYet: boolean, purpose: {
|
|
9
9
|
/**
|
|
@@ -13,7 +13,7 @@ export declare function validateMovieTicket(params: factory.assetTransaction.pay
|
|
|
13
13
|
}): (repos: {
|
|
14
14
|
action: ActionRepo;
|
|
15
15
|
event: EventRepo;
|
|
16
|
-
paymentAccepted:
|
|
16
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
17
17
|
paymentService: PaymentServiceRepo;
|
|
18
18
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
19
19
|
task: TaskRepo;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
1
|
+
import type { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
2
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
3
|
+
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
4
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
5
5
|
import * as factory from '../../../factory';
|
|
6
6
|
declare function voidTransaction(params: factory.task.voidPayment.IData): (repos: {
|
|
7
7
|
action: ActionRepo;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
2
|
+
import type { AccountingReportRepo } from '../../repo/accountingReport';
|
|
3
|
+
import type { ActionRepo } from '../../repo/action';
|
|
4
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
5
|
+
import type { ProductRepo } from '../../repo/product';
|
|
6
|
+
import type { TaskRepo } from '../../repo/task';
|
|
7
|
+
import type { TransactionNumberRepo } from '../../repo/transactionNumber';
|
|
8
8
|
type IPendingTransaction = Pick<factory.account.transaction.withdraw.ITransaction, 'id' | 'transactionNumber' | 'typeOf'>;
|
|
9
9
|
declare function authorize(params: factory.assetTransaction.pay.IStartParamsWithoutDetail, paymentServiceId: string): (repos: {
|
|
10
10
|
product: ProductRepo;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 決済サービス
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
4
|
+
import type { AcceptedOfferRepo } from '../repo/acceptedOffer';
|
|
5
|
+
import type { AccountingReportRepo } from '../repo/accountingReport';
|
|
6
|
+
import type { ActionRepo } from '../repo/action';
|
|
7
|
+
import type { AssetTransactionRepo } from '../repo/assetTransaction';
|
|
8
|
+
import type { EventRepo } from '../repo/event';
|
|
9
|
+
import type { OrderRepo } from '../repo/order';
|
|
10
|
+
import type { PaymentServiceRepo } from '../repo/paymentService';
|
|
11
|
+
import type { PaymentServiceProviderRepo } from '../repo/paymentServiceProvider';
|
|
12
|
+
import type { ProductRepo } from '../repo/product';
|
|
13
|
+
import type { ProjectRepo } from '../repo/project';
|
|
14
|
+
import type { SellerPaymentAcceptedRepo } from '../repo/sellerPaymentAccepted';
|
|
15
|
+
import type { TaskRepo } from '../repo/task';
|
|
16
|
+
import type { TransactionNumberRepo } from '../repo/transactionNumber';
|
|
17
17
|
import * as factory from '../factory';
|
|
18
18
|
import { IAcceptedOfferMovieTicketUsed } from './payment/factory';
|
|
19
19
|
export declare function fixOrderAsPurpose(params: {
|
|
@@ -49,7 +49,7 @@ export declare function pay(params: factory.task.pay.IData & {
|
|
|
49
49
|
assetTransaction: AssetTransactionRepo;
|
|
50
50
|
event: EventRepo;
|
|
51
51
|
order: OrderRepo;
|
|
52
|
-
paymentAccepted:
|
|
52
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
53
53
|
paymentService: PaymentServiceRepo;
|
|
54
54
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
55
55
|
product: ProductRepo;
|
|
@@ -59,7 +59,7 @@ export declare function pay(params: factory.task.pay.IData & {
|
|
|
59
59
|
export declare function voidPayment(params: factory.task.voidPayment.IData): (repos: {
|
|
60
60
|
action: ActionRepo;
|
|
61
61
|
accountingReport: AccountingReportRepo;
|
|
62
|
-
paymentAccepted:
|
|
62
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
63
63
|
paymentService: PaymentServiceRepo;
|
|
64
64
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
65
65
|
product: ProductRepo;
|
|
@@ -76,7 +76,7 @@ export declare function refund(params: factory.task.refund.IData & {
|
|
|
76
76
|
}): (repos: {
|
|
77
77
|
action: ActionRepo;
|
|
78
78
|
accountingReport: AccountingReportRepo;
|
|
79
|
-
paymentAccepted:
|
|
79
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
80
80
|
paymentService: PaymentServiceRepo;
|
|
81
81
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
82
82
|
product: ProductRepo;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* 許可証サービス
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../factory';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
5
|
+
import type { AccountRepo } from '../repo/account';
|
|
6
|
+
import type { ServiceOutputRepo } from '../repo/serviceOutput';
|
|
7
7
|
/**
|
|
8
8
|
* 許可証発行
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
2
|
+
import type { ActionRepo } from '../repo/action';
|
|
3
|
+
import type { ServiceOutputRepo } from '../repo/serviceOutput';
|
|
4
|
+
import type { TaskRepo } from '../repo/task';
|
|
5
5
|
export declare function registerService(params: factory.action.interact.register.service.IAttributes[]): (repos: {
|
|
6
6
|
action: ActionRepo;
|
|
7
7
|
serviceOutput: ServiceOutputRepo;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* プロジェクトサービス
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
18
|
-
import type {
|
|
19
|
-
import type {
|
|
20
|
-
import type {
|
|
4
|
+
import type { AccountTitleRepo } from '../repo/accountTitle';
|
|
5
|
+
import type { ActionRepo } from '../repo/action';
|
|
6
|
+
import type { AssetTransactionRepo } from '../repo/assetTransaction';
|
|
7
|
+
import type { CategoryCodeRepo } from '../repo/categoryCode';
|
|
8
|
+
import type { CreativeWorkRepo } from '../repo/creativeWork';
|
|
9
|
+
import type { EventRepo } from '../repo/event';
|
|
10
|
+
import type { MemberRepo } from '../repo/member';
|
|
11
|
+
import type { OfferRepo } from '../repo/offer';
|
|
12
|
+
import type { OfferCatalogRepo } from '../repo/offerCatalog';
|
|
13
|
+
import type { MovieTheaterRepo } from '../repo/place/movieTheater';
|
|
14
|
+
import type { ScreeningRoomRepo } from '../repo/place/screeningRoom';
|
|
15
|
+
import type { PriceSpecificationRepo } from '../repo/priceSpecification';
|
|
16
|
+
import type { ProductRepo } from '../repo/product';
|
|
17
|
+
import type { ProjectRepo } from '../repo/project';
|
|
18
|
+
import type { ReservationRepo } from '../repo/reservation';
|
|
19
|
+
import type { SellerRepo } from '../repo/seller';
|
|
20
|
+
import type { TaskRepo } from '../repo/task';
|
|
21
21
|
export declare function deleteProject(params: {
|
|
22
22
|
id: string;
|
|
23
23
|
}): (repos: {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* データ測定サービス
|
|
3
3
|
* 実験的実装中
|
|
4
4
|
*/
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
5
|
+
import type { ActionRepo } from '../../repo/action';
|
|
6
|
+
import type { TaskRepo } from '../../repo/task';
|
|
7
|
+
import type { TelemetryRepo } from '../../repo/telemetry';
|
|
8
|
+
import type { TransactionRepo } from '../../repo/transaction';
|
|
9
9
|
import * as factory from '../../factory';
|
|
10
10
|
export type TelemetryOperation<T> = (repos: {
|
|
11
11
|
telemetry: TelemetryRepo;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import type {
|
|
2
|
+
import type { ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
4
|
+
import { OfferRateLimitRepo } from '../../repo/rateLimit/offer';
|
|
5
|
+
import { ReservationRepo } from '../../repo/reservation';
|
|
6
|
+
import { StockHolderRepo } from '../../repo/stockHolder';
|
|
7
|
+
import type { TaskRepo } from '../../repo/task';
|
|
8
8
|
/**
|
|
9
9
|
* 進行中の予約をキャンセルする
|
|
10
10
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
1
|
+
import type { ActionRepo } from '../../repo/action';
|
|
2
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
3
|
+
import type { EventRepo } from '../../repo/event';
|
|
4
|
+
import type { ReservationRepo } from '../../repo/reservation';
|
|
5
|
+
import type { TaskRepo } from '../../repo/task';
|
|
6
6
|
interface ICheckInReservationParams {
|
|
7
7
|
project: {
|
|
8
8
|
id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
2
|
+
import type { ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
4
|
+
import type { ReservationRepo } from '../../repo/reservation';
|
|
5
|
+
import type { TaskRepo } from '../../repo/task';
|
|
6
6
|
/**
|
|
7
7
|
* 予約を確定する
|
|
8
8
|
*/
|
|
@@ -12,7 +12,7 @@ export declare function confirmReservation(params: {
|
|
|
12
12
|
byTask: boolean;
|
|
13
13
|
}): (repos: {
|
|
14
14
|
action: ActionRepo;
|
|
15
|
-
assetTransaction:
|
|
15
|
+
assetTransaction: AssetTransactionRepo;
|
|
16
16
|
reservation: ReservationRepo;
|
|
17
17
|
task: TaskRepo;
|
|
18
18
|
}) => Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import type { AuthorizationRepo } from '../../repo/
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
2
|
+
import type { AuthorizationRepo } from '../../repo/authorization';
|
|
3
|
+
import type { OrderRepo } from '../../repo/order';
|
|
4
|
+
import type { ReservationRepo } from '../../repo/reservation';
|
|
5
5
|
type AvailableReservationType = factory.reservationType.BusReservation | factory.reservationType.EventReservation;
|
|
6
6
|
type IReservationResult = Pick<factory.reservation.IReservation<AvailableReservationType>, 'id' | 'additionalTicketText' | 'reservationStatus'> & {
|
|
7
7
|
reservedTicket: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 予約取消時アクション
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../../../factory';
|
|
5
|
-
import type {
|
|
5
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
6
6
|
type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
|
|
7
7
|
type IBusReservation = factory.reservation.IReservation<factory.reservationType.BusReservation>;
|
|
8
8
|
export declare function onReservationCanceled(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { EventRepo } from '../../../repo/event';
|
|
2
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
3
3
|
export declare function onReservationCheckedIn(params: {
|
|
4
4
|
project: {
|
|
5
5
|
id: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 予約確定時アクション
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../../../factory';
|
|
5
|
-
import type {
|
|
5
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
6
6
|
type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
|
|
7
7
|
/**
|
|
8
8
|
* 予約確定後のアクション
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 予約使用時アクション
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../../../factory';
|
|
5
|
-
import type {
|
|
5
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
6
6
|
type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
|
|
7
7
|
export type IUseReservationAction = factory.action.consume.use.reservation.IAction;
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
2
|
+
import type { AcceptedOfferRepo } from '../../repo/acceptedOffer';
|
|
3
|
+
import type { OrderRepo } from '../../repo/order';
|
|
4
|
+
import type { ReservationRepo } from '../../repo/reservation';
|
|
5
5
|
type IReservationResult = Pick<factory.reservation.IReservation<factory.reservationType>, 'id' | 'additionalTicketText' | 'reservationStatus'>;
|
|
6
6
|
declare function searchByOrder(params: {
|
|
7
7
|
limit: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
2
|
+
import type { ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
4
|
+
import type { OrderRepo } from '../../repo/order';
|
|
5
|
+
import type { ReservationRepo } from '../../repo/reservation';
|
|
6
|
+
import type { TaskRepo } from '../../repo/task';
|
|
7
7
|
/**
|
|
8
8
|
* 予約使用
|
|
9
9
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import type { AuthorizationRepo } from '../../repo/
|
|
3
|
-
import type {
|
|
2
|
+
import type { AuthorizationRepo } from '../../repo/authorization';
|
|
3
|
+
import type { OrderRepo } from '../../repo/order';
|
|
4
4
|
import type { TicketRepo } from '../../repo/ticket';
|
|
5
5
|
/**
|
|
6
6
|
* 予約使用のためのチケットトークンを検証する
|
|
@@ -38,8 +38,8 @@ function call(params) {
|
|
|
38
38
|
useFetch: true
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
const actionRepo = new action_1.
|
|
42
|
-
const transactionProcessRepo = new transactionProcess_1.
|
|
41
|
+
const actionRepo = new action_1.ActionRepo(settings.connection);
|
|
42
|
+
const transactionProcessRepo = new transactionProcess_1.TransactionProcessRepo(settings.redisClient, { lockExpiresInSeconds: 120 });
|
|
43
43
|
try {
|
|
44
44
|
const reserveService = new COA.service.Reserve({
|
|
45
45
|
endpoint: credentials_1.credentials.coa.endpoint,
|
|
@@ -58,8 +58,8 @@ function call(params) {
|
|
|
58
58
|
sameAs: { id: params.id }
|
|
59
59
|
})({
|
|
60
60
|
action: actionRepo,
|
|
61
|
-
event: new event_1.
|
|
62
|
-
transaction: new transaction_1.
|
|
61
|
+
event: new event_1.EventRepo(settings.connection),
|
|
62
|
+
transaction: new transaction_1.TransactionRepo(settings.connection),
|
|
63
63
|
reserveService,
|
|
64
64
|
masterService
|
|
65
65
|
});
|
|
@@ -72,8 +72,8 @@ function call(params) {
|
|
|
72
72
|
sameAs: { id: params.id }
|
|
73
73
|
})({
|
|
74
74
|
action: actionRepo,
|
|
75
|
-
event: new event_1.
|
|
76
|
-
transaction: new transaction_1.
|
|
75
|
+
event: new event_1.EventRepo(settings.connection),
|
|
76
|
+
transaction: new transaction_1.TransactionRepo(settings.connection),
|
|
77
77
|
reserveService,
|
|
78
78
|
masterService
|
|
79
79
|
});
|
|
@@ -31,16 +31,16 @@ function call(data) {
|
|
|
31
31
|
throw new factory.errors.Argument('settings', 'redisClient required');
|
|
32
32
|
}
|
|
33
33
|
yield (0, aggregateOffers_1.aggregateOffers)(data)({
|
|
34
|
-
aggregateReservation: new aggregateReservation_1.
|
|
35
|
-
event: new event_1.
|
|
36
|
-
stockHolder: new stockHolder_1.
|
|
37
|
-
offer: new offer_1.
|
|
38
|
-
offerCatalog: new offerCatalog_1.
|
|
39
|
-
offerRateLimit: new offer_2.
|
|
40
|
-
product: new product_1.
|
|
41
|
-
reservation: new reservation_1.
|
|
42
|
-
screeningRoom: new screeningRoom_1.
|
|
43
|
-
task: new task_1.
|
|
34
|
+
aggregateReservation: new aggregateReservation_1.AggregateReservationRepo(settings.connection),
|
|
35
|
+
event: new event_1.EventRepo(settings.connection),
|
|
36
|
+
stockHolder: new stockHolder_1.StockHolderRepo(settings.redisClient, settings.connection),
|
|
37
|
+
offer: new offer_1.OfferRepo(settings.connection),
|
|
38
|
+
offerCatalog: new offerCatalog_1.OfferCatalogRepo(settings.connection),
|
|
39
|
+
offerRateLimit: new offer_2.OfferRateLimitRepo(settings.redisClient),
|
|
40
|
+
product: new product_1.ProductRepo(settings.connection),
|
|
41
|
+
reservation: new reservation_1.ReservationRepo(settings.connection),
|
|
42
|
+
screeningRoom: new screeningRoom_1.ScreeningRoomRepo(settings.connection),
|
|
43
|
+
task: new task_1.TaskRepo(settings.connection)
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -30,15 +30,15 @@ function call(data) {
|
|
|
30
30
|
throw new factory.errors.Argument('settings', 'redisClient required');
|
|
31
31
|
}
|
|
32
32
|
yield AggregationService.event.aggregateScreeningEvent(data)({
|
|
33
|
-
event: new event_1.
|
|
34
|
-
stockHolder: new stockHolder_1.
|
|
35
|
-
offer: new offer_1.
|
|
36
|
-
offerCatalog: new offerCatalog_1.
|
|
37
|
-
offerRateLimit: new offer_2.
|
|
38
|
-
screeningRoom: new screeningRoom_1.
|
|
39
|
-
product: new product_1.
|
|
40
|
-
reservation: new reservation_1.
|
|
41
|
-
task: new task_1.
|
|
33
|
+
event: new event_1.EventRepo(settings.connection),
|
|
34
|
+
stockHolder: new stockHolder_1.StockHolderRepo(settings.redisClient, settings.connection),
|
|
35
|
+
offer: new offer_1.OfferRepo(settings.connection),
|
|
36
|
+
offerCatalog: new offerCatalog_1.OfferCatalogRepo(settings.connection),
|
|
37
|
+
offerRateLimit: new offer_2.OfferRateLimitRepo(settings.redisClient),
|
|
38
|
+
screeningRoom: new screeningRoom_1.ScreeningRoomRepo(settings.connection),
|
|
39
|
+
product: new product_1.ProductRepo(settings.connection),
|
|
40
|
+
reservation: new reservation_1.ReservationRepo(settings.connection),
|
|
41
|
+
task: new task_1.TaskRepo(settings.connection)
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -28,13 +28,13 @@ function call(data) {
|
|
|
28
28
|
throw new factory.errors.Argument('settings', 'redisClient required');
|
|
29
29
|
}
|
|
30
30
|
yield AggregationService.event.aggregateUseActionsOnEvent(data)({
|
|
31
|
-
action: new action_1.
|
|
32
|
-
aggregateReservation: new aggregateReservation_1.
|
|
33
|
-
event: new event_1.
|
|
34
|
-
movieTheater: new movieTheater_1.
|
|
35
|
-
offer: new offer_1.
|
|
36
|
-
offerCatalog: new offerCatalog_1.
|
|
37
|
-
product: new product_1.
|
|
31
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
32
|
+
aggregateReservation: new aggregateReservation_1.AggregateReservationRepo(settings.connection),
|
|
33
|
+
event: new event_1.EventRepo(settings.connection),
|
|
34
|
+
movieTheater: new movieTheater_1.MovieTheaterRepo(settings.connection),
|
|
35
|
+
offer: new offer_1.OfferRepo(settings.connection),
|
|
36
|
+
offerCatalog: new offerCatalog_1.OfferCatalogRepo(settings.connection),
|
|
37
|
+
product: new product_1.ProductRepo(settings.connection)
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -14,7 +14,7 @@ const factory = require("../../factory");
|
|
|
14
14
|
const accountingReport_1 = require("../../repo/accountingReport");
|
|
15
15
|
const action_1 = require("../../repo/action");
|
|
16
16
|
const assetTransaction_1 = require("../../repo/assetTransaction");
|
|
17
|
-
const
|
|
17
|
+
const authorization_1 = require("../../repo/authorization");
|
|
18
18
|
const confirmationNumber_1 = require("../../repo/confirmationNumber");
|
|
19
19
|
const event_1 = require("../../repo/event");
|
|
20
20
|
const paymentService_1 = require("../../repo/paymentService");
|
|
@@ -40,25 +40,25 @@ function call(params) {
|
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
let callResult;
|
|
43
|
-
const actionRepo = new action_1.
|
|
44
|
-
const transactionProcessRepo = new transactionProcess_1.
|
|
43
|
+
const actionRepo = new action_1.ActionRepo(settings.connection);
|
|
44
|
+
const transactionProcessRepo = new transactionProcess_1.TransactionProcessRepo(settings.redisClient, { lockExpiresInSeconds: 120 });
|
|
45
45
|
try {
|
|
46
46
|
yield (0, any_1.authorize)(Object.assign(Object.assign({}, params.data), { sameAs: { id: params.id } // タスクIDを関連付け(2024-04-20~)
|
|
47
47
|
}))({
|
|
48
|
-
accountingReport: new accountingReport_1.
|
|
48
|
+
accountingReport: new accountingReport_1.AccountingReportRepo(settings.connection),
|
|
49
49
|
action: actionRepo,
|
|
50
|
-
assetTransaction: new assetTransaction_1.
|
|
51
|
-
authorization: new
|
|
50
|
+
assetTransaction: new assetTransaction_1.AssetTransactionRepo(settings.connection),
|
|
51
|
+
authorization: new authorization_1.AuthorizationRepo(settings.connection),
|
|
52
52
|
confirmationNumber: new confirmationNumber_1.ConfirmationNumberRepo(settings.redisClient),
|
|
53
|
-
event: new event_1.
|
|
54
|
-
paymentAccepted: new sellerPaymentAccepted_1.
|
|
55
|
-
paymentService: new paymentService_1.
|
|
56
|
-
paymentServiceProvider: new paymentServiceProvider_1.
|
|
57
|
-
product: new product_1.
|
|
58
|
-
task: new task_1.
|
|
53
|
+
event: new event_1.EventRepo(settings.connection),
|
|
54
|
+
paymentAccepted: new sellerPaymentAccepted_1.SellerPaymentAcceptedRepo(settings.connection),
|
|
55
|
+
paymentService: new paymentService_1.PaymentServiceRepo(settings.connection),
|
|
56
|
+
paymentServiceProvider: new paymentServiceProvider_1.PaymentServiceProviderRepo(settings.connection),
|
|
57
|
+
product: new product_1.ProductRepo(settings.connection),
|
|
58
|
+
task: new task_1.TaskRepo(settings.connection),
|
|
59
59
|
ticket: new ticket_1.TicketRepo(settings.connection),
|
|
60
|
-
transaction: new transaction_1.
|
|
61
|
-
transactionNumber: new transactionNumber_1.
|
|
60
|
+
transaction: new transaction_1.TransactionRepo(settings.connection),
|
|
61
|
+
transactionNumber: new transactionNumber_1.TransactionNumberRepo(settings.redisClient),
|
|
62
62
|
transactionProcess: transactionProcessRepo
|
|
63
63
|
});
|
|
64
64
|
}
|
|
@@ -18,8 +18,8 @@ const MoneyTransferService = require("../moneyTransfer");
|
|
|
18
18
|
*/
|
|
19
19
|
function call(data) {
|
|
20
20
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const assetTransactionRepo = new assetTransaction_1.
|
|
22
|
-
const productRepo = new product_1.
|
|
21
|
+
const assetTransactionRepo = new assetTransaction_1.AssetTransactionRepo(settings.connection);
|
|
22
|
+
const productRepo = new product_1.ProductRepo(settings.connection);
|
|
23
23
|
yield MoneyTransferService.cancelMoneyTransfer(data)({
|
|
24
24
|
assetTransaction: assetTransactionRepo,
|
|
25
25
|
product: productRepo
|
|
@@ -26,12 +26,12 @@ function call(data) {
|
|
|
26
26
|
if (settings.redisClient === undefined) {
|
|
27
27
|
throw new factory.errors.Argument('settings', 'redisClient required');
|
|
28
28
|
}
|
|
29
|
-
const actionRepo = new action_1.
|
|
30
|
-
const assetTransactionRepo = new assetTransaction_1.
|
|
31
|
-
const taskRepo = new task_1.
|
|
32
|
-
const reservationRepo = new reservation_1.
|
|
33
|
-
const stockHolderRepo = new stockHolder_1.
|
|
34
|
-
const offerRateLimitRepo = new offer_1.
|
|
29
|
+
const actionRepo = new action_1.ActionRepo(settings.connection);
|
|
30
|
+
const assetTransactionRepo = new assetTransaction_1.AssetTransactionRepo(settings.connection);
|
|
31
|
+
const taskRepo = new task_1.TaskRepo(settings.connection);
|
|
32
|
+
const reservationRepo = new reservation_1.ReservationRepo(settings.connection);
|
|
33
|
+
const stockHolderRepo = new stockHolder_1.StockHolderRepo(settings.redisClient, settings.connection);
|
|
34
|
+
const offerRateLimitRepo = new offer_1.OfferRateLimitRepo(settings.redisClient);
|
|
35
35
|
// アクション数は予約番号単位で1しかありえないはず(2023-06-05~)
|
|
36
36
|
// if (data.actionAttributes.length !== 1) {
|
|
37
37
|
// throw new factory.errors.Argument('data.actionAttributes', 'data.actionAttributes.length must be 1');
|
|
@@ -26,12 +26,12 @@ function call(data) {
|
|
|
26
26
|
if (settings.redisClient === undefined) {
|
|
27
27
|
throw new factory.errors.Argument('settings', 'redisClient required');
|
|
28
28
|
}
|
|
29
|
-
const actionRepo = new action_1.
|
|
30
|
-
const reservationRepo = new reservation_1.
|
|
31
|
-
const taskRepo = new task_1.
|
|
32
|
-
const transactionRepo = new assetTransaction_1.
|
|
33
|
-
const stockHolderRepo = new stockHolder_1.
|
|
34
|
-
const offerRateLimitRepo = new offer_1.
|
|
29
|
+
const actionRepo = new action_1.ActionRepo(settings.connection);
|
|
30
|
+
const reservationRepo = new reservation_1.ReservationRepo(settings.connection);
|
|
31
|
+
const taskRepo = new task_1.TaskRepo(settings.connection);
|
|
32
|
+
const transactionRepo = new assetTransaction_1.AssetTransactionRepo(settings.connection);
|
|
33
|
+
const stockHolderRepo = new stockHolder_1.StockHolderRepo(settings.redisClient, settings.connection);
|
|
34
|
+
const offerRateLimitRepo = new offer_1.OfferRateLimitRepo(settings.redisClient);
|
|
35
35
|
yield ReserveService.cancelReservation(data.actionAttributes)({
|
|
36
36
|
action: actionRepo,
|
|
37
37
|
reservation: reservationRepo,
|
|
@@ -31,15 +31,15 @@ function call(params) {
|
|
|
31
31
|
if (!options.executeById) {
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
const actionRepo = new action_1.
|
|
35
|
-
const transactionProcessRepo = new transactionProcess_1.
|
|
34
|
+
const actionRepo = new action_1.ActionRepo(settings.connection);
|
|
35
|
+
const transactionProcessRepo = new transactionProcess_1.TransactionProcessRepo(settings.redisClient, { lockExpiresInSeconds: 120 });
|
|
36
36
|
try {
|
|
37
37
|
yield (0, pay_1.check)(Object.assign(Object.assign({}, params.data), { sameAs: { id: params.id, typeOf: 'Task' } }))({
|
|
38
38
|
action: actionRepo,
|
|
39
|
-
event: new event_1.
|
|
40
|
-
paymentAccepted: new sellerPaymentAccepted_1.
|
|
41
|
-
paymentService: new paymentService_1.
|
|
42
|
-
paymentServiceProvider: new paymentServiceProvider_1.
|
|
39
|
+
event: new event_1.EventRepo(settings.connection),
|
|
40
|
+
paymentAccepted: new sellerPaymentAccepted_1.SellerPaymentAcceptedRepo(settings.connection),
|
|
41
|
+
paymentService: new paymentService_1.PaymentServiceRepo(settings.connection),
|
|
42
|
+
paymentServiceProvider: new paymentServiceProvider_1.PaymentServiceProviderRepo(settings.connection)
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
catch (error) {
|