@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/invoice.d.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { IMonetaryAmount } from './monetaryAmount';
|
|
2
|
+
import * as OrderFactory from './order';
|
|
3
|
+
import { PaymentStatusType } from './paymentStatusType';
|
|
4
|
+
import { IPerson } from './person';
|
|
5
|
+
import { IAccounting } from './priceSpecification';
|
|
6
|
+
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
7
|
+
import { IAppliesToMovieTicket, IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
8
|
+
import { IAppliesToAddOn as IUnitPriceSpecAppliesToAddOn, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
9
|
+
import { IPriceSpecification } from './reservation/event';
|
|
10
|
+
import { ISeller } from './seller';
|
|
11
|
+
import { PaymentServiceType } from './service/paymentService';
|
|
12
|
+
export type IBroker = Pick<ISeller, 'id' | 'typeOf'> | IPerson;
|
|
13
|
+
export type IProvider = Pick<ISeller, 'id' | 'typeOf'> | IPerson;
|
|
14
|
+
export interface IReferenceOrder extends OrderFactory.IOrder {
|
|
15
|
+
acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
|
|
16
|
+
}
|
|
17
|
+
export type IReservationPriceAccounting = Pick<IAccounting, 'accountsReceivable'>;
|
|
18
|
+
export type IAppliesToAddOn = Pick<IUnitPriceSpecAppliesToAddOn, 'typeOf'>;
|
|
19
|
+
export type IMinimizedCategoryCodeChargeSpecification = Pick<ICategoryCodeChargeSpecification, 'typeOf' | 'price'>;
|
|
20
|
+
export type IMinimizedMovieTicketTypeChargeSpecification = Pick<IMovieTicketTypeChargeSpecification, 'typeOf' | 'price'> & {
|
|
21
|
+
appliesToMovieTicket: Pick<IAppliesToMovieTicket, 'serviceOutput'>;
|
|
22
|
+
};
|
|
23
|
+
export type IMinimizedUnitPriceSpecification = Pick<IUnitPriceSpecification, 'typeOf' | 'price' | 'referenceQuantity'> & {
|
|
24
|
+
accounting?: IReservationPriceAccounting;
|
|
25
|
+
appliesToAddOn?: IAppliesToAddOn[];
|
|
26
|
+
};
|
|
27
|
+
export type IPriceComponentSpecification = IMinimizedCategoryCodeChargeSpecification | IMinimizedMovieTicketTypeChargeSpecification | IMinimizedUnitPriceSpecification;
|
|
28
|
+
export type IReservationPriceSpecification = Pick<IPriceSpecification, 'typeOf'> & {
|
|
29
|
+
priceComponent: IPriceComponentSpecification[];
|
|
30
|
+
};
|
|
31
|
+
export interface IReservation {
|
|
32
|
+
/**
|
|
33
|
+
* 予約価格
|
|
34
|
+
* priceSpecificationへ完全移行(2022-11-23~)
|
|
35
|
+
*/
|
|
36
|
+
priceSpecification: IReservationPriceSpecification;
|
|
37
|
+
/**
|
|
38
|
+
* 予約番号
|
|
39
|
+
*/
|
|
40
|
+
reservationNumber: string;
|
|
41
|
+
reservedTicket?: {
|
|
42
|
+
/**
|
|
43
|
+
* COAの場合のみチケットトークンが存在(2023-03-14~)
|
|
44
|
+
*/
|
|
45
|
+
ticketToken?: string;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export type IAmountOfMovieTicketAsPaymentServiceOutput = Pick<IMonetaryAmount, 'typeOf' | 'value'>;
|
|
49
|
+
export interface IMovieTicketAsPaymentServiceOutput {
|
|
50
|
+
/**
|
|
51
|
+
* 購入管理番号
|
|
52
|
+
*/
|
|
53
|
+
identifier: string;
|
|
54
|
+
/**
|
|
55
|
+
* 利用対象予約
|
|
56
|
+
*/
|
|
57
|
+
serviceOutput?: IReservation;
|
|
58
|
+
amount?: IAmountOfMovieTicketAsPaymentServiceOutput;
|
|
59
|
+
}
|
|
60
|
+
export type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[];
|
|
61
|
+
/**
|
|
62
|
+
* 決済方法(サービス)
|
|
63
|
+
*/
|
|
64
|
+
export interface IPaymentMethod {
|
|
65
|
+
id: string;
|
|
66
|
+
typeOf: PaymentServiceType;
|
|
67
|
+
serviceOutput?: IPaymentServiceOutput;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* インボイス
|
|
71
|
+
* {@link https://schema.org/Invoice}
|
|
72
|
+
*/
|
|
73
|
+
export interface IInvoice {
|
|
74
|
+
typeOf: 'Invoice';
|
|
75
|
+
/**
|
|
76
|
+
* The identifier for the account the payment will be applied to.
|
|
77
|
+
*/
|
|
78
|
+
accountId?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The time interval used to compute the invoice.
|
|
81
|
+
*/
|
|
82
|
+
billingPeriod?: string;
|
|
83
|
+
/**
|
|
84
|
+
* An entity that arranges for an exchange between a buyer and a seller.
|
|
85
|
+
* In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
|
|
86
|
+
* If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. Supersedes bookingAgent.
|
|
87
|
+
*/
|
|
88
|
+
broker?: IBroker;
|
|
89
|
+
/**
|
|
90
|
+
* A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
|
|
91
|
+
*/
|
|
92
|
+
category?: string;
|
|
93
|
+
/**
|
|
94
|
+
* A number that confirms the given order or payment has been received.
|
|
95
|
+
*/
|
|
96
|
+
confirmationNumber?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Party placing the order or paying the invoice.
|
|
99
|
+
*/
|
|
100
|
+
customer?: OrderFactory.ICustomer;
|
|
101
|
+
/**
|
|
102
|
+
* The minimum payment required at this time.
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* The date that payment is due. Supersedes paymentDue.
|
|
106
|
+
*/
|
|
107
|
+
paymentDueDate?: Date;
|
|
108
|
+
/**
|
|
109
|
+
* The name of the credit card or other method of payment for the order.
|
|
110
|
+
*/
|
|
111
|
+
paymentMethod: IPaymentMethod;
|
|
112
|
+
/**
|
|
113
|
+
* An identifier for the method of payment used (e.g. the last 4 digits of the credit card).
|
|
114
|
+
*/
|
|
115
|
+
paymentMethodId: string;
|
|
116
|
+
/**
|
|
117
|
+
* The status of payment; whether the invoice has been paid or not.
|
|
118
|
+
*/
|
|
119
|
+
paymentStatus?: PaymentStatusType;
|
|
120
|
+
/**
|
|
121
|
+
* The service provider, service operator, or service performer; the goods producer.
|
|
122
|
+
* Another party (a seller) may offer those services or goods on behalf of the provider.
|
|
123
|
+
* A provider may also serve as the seller. Supersedes carrier.
|
|
124
|
+
*/
|
|
125
|
+
provider?: IProvider;
|
|
126
|
+
/**
|
|
127
|
+
* The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
|
|
128
|
+
*/
|
|
129
|
+
referencesOrder?: IReferenceOrder;
|
|
130
|
+
/**
|
|
131
|
+
* The date the invoice is scheduled to be paid.
|
|
132
|
+
*/
|
|
133
|
+
scheduledPaymentDate?: Date;
|
|
134
|
+
/**
|
|
135
|
+
* The total amount due.
|
|
136
|
+
*/
|
|
137
|
+
totalPaymentDue?: OrderFactory.ITotalPaymentDue;
|
|
138
|
+
}
|
package/lib/invoice.js
ADDED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 商品在庫状況
|
|
3
3
|
*/
|
|
4
|
-
declare enum ItemAvailability {
|
|
4
|
+
export declare enum ItemAvailability {
|
|
5
5
|
Discontinued = "Discontinued",
|
|
6
6
|
InStock = "InStock",
|
|
7
7
|
InStoreOnly = "InStoreOnly",
|
|
@@ -12,4 +12,3 @@ declare enum ItemAvailability {
|
|
|
12
12
|
PreSale = "PreSale",
|
|
13
13
|
SoldOut = "SoldOut"
|
|
14
14
|
}
|
|
15
|
-
export default ItemAvailability;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemAvailability = void 0;
|
|
2
4
|
/**
|
|
3
5
|
* 商品在庫状況
|
|
4
6
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
7
|
var ItemAvailability;
|
|
7
8
|
(function (ItemAvailability) {
|
|
8
9
|
ItemAvailability["Discontinued"] = "Discontinued";
|
|
@@ -14,5 +15,4 @@ var ItemAvailability;
|
|
|
14
15
|
ItemAvailability["PreOrder"] = "PreOrder";
|
|
15
16
|
ItemAvailability["PreSale"] = "PreSale";
|
|
16
17
|
ItemAvailability["SoldOut"] = "SoldOut";
|
|
17
|
-
})(ItemAvailability || (ItemAvailability = {}));
|
|
18
|
-
exports.default = ItemAvailability;
|
|
18
|
+
})(ItemAvailability = exports.ItemAvailability || (exports.ItemAvailability = {}));
|
package/lib/language.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { IMonetaryAmount } from './monetaryAmount';
|
|
2
|
+
import { IOfferItemCondition } from './offerItemCondition';
|
|
3
|
+
import { IThing } from './thing';
|
|
4
|
+
export declare enum RefundTypeEnumeration {
|
|
5
|
+
ExchangeRefund = "ExchangeRefund",
|
|
6
|
+
FullRefund = "FullRefund",
|
|
7
|
+
StoreCreditRefund = "StoreCreditRefund"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ReturnFeesEnumeration {
|
|
10
|
+
/**
|
|
11
|
+
* Specifies that product returns are free of charge for the customer.
|
|
12
|
+
*/
|
|
13
|
+
FreeReturn = "FreeReturn",
|
|
14
|
+
/**
|
|
15
|
+
* Specifies that the customer must pay a restocking fee when returning a product
|
|
16
|
+
*/
|
|
17
|
+
RestockingFees = "RestockingFees",
|
|
18
|
+
/**
|
|
19
|
+
* Specifies that product returns must be paid for, and are the responsibility of, the customer.
|
|
20
|
+
*/
|
|
21
|
+
ReturnFeesCustomerResponsibility = "ReturnFeesCustomerResponsibility"
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 返品ポリシーインターフェース
|
|
25
|
+
* {@link https://schema.org/MerchantReturnEnumeration}
|
|
26
|
+
*/
|
|
27
|
+
export declare enum MerchantReturnEnumeration {
|
|
28
|
+
/**
|
|
29
|
+
* there is a finite window for product returns.
|
|
30
|
+
*/
|
|
31
|
+
MerchantReturnFiniteReturnWindow = "MerchantReturnFiniteReturnWindow",
|
|
32
|
+
/**
|
|
33
|
+
* product returns are not permitted.
|
|
34
|
+
*/
|
|
35
|
+
MerchantReturnNotPermitted = "MerchantReturnNotPermitted",
|
|
36
|
+
/**
|
|
37
|
+
* there is an unlimited window for product returns.
|
|
38
|
+
*/
|
|
39
|
+
MerchantReturnUnlimitedWindow = "MerchantReturnUnlimitedWindow",
|
|
40
|
+
/**
|
|
41
|
+
* a product return policy is not specified here.
|
|
42
|
+
*/
|
|
43
|
+
MerchantReturnUnspecified = "MerchantReturnUnspecified"
|
|
44
|
+
}
|
|
45
|
+
export type IRestockingFee = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
|
46
|
+
export type IItemCondition = Pick<IOfferItemCondition, 'typeOf' | 'id'> & {
|
|
47
|
+
id: string;
|
|
48
|
+
name: {
|
|
49
|
+
ja: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export type ICustomerRemorseReturnFees = ReturnFeesEnumeration;
|
|
53
|
+
export type ICustomerRemorseReturnFeesMovieTicket = ReturnFeesEnumeration.FreeReturn | ReturnFeesEnumeration.ReturnFeesCustomerResponsibility;
|
|
54
|
+
export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'sameAs' | 'url'> {
|
|
55
|
+
typeOf: 'MerchantReturnPolicy';
|
|
56
|
+
/**
|
|
57
|
+
* 適用決済方法
|
|
58
|
+
*/
|
|
59
|
+
applicablePaymentMethod?: string[];
|
|
60
|
+
/**
|
|
61
|
+
* The type of return fees if the product is returned due to customer remorse.
|
|
62
|
+
*/
|
|
63
|
+
customerRemorseReturnFees?: ICustomerRemorseReturnFees;
|
|
64
|
+
/**
|
|
65
|
+
* 決済カード着券取消仕様
|
|
66
|
+
*/
|
|
67
|
+
customerRemorseReturnFeesMovieTicket?: ICustomerRemorseReturnFeesMovieTicket;
|
|
68
|
+
/**
|
|
69
|
+
* Are in-store returns offered?
|
|
70
|
+
*/
|
|
71
|
+
inStoreReturnsOffered?: boolean;
|
|
72
|
+
itemCondition?: IItemCondition;
|
|
73
|
+
/**
|
|
74
|
+
* The merchantReturnDays property indicates the number of days (from purchase)
|
|
75
|
+
* within which relevant merchant return policy is applicable. Supersedes productReturnDays.
|
|
76
|
+
*/
|
|
77
|
+
merchantReturnDays?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Indicates a Web page or service by URL, for product return. Supersedes productReturnLink.
|
|
80
|
+
*/
|
|
81
|
+
merchantReturnLink?: string;
|
|
82
|
+
/**
|
|
83
|
+
* A refundType, from an enumerated list.
|
|
84
|
+
*/
|
|
85
|
+
refundType?: RefundTypeEnumeration;
|
|
86
|
+
/**
|
|
87
|
+
* Use MonetaryAmount to specify a fixed restocking fee for product returns,
|
|
88
|
+
* or use Number to specify a percentage of the product price paid by the customer.
|
|
89
|
+
*/
|
|
90
|
+
restockingFee?: IRestockingFee;
|
|
91
|
+
/**
|
|
92
|
+
* Indicates (via enumerated options) the return fees policy for a MerchantReturnPolicy
|
|
93
|
+
*/
|
|
94
|
+
returnFees?: ReturnFeesEnumeration;
|
|
95
|
+
/**
|
|
96
|
+
* A returnPolicyCategory expresses at most one of several enumerated kinds of return.
|
|
97
|
+
*/
|
|
98
|
+
returnPolicyCategory?: MerchantReturnEnumeration;
|
|
99
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MerchantReturnEnumeration = exports.ReturnFeesEnumeration = exports.RefundTypeEnumeration = void 0;
|
|
4
|
+
var RefundTypeEnumeration;
|
|
5
|
+
(function (RefundTypeEnumeration) {
|
|
6
|
+
RefundTypeEnumeration["ExchangeRefund"] = "ExchangeRefund";
|
|
7
|
+
RefundTypeEnumeration["FullRefund"] = "FullRefund";
|
|
8
|
+
RefundTypeEnumeration["StoreCreditRefund"] = "StoreCreditRefund";
|
|
9
|
+
})(RefundTypeEnumeration = exports.RefundTypeEnumeration || (exports.RefundTypeEnumeration = {}));
|
|
10
|
+
var ReturnFeesEnumeration;
|
|
11
|
+
(function (ReturnFeesEnumeration) {
|
|
12
|
+
/**
|
|
13
|
+
* Specifies that product returns are free of charge for the customer.
|
|
14
|
+
*/
|
|
15
|
+
ReturnFeesEnumeration["FreeReturn"] = "FreeReturn";
|
|
16
|
+
// OriginalShippingFees = 'OriginalShippingFees',
|
|
17
|
+
/**
|
|
18
|
+
* Specifies that the customer must pay a restocking fee when returning a product
|
|
19
|
+
*/
|
|
20
|
+
ReturnFeesEnumeration["RestockingFees"] = "RestockingFees";
|
|
21
|
+
/**
|
|
22
|
+
* Specifies that product returns must be paid for, and are the responsibility of, the customer.
|
|
23
|
+
*/
|
|
24
|
+
ReturnFeesEnumeration["ReturnFeesCustomerResponsibility"] = "ReturnFeesCustomerResponsibility";
|
|
25
|
+
// ReturnShippingFees = 'ReturnShippingFees'
|
|
26
|
+
})(ReturnFeesEnumeration = exports.ReturnFeesEnumeration || (exports.ReturnFeesEnumeration = {}));
|
|
27
|
+
/**
|
|
28
|
+
* 返品ポリシーインターフェース
|
|
29
|
+
* {@link https://schema.org/MerchantReturnEnumeration}
|
|
30
|
+
*/
|
|
31
|
+
var MerchantReturnEnumeration;
|
|
32
|
+
(function (MerchantReturnEnumeration) {
|
|
33
|
+
/**
|
|
34
|
+
* there is a finite window for product returns.
|
|
35
|
+
*/
|
|
36
|
+
MerchantReturnEnumeration["MerchantReturnFiniteReturnWindow"] = "MerchantReturnFiniteReturnWindow";
|
|
37
|
+
/**
|
|
38
|
+
* product returns are not permitted.
|
|
39
|
+
*/
|
|
40
|
+
MerchantReturnEnumeration["MerchantReturnNotPermitted"] = "MerchantReturnNotPermitted";
|
|
41
|
+
/**
|
|
42
|
+
* there is an unlimited window for product returns.
|
|
43
|
+
*/
|
|
44
|
+
MerchantReturnEnumeration["MerchantReturnUnlimitedWindow"] = "MerchantReturnUnlimitedWindow";
|
|
45
|
+
/**
|
|
46
|
+
* a product return policy is not specified here.
|
|
47
|
+
*/
|
|
48
|
+
MerchantReturnEnumeration["MerchantReturnUnspecified"] = "MerchantReturnUnspecified";
|
|
49
|
+
})(MerchantReturnEnumeration = exports.MerchantReturnEnumeration || (exports.MerchantReturnEnumeration = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IThing } from './thing';
|
|
2
2
|
/**
|
|
3
3
|
* 金額インターフェース
|
|
4
|
-
* @
|
|
4
|
+
* {@link https://schema.org/MonetaryAmount}
|
|
5
5
|
*/
|
|
6
|
-
export interface IMonetaryAmount extends IThing {
|
|
6
|
+
export interface IMonetaryAmount extends Pick<IThing, 'name'> {
|
|
7
7
|
typeOf: 'MonetaryAmount';
|
|
8
8
|
/**
|
|
9
9
|
* The currency in which the monetary amount is expressed.
|
|
@@ -20,11 +20,11 @@ export interface IMonetaryAmount extends IThing {
|
|
|
20
20
|
/**
|
|
21
21
|
* The date when the item becomes valid.
|
|
22
22
|
*/
|
|
23
|
-
validFrom?:
|
|
23
|
+
validFrom?: Date;
|
|
24
24
|
/**
|
|
25
25
|
* The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
|
|
26
26
|
*/
|
|
27
|
-
validThrough?:
|
|
27
|
+
validThrough?: Date;
|
|
28
28
|
/**
|
|
29
29
|
* The value of the quantitative value or property value node.
|
|
30
30
|
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IOffer } from '../offer';
|
|
2
|
+
import { OfferType } from '../offerType';
|
|
3
|
+
import { IUnitPriceOffer } from '../unitPriceOffer';
|
|
4
|
+
export type ISubOffer = IUnitPriceOffer;
|
|
5
|
+
/**
|
|
6
|
+
* 集計オファー
|
|
7
|
+
*/
|
|
8
|
+
export interface IAggregateOffer extends Pick<IOffer, 'id' | 'typeOf' | 'project'> {
|
|
9
|
+
typeOf: OfferType.AggregateOffer;
|
|
10
|
+
highPrice?: number;
|
|
11
|
+
lowPrice?: number;
|
|
12
|
+
offerCount?: number;
|
|
13
|
+
/**
|
|
14
|
+
* サブオファー
|
|
15
|
+
* 基本的に1つの基本オファーが含まれる
|
|
16
|
+
* 条件によるバリエーションが存在する場合、2つ以上のオファーが含まれる
|
|
17
|
+
*/
|
|
18
|
+
offers: ISubOffer[];
|
|
19
|
+
}
|
|
@@ -1,34 +1,32 @@
|
|
|
1
1
|
import { ICategoryCode } from './categoryCode';
|
|
2
|
-
import ItemAvailability from './itemAvailability';
|
|
2
|
+
import { ItemAvailability } from './itemAvailability';
|
|
3
3
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
4
|
+
import { IMultilingualString } from './multilingualString';
|
|
5
|
+
import { OfferType } from './offerType';
|
|
6
|
+
import { OrganizationType } from './organizationType';
|
|
7
|
+
import { PriceCurrency } from './priceCurrency';
|
|
7
8
|
import { IPriceSpecification } from './priceSpecification';
|
|
8
|
-
import PriceSpecificationType from './priceSpecificationType';
|
|
9
|
+
import { PriceSpecificationType } from './priceSpecificationType';
|
|
10
|
+
import { IProduct } from './product';
|
|
9
11
|
import { IProject } from './project';
|
|
10
12
|
import { IPropertyValue } from './propertyValue';
|
|
11
13
|
import { IQuantitativeValue } from './quantitativeValue';
|
|
12
|
-
import
|
|
14
|
+
import * as WebAPIFactory from './service/webAPI';
|
|
13
15
|
import { IThing } from './thing';
|
|
14
16
|
import { UnitCode } from './unitCode';
|
|
15
17
|
/**
|
|
16
|
-
*
|
|
18
|
+
* オファーカテゴリー
|
|
17
19
|
*/
|
|
18
20
|
export interface ICategory {
|
|
19
|
-
project: IProject;
|
|
20
21
|
id?: string;
|
|
21
22
|
codeValue?: string;
|
|
22
|
-
name?: any;
|
|
23
23
|
}
|
|
24
|
+
export type IEligibleCategoryCode = Pick<ICategoryCode, 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'>;
|
|
25
|
+
export type IEligibleMonetaryAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> & {
|
|
26
|
+
value: number;
|
|
27
|
+
};
|
|
24
28
|
/**
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
export declare type IAddOn = IOffer;
|
|
28
|
-
export declare type IEligibleCategoryCode = ICategoryCode;
|
|
29
|
-
export declare type IEligibleMonetaryAmount = IMonetaryAmount;
|
|
30
|
-
/**
|
|
31
|
-
* 適用サブ予約条件インターフェース
|
|
29
|
+
* 適用サブ予約条件
|
|
32
30
|
*/
|
|
33
31
|
export interface IEligibleSubReservation {
|
|
34
32
|
/**
|
|
@@ -42,21 +40,71 @@ export interface IEligibleSubReservation {
|
|
|
42
40
|
seatingType: string;
|
|
43
41
|
};
|
|
44
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* 販売者
|
|
45
|
+
*/
|
|
46
|
+
export interface ISeller {
|
|
47
|
+
typeOf?: OrganizationType.Corporation;
|
|
48
|
+
id?: string;
|
|
49
|
+
}
|
|
50
|
+
export type IOfferedThrough = WebAPIFactory.IService<WebAPIFactory.Identifier>;
|
|
51
|
+
/**
|
|
52
|
+
* レート制限
|
|
53
|
+
* どのスコープで何秒に1席までか
|
|
54
|
+
*/
|
|
55
|
+
export interface IValidRateLimit {
|
|
56
|
+
scope: string;
|
|
57
|
+
unitInSeconds: number;
|
|
58
|
+
}
|
|
59
|
+
export interface IAvailableAtOrFrom {
|
|
60
|
+
/**
|
|
61
|
+
* アプリケーションID
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
}
|
|
65
|
+
export type IItemOffered4addOn = Pick<IProduct, 'description' | 'id' | 'name' | 'productID' | 'typeOf'>;
|
|
66
|
+
/**
|
|
67
|
+
* アドオン
|
|
68
|
+
*/
|
|
69
|
+
export interface IAddOn {
|
|
70
|
+
/**
|
|
71
|
+
* コード
|
|
72
|
+
*/
|
|
73
|
+
identifier: string;
|
|
74
|
+
typeOf: OfferType.Offer;
|
|
75
|
+
id: string;
|
|
76
|
+
itemOffered: IItemOffered4addOn;
|
|
77
|
+
priceCurrency: PriceCurrency;
|
|
78
|
+
priceSpecification?: IPriceSpecification<PriceSpecificationType>;
|
|
79
|
+
validFrom?: Date;
|
|
80
|
+
validThrough?: Date;
|
|
81
|
+
}
|
|
82
|
+
export type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode'>;
|
|
83
|
+
export type IName = IMultilingualString;
|
|
84
|
+
/**
|
|
85
|
+
* 利用可能決済方法
|
|
86
|
+
*/
|
|
87
|
+
export interface IAcceptedPaymentMethod {
|
|
88
|
+
/**
|
|
89
|
+
* 決済方法区分コード
|
|
90
|
+
*/
|
|
91
|
+
identifier: string;
|
|
92
|
+
}
|
|
45
93
|
/**
|
|
46
94
|
* offer interface
|
|
47
95
|
* An offer to transfer some rights to an item or to provide a service
|
|
48
96
|
* — for example, an offer to sell tickets to an event, to rent the DVD of a movie,
|
|
49
97
|
* to stream a TV show over the internet, to repair a motorcycle, or to loan a book.
|
|
50
|
-
* @
|
|
98
|
+
* {@link https://schema.org/Offer}
|
|
51
99
|
*/
|
|
52
|
-
export interface IOffer extends IThing {
|
|
53
|
-
project: IProject
|
|
100
|
+
export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternateName' | 'color' | 'identifier'> {
|
|
101
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
54
102
|
typeOf: OfferType;
|
|
55
103
|
id?: string;
|
|
56
104
|
/**
|
|
57
105
|
* The payment method(s) accepted by seller for this offer.
|
|
58
106
|
*/
|
|
59
|
-
acceptedPaymentMethod?:
|
|
107
|
+
acceptedPaymentMethod?: IAcceptedPaymentMethod[];
|
|
60
108
|
/**
|
|
61
109
|
* An additional offer that can only be obtained in combination with the first base offer
|
|
62
110
|
* (e.g. supplements and extensions that are available for a surcharge).
|
|
@@ -65,7 +113,7 @@ export interface IOffer extends IThing {
|
|
|
65
113
|
/**
|
|
66
114
|
* The availability of this item—for example In stock, Out of stock, Pre-order, etc.
|
|
67
115
|
*/
|
|
68
|
-
availability?: ItemAvailability
|
|
116
|
+
availability?: ItemAvailability;
|
|
69
117
|
/**
|
|
70
118
|
* The end of the availability of the product or service included in the offer.
|
|
71
119
|
*/
|
|
@@ -77,7 +125,7 @@ export interface IOffer extends IThing {
|
|
|
77
125
|
/**
|
|
78
126
|
* The place(s) from which the offer can be obtained (e.g. store locations).
|
|
79
127
|
*/
|
|
80
|
-
availableAtOrFrom?:
|
|
128
|
+
availableAtOrFrom?: IAvailableAtOrFrom[];
|
|
81
129
|
/**
|
|
82
130
|
* A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
|
|
83
131
|
*/
|
|
@@ -85,11 +133,10 @@ export interface IOffer extends IThing {
|
|
|
85
133
|
/**
|
|
86
134
|
* 有効な顧客タイプ
|
|
87
135
|
*/
|
|
88
|
-
eligibleCustomerType?: any;
|
|
89
136
|
/**
|
|
90
|
-
*
|
|
137
|
+
* 有効なメンバーシップタイプ
|
|
91
138
|
*/
|
|
92
|
-
|
|
139
|
+
eligibleMembershipType?: IEligibleCategoryCode[];
|
|
93
140
|
/**
|
|
94
141
|
* 有効な座席タイプ
|
|
95
142
|
*/
|
|
@@ -108,17 +155,18 @@ export interface IOffer extends IThing {
|
|
|
108
155
|
*/
|
|
109
156
|
eligibleDuration?: IQuantitativeValue<UnitCode.Sec>;
|
|
110
157
|
/**
|
|
111
|
-
*
|
|
158
|
+
* 適用数量
|
|
112
159
|
*/
|
|
113
|
-
eligibleQuantity?:
|
|
114
|
-
/**
|
|
115
|
-
* オファーが有効となる地域
|
|
116
|
-
*/
|
|
117
|
-
eligibleRegion?: any;
|
|
160
|
+
eligibleQuantity?: IEligibleQuantity;
|
|
118
161
|
/**
|
|
119
162
|
* The item being offered.
|
|
120
163
|
*/
|
|
121
164
|
itemOffered?: any;
|
|
165
|
+
name?: IName;
|
|
166
|
+
/**
|
|
167
|
+
* オファー供給サービス
|
|
168
|
+
*/
|
|
169
|
+
offeredThrough?: IOfferedThrough;
|
|
122
170
|
/**
|
|
123
171
|
* The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.
|
|
124
172
|
*/
|
|
@@ -132,6 +180,14 @@ export interface IOffer extends IThing {
|
|
|
132
180
|
* One or more detailed price specifications, indicating the unit price and delivery or payment charges.
|
|
133
181
|
*/
|
|
134
182
|
priceSpecification?: IPriceSpecification<PriceSpecificationType>;
|
|
183
|
+
/**
|
|
184
|
+
* An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
|
|
185
|
+
*/
|
|
186
|
+
seller?: ISeller;
|
|
187
|
+
/**
|
|
188
|
+
* The payment method(s) unaccepted by seller for this offer.
|
|
189
|
+
*/
|
|
190
|
+
unacceptedPaymentMethod?: string[];
|
|
135
191
|
/**
|
|
136
192
|
* The date when the item becomes valid.
|
|
137
193
|
*/
|
|
@@ -143,67 +199,10 @@ export interface IOffer extends IThing {
|
|
|
143
199
|
/**
|
|
144
200
|
* レート制限
|
|
145
201
|
*/
|
|
146
|
-
validRateLimit?:
|
|
202
|
+
validRateLimit?: IValidRateLimit;
|
|
147
203
|
/**
|
|
148
204
|
* A property-value pair representing an additional characteristics of the entitity,
|
|
149
205
|
* e.g. a product feature or another characteristic for which there is no matching property in schema.org.
|
|
150
206
|
*/
|
|
151
207
|
additionalProperty?: IPropertyValue<string>[];
|
|
152
208
|
}
|
|
153
|
-
/**
|
|
154
|
-
* ソート条件インターフェース
|
|
155
|
-
*/
|
|
156
|
-
export interface ISortOrder {
|
|
157
|
-
'priceSpecification.price'?: SortType;
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* 価格仕様検索条件インターフェース
|
|
161
|
-
*/
|
|
162
|
-
export interface IPriceSpecificationSearchConditions {
|
|
163
|
-
price?: {
|
|
164
|
-
$gte?: number;
|
|
165
|
-
$lte?: number;
|
|
166
|
-
};
|
|
167
|
-
referenceQuantity?: {
|
|
168
|
-
value?: {
|
|
169
|
-
$eq?: number;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
accounting?: {
|
|
173
|
-
accountsReceivable?: {
|
|
174
|
-
$gte?: number;
|
|
175
|
-
$lte?: number;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* 検索条件インターフェース
|
|
181
|
-
*/
|
|
182
|
-
export interface ISearchConditions {
|
|
183
|
-
limit?: number;
|
|
184
|
-
page?: number;
|
|
185
|
-
sort?: ISortOrder;
|
|
186
|
-
project?: {
|
|
187
|
-
id?: {
|
|
188
|
-
$eq?: string;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
id?: {
|
|
192
|
-
$eq?: string;
|
|
193
|
-
$in?: string[];
|
|
194
|
-
};
|
|
195
|
-
identifier?: {
|
|
196
|
-
$eq?: string;
|
|
197
|
-
};
|
|
198
|
-
priceSpecification?: IPriceSpecificationSearchConditions;
|
|
199
|
-
category?: {
|
|
200
|
-
codeValue?: {
|
|
201
|
-
$in?: string[];
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
itemOffered?: {
|
|
205
|
-
typeOf?: {
|
|
206
|
-
$eq?: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
}
|
package/lib/offer.js
ADDED