@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
|
@@ -39,16 +39,16 @@ function call(params) {
|
|
|
39
39
|
data = params;
|
|
40
40
|
}
|
|
41
41
|
yield PaymentService.refund(data)({
|
|
42
|
-
accountingReport: new accountingReport_1.
|
|
43
|
-
action: new action_1.
|
|
44
|
-
paymentAccepted: new sellerPaymentAccepted_1.
|
|
45
|
-
paymentService: new paymentService_1.
|
|
46
|
-
paymentServiceProvider: new paymentServiceProvider_1.
|
|
47
|
-
product: new product_1.
|
|
48
|
-
project: new project_1.
|
|
49
|
-
task: new task_1.
|
|
50
|
-
assetTransaction: new assetTransaction_1.
|
|
51
|
-
transactionNumber: new transactionNumber_1.
|
|
42
|
+
accountingReport: new accountingReport_1.AccountingReportRepo(settings.connection),
|
|
43
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
44
|
+
paymentAccepted: new sellerPaymentAccepted_1.SellerPaymentAcceptedRepo(settings.connection),
|
|
45
|
+
paymentService: new paymentService_1.PaymentServiceRepo(settings.connection),
|
|
46
|
+
paymentServiceProvider: new paymentServiceProvider_1.PaymentServiceProviderRepo(settings.connection),
|
|
47
|
+
product: new product_1.ProductRepo(settings.connection),
|
|
48
|
+
project: new project_1.ProjectRepo(settings.connection),
|
|
49
|
+
task: new task_1.TaskRepo(settings.connection),
|
|
50
|
+
assetTransaction: new assetTransaction_1.AssetTransactionRepo(settings.connection),
|
|
51
|
+
transactionNumber: new transactionNumber_1.TransactionNumberRepo(settings.redisClient)
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
}
|
|
@@ -19,9 +19,9 @@ const ProductService = require("../product");
|
|
|
19
19
|
*/
|
|
20
20
|
function call(data) {
|
|
21
21
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const actionRepo = new action_1.
|
|
23
|
-
const serviceOutputRepo = new serviceOutput_1.
|
|
24
|
-
const taskRepo = new task_1.
|
|
22
|
+
const actionRepo = new action_1.ActionRepo(settings.connection);
|
|
23
|
+
const serviceOutputRepo = new serviceOutput_1.ServiceOutputRepo(settings.connection);
|
|
24
|
+
const taskRepo = new task_1.TaskRepo(settings.connection);
|
|
25
25
|
yield ProductService.registerService(data)({
|
|
26
26
|
action: actionRepo,
|
|
27
27
|
serviceOutput: serviceOutputRepo,
|
|
@@ -26,10 +26,10 @@ function call(data) {
|
|
|
26
26
|
useOnReservationConfirmed: true,
|
|
27
27
|
byTask: true
|
|
28
28
|
})({
|
|
29
|
-
action: new action_1.
|
|
30
|
-
assetTransaction: new assetTransaction_1.
|
|
31
|
-
reservation: new reservation_1.
|
|
32
|
-
task: new task_1.
|
|
29
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
30
|
+
assetTransaction: new assetTransaction_1.AssetTransactionRepo(settings.connection),
|
|
31
|
+
reservation: new reservation_1.ReservationRepo(settings.connection),
|
|
32
|
+
task: new task_1.TaskRepo(settings.connection)
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -25,11 +25,11 @@ function call(data) {
|
|
|
25
25
|
if (settings.redisClient === undefined) {
|
|
26
26
|
throw new factory.errors.Argument('settings', 'redisClient required');
|
|
27
27
|
}
|
|
28
|
-
const actionRepo = new action_1.
|
|
29
|
-
const assetTransactionRepo = new assetTransaction_1.
|
|
30
|
-
const productRepo = new product_1.
|
|
31
|
-
const projectRepo = new project_1.
|
|
32
|
-
const transactionNumberRepo = new transactionNumber_1.
|
|
28
|
+
const actionRepo = new action_1.ActionRepo(settings.connection);
|
|
29
|
+
const assetTransactionRepo = new assetTransaction_1.AssetTransactionRepo(settings.connection);
|
|
30
|
+
const productRepo = new product_1.ProductRepo(settings.connection);
|
|
31
|
+
const projectRepo = new project_1.ProjectRepo(settings.connection);
|
|
32
|
+
const transactionNumberRepo = new transactionNumber_1.TransactionNumberRepo(settings.redisClient);
|
|
33
33
|
yield MoneyTransferOfferService.returnMoneyTransfer(data)({
|
|
34
34
|
action: actionRepo,
|
|
35
35
|
assetTransaction: assetTransactionRepo,
|
|
@@ -23,12 +23,12 @@ const returnOrder_1 = require("../order/returnOrder");
|
|
|
23
23
|
function call(data) {
|
|
24
24
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
yield (0, returnOrder_1.returnOrder)(Object.assign(Object.assign({}, data), { useOnOrderStatusChanged: true }))({
|
|
26
|
-
acceptedOffer: new acceptedOffer_1.
|
|
27
|
-
action: new action_1.
|
|
28
|
-
order: new order_1.
|
|
29
|
-
ownershipInfo: new ownershipInfo_1.
|
|
30
|
-
task: new task_1.
|
|
31
|
-
transaction: new transaction_1.
|
|
26
|
+
acceptedOffer: new acceptedOffer_1.AcceptedOfferRepo(settings.connection),
|
|
27
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
28
|
+
order: new order_1.OrderRepo(settings.connection),
|
|
29
|
+
ownershipInfo: new ownershipInfo_1.OwnershipInfoRepo(settings.connection),
|
|
30
|
+
task: new task_1.TaskRepo(settings.connection),
|
|
31
|
+
transaction: new transaction_1.TransactionRepo(settings.connection)
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -30,14 +30,14 @@ function call(params) {
|
|
|
30
30
|
throw new factory.errors.Argument('settings', 'redisClient required');
|
|
31
31
|
}
|
|
32
32
|
yield returnPayTransaction(Object.assign(Object.assign({}, params.data), { sameAs: { id: params.id } }))({
|
|
33
|
-
action: new action_1.
|
|
34
|
-
assetTransaction: new assetTransaction_1.
|
|
35
|
-
order: new order_1.
|
|
36
|
-
paymentService: new paymentService_1.
|
|
37
|
-
product: new product_1.
|
|
38
|
-
task: new task_1.
|
|
39
|
-
transaction: new transaction_1.
|
|
40
|
-
transactionNumber: new transactionNumber_1.
|
|
33
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
34
|
+
assetTransaction: new assetTransaction_1.AssetTransactionRepo(settings.connection),
|
|
35
|
+
order: new order_1.OrderRepo(settings.connection),
|
|
36
|
+
paymentService: new paymentService_1.PaymentServiceRepo(settings.connection),
|
|
37
|
+
product: new product_1.ProductRepo(settings.connection),
|
|
38
|
+
task: new task_1.TaskRepo(settings.connection),
|
|
39
|
+
transaction: new transaction_1.TransactionRepo(settings.connection),
|
|
40
|
+
transactionNumber: new transactionNumber_1.TransactionNumberRepo(settings.redisClient)
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
}
|
|
@@ -25,11 +25,11 @@ function call(data) {
|
|
|
25
25
|
if (settings.redisClient === undefined) {
|
|
26
26
|
throw new factory.errors.Argument('settings', 'redisClient required');
|
|
27
27
|
}
|
|
28
|
-
const actionRepo = new action_1.
|
|
29
|
-
const assetTransactionRepo = new assetTransaction_1.
|
|
30
|
-
const productRepo = new product_1.
|
|
31
|
-
const projectRepo = new project_1.
|
|
32
|
-
const transactionNumberRepo = new transactionNumber_1.
|
|
28
|
+
const actionRepo = new action_1.ActionRepo(settings.connection);
|
|
29
|
+
const assetTransactionRepo = new assetTransaction_1.AssetTransactionRepo(settings.connection);
|
|
30
|
+
const productRepo = new product_1.ProductRepo(settings.connection);
|
|
31
|
+
const projectRepo = new project_1.ProjectRepo(settings.connection);
|
|
32
|
+
const transactionNumberRepo = new transactionNumber_1.TransactionNumberRepo(settings.redisClient);
|
|
33
33
|
yield DeliveryService.returnPointAward(data)({
|
|
34
34
|
action: actionRepo,
|
|
35
35
|
assetTransaction: assetTransactionRepo,
|
|
@@ -29,11 +29,11 @@ function call(params) {
|
|
|
29
29
|
throw new factory.errors.Argument('settings', 'redisClient required');
|
|
30
30
|
}
|
|
31
31
|
yield returnReserve(Object.assign(Object.assign({}, params.data), { sameAs: { id: params.id } }))({
|
|
32
|
-
action: new action_1.
|
|
33
|
-
assetTransaction: new assetTransaction_1.
|
|
34
|
-
project: new project_1.
|
|
35
|
-
reservation: new reservation_1.
|
|
36
|
-
transactionNumber: new transactionNumber_1.
|
|
32
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
33
|
+
assetTransaction: new assetTransaction_1.AssetTransactionRepo(settings.connection),
|
|
34
|
+
project: new project_1.ProjectRepo(settings.connection),
|
|
35
|
+
reservation: new reservation_1.ReservationRepo(settings.connection),
|
|
36
|
+
transactionNumber: new transactionNumber_1.TransactionNumberRepo(settings.redisClient)
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
}
|
|
@@ -21,9 +21,9 @@ function call(params) {
|
|
|
21
21
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
22
22
|
yield NotificationService.sendEmailMessage(Object.assign(Object.assign({}, params.data.actionAttributes), { sameAs: { id: params.id } // タスクIDを関連付け(2024-06-25~)
|
|
23
23
|
}))({
|
|
24
|
-
action: new action_1.
|
|
24
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
25
25
|
message: new message_1.MessageRepo(settings.connection),
|
|
26
|
-
project: new project_1.
|
|
26
|
+
project: new project_1.ProjectRepo(settings.connection)
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
}
|
|
@@ -30,12 +30,12 @@ function call(data) {
|
|
|
30
30
|
? data.object.acceptedOffers
|
|
31
31
|
: { limit: 50, page: 1 } // 互換性維持対応として指定がない場合に対応
|
|
32
32
|
}), useOnOrderStatusChanged: true }))({
|
|
33
|
-
acceptedOffer: new acceptedOffer_1.
|
|
34
|
-
action: new action_1.
|
|
35
|
-
order: new order_1.
|
|
36
|
-
ownershipInfo: new ownershipInfo_1.
|
|
37
|
-
task: new task_1.
|
|
38
|
-
transaction: new transaction_1.
|
|
33
|
+
acceptedOffer: new acceptedOffer_1.AcceptedOfferRepo(settings.connection),
|
|
34
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
35
|
+
order: new order_1.OrderRepo(settings.connection),
|
|
36
|
+
ownershipInfo: new ownershipInfo_1.OwnershipInfoRepo(settings.connection),
|
|
37
|
+
task: new task_1.TaskRepo(settings.connection),
|
|
38
|
+
transaction: new transaction_1.TransactionRepo(settings.connection)
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -19,7 +19,7 @@ const notification_1 = require("../notification");
|
|
|
19
19
|
function call(params) {
|
|
20
20
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
21
21
|
yield (0, notification_1.triggerWebhook)(Object.assign(Object.assign({}, params.data), { project: { id: params.project.id } }))({
|
|
22
|
-
action: new action_1.
|
|
22
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
23
23
|
useFetchAPI: settings_1.USE_FETCH_API
|
|
24
24
|
});
|
|
25
25
|
});
|
|
@@ -23,11 +23,11 @@ function call(data) {
|
|
|
23
23
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
var _a, _b;
|
|
25
25
|
yield (0, useReservation_1.useReservation)(Object.assign(Object.assign({ project: data.project, agent: data.agent, object: data.object }, (typeof ((_a = data.instrument) === null || _a === void 0 ? void 0 : _a.typeOf) === 'string') ? { instrument: data.instrument } : undefined), (typeof ((_b = data.location) === null || _b === void 0 ? void 0 : _b.typeOf) === 'string') ? { location: data.location } : undefined))({
|
|
26
|
-
action: new action_1.
|
|
27
|
-
assetTransaction: new assetTransaction_1.
|
|
28
|
-
order: new order_1.
|
|
29
|
-
reservation: new reservation_1.
|
|
30
|
-
task: new task_1.
|
|
26
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
27
|
+
assetTransaction: new assetTransaction_1.AssetTransactionRepo(settings.connection),
|
|
28
|
+
order: new order_1.OrderRepo(settings.connection),
|
|
29
|
+
reservation: new reservation_1.ReservationRepo(settings.connection),
|
|
30
|
+
task: new task_1.TaskRepo(settings.connection)
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -19,9 +19,9 @@ const MoneyTransferOfferService = require("../offer/moneyTransfer");
|
|
|
19
19
|
*/
|
|
20
20
|
function call(data) {
|
|
21
21
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const actionRepo = new action_1.
|
|
23
|
-
const assetTransactionRepo = new assetTransaction_1.
|
|
24
|
-
const transactionRepo = new transaction_1.
|
|
22
|
+
const actionRepo = new action_1.ActionRepo(settings.connection);
|
|
23
|
+
const assetTransactionRepo = new assetTransaction_1.AssetTransactionRepo(settings.connection);
|
|
24
|
+
const transactionRepo = new transaction_1.TransactionRepo(settings.connection);
|
|
25
25
|
yield MoneyTransferOfferService.voidTransaction(data)({
|
|
26
26
|
action: actionRepo,
|
|
27
27
|
assetTransaction: assetTransactionRepo,
|
|
@@ -25,14 +25,14 @@ const AnyPaymentService = require("../payment/any");
|
|
|
25
25
|
function call(params) {
|
|
26
26
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
27
27
|
yield AnyPaymentService.voidPayTransaction(Object.assign(Object.assign({}, params.data), { sameAs: { id: params.id } }))({
|
|
28
|
-
accountingReport: new accountingReport_1.
|
|
29
|
-
action: new action_1.
|
|
30
|
-
assetTransaction: new assetTransaction_1.
|
|
31
|
-
paymentAccepted: new sellerPaymentAccepted_1.
|
|
32
|
-
paymentService: new paymentService_1.
|
|
33
|
-
paymentServiceProvider: new paymentServiceProvider_1.
|
|
34
|
-
task: new task_1.
|
|
35
|
-
transaction: new transaction_1.
|
|
28
|
+
accountingReport: new accountingReport_1.AccountingReportRepo(settings.connection),
|
|
29
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
30
|
+
assetTransaction: new assetTransaction_1.AssetTransactionRepo(settings.connection),
|
|
31
|
+
paymentAccepted: new sellerPaymentAccepted_1.SellerPaymentAcceptedRepo(settings.connection),
|
|
32
|
+
paymentService: new paymentService_1.PaymentServiceRepo(settings.connection),
|
|
33
|
+
paymentServiceProvider: new paymentServiceProvider_1.PaymentServiceProviderRepo(settings.connection),
|
|
34
|
+
task: new task_1.TaskRepo(settings.connection),
|
|
35
|
+
transaction: new transaction_1.TransactionRepo(settings.connection)
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -25,14 +25,14 @@ const PaymentService = require("../payment");
|
|
|
25
25
|
function call(data) {
|
|
26
26
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
27
27
|
yield PaymentService.voidPayment(data)({
|
|
28
|
-
accountingReport: new accountingReport_1.
|
|
29
|
-
action: new action_1.
|
|
30
|
-
paymentAccepted: new sellerPaymentAccepted_1.
|
|
31
|
-
paymentService: new paymentService_1.
|
|
32
|
-
paymentServiceProvider: new paymentServiceProvider_1.
|
|
33
|
-
product: new product_1.
|
|
34
|
-
project: new project_1.
|
|
35
|
-
task: new task_1.
|
|
28
|
+
accountingReport: new accountingReport_1.AccountingReportRepo(settings.connection),
|
|
29
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
30
|
+
paymentAccepted: new sellerPaymentAccepted_1.SellerPaymentAcceptedRepo(settings.connection),
|
|
31
|
+
paymentService: new paymentService_1.PaymentServiceRepo(settings.connection),
|
|
32
|
+
paymentServiceProvider: new paymentServiceProvider_1.PaymentServiceProviderRepo(settings.connection),
|
|
33
|
+
product: new product_1.ProductRepo(settings.connection),
|
|
34
|
+
project: new project_1.ProjectRepo(settings.connection),
|
|
35
|
+
task: new task_1.TaskRepo(settings.connection)
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -22,9 +22,9 @@ function call(data) {
|
|
|
22
22
|
// if (settings.redisClient === undefined) {
|
|
23
23
|
// throw new factory.errors.Argument('settings', 'redisClient required');
|
|
24
24
|
// }
|
|
25
|
-
const actionRepo = new action_1.
|
|
26
|
-
const assetTransactionRepo = new assetTransaction_1.
|
|
27
|
-
const transactionRepo = new transaction_1.
|
|
25
|
+
const actionRepo = new action_1.ActionRepo(settings.connection);
|
|
26
|
+
const assetTransactionRepo = new assetTransaction_1.AssetTransactionRepo(settings.connection);
|
|
27
|
+
const transactionRepo = new transaction_1.TransactionRepo(settings.connection);
|
|
28
28
|
yield ProductOfferService.voidTransaction(data)({
|
|
29
29
|
action: actionRepo,
|
|
30
30
|
assetTransaction: assetTransactionRepo,
|
|
@@ -37,17 +37,17 @@ function call(params) {
|
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
const transactionProcessRepo = new transactionProcess_1.
|
|
40
|
+
const transactionProcessRepo = new transactionProcess_1.TransactionProcessRepo(settings.redisClient, { lockExpiresInSeconds: 120 });
|
|
41
41
|
try {
|
|
42
42
|
yield (0, event_1.voidTransaction)(Object.assign(Object.assign({}, params.data), { sameAs: { id: params.id } }))({
|
|
43
|
-
action: new action_1.
|
|
44
|
-
assetTransaction: new assetTransaction_1.
|
|
45
|
-
stockHolder: new stockHolder_1.
|
|
46
|
-
offerRateLimit: new offer_1.
|
|
47
|
-
orderInTransaction: new orderInTransaction_1.
|
|
48
|
-
reservation: new reservation_1.
|
|
49
|
-
task: new task_1.
|
|
50
|
-
transaction: new transaction_1.
|
|
43
|
+
action: new action_1.ActionRepo(settings.connection),
|
|
44
|
+
assetTransaction: new assetTransaction_1.AssetTransactionRepo(settings.connection),
|
|
45
|
+
stockHolder: new stockHolder_1.StockHolderRepo(settings.redisClient, settings.connection),
|
|
46
|
+
offerRateLimit: new offer_1.OfferRateLimitRepo(settings.redisClient),
|
|
47
|
+
orderInTransaction: new orderInTransaction_1.OrderInTransactionRepo(settings.connection),
|
|
48
|
+
reservation: new reservation_1.ReservationRepo(settings.connection),
|
|
49
|
+
task: new task_1.TaskRepo(settings.connection),
|
|
50
|
+
transaction: new transaction_1.TransactionRepo(settings.connection)
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
catch (error) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Connection } from 'mongoose';
|
|
2
2
|
import type { RedisClientType } from 'redis';
|
|
3
3
|
import * as factory from '../factory';
|
|
4
|
-
import type { IExecutableTask, IExecutableTaskKeys,
|
|
4
|
+
import type { IExecutableTask, IExecutableTaskKeys, TaskRepo } from '../repo/task';
|
|
5
5
|
interface IConnectionSettings {
|
|
6
6
|
/**
|
|
7
7
|
* MongoDBコネクション
|
|
@@ -23,7 +23,7 @@ const DEFAULT_EXECUTOR_NAME = `${process.env.GAE_APPLICATION}:${process.env.GAE_
|
|
|
23
23
|
function executeById(params) {
|
|
24
24
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
var _a;
|
|
26
|
-
const taskRepo = new (yield Promise.resolve().then(() => require('../repo/task'))).
|
|
26
|
+
const taskRepo = new (yield Promise.resolve().then(() => require('../repo/task'))).TaskRepo(settings.connection);
|
|
27
27
|
// 未実行のタスクを取得
|
|
28
28
|
// tslint:disable-next-line:no-null-keyword
|
|
29
29
|
let task = null;
|
|
@@ -56,7 +56,7 @@ exports.executeById = executeById;
|
|
|
56
56
|
function executeByName(params) {
|
|
57
57
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
58
58
|
var _a;
|
|
59
|
-
const taskRepo = new (yield Promise.resolve().then(() => require('../repo/task'))).
|
|
59
|
+
const taskRepo = new (yield Promise.resolve().then(() => require('../repo/task'))).TaskRepo(settings.connection);
|
|
60
60
|
// 未実行のタスクを取得
|
|
61
61
|
// tslint:disable-next-line:no-null-keyword
|
|
62
62
|
let task = null;
|
|
@@ -90,7 +90,7 @@ function execute(task) {
|
|
|
90
90
|
const now = new Date();
|
|
91
91
|
debug('executing an executableTask...', task, now);
|
|
92
92
|
return (settings, options) => __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
const taskRepo = new (yield Promise.resolve().then(() => require('../repo/task'))).
|
|
93
|
+
const taskRepo = new (yield Promise.resolve().then(() => require('../repo/task'))).TaskRepo(settings.connection);
|
|
94
94
|
try {
|
|
95
95
|
// 期限検証(2024-04-23~)
|
|
96
96
|
if (task.expires instanceof Date) {
|
|
@@ -1,16 +1,16 @@
|
|
|
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 { AcceptedOfferRepo } from '../../repo/acceptedOffer';
|
|
3
|
+
import type { AccountingReportRepo } from '../../repo/accountingReport';
|
|
4
|
+
import type { ActionRepo } from '../../repo/action';
|
|
5
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
6
|
+
import type { EventRepo } from '../../repo/event';
|
|
7
7
|
import type { MessageRepo } from '../../repo/message';
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
8
|
+
import type { NoteRepo } from '../../repo/note';
|
|
9
|
+
import type { OrderRepo } from '../../repo/order';
|
|
10
|
+
import type { OwnershipInfoRepo } from '../../repo/ownershipInfo';
|
|
11
|
+
import type { ReservationRepo } from '../../repo/reservation';
|
|
12
|
+
import type { TaskRepo } from '../../repo/task';
|
|
13
|
+
import type { TransactionRepo } from '../../repo/transaction';
|
|
14
14
|
/**
|
|
15
15
|
* 取引に関わるリソースを削除する
|
|
16
16
|
* 冪等性を確保すること
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { AuthorizationRepo } from '../../repo/
|
|
4
|
-
import type {
|
|
1
|
+
import type { ActionRepo } from '../../repo/action';
|
|
2
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
3
|
+
import type { AuthorizationRepo } from '../../repo/authorization';
|
|
4
|
+
import type { OrderRepo } from '../../repo/order';
|
|
5
5
|
import type { PassportRepo } from '../../repo/passport';
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
6
|
+
import type { ProductRepo } from '../../repo/product';
|
|
7
|
+
import type { ProjectRepo } from '../../repo/project';
|
|
8
|
+
import type { SellerRepo } from '../../repo/seller';
|
|
9
|
+
import type { TaskRepo } from '../../repo/task';
|
|
10
10
|
import type { TicketRepo } from '../../repo/ticket';
|
|
11
|
-
import type { IStartedTransaction,
|
|
12
|
-
import type {
|
|
11
|
+
import type { IStartedTransaction, TransactionRepo } from '../../repo/transaction';
|
|
12
|
+
import type { TransactionNumberRepo } from '../../repo/transactionNumber';
|
|
13
13
|
import { moneyTransfer as MoneyTransferFactory } from '../../factory/transaction';
|
|
14
14
|
export interface IStartOperationRepos {
|
|
15
15
|
action: ActionRepo;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as factory from '../../../../../factory';
|
|
2
|
+
/**
|
|
3
|
+
* 注文取引結果としての注文を生成する
|
|
4
|
+
*/
|
|
5
|
+
declare function createOrderAsResult(params: {
|
|
6
|
+
orderNumber: string;
|
|
7
|
+
orderDate: Date;
|
|
8
|
+
orderStatus: factory.orderStatus;
|
|
9
|
+
price: number;
|
|
10
|
+
}): factory.transaction.placeOrder.IOrderAsResult;
|
|
11
|
+
export { createOrderAsResult };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createOrderAsResult = void 0;
|
|
4
|
+
const factory = require("../../../../../factory");
|
|
5
|
+
// import { acceptedOffers2orderedItem } from './result/orderedItem';
|
|
6
|
+
/**
|
|
7
|
+
* 注文取引結果としての注文を生成する
|
|
8
|
+
*/
|
|
9
|
+
function createOrderAsResult(params) {
|
|
10
|
+
const { orderDate, orderNumber, orderStatus, price } = params;
|
|
11
|
+
return {
|
|
12
|
+
typeOf: factory.order.OrderType.Order,
|
|
13
|
+
price,
|
|
14
|
+
priceCurrency: factory.priceCurrency.JPY,
|
|
15
|
+
// discounts: discounts, // 廃止(2024-04-16~)
|
|
16
|
+
confirmationNumber: '',
|
|
17
|
+
orderNumber,
|
|
18
|
+
url: '',
|
|
19
|
+
orderStatus,
|
|
20
|
+
orderDate,
|
|
21
|
+
identifier: []
|
|
22
|
+
// orderedItem: params.orderedItem, // discontinue(2024-06-20~)
|
|
23
|
+
// paymentMethods: params.paymentMethods, // discontinue(2024-06-20~)
|
|
24
|
+
// customer, // discontinue(2024-06-20~)
|
|
25
|
+
// project: params.transaction.project, // discontinue(2024-06-20~)
|
|
26
|
+
// seller, // discontinue(2024-06-20~)
|
|
27
|
+
// isGift: params.isGift, // discontinue(2024-06-20~)
|
|
28
|
+
// ...(typeof name === 'string') ? { name } : undefined, // discontinue(2024-06-20~)
|
|
29
|
+
// ...(typeof broker?.typeOf === 'string') ? { broker } : undefined // discontinue(2024-06-20~)
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.createOrderAsResult = createOrderAsResult;
|
|
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.createSendEmailMessageActions = void 0;
|
|
13
|
-
const emailMessageBuilder = require("
|
|
14
|
-
const factory = require("
|
|
13
|
+
const emailMessageBuilder = require("../../../../../emailMessageBuilder");
|
|
14
|
+
const factory = require("../../../../../factory");
|
|
15
15
|
function createSendEmailMessageActions(params) {
|
|
16
16
|
var _a, _b, _c, _d, _e;
|
|
17
17
|
return __awaiter(this, void 0, void 0, function* () {
|
package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/publishCode.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AuthorizationRepo } from '
|
|
2
|
-
import * as factory from '
|
|
1
|
+
import type { AuthorizationRepo } from '../../../../repo/authorization';
|
|
2
|
+
import * as factory from '../../../../factory';
|
|
3
3
|
declare function publishCode(params: {
|
|
4
4
|
project: {
|
|
5
5
|
id: string;
|
package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/publishCode.js
RENAMED
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.publishCode = void 0;
|
|
13
|
-
const factory = require("
|
|
13
|
+
const factory = require("../../../../factory");
|
|
14
14
|
function publishCode(params) {
|
|
15
15
|
return (repos) => __awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as factory from '
|
|
1
|
+
import * as factory from '../../../../../factory';
|
|
2
2
|
export type IMovieTicket4validate = Pick<factory.paymentMethod.paymentCard.movieTicket.IMovieTicketPaymentCard, 'identifier' | 'serviceOutput' | 'serviceType' | 'typeOf'>;
|
|
3
3
|
/**
|
|
4
4
|
* 興行オファー承認に対して決済承認条件が整っているかどうか検証する
|
|
@@ -5,8 +5,8 @@ exports.validateMovieTicket = void 0;
|
|
|
5
5
|
* 注文取引におけるMovieTicket検証
|
|
6
6
|
*/
|
|
7
7
|
const createDebug = require("debug");
|
|
8
|
-
const factory = require("
|
|
9
|
-
const settings_1 = require("
|
|
8
|
+
const factory = require("../../../../../factory");
|
|
9
|
+
const settings_1 = require("../../../../../settings");
|
|
10
10
|
const debug = createDebug('chevre-domain:service:validateMovieTicket');
|
|
11
11
|
/**
|
|
12
12
|
* 興行オファー承認に対して決済承認条件が整っているかどうか検証する
|
package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as factory from '
|
|
2
|
-
import { placeOrder as PlaceOrderFactory } from '
|
|
1
|
+
import * as factory from '../../../../factory';
|
|
2
|
+
import { placeOrder as PlaceOrderFactory } from '../../../../factory/transaction';
|
|
3
3
|
export type IAuthorizeEventServiceOffer = factory.action.authorize.offer.eventService.IAction<factory.service.webAPI.Identifier>;
|
|
4
4
|
export type IAuthorizeProductOffer = factory.action.authorize.offer.product.IAction;
|
|
5
5
|
export type IAuthorizeMoneyTransferOffer = factory.action.authorize.offer.moneyTransfer.IAction;
|
package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation.js
RENAMED
|
@@ -6,8 +6,8 @@ exports.validateEventOffers = exports.validatePaymentMethods = exports.validateO
|
|
|
6
6
|
*/
|
|
7
7
|
const createDebug = require("debug");
|
|
8
8
|
const util_1 = require("util");
|
|
9
|
-
const factory = require("
|
|
10
|
-
const settings_1 = require("
|
|
9
|
+
const factory = require("../../../../factory");
|
|
10
|
+
const settings_1 = require("../../../../settings");
|
|
11
11
|
const validateMovieTicket_1 = require("./validation/validateMovieTicket");
|
|
12
12
|
const debug = createDebug('chevre-domain:service:transaction');
|
|
13
13
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { AuthorizationRepo } from '../../../repo/
|
|
1
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
2
|
+
import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
|
|
3
|
+
import type { AuthorizationRepo } from '../../../repo/authorization';
|
|
4
4
|
import type { ConfirmationNumberRepo } from '../../../repo/confirmationNumber';
|
|
5
|
-
import type {
|
|
5
|
+
import type { EmailMessageRepo } from '../../../repo/emailMessage';
|
|
6
6
|
import type { MessageRepo } from '../../../repo/message';
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
7
|
+
import type { OrderInTransactionRepo } from '../../../repo/orderInTransaction';
|
|
8
|
+
import type { OrderNumberRepo } from '../../../repo/orderNumber';
|
|
9
|
+
import type { ProjectRepo } from '../../../repo/project';
|
|
10
|
+
import type { TransactionRepo } from '../../../repo/transaction';
|
|
11
11
|
import * as factory from '../../../factory';
|
|
12
12
|
import { placeOrder as PlaceOrderFactory } from '../../../factory/transaction';
|
|
13
13
|
interface IConfirmOperationRepos {
|