@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IExtendId } from '../../autoGenerated';
|
|
2
|
+
import { IAccount } from '../action/moneyTransfer';
|
|
3
|
+
import * as TransactionFactory from '../transaction';
|
|
4
|
+
import { AccountTransactionType } from '../transactionType';
|
|
5
|
+
export type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AccountTransactionType.Transfer, IObjectWithoutDetail>;
|
|
6
|
+
/**
|
|
7
|
+
* 取引開始パラメーター
|
|
8
|
+
*/
|
|
9
|
+
export type IStartParams = TransactionFactory.IStartParams<AccountTransactionType.Transfer, IObject>;
|
|
10
|
+
export interface IObjectWithoutDetail extends TransactionFactory.IObjectWithoutDetail {
|
|
11
|
+
fromLocation: TransactionFactory.ISimpleAccount;
|
|
12
|
+
toLocation: TransactionFactory.ISimpleAccount;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 取引対象物
|
|
16
|
+
*/
|
|
17
|
+
export interface IObject extends TransactionFactory.IObject {
|
|
18
|
+
/**
|
|
19
|
+
* 転送元
|
|
20
|
+
*/
|
|
21
|
+
fromLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
|
|
22
|
+
/**
|
|
23
|
+
* 転送先
|
|
24
|
+
*/
|
|
25
|
+
toLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 転送取引
|
|
29
|
+
*/
|
|
30
|
+
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams> {
|
|
31
|
+
}
|
|
32
|
+
export type ITransaction = IExtendId<IAttributes>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IExtendId } from '../../autoGenerated';
|
|
2
|
+
import { IAccount } from '../action/moneyTransfer';
|
|
3
|
+
import * as TransactionFactory from '../transaction';
|
|
4
|
+
import { AccountTransactionType } from '../transactionType';
|
|
5
|
+
export type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AccountTransactionType.Withdraw, IObjectWithoutDetail>;
|
|
6
|
+
/**
|
|
7
|
+
* 取引開始パラメーター
|
|
8
|
+
*/
|
|
9
|
+
export type IStartParams = TransactionFactory.IStartParams<AccountTransactionType.Withdraw, IObject>;
|
|
10
|
+
export interface IObjectWithoutDetail extends TransactionFactory.IObjectWithoutDetail {
|
|
11
|
+
fromLocation: TransactionFactory.ISimpleAccount;
|
|
12
|
+
/**
|
|
13
|
+
* 利用可能金額確認をしない場合、force: true
|
|
14
|
+
*/
|
|
15
|
+
force?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 取引対象物
|
|
19
|
+
*/
|
|
20
|
+
export interface IObject extends TransactionFactory.IObject {
|
|
21
|
+
/**
|
|
22
|
+
* 出金元
|
|
23
|
+
*/
|
|
24
|
+
fromLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 出金取引
|
|
28
|
+
*/
|
|
29
|
+
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams> {
|
|
30
|
+
}
|
|
31
|
+
export type ITransaction = IExtendId<IAttributes>;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { IExtendId } from '../autoGenerated';
|
|
2
|
+
import { OrganizationType } from '../organizationType';
|
|
3
|
+
import { SortType } from '../sortType';
|
|
4
|
+
import { TransactionStatusType } from '../transactionStatusType';
|
|
5
|
+
import * as MoneyTransferActionFactory from './action/moneyTransfer';
|
|
6
|
+
import { AccountTransactionType } from './transactionType';
|
|
7
|
+
export import IAgent = MoneyTransferActionFactory.IAgent;
|
|
8
|
+
export import IRecipient = MoneyTransferActionFactory.IRecipient;
|
|
9
|
+
export interface ISimpleAccount {
|
|
10
|
+
accountNumber: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IProject {
|
|
13
|
+
id: string;
|
|
14
|
+
typeOf: OrganizationType.Project;
|
|
15
|
+
}
|
|
16
|
+
export interface IObjectWithoutDetail {
|
|
17
|
+
amount: {
|
|
18
|
+
value: number;
|
|
19
|
+
};
|
|
20
|
+
description?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IObject {
|
|
23
|
+
/**
|
|
24
|
+
* 金額
|
|
25
|
+
*/
|
|
26
|
+
amount: {
|
|
27
|
+
value: number;
|
|
28
|
+
};
|
|
29
|
+
description?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 口座取引開始パラメータ
|
|
33
|
+
*/
|
|
34
|
+
export interface IStartParams<T extends AccountTransactionType, TObject extends IObject> {
|
|
35
|
+
project: IProject;
|
|
36
|
+
/**
|
|
37
|
+
* 取引タイプ
|
|
38
|
+
*/
|
|
39
|
+
typeOf: T;
|
|
40
|
+
/**
|
|
41
|
+
* 取引識別子
|
|
42
|
+
* 同識別子に対する進行中取引のユニークネスは保証される
|
|
43
|
+
*/
|
|
44
|
+
identifier?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 取引番号
|
|
47
|
+
* サービス使用側が指定するグローバルユニークな番号
|
|
48
|
+
* 必須化(2022-09-26~)
|
|
49
|
+
*/
|
|
50
|
+
transactionNumber: string;
|
|
51
|
+
/**
|
|
52
|
+
* 取引主体
|
|
53
|
+
*/
|
|
54
|
+
agent: IAgent;
|
|
55
|
+
/**
|
|
56
|
+
* 取引物受取者
|
|
57
|
+
*/
|
|
58
|
+
recipient: IRecipient;
|
|
59
|
+
/**
|
|
60
|
+
* 取引対象
|
|
61
|
+
*/
|
|
62
|
+
object: TObject;
|
|
63
|
+
/**
|
|
64
|
+
* 取引進行期限
|
|
65
|
+
*/
|
|
66
|
+
expires: Date;
|
|
67
|
+
}
|
|
68
|
+
export interface IPotentialActions {
|
|
69
|
+
moneyTransfer: MoneyTransferActionFactory.IAttributes;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* 口座取引属性
|
|
73
|
+
*/
|
|
74
|
+
export type IAttributes<TStartParams> = TStartParams & {
|
|
75
|
+
/**
|
|
76
|
+
* 取引状態
|
|
77
|
+
*/
|
|
78
|
+
status: TransactionStatusType;
|
|
79
|
+
/**
|
|
80
|
+
* 取引開始日時
|
|
81
|
+
*/
|
|
82
|
+
startDate: Date;
|
|
83
|
+
/**
|
|
84
|
+
* 取引終了日時
|
|
85
|
+
*/
|
|
86
|
+
endDate?: Date;
|
|
87
|
+
/**
|
|
88
|
+
* 事後に発生するアクション
|
|
89
|
+
*/
|
|
90
|
+
potentialActions?: IPotentialActions;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* 口座取引
|
|
94
|
+
*/
|
|
95
|
+
export type ITransaction<TStartParams> = IExtendId<IAttributes<TStartParams>>;
|
|
96
|
+
export interface ISortOrder {
|
|
97
|
+
startDate?: SortType;
|
|
98
|
+
}
|
|
99
|
+
export interface ISearchConditions {
|
|
100
|
+
limit?: number;
|
|
101
|
+
page?: number;
|
|
102
|
+
sort?: ISortOrder;
|
|
103
|
+
project?: {
|
|
104
|
+
id?: {
|
|
105
|
+
$eq?: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
typeOf?: {
|
|
109
|
+
$eq?: AccountTransactionType;
|
|
110
|
+
};
|
|
111
|
+
status?: {
|
|
112
|
+
$in?: TransactionStatusType[];
|
|
113
|
+
};
|
|
114
|
+
startDate?: {
|
|
115
|
+
$gte?: Date;
|
|
116
|
+
$lte?: Date;
|
|
117
|
+
};
|
|
118
|
+
identifier?: {
|
|
119
|
+
$eq?: string;
|
|
120
|
+
};
|
|
121
|
+
transactionNumber?: {
|
|
122
|
+
$eq?: string;
|
|
123
|
+
};
|
|
124
|
+
object?: {
|
|
125
|
+
fromLocation?: {
|
|
126
|
+
accountNumber?: {
|
|
127
|
+
$eq?: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
toLocation?: {
|
|
131
|
+
accountNumber?: {
|
|
132
|
+
$eq?: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
location?: {
|
|
136
|
+
/**
|
|
137
|
+
* 口座番号
|
|
138
|
+
*/
|
|
139
|
+
accountNumber?: {
|
|
140
|
+
$eq?: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountTransactionType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* 口座取引タイプ
|
|
6
|
+
*/
|
|
7
|
+
var AccountTransactionType;
|
|
8
|
+
(function (AccountTransactionType) {
|
|
9
|
+
/**
|
|
10
|
+
* 出金取引
|
|
11
|
+
*/
|
|
12
|
+
AccountTransactionType["Withdraw"] = "Withdraw";
|
|
13
|
+
/**
|
|
14
|
+
* 入金取引
|
|
15
|
+
*/
|
|
16
|
+
AccountTransactionType["Deposit"] = "Deposit";
|
|
17
|
+
/**
|
|
18
|
+
* 転送取引
|
|
19
|
+
*/
|
|
20
|
+
AccountTransactionType["Transfer"] = "Transfer";
|
|
21
|
+
})(AccountTransactionType = exports.AccountTransactionType || (exports.AccountTransactionType = {}));
|
package/lib/account.d.ts
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { AccountTransactionType } from './account/transactionType';
|
|
2
|
+
import { AccountType } from './accountType';
|
|
3
|
+
import { IProject } from './project';
|
|
4
|
+
import { SortType } from './sortType';
|
|
5
|
+
import * as MoneyTransferActionFactory from './account/action/moneyTransfer';
|
|
6
|
+
import * as TransactionFactory from './account/transaction';
|
|
7
|
+
import * as DepositTransactionFactory from './account/transaction/deposit';
|
|
8
|
+
import * as TransferTransactionFactory from './account/transaction/transfer';
|
|
9
|
+
import * as WithdrawTransactionFactory from './account/transaction/withdraw';
|
|
10
|
+
/**
|
|
11
|
+
* 口座ステータスタイプ
|
|
12
|
+
*/
|
|
13
|
+
export declare namespace action {
|
|
14
|
+
export import moneyTransfer = MoneyTransferActionFactory;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace transaction {
|
|
17
|
+
export import IAgent = TransactionFactory.IAgent;
|
|
18
|
+
export import IRecipient = TransactionFactory.IRecipient;
|
|
19
|
+
export import IPotentialActions = TransactionFactory.IPotentialActions;
|
|
20
|
+
type ISearchConditions = TransactionFactory.ISearchConditions;
|
|
21
|
+
type IStartParamsWithoutDetail<T extends AccountTransactionType> = T extends AccountTransactionType.Deposit ? DepositTransactionFactory.IStartParamsWithoutDetail : T extends AccountTransactionType.Withdraw ? WithdrawTransactionFactory.IStartParamsWithoutDetail : T extends AccountTransactionType.Transfer ? TransferTransactionFactory.IStartParamsWithoutDetail : never;
|
|
22
|
+
type IStartParams<T extends AccountTransactionType> = T extends AccountTransactionType.Deposit ? DepositTransactionFactory.IStartParams : T extends AccountTransactionType.Withdraw ? WithdrawTransactionFactory.IStartParams : T extends AccountTransactionType.Transfer ? TransferTransactionFactory.IStartParams : never;
|
|
23
|
+
type IAttributes<T> = T extends AccountTransactionType.Deposit ? DepositTransactionFactory.IAttributes : T extends AccountTransactionType.Withdraw ? WithdrawTransactionFactory.IAttributes : T extends AccountTransactionType.Transfer ? TransferTransactionFactory.IAttributes : never;
|
|
24
|
+
type ITransaction<T> = T extends AccountTransactionType.Deposit ? DepositTransactionFactory.ITransaction : T extends AccountTransactionType.Withdraw ? WithdrawTransactionFactory.ITransaction : T extends AccountTransactionType.Transfer ? TransferTransactionFactory.ITransaction : never;
|
|
25
|
+
export import withdraw = WithdrawTransactionFactory;
|
|
26
|
+
export import deposit = DepositTransactionFactory;
|
|
27
|
+
export import transfer = TransferTransactionFactory;
|
|
28
|
+
}
|
|
29
|
+
export import transactionType = AccountTransactionType;
|
|
30
|
+
/**
|
|
31
|
+
* 進行中取引
|
|
32
|
+
*/
|
|
33
|
+
export interface IPendingTransaction {
|
|
34
|
+
typeOf: AccountTransactionType;
|
|
35
|
+
/**
|
|
36
|
+
* 取引ID
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* 取引金額
|
|
41
|
+
*/
|
|
42
|
+
amount: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 口座
|
|
46
|
+
*/
|
|
47
|
+
export interface IAccount {
|
|
48
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
49
|
+
/**
|
|
50
|
+
* 口座種別
|
|
51
|
+
*/
|
|
52
|
+
typeOf: AccountType.Account;
|
|
53
|
+
/**
|
|
54
|
+
* 通貨
|
|
55
|
+
*/
|
|
56
|
+
accountType: string;
|
|
57
|
+
/**
|
|
58
|
+
* 口座番号
|
|
59
|
+
*/
|
|
60
|
+
accountNumber: string;
|
|
61
|
+
/**
|
|
62
|
+
* 口座名義
|
|
63
|
+
*/
|
|
64
|
+
name: string;
|
|
65
|
+
/**
|
|
66
|
+
* 残高
|
|
67
|
+
*/
|
|
68
|
+
balance: number;
|
|
69
|
+
/**
|
|
70
|
+
* 利用可能残高
|
|
71
|
+
*/
|
|
72
|
+
availableBalance: number;
|
|
73
|
+
/**
|
|
74
|
+
* 進行中取引リスト
|
|
75
|
+
*/
|
|
76
|
+
pendingTransactions?: IPendingTransaction[];
|
|
77
|
+
/**
|
|
78
|
+
* 口座開設日時
|
|
79
|
+
*/
|
|
80
|
+
openDate: Date;
|
|
81
|
+
/**
|
|
82
|
+
* 口座閉鎖日時
|
|
83
|
+
*/
|
|
84
|
+
closeDate?: Date;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* ソート条件
|
|
88
|
+
*/
|
|
89
|
+
export interface ISortOrder {
|
|
90
|
+
/**
|
|
91
|
+
* 開設日時順
|
|
92
|
+
*/
|
|
93
|
+
openDate?: SortType;
|
|
94
|
+
}
|
|
95
|
+
export interface IProjectSearchConditions {
|
|
96
|
+
id?: {
|
|
97
|
+
$eq?: string;
|
|
98
|
+
$ne?: string;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* 口座検索条件
|
|
103
|
+
*/
|
|
104
|
+
export interface ISearchConditions {
|
|
105
|
+
limit?: number;
|
|
106
|
+
page?: number;
|
|
107
|
+
sort?: ISortOrder;
|
|
108
|
+
accountNumber?: {
|
|
109
|
+
$eq?: string;
|
|
110
|
+
$in?: string[];
|
|
111
|
+
$regex?: string;
|
|
112
|
+
};
|
|
113
|
+
accountNumbers?: string[];
|
|
114
|
+
accountType?: string;
|
|
115
|
+
name?: {
|
|
116
|
+
$regex?: string;
|
|
117
|
+
};
|
|
118
|
+
openDate?: {
|
|
119
|
+
$gte?: Date;
|
|
120
|
+
$lte?: Date;
|
|
121
|
+
};
|
|
122
|
+
project?: IProjectSearchConditions;
|
|
123
|
+
typeOf?: {
|
|
124
|
+
$eq?: string;
|
|
125
|
+
$in?: string[];
|
|
126
|
+
};
|
|
127
|
+
}
|
package/lib/account.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transactionType = exports.transaction = exports.action = void 0;
|
|
4
|
+
var transactionType_1 = require("./account/transactionType");
|
|
5
|
+
var MoneyTransferActionFactory = require("./account/action/moneyTransfer");
|
|
6
|
+
var DepositTransactionFactory = require("./account/transaction/deposit");
|
|
7
|
+
var TransferTransactionFactory = require("./account/transaction/transfer");
|
|
8
|
+
var WithdrawTransactionFactory = require("./account/transaction/withdraw");
|
|
9
|
+
/**
|
|
10
|
+
* 口座ステータスタイプ
|
|
11
|
+
*/
|
|
12
|
+
// export enum AccountStatusType {
|
|
13
|
+
// /**
|
|
14
|
+
// * 開設済
|
|
15
|
+
// */
|
|
16
|
+
// Opened = 'Opened',
|
|
17
|
+
// /**
|
|
18
|
+
// * 解約済
|
|
19
|
+
// */
|
|
20
|
+
// Closed = 'Closed'
|
|
21
|
+
// }
|
|
22
|
+
var action;
|
|
23
|
+
(function (action) {
|
|
24
|
+
action.moneyTransfer = MoneyTransferActionFactory;
|
|
25
|
+
})(action = exports.action || (exports.action = {}));
|
|
26
|
+
var transaction;
|
|
27
|
+
(function (transaction) {
|
|
28
|
+
transaction.withdraw = WithdrawTransactionFactory;
|
|
29
|
+
transaction.deposit = DepositTransactionFactory;
|
|
30
|
+
transaction.transfer = TransferTransactionFactory;
|
|
31
|
+
})(transaction = exports.transaction || (exports.transaction = {}));
|
|
32
|
+
exports.transactionType = transactionType_1.AccountTransactionType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IProject } from './project';
|
|
2
2
|
import { IPropertyValue } from './propertyValue';
|
|
3
|
-
import SortType from './sortType';
|
|
3
|
+
import { SortType } from './sortType';
|
|
4
4
|
export interface IDefinedTerm {
|
|
5
5
|
typeOf: 'DefinedTerm';
|
|
6
6
|
termCode: string;
|
|
@@ -9,10 +9,10 @@ export interface IDefinedTerm {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* 勘定科目インターフェース
|
|
12
|
-
* @
|
|
12
|
+
* {@link https://pending.schema.org/CategoryCode}
|
|
13
13
|
*/
|
|
14
14
|
export interface IAccountTitle {
|
|
15
|
-
project: IProject
|
|
15
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
16
16
|
typeOf: 'AccountTitle';
|
|
17
17
|
/**
|
|
18
18
|
* A short textual code that uniquely identifies the value.
|
|
@@ -45,21 +45,22 @@ export interface IAccountTitle {
|
|
|
45
45
|
additionalProperty?: IPropertyValue<string>[];
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* ソート条件
|
|
49
49
|
*/
|
|
50
50
|
export interface ISortOrder {
|
|
51
51
|
codeValue?: SortType;
|
|
52
|
-
name?: SortType;
|
|
53
52
|
}
|
|
54
53
|
/**
|
|
55
|
-
*
|
|
54
|
+
* 検索条件
|
|
56
55
|
*/
|
|
57
56
|
export interface ISearchConditions {
|
|
58
57
|
limit?: number;
|
|
59
58
|
page?: number;
|
|
60
59
|
sort?: ISortOrder;
|
|
61
60
|
project?: {
|
|
62
|
-
|
|
61
|
+
id?: {
|
|
62
|
+
$eq?: string;
|
|
63
|
+
};
|
|
63
64
|
};
|
|
64
65
|
codeValue?: string | {
|
|
65
66
|
$eq?: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 予約済の口座タイプ
|
|
3
|
+
*/
|
|
4
|
+
export declare enum AccountType {
|
|
5
|
+
Account = "Account",
|
|
6
|
+
Checking = "Checking",
|
|
7
|
+
Current = "Current",
|
|
8
|
+
Deposit = "Deposit",
|
|
9
|
+
Loan = "Loan",
|
|
10
|
+
Personal = "Personal",
|
|
11
|
+
Prepaid = "Prepaid",
|
|
12
|
+
Savings = "Savings",
|
|
13
|
+
Transaction = "Transaction",
|
|
14
|
+
Transactional = "Transactional"
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* 予約済の口座タイプ
|
|
6
|
+
*/
|
|
7
|
+
var AccountType;
|
|
8
|
+
(function (AccountType) {
|
|
9
|
+
AccountType["Account"] = "Account";
|
|
10
|
+
AccountType["Checking"] = "Checking";
|
|
11
|
+
AccountType["Current"] = "Current";
|
|
12
|
+
AccountType["Deposit"] = "Deposit";
|
|
13
|
+
AccountType["Loan"] = "Loan";
|
|
14
|
+
AccountType["Personal"] = "Personal";
|
|
15
|
+
AccountType["Prepaid"] = "Prepaid";
|
|
16
|
+
AccountType["Savings"] = "Savings";
|
|
17
|
+
AccountType["Transaction"] = "Transaction";
|
|
18
|
+
AccountType["Transactional"] = "Transactional";
|
|
19
|
+
})(AccountType = exports.AccountType || (exports.AccountType = {}));
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as ActionFactory from '../../../action';
|
|
2
|
+
import { ActionType } from '../../../actionType';
|
|
3
|
+
import { TransactionType } from '../../../transactionType';
|
|
4
|
+
import * as AuthorizeActionFactory from '../../authorize';
|
|
5
|
+
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
6
|
+
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
7
|
+
export declare enum ObjectType {
|
|
8
|
+
PointAward = "PointAward"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* オーソリ対象
|
|
12
|
+
*/
|
|
13
|
+
export interface IObject {
|
|
14
|
+
typeOf: ObjectType;
|
|
15
|
+
/**
|
|
16
|
+
* 金額
|
|
17
|
+
*/
|
|
18
|
+
amount: number;
|
|
19
|
+
/**
|
|
20
|
+
* 入金先カード番号
|
|
21
|
+
*/
|
|
22
|
+
toAccountNumber: string;
|
|
23
|
+
/**
|
|
24
|
+
* 説明
|
|
25
|
+
*/
|
|
26
|
+
notes?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface IResult {
|
|
29
|
+
price: number;
|
|
30
|
+
amount: number;
|
|
31
|
+
}
|
|
32
|
+
export interface IPurpose {
|
|
33
|
+
typeOf: TransactionType;
|
|
34
|
+
id: string;
|
|
35
|
+
}
|
|
36
|
+
export type IError = any;
|
|
37
|
+
/**
|
|
38
|
+
* ポイントインセンティブ承認アクション属性
|
|
39
|
+
*/
|
|
40
|
+
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
41
|
+
typeOf: ActionType.AuthorizeAction;
|
|
42
|
+
object: IObject;
|
|
43
|
+
agent: IAgent;
|
|
44
|
+
recipient: IRecipient;
|
|
45
|
+
purpose: IPurpose;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* ポイントインセンティブ承認アクション
|
|
49
|
+
* 注文取引のインセンティブとしてポイントを付与する場合に使用されます。
|
|
50
|
+
*/
|
|
51
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as ActionFactory from '../../../action';
|
|
2
|
+
import { ActionType } from '../../../actionType';
|
|
3
|
+
import * as MoneyTransferTransactionFactory from '../../../assetTransaction/moneyTransfer';
|
|
4
|
+
import { IOffer } from '../../../offer';
|
|
5
|
+
import * as OrderFactory from '../../../order';
|
|
6
|
+
import { PriceCurrency } from '../../../priceCurrency';
|
|
7
|
+
import { TransactionType } from '../../../transactionType';
|
|
8
|
+
import * as AuthorizeActionFactory from '../../authorize';
|
|
9
|
+
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsSeller;
|
|
10
|
+
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
11
|
+
export type IRequestBody = any;
|
|
12
|
+
export type IResponseBody = MoneyTransferTransactionFactory.ITransaction;
|
|
13
|
+
export import IPendingTransaction = OrderFactory.IMoneyTransferPendingTransaction;
|
|
14
|
+
export interface IResult {
|
|
15
|
+
price: number;
|
|
16
|
+
priceCurrency: PriceCurrency;
|
|
17
|
+
requestBody?: IRequestBody;
|
|
18
|
+
responseBody: IResponseBody;
|
|
19
|
+
}
|
|
20
|
+
export import IItemOffered = OrderFactory.IMoneyTransfer;
|
|
21
|
+
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
|
|
22
|
+
itemOffered: IItemOffered;
|
|
23
|
+
seller: ActionFactory.IParticipantAsSeller;
|
|
24
|
+
}
|
|
25
|
+
export type IObject = IAcceptedOffer;
|
|
26
|
+
export interface ITransactionPurpose {
|
|
27
|
+
typeOf: TransactionType;
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
export type IPurpose = ITransactionPurpose;
|
|
31
|
+
export type IError = any;
|
|
32
|
+
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
33
|
+
typeOf: ActionType.AuthorizeAction;
|
|
34
|
+
agent: IAgent;
|
|
35
|
+
recipient: IRecipient;
|
|
36
|
+
object: IObject;
|
|
37
|
+
purpose: IPurpose;
|
|
38
|
+
}
|
|
39
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as ActionFactory from '../../../action';
|
|
2
|
+
import { ActionType } from '../../../actionType';
|
|
3
|
+
import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
|
|
4
|
+
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
5
|
+
import { IOffer } from '../../../offer';
|
|
6
|
+
import * as OrderFactory from '../../../order';
|
|
7
|
+
import { IIssuedThroughAsProduct, IPermit } from '../../../permit';
|
|
8
|
+
import { PriceCurrency } from '../../../priceCurrency';
|
|
9
|
+
import { IProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
|
|
10
|
+
import { ISeller } from '../../../seller';
|
|
11
|
+
import { TransactionType } from '../../../transactionType';
|
|
12
|
+
import * as AuthorizeActionFactory from '../../authorize';
|
|
13
|
+
import { IPointAward } from '../../transfer/moneyTransfer';
|
|
14
|
+
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
15
|
+
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
16
|
+
export type IPermitIssuedByProduct = Omit<IPermit, 'issuedThrough'> & {
|
|
17
|
+
issuedThrough?: IIssuedThroughAsProduct;
|
|
18
|
+
};
|
|
19
|
+
export type IItemOffered = Pick<IProduct, 'typeOf' | 'id' | 'name'> & {
|
|
20
|
+
serviceOutput: IProductServiceOutput & IPermitIssuedByProduct;
|
|
21
|
+
pointAward?: IPointAward;
|
|
22
|
+
};
|
|
23
|
+
export type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
|
|
24
|
+
export type ISellerMakesOffer = Pick<ISeller, 'id' | 'name' | 'typeOf'>;
|
|
25
|
+
export interface IAcceptedOffer extends Pick<IOffer, 'typeOf' | 'id' | 'identifier' | 'itemOffered' | 'name' | 'priceCurrency' | 'seller'> {
|
|
26
|
+
/**
|
|
27
|
+
* オファーコード
|
|
28
|
+
*/
|
|
29
|
+
identifier?: string;
|
|
30
|
+
/**
|
|
31
|
+
* オファー対象アイテム
|
|
32
|
+
*/
|
|
33
|
+
itemOffered: IItemOffered;
|
|
34
|
+
/**
|
|
35
|
+
* 販売者
|
|
36
|
+
*/
|
|
37
|
+
seller: ISellerMakesOffer;
|
|
38
|
+
priceSpecification?: ITicketPriceSpecification;
|
|
39
|
+
}
|
|
40
|
+
export type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
|
|
41
|
+
export type IObject = IAcceptedOffer[];
|
|
42
|
+
export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IPermit>[];
|
|
43
|
+
export interface IResult {
|
|
44
|
+
price: number;
|
|
45
|
+
priceCurrency: PriceCurrency;
|
|
46
|
+
acceptedOffers: IResultAcceptedOffer;
|
|
47
|
+
requestBody: RegisterServiceTransactionFactory.IStartParamsWithoutDetail;
|
|
48
|
+
responseBody: RegisterServiceTransactionFactory.ITransaction;
|
|
49
|
+
}
|
|
50
|
+
export interface IPurpose {
|
|
51
|
+
typeOf: TransactionType.PlaceOrder;
|
|
52
|
+
id: string;
|
|
53
|
+
}
|
|
54
|
+
export type IError = any;
|
|
55
|
+
export interface IInstrument {
|
|
56
|
+
typeOf: AssetTransactionType.RegisterService;
|
|
57
|
+
transactionNumber: string;
|
|
58
|
+
}
|
|
59
|
+
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
60
|
+
typeOf: ActionType.AuthorizeAction;
|
|
61
|
+
agent: IAgent;
|
|
62
|
+
instrument: IInstrument;
|
|
63
|
+
recipient: IRecipient;
|
|
64
|
+
object: IObject;
|
|
65
|
+
purpose: IPurpose;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* プロダクトオファー承認アクション
|
|
69
|
+
*/
|
|
70
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|