@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
|
@@ -2,9 +2,18 @@ import type { IPlacingOrder } from '../../../repo/orderInTransaction';
|
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
3
|
type IPlaceOrderTransaction = Pick<factory.transaction.placeOrder.ITransaction, 'id' | 'project' | 'typeOf' | 'result' | 'object' | 'seller'>;
|
|
4
4
|
type IOrderAcceptedOffer = factory.order.IAcceptedOffer<factory.order.IItemOffered>;
|
|
5
|
+
declare function createPaymentMethods(params: {
|
|
6
|
+
authorizePaymentActions: Pick<factory.action.authorize.paymentMethod.any.IAction, 'result'>[];
|
|
7
|
+
}): {
|
|
8
|
+
paymentMethods: factory.order.IReferencedInvoice[];
|
|
9
|
+
price: number;
|
|
10
|
+
};
|
|
11
|
+
declare function createSeller(params: {
|
|
12
|
+
transaction: Pick<factory.transaction.placeOrder.ITransaction, 'seller'>;
|
|
13
|
+
}): factory.order.ISeller;
|
|
5
14
|
declare function createPlacingOrder(params: {
|
|
6
15
|
transaction: IPlaceOrderTransaction;
|
|
7
16
|
authorizePaymentActions: Pick<factory.action.authorize.paymentMethod.any.IAction, 'result'>[];
|
|
8
17
|
acceptedOffers: IOrderAcceptedOffer[];
|
|
9
18
|
}): IPlacingOrder;
|
|
10
|
-
export { createPlacingOrder, IOrderAcceptedOffer };
|
|
19
|
+
export { createPlacingOrder, createSeller, createPaymentMethods, IOrderAcceptedOffer };
|
|
@@ -1,10 +1,63 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createPlacingOrder = void 0;
|
|
3
|
+
exports.createPaymentMethods = exports.createSeller = exports.createPlacingOrder = void 0;
|
|
4
4
|
const moment = require("moment");
|
|
5
5
|
const factory = require("../../../factory");
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const orderedItem_1 = require("./factory/orderedItem");
|
|
7
|
+
function createPaymentMethods(params) {
|
|
8
|
+
const paymentMethods = [];
|
|
9
|
+
let price = 0;
|
|
10
|
+
// 決済方法をセット
|
|
11
|
+
params.authorizePaymentActions.forEach((a) => {
|
|
12
|
+
var _a, _b, _c, _d;
|
|
13
|
+
const resultAsInvoice = (Array.isArray(a.result))
|
|
14
|
+
? (_a = a.result) === null || _a === void 0 ? void 0 : _a.find(({ typeOf }) => typeOf === factory.action.authorize.paymentMethod.any.ResultType.Payment)
|
|
15
|
+
: a.result;
|
|
16
|
+
if (resultAsInvoice === undefined) {
|
|
17
|
+
throw new factory.errors.NotFound('authorizePaymentAction.resultAsInvoice'); // resultは必ず存在するはず
|
|
18
|
+
}
|
|
19
|
+
const paymentMethodAmountCurrencyByAuthorizeAction = (_c = (_b = resultAsInvoice.paymentMethodAsObject) === null || _b === void 0 ? void 0 : _b.amount) === null || _c === void 0 ? void 0 : _c.currency;
|
|
20
|
+
// 決済方法区分は必ず存在するはず(2023-08-15~)
|
|
21
|
+
const paymentMethodType = (_d = resultAsInvoice.paymentMethodAsObject) === null || _d === void 0 ? void 0 : _d.typeOf;
|
|
22
|
+
if (typeof paymentMethodType !== 'string') {
|
|
23
|
+
throw new factory.errors.NotFound('authorizePaymentAction.result.paymentMethodAsObject.typeOf');
|
|
24
|
+
}
|
|
25
|
+
const paymentMethodOfInvoice = Object.assign({ identifier: paymentMethodType }, (typeof paymentMethodAmountCurrencyByAuthorizeAction === 'string') ?
|
|
26
|
+
{ amount: { currency: paymentMethodAmountCurrencyByAuthorizeAction } } // CreditCardIFのカード通貨区分を追加(2023-08-15~)
|
|
27
|
+
: undefined);
|
|
28
|
+
paymentMethods.push(Object.assign({ accountId: resultAsInvoice.accountId, additionalProperty: (Array.isArray(resultAsInvoice.additionalProperty)) ? resultAsInvoice.additionalProperty : [], issuedThrough: resultAsInvoice.issuedThrough, name: resultAsInvoice.name, paymentMethodId: resultAsInvoice.paymentMethodId, paymentStatus: resultAsInvoice.paymentStatus, paymentMethod: paymentMethodOfInvoice }, (resultAsInvoice.totalPaymentDue !== undefined) ? { totalPaymentDue: resultAsInvoice.totalPaymentDue } : undefined
|
|
29
|
+
// ...(USE_ORDER_PAYMENT_METHOD_TYPE_OF) // 完全廃止(2024-01-17~)
|
|
30
|
+
// ? { typeOf: paymentMethodType }
|
|
31
|
+
// : undefined
|
|
32
|
+
));
|
|
33
|
+
});
|
|
34
|
+
// 決済方法から注文金額の計算
|
|
35
|
+
price += params.authorizePaymentActions
|
|
36
|
+
.reduce((a, b) => {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
const resultAsInvoice = (Array.isArray(b.result))
|
|
39
|
+
? (_a = b.result) === null || _a === void 0 ? void 0 : _a.find(({ typeOf }) => typeOf === factory.action.authorize.paymentMethod.any.ResultType.Payment)
|
|
40
|
+
: b.result;
|
|
41
|
+
const jpyAmount = (((_b = resultAsInvoice === null || resultAsInvoice === void 0 ? void 0 : resultAsInvoice.totalPaymentDue) === null || _b === void 0 ? void 0 : _b.currency) === factory.priceCurrency.JPY)
|
|
42
|
+
? resultAsInvoice.totalPaymentDue.value
|
|
43
|
+
: 0;
|
|
44
|
+
return a + jpyAmount;
|
|
45
|
+
}, 0);
|
|
46
|
+
return { paymentMethods, price };
|
|
47
|
+
}
|
|
48
|
+
exports.createPaymentMethods = createPaymentMethods;
|
|
49
|
+
function createSeller(params) {
|
|
50
|
+
var _a;
|
|
51
|
+
const seller = params.transaction.seller;
|
|
52
|
+
return {
|
|
53
|
+
id: seller.id,
|
|
54
|
+
name: (typeof seller.name === 'string') ? seller.name : String((_a = seller.name) === null || _a === void 0 ? void 0 : _a.ja),
|
|
55
|
+
typeOf: seller.typeOf,
|
|
56
|
+
// 追加特性を追加(2023-08-08~)
|
|
57
|
+
additionalProperty: (Array.isArray(seller.additionalProperty)) ? seller.additionalProperty : []
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.createSeller = createSeller;
|
|
8
61
|
function createPlacingOrder(params) {
|
|
9
62
|
var _a, _b;
|
|
10
63
|
const { transaction, authorizePaymentActions } = params;
|
|
@@ -15,10 +68,10 @@ function createPlacingOrder(params) {
|
|
|
15
68
|
// const orderedItems: factory.order.IOrderedItem[]
|
|
16
69
|
// = (Array.isArray(orderByTransaction.orderedItem)) ? orderByTransaction.orderedItem : [];
|
|
17
70
|
// const customer = createCustomer({ transaction }); // no overwrite(2024-06-24~)
|
|
18
|
-
const seller =
|
|
71
|
+
const seller = createSeller({ transaction });
|
|
19
72
|
const name = (typeof transaction.object.name === 'string') ? transaction.object.name : undefined;
|
|
20
73
|
const broker = (typeof ((_b = transaction.object.broker) === null || _b === void 0 ? void 0 : _b.typeOf) === 'string') ? transaction.object.broker : undefined;
|
|
21
|
-
const { paymentMethods, price } =
|
|
74
|
+
const { paymentMethods, price } = createPaymentMethods({ authorizePaymentActions });
|
|
22
75
|
const eventReservationAcceptedOffers = [];
|
|
23
76
|
const productAcceptedOffers = [];
|
|
24
77
|
const moneyTransferAcceptedOffers = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OrderInTransactionRepo } from '../../../repo/orderInTransaction';
|
|
2
2
|
declare function voidAcceptedOfferIfNecessary(params: {
|
|
3
3
|
object: {
|
|
4
4
|
orderNumber: string;
|
|
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.voidAcceptedOfferIfNecessary = void 0;
|
|
13
13
|
const createDebug = require("debug");
|
|
14
|
-
// import type {
|
|
14
|
+
// import type { TransactionRepo } from '../../../repo/transaction';
|
|
15
15
|
// import * as factory from '../../../factory';
|
|
16
16
|
const debug = createDebug('chevre-domain:service:order');
|
|
17
17
|
// type IPlaceOrderTransaction = Pick<
|
|
@@ -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 { AcceptedOfferRepo } from '../../repo/acceptedOffer';
|
|
2
|
+
import type { AccountingReportRepo } from '../../repo/accountingReport';
|
|
3
|
+
import type { ActionRepo } from '../../repo/action';
|
|
4
|
+
import type { OrderRepo } from '../../repo/order';
|
|
5
|
+
import type { OrderInTransactionRepo } from '../../repo/orderInTransaction';
|
|
6
|
+
import type { TaskRepo } from '../../repo/task';
|
|
7
|
+
import type { TransactionRepo } from '../../repo/transaction';
|
|
8
8
|
import * as factory from '../../factory';
|
|
9
9
|
/**
|
|
10
10
|
* 注文を作成する
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
1
|
+
import type { AccountingReportRepo } from '../../repo/accountingReport';
|
|
2
|
+
import type { ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { OrderRepo } from '../../repo/order';
|
|
4
|
+
import type { TaskRepo } from '../../repo/task';
|
|
5
5
|
import * as factory from '../../factory';
|
|
6
6
|
import { IExternalOrder } from './onOrderStatusChanged';
|
|
7
7
|
/**
|
|
@@ -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 { AcceptedOfferRepo } from '../../repo/acceptedOffer';
|
|
2
|
+
import type { ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { OrderRepo } from '../../repo/order';
|
|
4
|
+
import type { OwnershipInfoRepo } from '../../repo/ownershipInfo';
|
|
5
|
+
import type { TaskRepo } from '../../repo/task';
|
|
6
|
+
import type { TransactionRepo } from '../../repo/transaction';
|
|
7
7
|
import * as factory from '../../factory';
|
|
8
8
|
declare function returnOrder(params: {
|
|
9
9
|
agent: factory.action.transfer.returnAction.order.IAgent;
|
|
@@ -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 { AcceptedOfferRepo } from '../../repo/acceptedOffer';
|
|
2
|
+
import type { ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { OrderRepo } from '../../repo/order';
|
|
4
|
+
import type { OwnershipInfoRepo } from '../../repo/ownershipInfo';
|
|
5
|
+
import type { TaskRepo } from '../../repo/task';
|
|
6
|
+
import type { TransactionRepo } from '../../repo/transaction';
|
|
7
7
|
import * as factory from '../../factory';
|
|
8
8
|
type ISendOperation<T> = (repos: {
|
|
9
9
|
acceptedOffer: AcceptedOfferRepo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as factory from '../../../factory';
|
|
2
|
-
import type {
|
|
3
|
-
import type { ITransactionInProgress,
|
|
2
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
3
|
+
import type { ITransactionInProgress, TransactionRepo } from '../../../repo/transaction';
|
|
4
4
|
import * as PayTransactionService from '../../assetTransaction/pay';
|
|
5
5
|
type IObjectWithoutDetail = factory.action.authorize.paymentMethod.any.IObjectWithoutDetail;
|
|
6
6
|
declare function handlePrePublishedPaymentMethodIdOnAuthorizing(params: {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* 汎用決済サービス
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../../../factory';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
5
|
+
import type { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
6
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
7
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
8
8
|
/**
|
|
9
9
|
* 決済後のアクション
|
|
10
10
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AccountingReportRepo } from '../../../../repo/accountingReport';
|
|
2
2
|
import * as factory from '../../../../factory';
|
|
3
3
|
export type IOptimizedPayAction = factory.report.accountingReport.IOptimizedPayAction;
|
|
4
4
|
export declare function onPaid(params: IOptimizedPayAction, project: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AccountingReportRepo } from '../../../../repo/accountingReport';
|
|
2
2
|
import * as factory from '../../../../factory';
|
|
3
3
|
export type IOptimizedRefundAction = factory.report.accountingReport.IOptimizedRefundAction;
|
|
4
4
|
export declare function onRefunded(params: IOptimizedRefundAction, project: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
2
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
3
3
|
import { IOnPaymentStatusChangedParams } from './factory';
|
|
4
4
|
/**
|
|
5
5
|
* 決済ステータス変更イベント
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* 汎用決済サービス
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../../../factory';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
5
|
+
import type { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
6
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
7
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
8
8
|
/**
|
|
9
9
|
* 返金後のアクション
|
|
10
10
|
*/
|
|
@@ -30,7 +30,7 @@ function person2username(person) {
|
|
|
30
30
|
const userIdByIdentities = identities[0].userId;
|
|
31
31
|
if (providerName === SSKTS_PROVIDER_NAME) {
|
|
32
32
|
if (typeof userIdByIdentities === 'string' && userIdByIdentities.length > 0) {
|
|
33
|
-
const personRepo = new person_1.
|
|
33
|
+
const personRepo = new person_1.PersonRepo({
|
|
34
34
|
userPoolId: USERPOOL_ID_OLD
|
|
35
35
|
});
|
|
36
36
|
// oldUserは必ず存在するはず
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
* 汎用決済サービス
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../../factory';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type { AuthorizationRepo } from '../../repo/
|
|
5
|
+
import type { AccountingReportRepo } from '../../repo/accountingReport';
|
|
6
|
+
import type { ActionRepo, IMinimizedPurchaseNumberAuthResult } from '../../repo/action';
|
|
7
|
+
import type { AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
8
|
+
import type { AuthorizationRepo } from '../../repo/authorization';
|
|
9
9
|
import type { ConfirmationNumberRepo } from '../../repo/confirmationNumber';
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
10
|
+
import type { EventRepo } from '../../repo/event';
|
|
11
|
+
import type { PaymentServiceRepo } from '../../repo/paymentService';
|
|
12
|
+
import type { PaymentServiceProviderRepo } from '../../repo/paymentServiceProvider';
|
|
13
|
+
import type { ProductRepo } from '../../repo/product';
|
|
14
|
+
import type { SellerPaymentAcceptedRepo } from '../../repo/sellerPaymentAccepted';
|
|
15
|
+
import type { TaskRepo } from '../../repo/task';
|
|
16
16
|
import type { TicketRepo } from '../../repo/ticket';
|
|
17
|
-
import type {
|
|
18
|
-
import type {
|
|
19
|
-
import type {
|
|
17
|
+
import type { TransactionRepo } from '../../repo/transaction';
|
|
18
|
+
import type { TransactionNumberRepo } from '../../repo/transactionNumber';
|
|
19
|
+
import type { TransactionProcessRepo } from '../../repo/transactionProcess';
|
|
20
20
|
import * as PayTransactionService from '../assetTransaction/pay';
|
|
21
21
|
import { onPaymentStatusChanged } from './any/onPaymentStatusChanged';
|
|
22
22
|
import { person2username } from './any/person2username';
|
|
@@ -32,7 +32,7 @@ declare function voidPayTransaction(params: factory.task.IData<factory.taskName.
|
|
|
32
32
|
accountingReport: AccountingReportRepo;
|
|
33
33
|
action: ActionRepo;
|
|
34
34
|
assetTransaction: AssetTransactionRepo;
|
|
35
|
-
paymentAccepted:
|
|
35
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
36
36
|
paymentService: PaymentServiceRepo;
|
|
37
37
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
38
38
|
task: TaskRepo;
|
|
@@ -46,7 +46,7 @@ declare function invalidatePaymentUrl(params: factory.task.IData<factory.taskNam
|
|
|
46
46
|
accountingReport: AccountingReportRepo;
|
|
47
47
|
action: ActionRepo;
|
|
48
48
|
assetTransaction: AssetTransactionRepo;
|
|
49
|
-
paymentAccepted:
|
|
49
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
50
50
|
paymentService: PaymentServiceRepo;
|
|
51
51
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
52
52
|
task: TaskRepo;
|
|
@@ -77,7 +77,7 @@ interface IAuthorizeRepos {
|
|
|
77
77
|
authorization: AuthorizationRepo;
|
|
78
78
|
confirmationNumber: ConfirmationNumberRepo;
|
|
79
79
|
event: EventRepo;
|
|
80
|
-
paymentAccepted:
|
|
80
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
81
81
|
paymentService: PaymentServiceRepo;
|
|
82
82
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
83
83
|
product: ProductRepo;
|
|
@@ -85,13 +85,13 @@ interface IAuthorizeRepos {
|
|
|
85
85
|
ticket: TicketRepo;
|
|
86
86
|
transaction: TransactionRepo;
|
|
87
87
|
transactionNumber: TransactionNumberRepo;
|
|
88
|
-
transactionProcess:
|
|
88
|
+
transactionProcess: TransactionProcessRepo;
|
|
89
89
|
}
|
|
90
90
|
type IAuthorizeOperation<T> = (repos: IAuthorizeRepos) => Promise<T>;
|
|
91
91
|
interface IPublishPaymentUrlRepos {
|
|
92
92
|
action: ActionRepo;
|
|
93
93
|
assetTransaction: AssetTransactionRepo;
|
|
94
|
-
paymentAccepted:
|
|
94
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
95
95
|
paymentService: PaymentServiceRepo;
|
|
96
96
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
97
97
|
transaction: TransactionRepo;
|
|
@@ -16,7 +16,7 @@ exports.publishPaymentUrl = exports.processVoidPayTransaction = exports.person2u
|
|
|
16
16
|
const factory = require("../../factory");
|
|
17
17
|
const PayTransactionService = require("../assetTransaction/pay");
|
|
18
18
|
const code_1 = require("../code");
|
|
19
|
-
const publishConfirmationNumberIfNotExist_1 = require("../transaction/
|
|
19
|
+
const publishConfirmationNumberIfNotExist_1 = require("../transaction/placeOrder/publishConfirmationNumberIfNotExist");
|
|
20
20
|
const factory_1 = require("./any/factory");
|
|
21
21
|
const handlePrePublishedPaymentMethodIdOnAuthorizing_1 = require("./any/handlePrePublishedPaymentMethodIdOnAuthorizing");
|
|
22
22
|
const onPaymentStatusChanged_1 = require("./any/onPaymentStatusChanged");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as GMO from '@motionpicture/gmo-service';
|
|
2
|
-
import {
|
|
2
|
+
import { ActionRepo } from '../../../../repo/action';
|
|
3
3
|
import * as factory from '../../../../factory';
|
|
4
4
|
interface ICreditCardPaymentAgencyTransaction {
|
|
5
5
|
entryTranArgs: GMO.factory.credit.IEntryTranArgs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as GMO from '@motionpicture/gmo-service';
|
|
2
|
-
import {
|
|
2
|
+
import { ActionRepo } from '../../../../repo/action';
|
|
3
3
|
import * as factory from '../../../../factory';
|
|
4
4
|
interface ICreditCardPaymentAgencyTransaction3ds {
|
|
5
5
|
entryTranArgs: GMO.factory.credit.IEntryTranArgs;
|
|
@@ -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 { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
4
|
+
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
5
|
+
import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted';
|
|
6
6
|
import { ICreditCardPaymentAgencyTransaction } from './authorize/processAuthorizeCreditCard';
|
|
7
7
|
import { ICreditCardPaymentAgencyTransaction3ds } from './authorize/processAuthorizeCreditCard3ds';
|
|
8
8
|
type IPaymentAgencyTransaction = ICreditCardPaymentAgencyTransaction | ICreditCardPaymentAgencyTransaction3ds;
|
|
@@ -41,7 +41,7 @@ payTransaction: IPayTransactionAsAuthorizeInvoiceAction, paymentServiceId: strin
|
|
|
41
41
|
};
|
|
42
42
|
}): (repos: {
|
|
43
43
|
action: ActionRepo;
|
|
44
|
-
paymentAccepted:
|
|
44
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
45
45
|
paymentService: PaymentServiceRepo;
|
|
46
46
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
47
47
|
}) => Promise<IAuthorizeResult>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as factory from '../../../factory';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
3
|
+
import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted';
|
|
4
4
|
interface IGMOInfo {
|
|
5
5
|
shopId: string;
|
|
6
6
|
shopPass: string;
|
|
@@ -14,7 +14,7 @@ declare function getGMOInfoFromSeller(params: {
|
|
|
14
14
|
};
|
|
15
15
|
paymentServiceId: string;
|
|
16
16
|
}): (repos: {
|
|
17
|
-
paymentAccepted:
|
|
17
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
18
18
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
19
19
|
}) => Promise<IGMOInfo>;
|
|
20
20
|
export { getGMOInfoFromSeller };
|
|
@@ -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 { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
2
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
3
|
+
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
4
|
+
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
5
|
+
import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted';
|
|
6
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
7
7
|
import * as factory from '../../../factory';
|
|
8
8
|
type IPayAction = factory.action.trade.pay.IAction;
|
|
9
9
|
/**
|
|
@@ -12,7 +12,7 @@ type IPayAction = factory.action.trade.pay.IAction;
|
|
|
12
12
|
declare function payCreditCard(params: factory.action.trade.pay.IAttributes): (repos: {
|
|
13
13
|
action: ActionRepo;
|
|
14
14
|
accountingReport: AccountingReportRepo;
|
|
15
|
-
paymentAccepted:
|
|
15
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
16
16
|
paymentService: PaymentServiceRepo;
|
|
17
17
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
18
18
|
task: TaskRepo;
|
|
@@ -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 { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
2
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
3
|
+
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
4
|
+
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
5
|
+
import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted';
|
|
6
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
7
7
|
import * as factory from '../../../factory';
|
|
8
8
|
/**
|
|
9
9
|
* クレジットカード返金
|
|
@@ -17,7 +17,7 @@ declare function refundCreditCard(params: Omit<factory.task.refund.IData, 'sameA
|
|
|
17
17
|
}): (repos: {
|
|
18
18
|
action: ActionRepo;
|
|
19
19
|
accountingReport: AccountingReportRepo;
|
|
20
|
-
paymentAccepted:
|
|
20
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
21
21
|
paymentService: PaymentServiceRepo;
|
|
22
22
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
23
23
|
task: TaskRepo;
|
|
@@ -1,14 +1,14 @@
|
|
|
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 { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
4
|
+
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
5
|
+
import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted';
|
|
6
6
|
/**
|
|
7
7
|
* クレジットカード決済中止
|
|
8
8
|
*/
|
|
9
9
|
declare function voidTransaction(params: factory.task.voidPayment.IData): (repos: {
|
|
10
10
|
action: ActionRepo;
|
|
11
|
-
paymentAccepted:
|
|
11
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
12
12
|
paymentService: PaymentServiceRepo;
|
|
13
13
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
14
14
|
}) => Promise<void>;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* 対面決済サービス
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../../factory';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
5
|
+
import type { AccountingReportRepo } from '../../repo/accountingReport';
|
|
6
|
+
import type { ActionRepo } from '../../repo/action';
|
|
7
|
+
import type { ProductRepo } from '../../repo/product';
|
|
8
|
+
import type { TaskRepo } from '../../repo/task';
|
|
9
9
|
declare function voidTransaction(__: factory.task.voidPayment.IData): (___: {
|
|
10
10
|
product: ProductRepo;
|
|
11
11
|
}) => Promise<void>;
|
|
@@ -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 { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
2
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
3
|
+
import type { EventRepo } from '../../../repo/event';
|
|
4
|
+
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
5
|
+
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
6
|
+
import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted';
|
|
7
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
8
8
|
import * as factory from '../../../factory';
|
|
9
9
|
interface IAuthorizeResult {
|
|
10
10
|
accountId: string;
|
|
@@ -36,7 +36,7 @@ declare function authorize(params: factory.assetTransaction.pay.IStartParamsWith
|
|
|
36
36
|
action: ActionRepo;
|
|
37
37
|
accountingReport: AccountingReportRepo;
|
|
38
38
|
event: EventRepo;
|
|
39
|
-
paymentAccepted:
|
|
39
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
40
40
|
paymentService: PaymentServiceRepo;
|
|
41
41
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
42
42
|
task: TaskRepo;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
1
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
2
|
+
import type { EventRepo } from '../../../repo/event';
|
|
3
|
+
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
4
|
+
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
5
|
+
import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted';
|
|
6
6
|
import * as factory from '../../../factory';
|
|
7
7
|
import { ICheckResult } from './processPurchaseNumberAuth';
|
|
8
8
|
interface ICheckOperationRepos {
|
|
9
9
|
action: ActionRepo;
|
|
10
10
|
event: EventRepo;
|
|
11
|
-
paymentAccepted:
|
|
11
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
12
12
|
paymentService: PaymentServiceRepo;
|
|
13
13
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
14
14
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
1
|
+
import type { AccountingReportRepo } from '../../../repo/accountingReport';
|
|
2
|
+
import type { ActionRepo } from '../../../repo/action';
|
|
3
|
+
import type { EventRepo } from '../../../repo/event';
|
|
4
|
+
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
5
|
+
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
6
|
+
import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted';
|
|
7
|
+
import type { TaskRepo } from '../../../repo/task';
|
|
8
8
|
import * as factory from '../../../factory';
|
|
9
9
|
interface IPayOperationRepos {
|
|
10
10
|
action: ActionRepo;
|
|
11
11
|
accountingReport: AccountingReportRepo;
|
|
12
12
|
event: EventRepo;
|
|
13
|
-
paymentAccepted:
|
|
13
|
+
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
14
14
|
paymentService: PaymentServiceRepo;
|
|
15
15
|
paymentServiceProvider: PaymentServiceProviderRepo;
|
|
16
16
|
task: TaskRepo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IMinimizedIndividualEvent } from '../../../repo/event';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { PaymentServiceRepo } from '../../../repo/paymentService';
|
|
3
|
+
import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
4
4
|
import * as factory from '../../../factory';
|
|
5
5
|
interface ICheckResult {
|
|
6
6
|
purchaseNumberAuthIn: factory.action.check.paymentMethod.movieTicket.IPurchaseNumberAuthIn;
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.processPurchaseNumberAuth = void 0;
|
|
13
13
|
const surfrock = require("@surfrock/sdk");
|
|
14
14
|
const moment = require("moment-timezone");
|
|
15
|
-
// import type {
|
|
15
|
+
// import type { ProjectRepo } from '../../../repo/project';
|
|
16
16
|
const credentials_1 = require("../../../credentials");
|
|
17
17
|
const factory = require("../../../factory");
|
|
18
18
|
const getCredentials_1 = require("./getCredentials");
|