@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,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import {
|
|
5
|
-
import type {
|
|
6
|
-
import {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
1
|
+
import { EventRepo, IMinimizedIndividualEvent } from '../../../repo/event';
|
|
2
|
+
import type { OfferRepo } from '../../../repo/offer';
|
|
3
|
+
import type { OfferCatalogRepo } from '../../../repo/offerCatalog';
|
|
4
|
+
import { ScreeningRoomRepo } from '../../../repo/place/screeningRoom';
|
|
5
|
+
import type { ProductRepo } from '../../../repo/product';
|
|
6
|
+
import { OfferRateLimitRepo } from '../../../repo/rateLimit/offer';
|
|
7
|
+
import type { ReservationRepo } from '../../../repo/reservation';
|
|
8
|
+
import type { StockHolderRepo } from '../../../repo/stockHolder';
|
|
9
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
10
10
|
import * as factory from '../../../factory';
|
|
11
11
|
export interface IAggregateScreeningEventRepos {
|
|
12
12
|
event: EventRepo;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
1
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
2
|
+
import type { AggregateReservationRepo } from '../../../repo/aggregateReservation';
|
|
3
|
+
import type { EventRepo } from '../../../repo/event';
|
|
4
|
+
import type { OfferRepo } from '../../../repo/offer';
|
|
5
|
+
import type { OfferCatalogRepo } from '../../../repo/offerCatalog';
|
|
6
|
+
import type { MovieTheaterRepo } from '../../../repo/place/movieTheater';
|
|
7
|
+
import type { ProductRepo } from '../../../repo/product';
|
|
8
8
|
export type IAggregateOperation<T> = (repos: {
|
|
9
9
|
action: ActionRepo;
|
|
10
10
|
aggregateReservation: AggregateReservationRepo;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IMinimizedIndividualEvent } from '../../../repo/event';
|
|
2
|
-
import type { IUnitPriceOfferFromAggregateOffer,
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
2
|
+
import type { IUnitPriceOfferFromAggregateOffer, OfferRepo } from '../../../repo/offer';
|
|
3
|
+
import type { OfferCatalogRepo } from '../../../repo/offerCatalog';
|
|
4
|
+
import type { ProductRepo } from '../../../repo/product';
|
|
5
5
|
import * as factory from '../../../factory';
|
|
6
6
|
/**
|
|
7
7
|
* 興行オファー検索
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { ProjectRepo } from '../../repo/project';
|
|
2
|
+
import type { ReservationRepo } from '../../repo/reservation';
|
|
3
|
+
import type { TaskRepo } from '../../repo/task';
|
|
4
4
|
export type IAggregateOperation<T> = (repos: {
|
|
5
5
|
project: ProjectRepo;
|
|
6
6
|
reservation: ReservationRepo;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActionRepo } from '../../repo/action';
|
|
2
2
|
import { AggregationRepo } from '../../repo/aggregation';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import
|
|
6
|
-
import type {
|
|
3
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
4
|
+
import type { EventRepo } from '../../repo/event';
|
|
5
|
+
import { OrderRepo } from '../../repo/order';
|
|
6
|
+
import type { TaskRepo } from '../../repo/task';
|
|
7
|
+
import type { TransactionRepo } from '../../repo/transaction';
|
|
7
8
|
type AggregateDurationUnit = 'days' | 'hours';
|
|
8
9
|
declare function aggregateEvent(params: {
|
|
9
10
|
aggregateDurationUnit: AggregateDurationUnit;
|
|
@@ -16,6 +17,20 @@ declare function aggregateEvent(params: {
|
|
|
16
17
|
aggregationCount: number;
|
|
17
18
|
aggregateDuration: string;
|
|
18
19
|
}>;
|
|
20
|
+
/**
|
|
21
|
+
* 注文集計
|
|
22
|
+
*/
|
|
23
|
+
declare function aggregateOrder(params: {
|
|
24
|
+
aggregateDurationUnit: AggregateDurationUnit;
|
|
25
|
+
aggregationCount: number;
|
|
26
|
+
excludedProjectId?: string;
|
|
27
|
+
}): (repos: {
|
|
28
|
+
agregation: AggregationRepo;
|
|
29
|
+
order: OrderRepo;
|
|
30
|
+
}) => Promise<{
|
|
31
|
+
aggregationCount: number;
|
|
32
|
+
aggregateDuration: string;
|
|
33
|
+
}>;
|
|
19
34
|
/**
|
|
20
35
|
* 注文取引集計
|
|
21
36
|
*/
|
|
@@ -179,9 +194,9 @@ declare function aggregateTask(params: {
|
|
|
179
194
|
excludedProjectId?: string;
|
|
180
195
|
}): (repos: {
|
|
181
196
|
agregation: AggregationRepo;
|
|
182
|
-
task:
|
|
197
|
+
task: TaskRepo;
|
|
183
198
|
}) => Promise<{
|
|
184
199
|
aggregationCount: number;
|
|
185
200
|
aggregateDuration: string;
|
|
186
201
|
}>;
|
|
187
|
-
export { aggregateAuthorizeEventServiceOfferAction, aggregateAuthorizeOrderAction, aggregateAuthorizePaymentAction, aggregateCancelReservationAction, aggregateCheckMovieTicketAction, aggregateEvent, aggregateOrderAction, aggregatePayMovieTicketAction, aggregatePayTransaction, aggregatePlaceOrder, aggregateReserveAction, aggregateReserveTransaction, aggregateTask, aggregateUseAction };
|
|
202
|
+
export { aggregateAuthorizeEventServiceOfferAction, aggregateAuthorizeOrderAction, aggregateAuthorizePaymentAction, aggregateCancelReservationAction, aggregateCheckMovieTicketAction, aggregateEvent, aggregateOrder, aggregateOrderAction, aggregatePayMovieTicketAction, aggregatePayTransaction, aggregatePlaceOrder, aggregateReserveAction, aggregateReserveTransaction, aggregateTask, aggregateUseAction };
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.aggregateUseAction = exports.aggregateTask = exports.aggregateReserveTransaction = exports.aggregateReserveAction = exports.aggregatePlaceOrder = exports.aggregatePayTransaction = exports.aggregatePayMovieTicketAction = exports.aggregateOrderAction = exports.aggregateEvent = exports.aggregateCheckMovieTicketAction = exports.aggregateCancelReservationAction = exports.aggregateAuthorizePaymentAction = exports.aggregateAuthorizeOrderAction = exports.aggregateAuthorizeEventServiceOfferAction = void 0;
|
|
12
|
+
exports.aggregateUseAction = exports.aggregateTask = exports.aggregateReserveTransaction = exports.aggregateReserveAction = exports.aggregatePlaceOrder = exports.aggregatePayTransaction = exports.aggregatePayMovieTicketAction = exports.aggregateOrderAction = exports.aggregateOrder = exports.aggregateEvent = exports.aggregateCheckMovieTicketAction = exports.aggregateCancelReservationAction = exports.aggregateAuthorizePaymentAction = exports.aggregateAuthorizeOrderAction = exports.aggregateAuthorizeEventServiceOfferAction = void 0;
|
|
13
13
|
const createDebug = require("debug");
|
|
14
14
|
const moment = require("moment-timezone");
|
|
15
15
|
const factory = require("../../factory");
|
|
@@ -49,6 +49,40 @@ function aggregateEvent(params) {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
exports.aggregateEvent = aggregateEvent;
|
|
52
|
+
/**
|
|
53
|
+
* 注文集計
|
|
54
|
+
*/
|
|
55
|
+
function aggregateOrder(params) {
|
|
56
|
+
return (repos) => __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const aggregateDate = new Date();
|
|
58
|
+
const aggregateDuration = moment.duration(1, params.aggregateDurationUnit)
|
|
59
|
+
.toISOString();
|
|
60
|
+
let i = -1;
|
|
61
|
+
while (i < params.aggregationCount) {
|
|
62
|
+
i += 1;
|
|
63
|
+
const startFrom = moment(aggregateDate)
|
|
64
|
+
.utc()
|
|
65
|
+
// .tz('Asia/Tokyo')
|
|
66
|
+
.add(-i, params.aggregateDurationUnit)
|
|
67
|
+
.startOf(params.aggregateDurationUnit)
|
|
68
|
+
.toDate();
|
|
69
|
+
const startThrough = moment(aggregateDate)
|
|
70
|
+
.utc()
|
|
71
|
+
// .tz('Asia/Tokyo')
|
|
72
|
+
.add(-i, params.aggregateDurationUnit)
|
|
73
|
+
.endOf(params.aggregateDurationUnit)
|
|
74
|
+
.toDate();
|
|
75
|
+
const aggregateResult = yield repos.order.aggregateOrder({
|
|
76
|
+
project: { id: { $ne: params.excludedProjectId } },
|
|
77
|
+
orderDate: { $gte: startFrom, $lte: startThrough }
|
|
78
|
+
});
|
|
79
|
+
debug('aggregateOrder:result', aggregateResult, startFrom);
|
|
80
|
+
yield repos.agregation.saveAggregation(Object.assign({ typeOf: aggregation_1.AggregationType.AggregateOrder, project: { id: '*', typeOf: factory.organizationType.Project }, aggregateDuration, aggregateStart: startFrom, aggregateDate }, aggregateResult));
|
|
81
|
+
}
|
|
82
|
+
return { aggregationCount: i, aggregateDuration };
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
exports.aggregateOrder = aggregateOrder;
|
|
52
86
|
/**
|
|
53
87
|
* 注文取引集計
|
|
54
88
|
*/
|
|
@@ -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 { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
3
|
+
import type { ProjectRepo } from '../../repo/project';
|
|
4
|
+
import type { ReservationRepo } from '../../repo/reservation';
|
|
5
|
+
import type { TaskRepo } from '../../repo/task';
|
|
6
6
|
export type IStartOperation<T> = (repos: {
|
|
7
7
|
project: ProjectRepo;
|
|
8
8
|
reservation: ReservationRepo;
|
|
@@ -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 { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
3
|
+
import type { ProductRepo } from '../../repo/product';
|
|
4
|
+
import type { ProjectRepo } from '../../repo/project';
|
|
5
|
+
import type { TaskRepo } from '../../repo/task';
|
|
6
6
|
export type IStartOperation<T> = (repos: {
|
|
7
7
|
product: ProductRepo;
|
|
8
8
|
project: ProjectRepo;
|
|
@@ -16,7 +16,7 @@ exports.exportTasksById = exports.cancel = exports.confirm = exports.start = voi
|
|
|
16
16
|
const moment = require("moment");
|
|
17
17
|
const factory = require("../../factory");
|
|
18
18
|
const pecorinoapi = require("../../pecorinoapi");
|
|
19
|
-
// import type {
|
|
19
|
+
// import type { TransactionNumberRepo } from '../../repo/transactionNumber';
|
|
20
20
|
const MoneyTransferService = require("../moneyTransfer");
|
|
21
21
|
const potentialActions_1 = require("./moneyTransfer/potentialActions");
|
|
22
22
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ペイメントカード決済取引バリデーション
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { SellerPaymentAcceptedRepo } from '../../../../repo/sellerPaymentAccepted';
|
|
5
5
|
import * as factory from '../../../../factory';
|
|
6
6
|
export declare function validateAccount(params: factory.assetTransaction.pay.IStartParamsWithoutDetail): (repos: {
|
|
7
|
-
paymentAccepted:
|
|
7
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as GMO from '@motionpicture/gmo-service';
|
|
5
5
|
import * as factory from '../../factory';
|
|
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 {
|
|
6
|
+
import type { AcceptedOfferRepo } from '../../repo/acceptedOffer';
|
|
7
|
+
import type { AccountingReportRepo } from '../../repo/accountingReport';
|
|
8
|
+
import type { ActionRepo } from '../../repo/action';
|
|
9
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
10
|
+
import type { EventRepo } from '../../repo/event';
|
|
11
|
+
import type { OrderRepo } from '../../repo/order';
|
|
12
|
+
import type { PaymentServiceRepo } from '../../repo/paymentService';
|
|
13
|
+
import type { PaymentServiceProviderRepo } from '../../repo/paymentServiceProvider';
|
|
14
|
+
import type { ProductRepo } from '../../repo/product';
|
|
15
|
+
import type { SellerPaymentAcceptedRepo } from '../../repo/sellerPaymentAccepted';
|
|
16
|
+
import type { TaskRepo } from '../../repo/task';
|
|
17
17
|
import * as CreditCardPayment from '../payment/creditCard';
|
|
18
18
|
import * as MovieTicketPayment from '../payment/movieTicket';
|
|
19
19
|
export interface IStartOperationRepos {
|
|
20
20
|
accountingReport: AccountingReportRepo;
|
|
21
21
|
action: ActionRepo;
|
|
22
22
|
event: EventRepo;
|
|
23
|
-
paymentAccepted:
|
|
23
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
24
24
|
paymentService: PaymentServiceRepo;
|
|
25
25
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
26
26
|
product: ProductRepo;
|
|
@@ -49,20 +49,20 @@ export type IExportTasksOperation<T> = (repos: {
|
|
|
49
49
|
export type ICheckOperation<T> = (repos: {
|
|
50
50
|
action: ActionRepo;
|
|
51
51
|
event: EventRepo;
|
|
52
|
-
paymentAccepted:
|
|
52
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
53
53
|
paymentService: PaymentServiceRepo;
|
|
54
54
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
55
55
|
}) => Promise<T>;
|
|
56
56
|
export type IPublishPaymentUrlOperation<T> = (repos: {
|
|
57
57
|
action: ActionRepo;
|
|
58
|
-
paymentAccepted:
|
|
58
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
59
59
|
paymentService: PaymentServiceRepo;
|
|
60
60
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
61
61
|
}) => Promise<T>;
|
|
62
62
|
export type IInvalidatePaymentUrlOperation<T> = (repos: {
|
|
63
63
|
accountingReport: AccountingReportRepo;
|
|
64
64
|
action: ActionRepo;
|
|
65
|
-
paymentAccepted:
|
|
65
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
66
66
|
paymentService: PaymentServiceRepo;
|
|
67
67
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
68
68
|
task: TaskRepo;
|
|
@@ -160,7 +160,7 @@ export declare function exportTasksById(params: {
|
|
|
160
160
|
export declare function searchGMOTrade(params: {
|
|
161
161
|
transactionNumber: string;
|
|
162
162
|
}): (repos: {
|
|
163
|
-
paymentAccepted:
|
|
163
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
164
164
|
paymentService: PaymentServiceRepo;
|
|
165
165
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
166
166
|
assetTransaction: AssetTransactionRepo;
|
|
@@ -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 { PaymentServiceRepo } from '../../repo/paymentService';
|
|
5
|
+
import type { ProductRepo } from '../../repo/product';
|
|
6
|
+
import type { TaskRepo } from '../../repo/task';
|
|
7
7
|
export interface IStartOperationRepos {
|
|
8
8
|
action: ActionRepo;
|
|
9
9
|
paymentService: PaymentServiceRepo;
|
|
@@ -1,12 +1,12 @@
|
|
|
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 {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
2
|
+
import type { AccountRepo } from '../../repo/account';
|
|
3
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
4
|
+
import type { OfferRepo } from '../../repo/offer';
|
|
5
|
+
import type { OfferCatalogRepo } from '../../repo/offerCatalog';
|
|
6
|
+
import type { ProductRepo } from '../../repo/product';
|
|
7
|
+
import type { ProjectRepo } from '../../repo/project';
|
|
8
|
+
import type { ServiceOutputRepo } from '../../repo/serviceOutput';
|
|
9
|
+
import type { TaskRepo } from '../../repo/task';
|
|
10
10
|
export type IStartOperation<T> = (repos: {
|
|
11
11
|
account: AccountRepo;
|
|
12
12
|
offer: OfferRepo;
|
|
@@ -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 { AssetTransactionRepo } from '../../../repo/assetTransaction';
|
|
3
|
+
import type { OfferRateLimitRepo } from '../../../repo/rateLimit/offer';
|
|
4
|
+
import type { ReservationRepo } from '../../../repo/reservation';
|
|
5
|
+
import type { StockHolderRepo } from '../../../repo/stockHolder';
|
|
6
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
7
7
|
type ICancelOperation<T> = (repos: {
|
|
8
8
|
action: ActionRepo;
|
|
9
9
|
stockHolder: StockHolderRepo;
|
|
@@ -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
|
interface IConfirmRepo {
|
|
8
8
|
action: ActionRepo;
|
|
9
9
|
assetTransaction: AssetTransactionRepo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
|
|
2
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
3
3
|
type ITaskAndTransactionOperation<T> = (repos: {
|
|
4
4
|
task: TaskRepo;
|
|
5
5
|
assetTransaction: AssetTransactionRepo;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as factory from '../../../../factory';
|
|
2
2
|
import type { IMinimizedIndividualEvent } from '../../../../repo/event';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
3
|
+
import type { OfferRepo } from '../../../../repo/offer';
|
|
4
|
+
import type { OfferCatalogRepo } from '../../../../repo/offerCatalog';
|
|
5
|
+
import type { PaymentServiceRepo } from '../../../../repo/paymentService';
|
|
6
|
+
import type { ProductRepo } from '../../../../repo/product';
|
|
7
|
+
import type { ProductOfferRepo } from '../../../../repo/productOffer';
|
|
8
8
|
type IObjectSubReservation = factory.assetTransaction.reserve.IObjectSubReservation;
|
|
9
9
|
declare function createSubReservations(params: {
|
|
10
10
|
acceptedOffers: factory.assetTransaction.reserve.IAcceptedTicketOfferWithoutDetail[];
|
|
@@ -1,18 +1,18 @@
|
|
|
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 {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
2
|
+
import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
|
|
3
|
+
import type { EventRepo, IMinimizedIndividualEvent } from '../../../repo/event';
|
|
4
|
+
import type { OfferRepo } from '../../../repo/offer';
|
|
5
|
+
import type { OfferCatalogRepo } from '../../../repo/offerCatalog';
|
|
6
|
+
import type { OfferCatalogItemRepo } from '../../../repo/offerCatalogItem';
|
|
7
|
+
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
8
|
+
import type { SeatRepo } from '../../../repo/place/seat';
|
|
9
|
+
import type { PriceSpecificationRepo } from '../../../repo/priceSpecification';
|
|
10
|
+
import type { ProductRepo } from '../../../repo/product';
|
|
11
|
+
import type { ProductOfferRepo } from '../../../repo/productOffer';
|
|
12
|
+
import type { ProjectRepo } from '../../../repo/project';
|
|
13
|
+
import type { OfferRateLimitRepo } from '../../../repo/rateLimit/offer';
|
|
14
|
+
import type { StockHolderRepo } from '../../../repo/stockHolder';
|
|
15
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
16
16
|
interface IStartOperationRepos {
|
|
17
17
|
stockHolder: StockHolderRepo;
|
|
18
18
|
event: EventRepo;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* 取引サービス
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../factory';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
5
|
+
import type { AssetTransactionRepo } from '../repo/assetTransaction';
|
|
6
|
+
import type { TaskRepo } from '../repo/task';
|
|
7
7
|
import * as CancelReservationTransactionService from './assetTransaction/cancelReservation';
|
|
8
8
|
import * as MoneyTransferTransactionService from './assetTransaction/moneyTransfer';
|
|
9
9
|
import * as PayTransactionService from './assetTransaction/pay';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AuthorizationRepo, ICode } from '../repo/
|
|
1
|
+
import type { ActionRepo } from '../repo/action';
|
|
2
|
+
import type { AuthorizationRepo, ICode } from '../repo/authorization';
|
|
3
3
|
import type { TicketRepo } from '../repo/ticket';
|
|
4
4
|
import * as factory from '../factory';
|
|
5
5
|
type IToken = string;
|
|
@@ -1,15 +1,15 @@
|
|
|
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 { ProductRepo } from '../repo/product';
|
|
5
|
+
import type { ProjectRepo } from '../repo/project';
|
|
6
|
+
import type { TransactionNumberRepo } from '../repo/transactionNumber';
|
|
7
7
|
/**
|
|
8
8
|
* 特典付与
|
|
9
9
|
*/
|
|
10
10
|
declare function givePointAward(params: factory.task.IData<factory.taskName.GivePointAward>): (repos: {
|
|
11
11
|
action: ActionRepo;
|
|
12
|
-
assetTransaction:
|
|
12
|
+
assetTransaction: AssetTransactionRepo;
|
|
13
13
|
product: ProductRepo;
|
|
14
14
|
project: ProjectRepo;
|
|
15
15
|
transactionNumber: TransactionNumberRepo;
|
|
@@ -19,7 +19,7 @@ declare function givePointAward(params: factory.task.IData<factory.taskName.Give
|
|
|
19
19
|
*/
|
|
20
20
|
declare function returnPointAward(params: factory.task.IData<factory.taskName.ReturnPointAward>): (repos: {
|
|
21
21
|
action: ActionRepo;
|
|
22
|
-
assetTransaction:
|
|
22
|
+
assetTransaction: AssetTransactionRepo;
|
|
23
23
|
product: ProductRepo;
|
|
24
24
|
project: ProjectRepo;
|
|
25
25
|
transactionNumber: TransactionNumberRepo;
|
|
@@ -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 { EventRepo } from '../../repo/event';
|
|
4
|
+
import type { MovieTheaterRepo } from '../../repo/place/movieTheater';
|
|
5
|
+
import type { TaskRepo } from '../../repo/task';
|
|
6
6
|
export declare function createEvent(params: factory.task.createEvent.IData): (repos: {
|
|
7
7
|
action: ActionRepo;
|
|
8
8
|
event: EventRepo;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
1
|
+
import type { ActionRepo } from '../repo/action';
|
|
2
|
+
import type { CategoryCodeRepo } from '../repo/categoryCode';
|
|
3
|
+
import type { CreativeWorkRepo } from '../repo/creativeWork';
|
|
4
|
+
import type { EventRepo } from '../repo/event';
|
|
5
|
+
import type { MovieTheaterRepo } from '../repo/place/movieTheater';
|
|
6
|
+
import type { ScreeningRoomRepo } from '../repo/place/screeningRoom';
|
|
7
|
+
import type { ProjectRepo } from '../repo/project';
|
|
8
|
+
import type { SellerRepo } from '../repo/seller';
|
|
9
|
+
import type { TaskRepo } from '../repo/task';
|
|
10
10
|
import * as factory from '../factory';
|
|
11
11
|
import { createEvent } from './event/createEvent';
|
|
12
12
|
interface IImportFromCOAParams {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* IAMサービス
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
4
|
+
import type { MemberRepo } from '../repo/member';
|
|
5
|
+
import type { RoleRepo } from '../repo/role';
|
|
6
6
|
import * as factory from '../factory';
|
|
7
7
|
export type IPermission = string;
|
|
8
8
|
/**
|
|
@@ -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 { ProductRepo } from '../repo/product';
|
|
5
|
+
import type { ProjectRepo } from '../repo/project';
|
|
6
|
+
import type { TransactionNumberRepo } from '../repo/transactionNumber';
|
|
7
7
|
export type IAuthorizeOperation<T> = (repos: {
|
|
8
8
|
product: ProductRepo;
|
|
9
9
|
project: ProjectRepo;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ActionRepo } from '../repo/action';
|
|
3
3
|
import type { MessageRepo } from '../repo/message';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ProjectRepo } from '../repo/project';
|
|
5
5
|
type ILineNotifyOperation<T> = (repos: {
|
|
6
6
|
useFetchAPI: boolean;
|
|
7
7
|
}) => Promise<T>;
|
|
@@ -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 { OrderInTransactionRepo } from '../../repo/orderInTransaction';
|
|
3
|
+
import type { OrderNumberRepo } from '../../repo/orderNumber';
|
|
4
|
+
import type { ProjectRepo } from '../../repo/project';
|
|
5
|
+
import type { TransactionRepo } from '../../repo/transaction';
|
|
6
6
|
interface IAcceptOfferOperationRepos {
|
|
7
7
|
orderInTransaction: OrderInTransactionRepo;
|
|
8
8
|
orderNumber: OrderNumberRepo;
|
|
@@ -12,12 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.voidAcceptedOffer = exports.acceptOffer = void 0;
|
|
13
13
|
const createDebug = require("debug");
|
|
14
14
|
const factory = require("../../factory");
|
|
15
|
-
const
|
|
15
|
+
const publishOrderNumberIfNotExist_1 = require("../transaction/placeOrder/publishOrderNumberIfNotExist");
|
|
16
16
|
const debug = createDebug('chevre-domain:service:offer');
|
|
17
17
|
function acceptOffer(params) {
|
|
18
18
|
return (repos) => __awaiter(this, void 0, void 0, function* () {
|
|
19
19
|
const now = new Date();
|
|
20
|
-
const orderNumber = yield (0,
|
|
20
|
+
const orderNumber = yield (0, publishOrderNumberIfNotExist_1.publishOrderNumberIfNotExist)({
|
|
21
21
|
project: { id: params.project.id },
|
|
22
22
|
id: params.purpose.id,
|
|
23
23
|
object: { orderDate: now }
|