@chevre/factory 3.0.1 → 3.343.0-alpha.2
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/README.md +0 -5
- package/example/customReturnPolicyRequest.json +125 -0
- package/example/customReturnPolicyResponse.json +8 -0
- package/example/informPayAction.json +126 -0
- package/example/informPersonAction.json +517 -0
- package/example/informRefundAction.json +16 -0
- package/example/testErrorInstance.js +9 -0
- package/lib/account/action/moneyTransfer.d.ts +86 -0
- package/lib/account/transaction/deposit.d.ts +27 -0
- package/lib/account/transaction/transfer.d.ts +32 -0
- package/lib/account/transaction/withdraw.d.ts +31 -0
- package/lib/account/transaction.d.ts +144 -0
- package/lib/account/transactionType.d.ts +17 -0
- package/lib/account/transactionType.js +21 -0
- package/lib/account.d.ts +127 -0
- package/lib/account.js +32 -0
- package/lib/{factory/accountTitle.d.ts → accountTitle.d.ts} +8 -7
- package/lib/accountType.d.ts +15 -0
- package/lib/accountType.js +19 -0
- package/lib/action/authorize/award/point.d.ts +51 -0
- package/lib/action/authorize/award/point.js +7 -0
- package/lib/action/authorize/offer/moneyTransfer.d.ts +39 -0
- package/lib/action/authorize/offer/product.d.ts +70 -0
- package/lib/action/authorize/offer/seatReservation/coa.d.ts +117 -0
- package/lib/action/authorize/offer/seatReservation.d.ts +162 -0
- package/lib/action/authorize/offer/seatReservation.js +7 -0
- package/lib/action/authorize/paymentMethod/any.d.ts +171 -0
- package/lib/action/authorize/paymentMethod/any.js +12 -0
- package/lib/{factory/action → action}/authorize.d.ts +5 -5
- package/lib/action/cancel/reservation.d.ts +85 -0
- package/lib/action/check/paymentMethod/movieTicket.d.ts +42 -0
- package/lib/action/check/token.d.ts +23 -0
- package/lib/action/check/token.js +7 -0
- package/lib/action/check.d.ts +10 -0
- package/lib/action/consume/use/reservation.d.ts +32 -0
- package/lib/action/consume/use.d.ts +12 -0
- package/lib/action/interact/confirm/moneyTransfer.d.ts +30 -0
- package/lib/action/interact/confirm/pay.d.ts +27 -0
- package/lib/action/interact/confirm/registerService.d.ts +27 -0
- package/lib/action/interact/confirm/reservation.d.ts +26 -0
- package/lib/action/interact/confirm.d.ts +21 -0
- package/lib/action/interact/inform.d.ts +19 -0
- package/lib/action/interact/register/service.d.ts +18 -0
- package/lib/action/interact/register.d.ts +15 -0
- package/lib/action/reserve.d.ts +49 -0
- package/lib/action/trade/order.d.ts +37 -0
- package/lib/action/trade/pay.d.ts +136 -0
- package/lib/action/trade/refund.d.ts +27 -0
- package/lib/action/transfer/give/pointAward.d.ts +49 -0
- package/lib/action/transfer/give/pointAward.js +5 -0
- package/lib/action/transfer/give.d.ts +16 -0
- package/lib/action/transfer/moneyTransfer.d.ts +102 -0
- package/lib/action/transfer/return/moneyTransfer.d.ts +21 -0
- package/lib/action/transfer/return/order.d.ts +47 -0
- package/lib/action/transfer/return/paymentMethod.d.ts +25 -0
- package/lib/action/transfer/return/pointAward.d.ts +39 -0
- package/lib/action/transfer/return/reserveTransaction.d.ts +29 -0
- package/lib/action/transfer/return.d.ts +10 -0
- package/lib/action/transfer/send/message/email.d.ts +25 -0
- package/lib/action/transfer/send/order.d.ts +37 -0
- package/lib/action/transfer/send.d.ts +18 -0
- package/lib/action/update/delete/member.d.ts +23 -0
- package/lib/action/update/delete.d.ts +15 -0
- package/lib/action.d.ts +242 -0
- package/lib/{factory/actionStatusType.d.ts → actionStatusType.d.ts} +1 -2
- package/lib/{factory/actionStatusType.js → actionStatusType.js} +2 -2
- package/lib/actionType.d.ts +25 -0
- package/lib/actionType.js +30 -0
- package/lib/additionalProperty.d.ts +66 -0
- package/lib/assetTransaction/cancelReservation.d.ts +69 -0
- package/lib/assetTransaction/moneyTransfer.d.ts +136 -0
- package/lib/assetTransaction/pay.d.ts +157 -0
- package/lib/assetTransaction/refund.d.ts +68 -0
- package/lib/assetTransaction/registerService.d.ts +103 -0
- package/lib/assetTransaction/reserve.d.ts +298 -0
- package/lib/assetTransaction.d.ts +176 -0
- package/lib/assetTransactionType.d.ts +31 -0
- package/lib/assetTransactionType.js +35 -0
- package/lib/authorization.d.ts +61 -0
- package/lib/{factory/autoGenerated.d.ts → autoGenerated.d.ts} +1 -1
- package/lib/businessEntityType.d.ts +2 -0
- package/lib/categoryCode.d.ts +131 -0
- package/lib/{factory/categoryCode.js → categoryCode.js} +18 -5
- package/lib/cognito.d.ts +5 -0
- package/lib/creativeWork/comment.d.ts +51 -0
- package/lib/creativeWork/message/email.d.ts +63 -0
- package/lib/creativeWork/message/email.js +10 -0
- package/lib/creativeWork/movie.d.ts +93 -0
- package/lib/creativeWork/softwareApplication/webApplication.d.ts +14 -0
- package/lib/{factory/creativeWork.d.ts → creativeWork.d.ts} +5 -8
- package/lib/creativeWorkType.d.ts +9 -0
- package/lib/creativeWorkType.js +13 -0
- package/lib/customer.d.ts +59 -0
- package/lib/encodingFormat.d.ts +28 -0
- package/lib/encodingFormat.js +41 -0
- package/lib/{factory/error → error}/alreadyInUse.d.ts +1 -1
- package/lib/{factory/error → error}/alreadyInUse.js +7 -4
- package/lib/{factory/error → error}/argument.d.ts +1 -1
- package/lib/{factory/error → error}/argument.js +7 -4
- package/lib/{factory/error → error}/argumentNull.d.ts +1 -1
- package/lib/{factory/error → error}/argumentNull.js +7 -4
- package/lib/{factory/error → error}/chevre.d.ts +1 -1
- package/lib/{factory/error → error}/chevre.js +7 -1
- package/lib/{factory/error → error}/forbidden.d.ts +1 -1
- package/lib/{factory/error → error}/forbidden.js +6 -3
- package/lib/error/gatewayTimeout.d.ts +7 -0
- package/lib/error/gatewayTimeout.js +41 -0
- package/lib/{factory/error → error}/notFound.d.ts +1 -1
- package/lib/{factory/error → error}/notFound.js +7 -4
- package/lib/{factory/error → error}/notImplemented.d.ts +1 -1
- package/lib/{factory/error → error}/notImplemented.js +6 -3
- package/lib/{factory/error → error}/rateLimitExceeded.d.ts +1 -1
- package/lib/{factory/error → error}/rateLimitExceeded.js +6 -3
- package/lib/{factory/error → error}/serviceUnavailable.d.ts +1 -1
- package/lib/{factory/error → error}/serviceUnavailable.js +6 -3
- package/lib/{factory/error → error}/unauthorized.d.ts +1 -1
- package/lib/{factory/error → error}/unauthorized.js +6 -3
- package/lib/{factory/errorCode.d.ts → errorCode.d.ts} +2 -2
- package/lib/{factory/errorCode.js → errorCode.js} +4 -3
- package/lib/errors.d.ts +15 -0
- package/lib/errors.js +28 -0
- package/lib/event/anyEvent.d.ts +401 -0
- package/lib/event/anyEvent.js +2 -0
- package/lib/event/screeningEvent.d.ts +325 -0
- package/lib/event/screeningEvent.js +2 -0
- package/lib/event/screeningEventSeries.d.ts +211 -0
- package/lib/event/screeningEventSeries.js +2 -0
- package/lib/{factory/event.d.ts → event.d.ts} +35 -35
- package/lib/{factory/eventStatusType.d.ts → eventStatusType.d.ts} +1 -2
- package/lib/{factory/eventStatusType.js → eventStatusType.js} +3 -3
- package/lib/{factory/eventType.d.ts → eventType.d.ts} +2 -2
- package/lib/{factory/eventType.js → eventType.js} +3 -2
- package/lib/iam.d.ts +99 -0
- package/lib/iam.js +7 -0
- package/lib/index.d.ts +375 -128
- package/lib/index.js +362 -107
- package/lib/invoice.d.ts +138 -0
- package/lib/invoice.js +2 -0
- package/lib/{factory/itemAvailability.d.ts → itemAvailability.d.ts} +1 -2
- package/lib/{factory/itemAvailability.js → itemAvailability.js} +3 -3
- package/lib/language.js +2 -0
- package/lib/merchantReturnPolicy.d.ts +99 -0
- package/lib/merchantReturnPolicy.js +49 -0
- package/lib/{factory/monetaryAmount.d.ts → monetaryAmount.d.ts} +4 -4
- package/lib/monetaryAmount.js +2 -0
- package/lib/{factory/multilingualString.d.ts → multilingualString.d.ts} +1 -2
- package/lib/multilingualString.js +2 -0
- package/lib/offer/aggregateOffer.d.ts +19 -0
- package/lib/offer/aggregateOffer.js +2 -0
- package/lib/{factory/offer.d.ts → offer.d.ts} +88 -89
- package/lib/offer.js +2 -0
- package/lib/offerCatalog.d.ts +132 -0
- package/lib/offerCatalog.js +2 -0
- package/lib/offerItemCondition.d.ts +65 -0
- package/lib/offerItemCondition.js +2 -0
- package/lib/{factory/offerType.d.ts → offerType.d.ts} +1 -2
- package/lib/{factory/offerType.js → offerType.js} +2 -2
- package/lib/order.d.ts +651 -0
- package/lib/order.js +7 -0
- package/lib/orderExternal.d.ts +12 -0
- package/lib/orderExternal.js +2 -0
- package/lib/orderStatus.d.ts +10 -0
- package/lib/orderStatus.js +17 -0
- package/lib/organization.d.ts +23 -0
- package/lib/organization.js +2 -0
- package/lib/organizationType.d.ts +17 -0
- package/lib/organizationType.js +23 -0
- package/lib/ownershipInfo.d.ts +213 -0
- package/lib/ownershipInfo.js +2 -0
- package/lib/paymentMethod/paymentCard/creditCard.d.ts +65 -0
- package/lib/paymentMethod/paymentCard/creditCard.js +2 -0
- package/lib/paymentMethod/paymentCard/movieTicket.d.ts +53 -0
- package/lib/paymentMethod/paymentCard/movieTicket.js +2 -0
- package/lib/paymentMethod/paymentCard.d.ts +18 -0
- package/lib/paymentMethod/paymentCard.js +2 -0
- package/lib/paymentMethod.d.ts +11 -0
- package/lib/paymentMethod.js +2 -0
- package/lib/paymentStatusType.d.ts +10 -0
- package/lib/paymentStatusType.js +14 -0
- package/lib/permit.d.ts +64 -0
- package/lib/permit.js +7 -0
- package/lib/person.d.ts +59 -0
- package/lib/person.js +2 -0
- package/lib/personType.d.ts +6 -0
- package/lib/personType.js +10 -0
- package/lib/place/busStop.d.ts +41 -0
- package/lib/place/busStop.js +2 -0
- package/lib/place/movieTheater.d.ts +160 -0
- package/lib/place/movieTheater.js +2 -0
- package/lib/place/screeningRoom.d.ts +88 -0
- package/lib/place/screeningRoom.js +2 -0
- package/lib/place/screeningRoomSection.d.ts +69 -0
- package/lib/place/screeningRoomSection.js +2 -0
- package/lib/place/seat.d.ts +107 -0
- package/lib/place/seat.js +2 -0
- package/lib/{factory/place.d.ts → place.d.ts} +8 -6
- package/lib/place.js +2 -0
- package/lib/{factory/placeType.d.ts → placeType.d.ts} +4 -2
- package/lib/{factory/placeType.js → placeType.js} +6 -3
- package/lib/{factory/priceCurrency.d.ts → priceCurrency.d.ts} +1 -2
- package/lib/{factory/priceCurrency.js → priceCurrency.js} +2 -2
- package/lib/priceSpecification/categoryCodeChargeSpecification.d.ts +15 -0
- package/lib/priceSpecification/categoryCodeChargeSpecification.js +2 -0
- package/lib/priceSpecification/compoundPriceSpecification.d.ts +12 -0
- package/lib/priceSpecification/compoundPriceSpecification.js +2 -0
- package/lib/priceSpecification/movieTicketTypeChargeSpecification.d.ts +34 -0
- package/lib/priceSpecification/movieTicketTypeChargeSpecification.js +2 -0
- package/lib/priceSpecification/unitPriceSpecification.d.ts +42 -0
- package/lib/priceSpecification/unitPriceSpecification.js +2 -0
- package/lib/{factory/priceSpecification.d.ts → priceSpecification.d.ts} +39 -24
- package/lib/priceSpecification.js +2 -0
- package/lib/{factory/priceSpecificationType.d.ts → priceSpecificationType.d.ts} +1 -2
- package/lib/{factory/priceSpecificationType.js → priceSpecificationType.js} +2 -2
- package/lib/product.d.ts +254 -0
- package/lib/product.js +29 -0
- package/lib/programMembership.d.ts +16 -0
- package/lib/{factory/programMembership.js → programMembership.js} +1 -0
- package/lib/project.d.ts +107 -0
- package/lib/project.js +2 -0
- package/lib/propertyValue/locationFeatureSpecification.d.ts +4 -0
- package/lib/propertyValue/locationFeatureSpecification.js +2 -0
- package/lib/{factory/propertyValue.d.ts → propertyValue.d.ts} +3 -0
- package/lib/propertyValue.js +7 -0
- package/lib/qualitativeValue.js +2 -0
- package/lib/quantitativeValue.d.ts +34 -0
- package/lib/quantitativeValue.js +7 -0
- package/lib/report/accountingReport.d.ts +68 -0
- package/lib/report/accountingReport.js +2 -0
- package/lib/reservation/busReservation.d.ts +52 -0
- package/lib/reservation/busReservation.js +2 -0
- package/lib/reservation/event.d.ts +96 -0
- package/lib/reservation/event.js +2 -0
- package/lib/reservation/pendingReservationPackage.d.ts +24 -0
- package/lib/reservation/pendingReservationPackage.js +14 -0
- package/lib/{factory/reservation → reservation}/reservationPackage.d.ts +4 -4
- package/lib/reservation/reservationPackage.js +2 -0
- package/lib/{factory/reservation.d.ts → reservation.d.ts} +172 -53
- package/lib/reservation.js +2 -0
- package/lib/{factory/reservationStatusType.d.ts → reservationStatusType.d.ts} +1 -3
- package/lib/{factory/reservationStatusType.js → reservationStatusType.js} +3 -3
- package/lib/{factory/reservationType.d.ts → reservationType.d.ts} +2 -2
- package/lib/{factory/reservationType.js → reservationType.js} +3 -2
- package/lib/seller.d.ts +108 -0
- package/lib/seller.js +2 -0
- package/lib/service/paymentService.d.ts +123 -0
- package/lib/service/paymentService.js +10 -0
- package/lib/service/webAPI.d.ts +11 -0
- package/lib/service/webAPI.js +8 -0
- package/lib/{factory/sortType.d.ts → sortType.d.ts} +1 -2
- package/lib/{factory/sortType.js → sortType.js} +2 -2
- package/lib/task/accountMoneyTransfer.d.ts +15 -0
- package/lib/task/accountMoneyTransfer.js +2 -0
- package/lib/task/aggregateScreeningEvent.d.ts +16 -0
- package/lib/task/aggregateScreeningEvent.js +2 -0
- package/lib/{factory/task/aggregateScreeningEvent.d.ts → task/aggregateUseActionsOnEvent.d.ts} +5 -5
- package/lib/task/aggregateUseActionsOnEvent.js +2 -0
- package/lib/task/cancelAccountMoneyTransfer.d.ts +19 -0
- package/lib/task/cancelAccountMoneyTransfer.js +2 -0
- package/lib/task/cancelMoneyTransfer.d.ts +18 -0
- package/lib/task/cancelMoneyTransfer.js +2 -0
- package/lib/{factory/task → task}/cancelPendingReservation.d.ts +2 -2
- package/lib/task/cancelPendingReservation.js +2 -0
- package/lib/{factory/task → task}/cancelReservation.d.ts +2 -2
- package/lib/task/cancelReservation.js +2 -0
- package/lib/task/confirmMoneyTransfer.d.ts +13 -0
- package/lib/task/confirmMoneyTransfer.js +2 -0
- package/lib/task/confirmPayTransaction.d.ts +23 -0
- package/lib/task/confirmPayTransaction.js +2 -0
- package/lib/task/confirmRegisterService.d.ts +13 -0
- package/lib/task/confirmRegisterService.js +2 -0
- package/lib/task/confirmRegisterServiceTransaction.d.ts +13 -0
- package/lib/task/confirmRegisterServiceTransaction.js +2 -0
- package/lib/task/confirmReserveTransaction.d.ts +14 -0
- package/lib/task/confirmReserveTransaction.js +2 -0
- package/lib/task/createEvent.d.ts +26 -0
- package/lib/task/createEvent.js +2 -0
- package/lib/task/deleteTransaction.d.ts +48 -0
- package/lib/task/deleteTransaction.js +11 -0
- package/lib/task/givePointAward.d.ts +13 -0
- package/lib/task/givePointAward.js +2 -0
- package/lib/{factory/task/importEventsFromCOA.d.ts → task/importEventCapacitiesFromCOA.d.ts} +6 -6
- package/lib/task/importEventCapacitiesFromCOA.js +2 -0
- package/lib/task/importEventsFromCOA.d.ts +36 -0
- package/lib/task/importEventsFromCOA.js +2 -0
- package/lib/{factory/task → task}/importOffersFromCOA.d.ts +4 -4
- package/lib/task/importOffersFromCOA.js +2 -0
- package/lib/task/moneyTransfer.d.ts +13 -0
- package/lib/task/moneyTransfer.js +2 -0
- package/lib/task/onAssetTransactionStatusChanged.d.ts +35 -0
- package/lib/task/onAssetTransactionStatusChanged.js +2 -0
- package/lib/task/onAuthorizationCreated.d.ts +24 -0
- package/lib/task/onAuthorizationCreated.js +2 -0
- package/lib/task/onEventChanged.d.ts +25 -0
- package/lib/task/onEventChanged.js +2 -0
- package/lib/task/onOrderPaymentCompleted.d.ts +21 -0
- package/lib/task/onOrderPaymentCompleted.js +2 -0
- package/lib/task/onResourceUpdated.d.ts +76 -0
- package/lib/task/onResourceUpdated.js +2 -0
- package/lib/task/pay.d.ts +13 -0
- package/lib/task/pay.js +2 -0
- package/lib/task/placeOrder.d.ts +19 -0
- package/lib/task/placeOrder.js +2 -0
- package/lib/task/refund.d.ts +13 -0
- package/lib/task/refund.js +2 -0
- package/lib/task/registerService.d.ts +13 -0
- package/lib/task/registerService.js +2 -0
- package/lib/{factory/task → task}/reserve.d.ts +2 -2
- package/lib/task/reserve.js +2 -0
- package/lib/task/returnMoneyTransfer.d.ts +13 -0
- package/lib/task/returnMoneyTransfer.js +2 -0
- package/lib/task/returnOrder.d.ts +13 -0
- package/lib/task/returnOrder.js +2 -0
- package/lib/task/returnPayTransaction.d.ts +13 -0
- package/lib/task/returnPayTransaction.js +2 -0
- package/lib/task/returnPointAward.d.ts +13 -0
- package/lib/task/returnPointAward.js +2 -0
- package/lib/task/returnReserveTransaction.d.ts +14 -0
- package/lib/task/returnReserveTransaction.js +2 -0
- package/lib/task/sendEmailMessage.d.ts +18 -0
- package/lib/task/sendEmailMessage.js +2 -0
- package/lib/task/sendOrder.d.ts +20 -0
- package/lib/task/sendOrder.js +2 -0
- package/lib/task/syncScreeningRooms.d.ts +22 -0
- package/lib/task/syncScreeningRooms.js +2 -0
- package/lib/{factory/task → task}/triggerWebhook.d.ts +3 -3
- package/lib/task/triggerWebhook.js +2 -0
- package/lib/task/useReservation.d.ts +20 -0
- package/lib/task/useReservation.js +2 -0
- package/lib/task/voidMoneyTransferTransaction.d.ts +24 -0
- package/lib/task/voidMoneyTransferTransaction.js +2 -0
- package/lib/task/voidPayTransaction.d.ts +29 -0
- package/lib/task/voidPayTransaction.js +2 -0
- package/lib/task/voidPayment.d.ts +16 -0
- package/lib/task/voidPayment.js +2 -0
- package/lib/task/voidRegisterServiceTransaction.d.ts +24 -0
- package/lib/task/voidRegisterServiceTransaction.js +2 -0
- package/lib/task/voidReserveTransaction.d.ts +29 -0
- package/lib/task/voidReserveTransaction.js +2 -0
- package/lib/task.d.ts +125 -0
- package/lib/task.js +2 -0
- package/lib/taskName.d.ts +118 -0
- package/lib/taskName.js +124 -0
- package/lib/{factory/taskStatus.d.ts → taskStatus.d.ts} +1 -2
- package/lib/{factory/taskStatus.js → taskStatus.js} +2 -2
- package/lib/{factory/thing.d.ts → thing.d.ts} +8 -3
- package/lib/thing.js +2 -0
- package/lib/transaction/moneyTransfer.d.ts +138 -0
- package/lib/transaction/moneyTransfer.js +2 -0
- package/lib/transaction/placeOrder.d.ts +208 -0
- package/lib/transaction/placeOrder.js +2 -0
- package/lib/transaction/returnOrder.d.ts +183 -0
- package/lib/transaction/returnOrder.js +17 -0
- package/lib/transaction.d.ts +184 -0
- package/lib/transaction.js +2 -0
- package/lib/{factory/transactionStatusType.d.ts → transactionStatusType.d.ts} +1 -2
- package/lib/{factory/transactionStatusType.js → transactionStatusType.js} +3 -3
- package/lib/{factory/transactionTasksExportationStatus.d.ts → transactionTasksExportationStatus.d.ts} +1 -2
- package/lib/{factory/transactionTasksExportationStatus.js → transactionTasksExportationStatus.js} +3 -3
- package/lib/transactionType.d.ts +17 -0
- package/lib/transactionType.js +21 -0
- package/lib/trip/busTrip.d.ts +51 -0
- package/lib/trip/busTrip.js +2 -0
- package/lib/trip.d.ts +13 -0
- package/lib/trip.js +2 -0
- package/lib/tripType.d.ts +7 -0
- package/lib/tripType.js +11 -0
- package/lib/{factory/unitCode.d.ts → unitCode.d.ts} +4 -0
- package/lib/{factory/unitCode.js → unitCode.js} +5 -0
- package/lib/unitPriceOffer/merchantReturnPolicy.d.ts +39 -0
- package/lib/unitPriceOffer/merchantReturnPolicy.js +2 -0
- package/lib/unitPriceOffer.d.ts +261 -0
- package/lib/unitPriceOffer.js +2 -0
- package/package.json +15 -14
- package/CHANGELOG.md +0 -120
- package/lib/factory/action/cancel/reservation.d.ts +0 -44
- package/lib/factory/action/consume/use.d.ts +0 -15
- package/lib/factory/action/interact/inform.d.ts +0 -19
- package/lib/factory/action/interact/register/programMembership.d.ts +0 -12
- package/lib/factory/action/interact/register.d.ts +0 -15
- package/lib/factory/action/interact/unRegister/programMembership.d.ts +0 -12
- package/lib/factory/action/interact/unRegister.d.ts +0 -15
- package/lib/factory/action/reserve.d.ts +0 -44
- package/lib/factory/action.d.ts +0 -83
- package/lib/factory/actionType.d.ts +0 -15
- package/lib/factory/actionType.js +0 -18
- package/lib/factory/categoryCode.d.ts +0 -86
- package/lib/factory/creativeWork/message/email.d.ts +0 -18
- package/lib/factory/creativeWork/movie.d.ts +0 -66
- package/lib/factory/creativeWorkType.d.ts +0 -8
- package/lib/factory/creativeWorkType.js +0 -11
- package/lib/factory/distributor.d.ts +0 -21
- package/lib/factory/errors.d.ts +0 -14
- package/lib/factory/errors.js +0 -25
- package/lib/factory/event/screeningEvent.d.ts +0 -339
- package/lib/factory/event/screeningEventSeries.d.ts +0 -162
- package/lib/factory/offer/product.d.ts +0 -66
- package/lib/factory/offerCatalog.d.ts +0 -61
- package/lib/factory/organizationType.d.ts +0 -8
- package/lib/factory/organizationType.js +0 -11
- package/lib/factory/paymentMethodType.d.ts +0 -29
- package/lib/factory/paymentMethodType.js +0 -32
- package/lib/factory/place/movieTheater.d.ts +0 -86
- package/lib/factory/place/screeningRoom.d.ts +0 -22
- package/lib/factory/place/screeningRoomSection.d.ts +0 -20
- package/lib/factory/place/seat.d.ts +0 -42
- package/lib/factory/priceSpecification/categoryCodeChargeSpecification.d.ts +0 -14
- package/lib/factory/priceSpecification/compoundPriceSpecification.d.ts +0 -22
- package/lib/factory/priceSpecification/movieTicketTypeChargeSpecification.d.ts +0 -37
- package/lib/factory/priceSpecification/unitPriceSpecification.d.ts +0 -24
- package/lib/factory/programMembership.d.ts +0 -61
- package/lib/factory/project.d.ts +0 -68
- package/lib/factory/quantitativeValue.d.ts +0 -23
- package/lib/factory/reservation/event.d.ts +0 -56
- package/lib/factory/serviceType.d.ts +0 -9
- package/lib/factory/subject.d.ts +0 -52
- package/lib/factory/task.d.ts +0 -70
- package/lib/factory/taskExecutionResult.d.ts +0 -9
- package/lib/factory/taskName.d.ts +0 -16
- package/lib/factory/taskName.js +0 -19
- package/lib/factory/ticketType.d.ts +0 -84
- package/lib/factory/transaction/cancelReservation.d.ts +0 -98
- package/lib/factory/transaction/registerProgramMembership.d.ts +0 -85
- package/lib/factory/transaction/reserve.d.ts +0 -147
- package/lib/factory/transaction.d.ts +0 -120
- package/lib/factory/transactionType.d.ts +0 -18
- package/lib/factory/transactionType.js +0 -21
- package/lib/factory/videoFormatType.d.ts +0 -12
- package/lib/factory/videoFormatType.js +0 -15
- /package/lib/{factory/accountTitle.js → account/action/moneyTransfer.js} +0 -0
- /package/lib/{factory/action.js → account/transaction/deposit.js} +0 -0
- /package/lib/{factory/action/authorize.js → account/transaction/transfer.js} +0 -0
- /package/lib/{factory/action/cancel/reservation.js → account/transaction/withdraw.js} +0 -0
- /package/lib/{factory → account}/transaction.js +0 -0
- /package/lib/{factory/action/consume/use.js → accountTitle.js} +0 -0
- /package/lib/{factory/action/interact/register/programMembership.js → action/authorize/offer/moneyTransfer.js} +0 -0
- /package/lib/{factory → action/authorize}/offer/product.js +0 -0
- /package/lib/{factory/action/interact/unRegister.js → action/authorize/offer/seatReservation/coa.js} +0 -0
- /package/lib/{factory/action/interact/register.js → action/authorize.js} +0 -0
- /package/lib/{factory → action/cancel}/reservation.js +0 -0
- /package/lib/{factory/action/reserve.js → action/check/paymentMethod/movieTicket.js} +0 -0
- /package/lib/{factory/action/interact/unRegister/programMembership.js → action/check.js} +0 -0
- /package/lib/{factory/creativeWork.js → action/consume/use/reservation.js} +0 -0
- /package/lib/{factory/autoGenerated.js → action/consume/use.js} +0 -0
- /package/lib/{factory/creativeWork/movie.js → action/interact/confirm/moneyTransfer.js} +0 -0
- /package/lib/{factory/distributor.js → action/interact/confirm/pay.js} +0 -0
- /package/lib/{factory/event.js → action/interact/confirm/registerService.js} +0 -0
- /package/lib/{factory/event/screeningEvent.js → action/interact/confirm/reservation.js} +0 -0
- /package/lib/{factory/creativeWork/message/email.js → action/interact/confirm.js} +0 -0
- /package/lib/{factory/event/screeningEventSeries.js → action/interact/inform.js} +0 -0
- /package/lib/{factory/monetaryAmount.js → action/interact/register/service.js} +0 -0
- /package/lib/{factory/language.js → action/interact/register.js} +0 -0
- /package/lib/{factory/task → action}/reserve.js +0 -0
- /package/lib/{factory/multilingualString.js → action/trade/order.js} +0 -0
- /package/lib/{factory/offer.js → action/trade/pay.js} +0 -0
- /package/lib/{factory/offerCatalog.js → action/trade/refund.js} +0 -0
- /package/lib/{factory/place.js → action/transfer/give.js} +0 -0
- /package/lib/{factory/place/movieTheater.js → action/transfer/moneyTransfer.js} +0 -0
- /package/lib/{factory/place/screeningRoomSection.js → action/transfer/return/moneyTransfer.js} +0 -0
- /package/lib/{factory/place/seat.js → action/transfer/return/order.js} +0 -0
- /package/lib/{factory/priceSpecification.js → action/transfer/return/paymentMethod.js} +0 -0
- /package/lib/{factory/priceSpecification/categoryCodeChargeSpecification.js → action/transfer/return/pointAward.js} +0 -0
- /package/lib/{factory/priceSpecification/compoundPriceSpecification.js → action/transfer/return/reserveTransaction.js} +0 -0
- /package/lib/{factory/place/screeningRoom.js → action/transfer/return.js} +0 -0
- /package/lib/{factory/priceSpecification/unitPriceSpecification.js → action/transfer/send/message/email.js} +0 -0
- /package/lib/{factory/project.js → action/transfer/send/order.js} +0 -0
- /package/lib/{factory/priceSpecification/movieTicketTypeChargeSpecification.js → action/transfer/send.js} +0 -0
- /package/lib/{factory/qualitativeValue.js → action/update/delete/member.js} +0 -0
- /package/lib/{factory/propertyValue.js → action/update/delete.js} +0 -0
- /package/lib/{factory/action/interact/inform.js → action.js} +0 -0
- /package/lib/{factory/quantitativeValue.js → additionalProperty.js} +0 -0
- /package/lib/{factory/task → assetTransaction}/cancelReservation.js +0 -0
- /package/lib/{factory/reservation/reservationPackage.js → assetTransaction/moneyTransfer.js} +0 -0
- /package/lib/{factory/serviceType.js → assetTransaction/pay.js} +0 -0
- /package/lib/{factory/subject.js → assetTransaction/refund.js} +0 -0
- /package/lib/{factory/task.js → assetTransaction/registerService.js} +0 -0
- /package/lib/{factory/transaction → assetTransaction}/reserve.js +0 -0
- /package/lib/{factory/reservation/event.js → assetTransaction.js} +0 -0
- /package/lib/{factory/task/aggregateScreeningEvent.js → authorization.js} +0 -0
- /package/lib/{factory/task/cancelPendingReservation.js → autoGenerated.js} +0 -0
- /package/lib/{factory/task/importEventsFromCOA.js → businessEntityType.js} +0 -0
- /package/lib/{factory/clientUser.d.ts → clientUser.d.ts} +0 -0
- /package/lib/{factory/clientUser.js → clientUser.js} +0 -0
- /package/lib/{factory/task/importOffersFromCOA.js → cognito.js} +0 -0
- /package/lib/{factory/taskExecutionResult.js → creativeWork/comment.js} +0 -0
- /package/lib/{factory/thing.js → creativeWork/movie.js} +0 -0
- /package/lib/{factory/ticketType.js → creativeWork/softwareApplication/webApplication.js} +0 -0
- /package/lib/{factory/task/triggerWebhook.js → creativeWork.js} +0 -0
- /package/lib/{factory/transaction/cancelReservation.js → customer.js} +0 -0
- /package/lib/{factory/transaction/registerProgramMembership.js → event.js} +0 -0
- /package/lib/{factory/language.d.ts → language.d.ts} +0 -0
- /package/lib/{factory/qualitativeValue.d.ts → qualitativeValue.d.ts} +0 -0
package/lib/order.d.ts
ADDED
|
@@ -0,0 +1,651 @@
|
|
|
1
|
+
import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from './action';
|
|
2
|
+
import { IAmount as IMoneyTransferAmount, IPaymentCard as IPaymentCardAsMoneyTransferToLocation } from './action/transfer/moneyTransfer';
|
|
3
|
+
import { ActionType } from './actionType';
|
|
4
|
+
import { AssetTransactionType } from './assetTransactionType';
|
|
5
|
+
import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
|
|
6
|
+
import { ICustomer as ICustomerOrganization } from './customer';
|
|
7
|
+
import { EventType } from './eventType';
|
|
8
|
+
import { IMonetaryAmount } from './monetaryAmount';
|
|
9
|
+
import { IMultilingualString } from './multilingualString';
|
|
10
|
+
import { IOffer } from './offer';
|
|
11
|
+
import { OrderStatus } from './orderStatus';
|
|
12
|
+
import { OrganizationType } from './organizationType';
|
|
13
|
+
import { PaymentStatusType } from './paymentStatusType';
|
|
14
|
+
import { IIssuedThroughAsProduct, IPermit as IBasePermit } from './permit';
|
|
15
|
+
import { IPerson, IProfile } from './person';
|
|
16
|
+
import { PersonType } from './personType';
|
|
17
|
+
import { PlaceType } from './placeType';
|
|
18
|
+
import { PriceCurrency } from './priceCurrency';
|
|
19
|
+
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
20
|
+
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
21
|
+
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
22
|
+
import { IPriceSpecification as IUnitPriceOfferPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
23
|
+
import { IProduct, ProductType } from './product';
|
|
24
|
+
import { IPropertyValue } from './propertyValue';
|
|
25
|
+
import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
|
|
26
|
+
import * as BusReservationFactory from './reservation/busReservation';
|
|
27
|
+
import * as EventReservationFactory from './reservation/event';
|
|
28
|
+
import { ReservationType } from './reservationType';
|
|
29
|
+
import { ISeller as IBaseSeller } from './seller';
|
|
30
|
+
import { IPaymentMethodAsServiceOutput, PaymentServiceType } from './service/paymentService';
|
|
31
|
+
import { SortType } from './sortType';
|
|
32
|
+
export interface IProject {
|
|
33
|
+
typeOf: OrganizationType.Project;
|
|
34
|
+
id: string;
|
|
35
|
+
}
|
|
36
|
+
export declare enum OrderType {
|
|
37
|
+
Order = "Order"
|
|
38
|
+
}
|
|
39
|
+
export interface IOrderPaymentMethodIssuedThrough {
|
|
40
|
+
typeOf: PaymentServiceType;
|
|
41
|
+
/**
|
|
42
|
+
* 発行決済サービスID
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
}
|
|
46
|
+
export interface ITotalPaymentDue extends Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> {
|
|
47
|
+
value: number;
|
|
48
|
+
}
|
|
49
|
+
export type IPaymentMethodOfInvoice = Pick<IPaymentMethodAsServiceOutput, 'amount'> & {
|
|
50
|
+
/**
|
|
51
|
+
* 決済方法区分コード
|
|
52
|
+
*/
|
|
53
|
+
identifier: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 請求
|
|
57
|
+
*/
|
|
58
|
+
export interface IReferencedInvoice {
|
|
59
|
+
/**
|
|
60
|
+
* The identifier for the account the payment will be applied to.
|
|
61
|
+
*/
|
|
62
|
+
accountId?: string;
|
|
63
|
+
/**
|
|
64
|
+
* 決済方法名称
|
|
65
|
+
*/
|
|
66
|
+
name: string;
|
|
67
|
+
/**
|
|
68
|
+
* The name of the credit card or other method of payment for the order.
|
|
69
|
+
* 追加(2023-08-13~)
|
|
70
|
+
* 存在を保証(2023-08-28~)
|
|
71
|
+
* OrderPaymentDueの状態では存在しない可能性あり
|
|
72
|
+
*/
|
|
73
|
+
paymentMethod?: IPaymentMethodOfInvoice;
|
|
74
|
+
/**
|
|
75
|
+
* An identifier for the method of payment used (e.g.the last 4 digits of the credit card).
|
|
76
|
+
*/
|
|
77
|
+
paymentMethodId: string;
|
|
78
|
+
/**
|
|
79
|
+
* 自動決済かどうか判定するために追加(2023-08-23~)
|
|
80
|
+
*/
|
|
81
|
+
paymentStatus?: PaymentStatusType.PaymentAutomaticallyApplied | PaymentStatusType.PaymentDue;
|
|
82
|
+
/**
|
|
83
|
+
* The total amount due.
|
|
84
|
+
*/
|
|
85
|
+
totalPaymentDue?: ITotalPaymentDue;
|
|
86
|
+
/**
|
|
87
|
+
* 追加特性
|
|
88
|
+
*/
|
|
89
|
+
additionalProperty: IPropertyValue<string>[];
|
|
90
|
+
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* ディスカウント
|
|
94
|
+
*/
|
|
95
|
+
export interface IDiscount {
|
|
96
|
+
/**
|
|
97
|
+
* 割引タイプ
|
|
98
|
+
*/
|
|
99
|
+
typeOf: string;
|
|
100
|
+
name: string;
|
|
101
|
+
/**
|
|
102
|
+
* Any discount applied.
|
|
103
|
+
*/
|
|
104
|
+
discount: number;
|
|
105
|
+
/**
|
|
106
|
+
* Code used to redeem a discount.
|
|
107
|
+
*/
|
|
108
|
+
discountCode: string;
|
|
109
|
+
/**
|
|
110
|
+
* The currency (in 3 - letter ISO 4217 format) of the discount.
|
|
111
|
+
*/
|
|
112
|
+
discountCurrency: string;
|
|
113
|
+
}
|
|
114
|
+
export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
|
|
115
|
+
export type ISuperEvent = Omit<EventReservationFactory.IOptimizedSuperEvent, 'workPerformed'> & {
|
|
116
|
+
workPerformed: IWorkPerformed;
|
|
117
|
+
};
|
|
118
|
+
export type ITripAsReservationFor = BusReservationFactory.IReservationFor;
|
|
119
|
+
export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
|
|
120
|
+
superEvent: ISuperEvent;
|
|
121
|
+
};
|
|
122
|
+
export type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'dateIssued' | 'ticketNumber' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
|
|
123
|
+
ticketType: ITicketType;
|
|
124
|
+
};
|
|
125
|
+
export type IBusReservation = Pick<BusReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'bookingTime' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
126
|
+
reservationFor: ITripAsReservationFor;
|
|
127
|
+
reservedTicket: IReservedTicket;
|
|
128
|
+
};
|
|
129
|
+
export type IEventReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'bookingTime' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
130
|
+
reservationFor: IEventAsReservationFor;
|
|
131
|
+
reservedTicket: IReservedTicket;
|
|
132
|
+
};
|
|
133
|
+
export type IReservation = IBusReservation | IEventReservation;
|
|
134
|
+
export type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | 'name' | 'typeOf' | 'validFor'> & {
|
|
135
|
+
issuedThrough?: IIssuedThroughAsProduct;
|
|
136
|
+
};
|
|
137
|
+
export interface IMoneyTransferPendingTransaction {
|
|
138
|
+
typeOf: AssetTransactionType.MoneyTransfer;
|
|
139
|
+
/**
|
|
140
|
+
* 資産取引番号
|
|
141
|
+
*/
|
|
142
|
+
transactionNumber: string;
|
|
143
|
+
}
|
|
144
|
+
export type IMoneyTransferToLocation = Pick<IPaymentCardAsMoneyTransferToLocation, 'typeOf' | 'identifier' | 'issuedThrough'>;
|
|
145
|
+
export interface IMoneyTransfer {
|
|
146
|
+
typeOf: ActionType.MoneyTransfer;
|
|
147
|
+
/**
|
|
148
|
+
* 金額
|
|
149
|
+
*/
|
|
150
|
+
amount: IMoneyTransferAmount;
|
|
151
|
+
description?: string;
|
|
152
|
+
/**
|
|
153
|
+
* 転送先
|
|
154
|
+
*/
|
|
155
|
+
toLocation: IMoneyTransferToLocation;
|
|
156
|
+
object: {
|
|
157
|
+
/**
|
|
158
|
+
* 入金処理の資産取引
|
|
159
|
+
*/
|
|
160
|
+
pendingTransaction: IMoneyTransferPendingTransaction;
|
|
161
|
+
};
|
|
162
|
+
name?: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* 注文アイテム
|
|
166
|
+
*/
|
|
167
|
+
export type IItemOffered = IMoneyTransfer | IReservation | IPermit;
|
|
168
|
+
export type ICategoryChargePriceComponent = Omit<ICategoryCodeChargeSpecification, 'project'>;
|
|
169
|
+
export type IMovieTicketTypeChargePriceComponent = Omit<IMovieTicketTypeChargeSpecification, 'project'>;
|
|
170
|
+
export type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
171
|
+
/**
|
|
172
|
+
* 承認時に提供される価格仕様要素
|
|
173
|
+
*/
|
|
174
|
+
export type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
|
|
175
|
+
/**
|
|
176
|
+
* 承認時に提供される価格仕様
|
|
177
|
+
*/
|
|
178
|
+
export type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
|
|
179
|
+
export type IOfferOptimized4acceptedOffer = Pick<IOffer, 'typeOf' | 'id' | 'itemOffered' | 'offeredThrough' | 'name'>;
|
|
180
|
+
/**
|
|
181
|
+
* 受け入れオファー
|
|
182
|
+
*/
|
|
183
|
+
export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4acceptedOffer {
|
|
184
|
+
/**
|
|
185
|
+
* オファー対象アイテム
|
|
186
|
+
*/
|
|
187
|
+
itemOffered: T;
|
|
188
|
+
priceSpecification?: ITicketPriceSpecification;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* 販売者
|
|
192
|
+
*/
|
|
193
|
+
export interface ISeller extends Pick<IBaseSeller, 'typeOf' | 'additionalProperty'> {
|
|
194
|
+
id: string;
|
|
195
|
+
name: string;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* ウェブアプリケーションとしてのカスタマー
|
|
199
|
+
*/
|
|
200
|
+
export type IWebApplicationCustomer = Pick<IWebApplication, 'id' | 'typeOf'> & IProfile;
|
|
201
|
+
/**
|
|
202
|
+
* 顧客組織としてのカスタマー
|
|
203
|
+
*/
|
|
204
|
+
export type IOrganizationCustomer = Pick<ICustomerOrganization, 'id' | 'typeOf'> & IProfile;
|
|
205
|
+
export type IPersonCustomer = Pick<IPerson, 'id' | 'typeOf' | 'memberOf'> & IProfile;
|
|
206
|
+
/**
|
|
207
|
+
* カスタマー
|
|
208
|
+
*/
|
|
209
|
+
export type ICustomer = IPersonCustomer | IWebApplicationCustomer | IOrganizationCustomer;
|
|
210
|
+
export type IBroker = Pick<IPerson, 'id' | 'identifier' | 'typeOf'>;
|
|
211
|
+
/**
|
|
212
|
+
* 返品者
|
|
213
|
+
*/
|
|
214
|
+
export type IParticipantAsReturner = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
|
|
215
|
+
export type IReturner = Pick<IParticipantAsReturner, 'id' | 'typeOf'>;
|
|
216
|
+
export type IIdentifier = IPropertyValue<string>[];
|
|
217
|
+
export type ISimpleCustomer = Pick<ICustomer, 'id' | 'typeOf'>;
|
|
218
|
+
export type ISimpleSeller = Pick<ISeller, 'id' | 'typeOf' | 'name'>;
|
|
219
|
+
export interface ISimpleOrder {
|
|
220
|
+
/**
|
|
221
|
+
* object type
|
|
222
|
+
*/
|
|
223
|
+
typeOf: OrderType;
|
|
224
|
+
/**
|
|
225
|
+
* Party placing the order.
|
|
226
|
+
*/
|
|
227
|
+
customer: ISimpleCustomer;
|
|
228
|
+
/**
|
|
229
|
+
* The merchant- specific identifier for the transaction.
|
|
230
|
+
*/
|
|
231
|
+
orderNumber: string;
|
|
232
|
+
/**
|
|
233
|
+
* The total price of the entire transaction.
|
|
234
|
+
*/
|
|
235
|
+
price: number;
|
|
236
|
+
/**
|
|
237
|
+
* The currency (in 3 - letter ISO 4217 format) of the order price.
|
|
238
|
+
*/
|
|
239
|
+
priceCurrency: PriceCurrency;
|
|
240
|
+
/**
|
|
241
|
+
* Date order was placed.
|
|
242
|
+
*/
|
|
243
|
+
orderDate: Date;
|
|
244
|
+
seller: ISimpleSeller;
|
|
245
|
+
}
|
|
246
|
+
export interface IReservationFor4EventServiceOrderedItem {
|
|
247
|
+
location?: {
|
|
248
|
+
branchCode: string;
|
|
249
|
+
name?: IMultilingualString;
|
|
250
|
+
typeOf: PlaceType.ScreeningRoom;
|
|
251
|
+
};
|
|
252
|
+
typeOf: EventType.ScreeningEvent;
|
|
253
|
+
id: string;
|
|
254
|
+
name?: IMultilingualString;
|
|
255
|
+
startDate?: Date;
|
|
256
|
+
endDate?: Date;
|
|
257
|
+
}
|
|
258
|
+
export interface IEventServiceAsOrderedItem {
|
|
259
|
+
typeOf: ProductType.EventService;
|
|
260
|
+
serviceOutput: {
|
|
261
|
+
typeOf: ReservationType.EventReservation | ReservationType.ReservationPackage;
|
|
262
|
+
reservationFor: IReservationFor4EventServiceOrderedItem;
|
|
263
|
+
};
|
|
264
|
+
serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
|
|
265
|
+
}
|
|
266
|
+
export type IReservationFor4TransportationOrderedItem = Pick<ITripAsReservationFor, 'typeOf' | 'id' | 'arrivalTime' | 'departureTime'>;
|
|
267
|
+
export interface ITransportationAsOrderedItem {
|
|
268
|
+
typeOf: ProductType.Transportation;
|
|
269
|
+
serviceOutput: {
|
|
270
|
+
typeOf: ReservationType.ReservationPackage;
|
|
271
|
+
reservationFor: IReservationFor4TransportationOrderedItem;
|
|
272
|
+
};
|
|
273
|
+
serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
|
|
274
|
+
}
|
|
275
|
+
export type IProductAsOrderedItem = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
|
|
276
|
+
/**
|
|
277
|
+
* 注文アイテム
|
|
278
|
+
* {@link https://schema.org/OrderItem}
|
|
279
|
+
*/
|
|
280
|
+
export interface IOrderedItem {
|
|
281
|
+
typeOf: 'OrderItem';
|
|
282
|
+
orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem | ITransportationAsOrderedItem;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* 注文
|
|
286
|
+
* {@link https://schema.org/Order}
|
|
287
|
+
*/
|
|
288
|
+
export interface IOrder extends Omit<ISimpleOrder, 'customer'> {
|
|
289
|
+
id?: string;
|
|
290
|
+
project: IProject;
|
|
291
|
+
/**
|
|
292
|
+
* Offer
|
|
293
|
+
* The offers included in the order.Also accepts an array of objects.
|
|
294
|
+
*/
|
|
295
|
+
acceptedOffers?: IAcceptedOffer<IItemOffered>[];
|
|
296
|
+
additionalProperty?: IPropertyValue<string>[];
|
|
297
|
+
/**
|
|
298
|
+
* An entity that arranges for an exchange between a buyer and a seller.
|
|
299
|
+
* In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
|
|
300
|
+
*/
|
|
301
|
+
broker?: IBroker;
|
|
302
|
+
/**
|
|
303
|
+
* A number that confirms the given order or payment has been received.
|
|
304
|
+
*/
|
|
305
|
+
confirmationNumber: string;
|
|
306
|
+
customer: ICustomer;
|
|
307
|
+
/**
|
|
308
|
+
* Date order was returned.
|
|
309
|
+
*/
|
|
310
|
+
dateReturned?: Date;
|
|
311
|
+
/**
|
|
312
|
+
* discount infos
|
|
313
|
+
*/
|
|
314
|
+
discounts: IDiscount[];
|
|
315
|
+
/**
|
|
316
|
+
* The identifier property represents any kind of identifier for any kind of Thing
|
|
317
|
+
*/
|
|
318
|
+
identifier?: IIdentifier;
|
|
319
|
+
/**
|
|
320
|
+
* Was the offer accepted as a gift for someone other than the buyer.
|
|
321
|
+
*/
|
|
322
|
+
isGift?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* 注文名称
|
|
325
|
+
*/
|
|
326
|
+
name?: string;
|
|
327
|
+
orderedItem?: IOrderedItem[];
|
|
328
|
+
/**
|
|
329
|
+
* OrderStatus (recommended for confirmation cards/ Search Answers)
|
|
330
|
+
* The current status of the order.
|
|
331
|
+
*/
|
|
332
|
+
orderStatus: OrderStatus;
|
|
333
|
+
/**
|
|
334
|
+
* payment methods
|
|
335
|
+
*/
|
|
336
|
+
paymentMethods: IReferencedInvoice[];
|
|
337
|
+
previousOrderStatus?: OrderStatus;
|
|
338
|
+
/**
|
|
339
|
+
* Returner
|
|
340
|
+
*/
|
|
341
|
+
returner?: IReturner;
|
|
342
|
+
/**
|
|
343
|
+
* The party taking the order (e.g. Amazon.com is a merchant for many sellers). Also accepts a string (e.g. "Amazon.com").
|
|
344
|
+
*/
|
|
345
|
+
seller: ISeller;
|
|
346
|
+
/**
|
|
347
|
+
* URL (recommended for confirmation cards/ Search Answers)
|
|
348
|
+
* URL of the Order, typically a link to the merchant's website where the user can retrieve further details about an order.
|
|
349
|
+
*/
|
|
350
|
+
url?: string;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* ソート条件
|
|
354
|
+
*/
|
|
355
|
+
export interface ISortOrder {
|
|
356
|
+
orderDate?: SortType;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* 予約対象検索条件
|
|
360
|
+
*/
|
|
361
|
+
export interface IReservationForSearchConditions {
|
|
362
|
+
typeOfs?: EventType[];
|
|
363
|
+
ids?: string[];
|
|
364
|
+
/**
|
|
365
|
+
* イベント名称
|
|
366
|
+
*/
|
|
367
|
+
name?: string;
|
|
368
|
+
/**
|
|
369
|
+
* 開催中 from
|
|
370
|
+
*/
|
|
371
|
+
inSessionFrom?: Date;
|
|
372
|
+
/**
|
|
373
|
+
* 開催中 through
|
|
374
|
+
*/
|
|
375
|
+
inSessionThrough?: Date;
|
|
376
|
+
/**
|
|
377
|
+
* 開始日時 from
|
|
378
|
+
*/
|
|
379
|
+
startFrom?: Date;
|
|
380
|
+
/**
|
|
381
|
+
* 開始日時 through
|
|
382
|
+
*/
|
|
383
|
+
startThrough?: Date;
|
|
384
|
+
/**
|
|
385
|
+
* イベント開催場所
|
|
386
|
+
*/
|
|
387
|
+
location?: {
|
|
388
|
+
branchCodes?: string[];
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* 親イベント情報
|
|
392
|
+
*/
|
|
393
|
+
superEvent?: {
|
|
394
|
+
ids?: string[];
|
|
395
|
+
location?: {
|
|
396
|
+
/**
|
|
397
|
+
* 親イベントが実施される場所の枝番号
|
|
398
|
+
*/
|
|
399
|
+
branchCodes?: string[];
|
|
400
|
+
};
|
|
401
|
+
workPerformed?: {
|
|
402
|
+
/**
|
|
403
|
+
* コンテンツコードリスト
|
|
404
|
+
*/
|
|
405
|
+
identifiers?: string[];
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
export interface ISellerSearchConditions {
|
|
410
|
+
/**
|
|
411
|
+
* 販売者IDリスト
|
|
412
|
+
*/
|
|
413
|
+
ids?: string[];
|
|
414
|
+
id?: {
|
|
415
|
+
$eq?: string;
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
export interface ICustomerSearchConditions {
|
|
419
|
+
typeOf?: PersonType;
|
|
420
|
+
ids?: string[];
|
|
421
|
+
identifiers?: IIdentifier;
|
|
422
|
+
identifier?: {
|
|
423
|
+
$all?: IIdentifier;
|
|
424
|
+
$in?: IIdentifier;
|
|
425
|
+
};
|
|
426
|
+
additionalProperty?: {
|
|
427
|
+
$all?: IIdentifier;
|
|
428
|
+
$in?: IIdentifier;
|
|
429
|
+
};
|
|
430
|
+
memberOf?: {
|
|
431
|
+
membershipNumber?: {
|
|
432
|
+
$eq?: string;
|
|
433
|
+
$in?: string[];
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
givenName?: string | {
|
|
437
|
+
$eq?: string;
|
|
438
|
+
$regex?: string;
|
|
439
|
+
};
|
|
440
|
+
familyName?: string | {
|
|
441
|
+
$eq?: string;
|
|
442
|
+
$regex?: string;
|
|
443
|
+
};
|
|
444
|
+
email?: string | {
|
|
445
|
+
$eq?: string;
|
|
446
|
+
$regex?: string;
|
|
447
|
+
};
|
|
448
|
+
telephone?: string | {
|
|
449
|
+
$eq?: string;
|
|
450
|
+
$regex?: string;
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
export interface IPaymentMethodsSearchConditions {
|
|
454
|
+
/**
|
|
455
|
+
* 決済アカウントID
|
|
456
|
+
* ムビチケ購入番号、ペイメントカード番号など
|
|
457
|
+
*/
|
|
458
|
+
accountIds?: string[];
|
|
459
|
+
/**
|
|
460
|
+
* 追加特性
|
|
461
|
+
*/
|
|
462
|
+
additionalProperty?: {
|
|
463
|
+
/**
|
|
464
|
+
* すべてに一致する
|
|
465
|
+
*/
|
|
466
|
+
$all?: IIdentifier;
|
|
467
|
+
/**
|
|
468
|
+
* どれかに一致する
|
|
469
|
+
*/
|
|
470
|
+
$in?: IIdentifier;
|
|
471
|
+
};
|
|
472
|
+
/**
|
|
473
|
+
* 決済方法区分コード
|
|
474
|
+
* @deprecated Use paymentMethod.identifier
|
|
475
|
+
*/
|
|
476
|
+
typeOfs?: string[];
|
|
477
|
+
/**
|
|
478
|
+
* 決済方法ID
|
|
479
|
+
* 決済代行オーダーIDなど
|
|
480
|
+
*/
|
|
481
|
+
paymentMethodIds?: string[];
|
|
482
|
+
paymentMethod?: {
|
|
483
|
+
/**
|
|
484
|
+
* 決済方法区分コード
|
|
485
|
+
*/
|
|
486
|
+
identifier?: {
|
|
487
|
+
$in?: string[];
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
export interface IAcceptedOffersSearchConditions {
|
|
492
|
+
$size?: number;
|
|
493
|
+
itemOffered?: {
|
|
494
|
+
/**
|
|
495
|
+
* アイテムタイプ
|
|
496
|
+
* 現状、EventReservation or Permit
|
|
497
|
+
*/
|
|
498
|
+
typeOf?: {
|
|
499
|
+
$in?: string[];
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* アイテムコード
|
|
503
|
+
* メンバーシップコード、ペイメントカード番号など
|
|
504
|
+
*/
|
|
505
|
+
identifier?: {
|
|
506
|
+
$in?: string[];
|
|
507
|
+
};
|
|
508
|
+
issuedThrough?: {
|
|
509
|
+
/**
|
|
510
|
+
* 発行サービスID
|
|
511
|
+
*/
|
|
512
|
+
id?: {
|
|
513
|
+
$in?: string[];
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* 発行サービスタイプ
|
|
517
|
+
*/
|
|
518
|
+
typeOf?: {
|
|
519
|
+
$eq?: ProductType;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* アイテムID
|
|
524
|
+
* 予約IDなど
|
|
525
|
+
*/
|
|
526
|
+
ids?: string[];
|
|
527
|
+
reservationFor?: IReservationForSearchConditions;
|
|
528
|
+
/**
|
|
529
|
+
* 予約番号
|
|
530
|
+
*/
|
|
531
|
+
reservationNumbers?: string[];
|
|
532
|
+
/**
|
|
533
|
+
* 使用メンバーシップ
|
|
534
|
+
*/
|
|
535
|
+
programMembershipUsed?: IProgramMembershipUsedSearchConditions;
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* 注文検索条件
|
|
540
|
+
*/
|
|
541
|
+
export interface ISearchConditions {
|
|
542
|
+
limit?: number;
|
|
543
|
+
page?: number;
|
|
544
|
+
sort?: ISortOrder;
|
|
545
|
+
project?: {
|
|
546
|
+
id?: {
|
|
547
|
+
$eq?: string;
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
additionalProperty?: {
|
|
551
|
+
$all?: IPropertyValue<string>[];
|
|
552
|
+
$in?: IPropertyValue<string>[];
|
|
553
|
+
$nin?: IPropertyValue<string>[];
|
|
554
|
+
$elemMatch?: {
|
|
555
|
+
name?: {
|
|
556
|
+
/**
|
|
557
|
+
* 一致する名称の追加特性がひとつでも存在する
|
|
558
|
+
*/
|
|
559
|
+
$eq?: string;
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
broker?: {
|
|
564
|
+
id?: {
|
|
565
|
+
$eq?: string;
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
name?: {
|
|
569
|
+
/**
|
|
570
|
+
* 名称完全一致
|
|
571
|
+
*/
|
|
572
|
+
$eq?: string;
|
|
573
|
+
/**
|
|
574
|
+
* 名称部分一致
|
|
575
|
+
*/
|
|
576
|
+
$regex?: string;
|
|
577
|
+
};
|
|
578
|
+
/**
|
|
579
|
+
* 販売者条件
|
|
580
|
+
*/
|
|
581
|
+
seller?: ISellerSearchConditions;
|
|
582
|
+
/**
|
|
583
|
+
* 販売者条件(リクエストによるフィルター専用)
|
|
584
|
+
*/
|
|
585
|
+
provider?: {
|
|
586
|
+
id?: {
|
|
587
|
+
$eq?: string;
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* 顧客条件
|
|
592
|
+
*/
|
|
593
|
+
customer?: ICustomerSearchConditions;
|
|
594
|
+
/**
|
|
595
|
+
* 識別子条件
|
|
596
|
+
*/
|
|
597
|
+
identifier?: {
|
|
598
|
+
$all?: IIdentifier;
|
|
599
|
+
$in?: IIdentifier;
|
|
600
|
+
};
|
|
601
|
+
/**
|
|
602
|
+
* 注文番号リスト
|
|
603
|
+
*/
|
|
604
|
+
orderNumbers?: string[];
|
|
605
|
+
/**
|
|
606
|
+
* 注文ステータスリスト
|
|
607
|
+
*/
|
|
608
|
+
orderStatuses?: OrderStatus[];
|
|
609
|
+
/**
|
|
610
|
+
* 注文日時
|
|
611
|
+
*/
|
|
612
|
+
orderDate?: {
|
|
613
|
+
/**
|
|
614
|
+
* 注文日時(まで)
|
|
615
|
+
*/
|
|
616
|
+
$gte?: Date;
|
|
617
|
+
/**
|
|
618
|
+
* 注文日時(から)
|
|
619
|
+
*/
|
|
620
|
+
$lte?: Date;
|
|
621
|
+
};
|
|
622
|
+
/**
|
|
623
|
+
* 注文日時(から)
|
|
624
|
+
* @deprecated Use orderDate.$gte
|
|
625
|
+
*/
|
|
626
|
+
orderDateFrom?: Date;
|
|
627
|
+
/**
|
|
628
|
+
* 注文日時(まで)
|
|
629
|
+
* @deprecated Use orderDate.$lte
|
|
630
|
+
*/
|
|
631
|
+
orderDateThrough?: Date;
|
|
632
|
+
orderedItem?: {
|
|
633
|
+
$size?: number;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* 確認番号リスト
|
|
637
|
+
*/
|
|
638
|
+
confirmationNumbers?: string[];
|
|
639
|
+
/**
|
|
640
|
+
* 決済方法
|
|
641
|
+
*/
|
|
642
|
+
paymentMethods?: IPaymentMethodsSearchConditions;
|
|
643
|
+
/**
|
|
644
|
+
* 注文アイテム条件
|
|
645
|
+
*/
|
|
646
|
+
acceptedOffers?: IAcceptedOffersSearchConditions;
|
|
647
|
+
price?: {
|
|
648
|
+
$gte?: number;
|
|
649
|
+
$lte?: number;
|
|
650
|
+
};
|
|
651
|
+
}
|
package/lib/order.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IOrder, IOrderedItem, IProductAsOrderedItem } from './order';
|
|
2
|
+
export interface IExternalProductAsOrderedItem extends IProductAsOrderedItem {
|
|
3
|
+
name?: {
|
|
4
|
+
ja?: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface IExternalOrderedItem extends IOrderedItem {
|
|
8
|
+
orderedItem: IExternalProductAsOrderedItem;
|
|
9
|
+
}
|
|
10
|
+
export type IExternalOrder = Pick<IOrder, 'project' | 'typeOf' | 'seller' | 'customer' | 'confirmationNumber' | 'orderNumber' | 'price' | 'priceCurrency' | 'orderDate' | 'name' | 'orderStatus' | 'orderedItem' | 'paymentMethods'> & {
|
|
11
|
+
orderedItem?: IExternalOrderedItem[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderStatus = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* 注文ステータス
|
|
6
|
+
*/
|
|
7
|
+
var OrderStatus;
|
|
8
|
+
(function (OrderStatus) {
|
|
9
|
+
OrderStatus["OrderCancelled"] = "OrderCancelled";
|
|
10
|
+
OrderStatus["OrderDelivered"] = "OrderDelivered";
|
|
11
|
+
// OrderInTransit = 'OrderInTransit',
|
|
12
|
+
OrderStatus["OrderPaymentDue"] = "OrderPaymentDue";
|
|
13
|
+
// OrderPickupAvailable = 'OrderPickupAvailable',
|
|
14
|
+
// OrderProblem = 'OrderProblem',
|
|
15
|
+
OrderStatus["OrderProcessing"] = "OrderProcessing";
|
|
16
|
+
OrderStatus["OrderReturned"] = "OrderReturned";
|
|
17
|
+
})(OrderStatus = exports.OrderStatus || (exports.OrderStatus = {}));
|