@chevre/factory 3.1.0 → 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.
Files changed (491) hide show
  1. package/README.md +0 -5
  2. package/example/customReturnPolicyRequest.json +125 -0
  3. package/example/customReturnPolicyResponse.json +8 -0
  4. package/example/informPayAction.json +126 -0
  5. package/example/informPersonAction.json +517 -0
  6. package/example/informRefundAction.json +16 -0
  7. package/example/testErrorInstance.js +9 -0
  8. package/lib/account/action/moneyTransfer.d.ts +86 -0
  9. package/lib/account/transaction/deposit.d.ts +27 -0
  10. package/lib/account/transaction/transfer.d.ts +32 -0
  11. package/lib/account/transaction/withdraw.d.ts +31 -0
  12. package/lib/account/transaction.d.ts +144 -0
  13. package/lib/account/transactionType.d.ts +17 -0
  14. package/lib/account/transactionType.js +21 -0
  15. package/lib/account.d.ts +127 -0
  16. package/lib/account.js +32 -0
  17. package/lib/{factory/accountTitle.d.ts → accountTitle.d.ts} +8 -7
  18. package/lib/accountType.d.ts +15 -0
  19. package/lib/accountType.js +19 -0
  20. package/lib/action/authorize/award/point.d.ts +51 -0
  21. package/lib/action/authorize/award/point.js +7 -0
  22. package/lib/action/authorize/offer/moneyTransfer.d.ts +39 -0
  23. package/lib/action/authorize/offer/product.d.ts +70 -0
  24. package/lib/action/authorize/offer/seatReservation/coa.d.ts +117 -0
  25. package/lib/action/authorize/offer/seatReservation.d.ts +162 -0
  26. package/lib/action/authorize/offer/seatReservation.js +7 -0
  27. package/lib/action/authorize/paymentMethod/any.d.ts +171 -0
  28. package/lib/action/authorize/paymentMethod/any.js +12 -0
  29. package/lib/{factory/action → action}/authorize.d.ts +5 -5
  30. package/lib/action/cancel/reservation.d.ts +85 -0
  31. package/lib/action/check/paymentMethod/movieTicket.d.ts +42 -0
  32. package/lib/action/check/token.d.ts +23 -0
  33. package/lib/action/check/token.js +7 -0
  34. package/lib/action/check.d.ts +10 -0
  35. package/lib/action/consume/use/reservation.d.ts +32 -0
  36. package/lib/action/consume/use.d.ts +12 -0
  37. package/lib/action/interact/confirm/moneyTransfer.d.ts +30 -0
  38. package/lib/action/interact/confirm/pay.d.ts +27 -0
  39. package/lib/action/interact/confirm/registerService.d.ts +27 -0
  40. package/lib/action/interact/confirm/reservation.d.ts +26 -0
  41. package/lib/action/interact/confirm.d.ts +21 -0
  42. package/lib/action/interact/inform.d.ts +19 -0
  43. package/lib/action/interact/register/service.d.ts +18 -0
  44. package/lib/action/interact/register.d.ts +15 -0
  45. package/lib/action/reserve.d.ts +49 -0
  46. package/lib/action/trade/order.d.ts +37 -0
  47. package/lib/action/trade/pay.d.ts +136 -0
  48. package/lib/action/trade/refund.d.ts +27 -0
  49. package/lib/action/transfer/give/pointAward.d.ts +49 -0
  50. package/lib/action/transfer/give/pointAward.js +5 -0
  51. package/lib/action/transfer/give.d.ts +16 -0
  52. package/lib/action/transfer/moneyTransfer.d.ts +102 -0
  53. package/lib/action/transfer/return/moneyTransfer.d.ts +21 -0
  54. package/lib/action/transfer/return/order.d.ts +47 -0
  55. package/lib/action/transfer/return/paymentMethod.d.ts +25 -0
  56. package/lib/action/transfer/return/pointAward.d.ts +39 -0
  57. package/lib/action/transfer/return/reserveTransaction.d.ts +29 -0
  58. package/lib/action/transfer/return.d.ts +10 -0
  59. package/lib/action/transfer/send/message/email.d.ts +25 -0
  60. package/lib/action/transfer/send/order.d.ts +37 -0
  61. package/lib/action/transfer/send.d.ts +18 -0
  62. package/lib/action/update/delete/member.d.ts +23 -0
  63. package/lib/action/update/delete.d.ts +15 -0
  64. package/lib/action.d.ts +242 -0
  65. package/lib/{factory/actionStatusType.d.ts → actionStatusType.d.ts} +1 -2
  66. package/lib/{factory/actionStatusType.js → actionStatusType.js} +2 -2
  67. package/lib/actionType.d.ts +25 -0
  68. package/lib/actionType.js +30 -0
  69. package/lib/additionalProperty.d.ts +66 -0
  70. package/lib/assetTransaction/cancelReservation.d.ts +69 -0
  71. package/lib/assetTransaction/moneyTransfer.d.ts +136 -0
  72. package/lib/assetTransaction/pay.d.ts +157 -0
  73. package/lib/assetTransaction/refund.d.ts +68 -0
  74. package/lib/assetTransaction/registerService.d.ts +103 -0
  75. package/lib/assetTransaction/reserve.d.ts +298 -0
  76. package/lib/assetTransaction.d.ts +176 -0
  77. package/lib/assetTransactionType.d.ts +31 -0
  78. package/lib/assetTransactionType.js +35 -0
  79. package/lib/authorization.d.ts +61 -0
  80. package/lib/{factory/autoGenerated.d.ts → autoGenerated.d.ts} +1 -1
  81. package/lib/businessEntityType.d.ts +2 -0
  82. package/lib/categoryCode.d.ts +131 -0
  83. package/lib/{factory/categoryCode.js → categoryCode.js} +18 -5
  84. package/lib/cognito.d.ts +5 -0
  85. package/lib/creativeWork/comment.d.ts +51 -0
  86. package/lib/creativeWork/message/email.d.ts +63 -0
  87. package/lib/creativeWork/message/email.js +10 -0
  88. package/lib/creativeWork/movie.d.ts +93 -0
  89. package/lib/creativeWork/softwareApplication/webApplication.d.ts +14 -0
  90. package/lib/{factory/creativeWork.d.ts → creativeWork.d.ts} +5 -8
  91. package/lib/creativeWorkType.d.ts +9 -0
  92. package/lib/creativeWorkType.js +13 -0
  93. package/lib/customer.d.ts +59 -0
  94. package/lib/encodingFormat.d.ts +28 -0
  95. package/lib/encodingFormat.js +41 -0
  96. package/lib/{factory/error → error}/alreadyInUse.d.ts +1 -1
  97. package/lib/{factory/error → error}/alreadyInUse.js +7 -4
  98. package/lib/{factory/error → error}/argument.d.ts +1 -1
  99. package/lib/{factory/error → error}/argument.js +7 -4
  100. package/lib/{factory/error → error}/argumentNull.d.ts +1 -1
  101. package/lib/{factory/error → error}/argumentNull.js +7 -4
  102. package/lib/{factory/error → error}/chevre.d.ts +1 -1
  103. package/lib/{factory/error → error}/chevre.js +7 -1
  104. package/lib/{factory/error → error}/forbidden.d.ts +1 -1
  105. package/lib/{factory/error → error}/forbidden.js +6 -3
  106. package/lib/error/gatewayTimeout.d.ts +7 -0
  107. package/lib/error/gatewayTimeout.js +41 -0
  108. package/lib/{factory/error → error}/notFound.d.ts +1 -1
  109. package/lib/{factory/error → error}/notFound.js +7 -4
  110. package/lib/{factory/error → error}/notImplemented.d.ts +1 -1
  111. package/lib/{factory/error → error}/notImplemented.js +6 -3
  112. package/lib/{factory/error → error}/rateLimitExceeded.d.ts +1 -1
  113. package/lib/{factory/error → error}/rateLimitExceeded.js +6 -3
  114. package/lib/{factory/error → error}/serviceUnavailable.d.ts +1 -1
  115. package/lib/{factory/error → error}/serviceUnavailable.js +6 -3
  116. package/lib/{factory/error → error}/unauthorized.d.ts +1 -1
  117. package/lib/{factory/error → error}/unauthorized.js +6 -3
  118. package/lib/{factory/errorCode.d.ts → errorCode.d.ts} +2 -2
  119. package/lib/{factory/errorCode.js → errorCode.js} +4 -3
  120. package/lib/errors.d.ts +15 -0
  121. package/lib/errors.js +28 -0
  122. package/lib/event/anyEvent.d.ts +401 -0
  123. package/lib/event/anyEvent.js +2 -0
  124. package/lib/event/screeningEvent.d.ts +325 -0
  125. package/lib/event/screeningEvent.js +2 -0
  126. package/lib/event/screeningEventSeries.d.ts +211 -0
  127. package/lib/event/screeningEventSeries.js +2 -0
  128. package/lib/{factory/event.d.ts → event.d.ts} +35 -35
  129. package/lib/{factory/eventStatusType.d.ts → eventStatusType.d.ts} +1 -2
  130. package/lib/{factory/eventStatusType.js → eventStatusType.js} +3 -3
  131. package/lib/{factory/eventType.d.ts → eventType.d.ts} +2 -2
  132. package/lib/{factory/eventType.js → eventType.js} +3 -2
  133. package/lib/iam.d.ts +99 -0
  134. package/lib/iam.js +7 -0
  135. package/lib/index.d.ts +375 -128
  136. package/lib/index.js +362 -107
  137. package/lib/invoice.d.ts +138 -0
  138. package/lib/invoice.js +2 -0
  139. package/lib/{factory/itemAvailability.d.ts → itemAvailability.d.ts} +1 -2
  140. package/lib/{factory/itemAvailability.js → itemAvailability.js} +3 -3
  141. package/lib/language.js +2 -0
  142. package/lib/merchantReturnPolicy.d.ts +99 -0
  143. package/lib/merchantReturnPolicy.js +49 -0
  144. package/lib/{factory/monetaryAmount.d.ts → monetaryAmount.d.ts} +4 -4
  145. package/lib/monetaryAmount.js +2 -0
  146. package/lib/{factory/multilingualString.d.ts → multilingualString.d.ts} +1 -2
  147. package/lib/multilingualString.js +2 -0
  148. package/lib/offer/aggregateOffer.d.ts +19 -0
  149. package/lib/offer/aggregateOffer.js +2 -0
  150. package/lib/{factory/offer.d.ts → offer.d.ts} +88 -94
  151. package/lib/offer.js +2 -0
  152. package/lib/offerCatalog.d.ts +132 -0
  153. package/lib/offerCatalog.js +2 -0
  154. package/lib/offerItemCondition.d.ts +65 -0
  155. package/lib/offerItemCondition.js +2 -0
  156. package/lib/{factory/offerType.d.ts → offerType.d.ts} +1 -2
  157. package/lib/{factory/offerType.js → offerType.js} +2 -2
  158. package/lib/order.d.ts +651 -0
  159. package/lib/order.js +7 -0
  160. package/lib/orderExternal.d.ts +12 -0
  161. package/lib/orderExternal.js +2 -0
  162. package/lib/orderStatus.d.ts +10 -0
  163. package/lib/orderStatus.js +17 -0
  164. package/lib/organization.d.ts +23 -0
  165. package/lib/organization.js +2 -0
  166. package/lib/organizationType.d.ts +17 -0
  167. package/lib/organizationType.js +23 -0
  168. package/lib/ownershipInfo.d.ts +213 -0
  169. package/lib/ownershipInfo.js +2 -0
  170. package/lib/paymentMethod/paymentCard/creditCard.d.ts +65 -0
  171. package/lib/paymentMethod/paymentCard/creditCard.js +2 -0
  172. package/lib/paymentMethod/paymentCard/movieTicket.d.ts +53 -0
  173. package/lib/paymentMethod/paymentCard/movieTicket.js +2 -0
  174. package/lib/paymentMethod/paymentCard.d.ts +18 -0
  175. package/lib/paymentMethod/paymentCard.js +2 -0
  176. package/lib/paymentMethod.d.ts +11 -0
  177. package/lib/paymentMethod.js +2 -0
  178. package/lib/paymentStatusType.d.ts +10 -0
  179. package/lib/paymentStatusType.js +14 -0
  180. package/lib/permit.d.ts +64 -0
  181. package/lib/permit.js +7 -0
  182. package/lib/person.d.ts +59 -0
  183. package/lib/person.js +2 -0
  184. package/lib/personType.d.ts +6 -0
  185. package/lib/personType.js +10 -0
  186. package/lib/place/busStop.d.ts +41 -0
  187. package/lib/place/busStop.js +2 -0
  188. package/lib/place/movieTheater.d.ts +160 -0
  189. package/lib/place/movieTheater.js +2 -0
  190. package/lib/place/screeningRoom.d.ts +88 -0
  191. package/lib/place/screeningRoom.js +2 -0
  192. package/lib/place/screeningRoomSection.d.ts +69 -0
  193. package/lib/place/screeningRoomSection.js +2 -0
  194. package/lib/place/seat.d.ts +107 -0
  195. package/lib/place/seat.js +2 -0
  196. package/lib/{factory/place.d.ts → place.d.ts} +8 -6
  197. package/lib/place.js +2 -0
  198. package/lib/{factory/placeType.d.ts → placeType.d.ts} +4 -2
  199. package/lib/{factory/placeType.js → placeType.js} +6 -3
  200. package/lib/{factory/priceCurrency.d.ts → priceCurrency.d.ts} +1 -2
  201. package/lib/{factory/priceCurrency.js → priceCurrency.js} +2 -2
  202. package/lib/priceSpecification/categoryCodeChargeSpecification.d.ts +15 -0
  203. package/lib/priceSpecification/categoryCodeChargeSpecification.js +2 -0
  204. package/lib/priceSpecification/compoundPriceSpecification.d.ts +12 -0
  205. package/lib/priceSpecification/compoundPriceSpecification.js +2 -0
  206. package/lib/priceSpecification/movieTicketTypeChargeSpecification.d.ts +34 -0
  207. package/lib/priceSpecification/movieTicketTypeChargeSpecification.js +2 -0
  208. package/lib/priceSpecification/unitPriceSpecification.d.ts +42 -0
  209. package/lib/priceSpecification/unitPriceSpecification.js +2 -0
  210. package/lib/{factory/priceSpecification.d.ts → priceSpecification.d.ts} +39 -24
  211. package/lib/priceSpecification.js +2 -0
  212. package/lib/{factory/priceSpecificationType.d.ts → priceSpecificationType.d.ts} +1 -2
  213. package/lib/{factory/priceSpecificationType.js → priceSpecificationType.js} +2 -2
  214. package/lib/product.d.ts +254 -0
  215. package/lib/product.js +29 -0
  216. package/lib/programMembership.d.ts +16 -0
  217. package/lib/{factory/programMembership.js → programMembership.js} +1 -0
  218. package/lib/project.d.ts +107 -0
  219. package/lib/project.js +2 -0
  220. package/lib/propertyValue/locationFeatureSpecification.d.ts +4 -0
  221. package/lib/propertyValue/locationFeatureSpecification.js +2 -0
  222. package/lib/{factory/propertyValue.d.ts → propertyValue.d.ts} +3 -0
  223. package/lib/propertyValue.js +7 -0
  224. package/lib/qualitativeValue.js +2 -0
  225. package/lib/quantitativeValue.d.ts +34 -0
  226. package/lib/quantitativeValue.js +7 -0
  227. package/lib/report/accountingReport.d.ts +68 -0
  228. package/lib/report/accountingReport.js +2 -0
  229. package/lib/reservation/busReservation.d.ts +52 -0
  230. package/lib/reservation/busReservation.js +2 -0
  231. package/lib/reservation/event.d.ts +96 -0
  232. package/lib/reservation/event.js +2 -0
  233. package/lib/reservation/pendingReservationPackage.d.ts +24 -0
  234. package/lib/reservation/pendingReservationPackage.js +14 -0
  235. package/lib/{factory/reservation → reservation}/reservationPackage.d.ts +4 -4
  236. package/lib/reservation/reservationPackage.js +2 -0
  237. package/lib/{factory/reservation.d.ts → reservation.d.ts} +172 -53
  238. package/lib/reservation.js +2 -0
  239. package/lib/{factory/reservationStatusType.d.ts → reservationStatusType.d.ts} +1 -3
  240. package/lib/{factory/reservationStatusType.js → reservationStatusType.js} +3 -3
  241. package/lib/{factory/reservationType.d.ts → reservationType.d.ts} +2 -2
  242. package/lib/{factory/reservationType.js → reservationType.js} +3 -2
  243. package/lib/seller.d.ts +108 -0
  244. package/lib/seller.js +2 -0
  245. package/lib/service/paymentService.d.ts +123 -0
  246. package/lib/service/paymentService.js +10 -0
  247. package/lib/service/webAPI.d.ts +11 -0
  248. package/lib/service/webAPI.js +8 -0
  249. package/lib/{factory/sortType.d.ts → sortType.d.ts} +1 -2
  250. package/lib/{factory/sortType.js → sortType.js} +2 -2
  251. package/lib/task/accountMoneyTransfer.d.ts +15 -0
  252. package/lib/task/accountMoneyTransfer.js +2 -0
  253. package/lib/task/aggregateScreeningEvent.d.ts +16 -0
  254. package/lib/task/aggregateScreeningEvent.js +2 -0
  255. package/lib/{factory/task/aggregateScreeningEvent.d.ts → task/aggregateUseActionsOnEvent.d.ts} +5 -5
  256. package/lib/task/aggregateUseActionsOnEvent.js +2 -0
  257. package/lib/task/cancelAccountMoneyTransfer.d.ts +19 -0
  258. package/lib/task/cancelAccountMoneyTransfer.js +2 -0
  259. package/lib/task/cancelMoneyTransfer.d.ts +18 -0
  260. package/lib/task/cancelMoneyTransfer.js +2 -0
  261. package/lib/{factory/task → task}/cancelPendingReservation.d.ts +2 -2
  262. package/lib/task/cancelPendingReservation.js +2 -0
  263. package/lib/{factory/task → task}/cancelReservation.d.ts +2 -2
  264. package/lib/task/cancelReservation.js +2 -0
  265. package/lib/task/confirmMoneyTransfer.d.ts +13 -0
  266. package/lib/task/confirmMoneyTransfer.js +2 -0
  267. package/lib/task/confirmPayTransaction.d.ts +23 -0
  268. package/lib/task/confirmPayTransaction.js +2 -0
  269. package/lib/task/confirmRegisterService.d.ts +13 -0
  270. package/lib/task/confirmRegisterService.js +2 -0
  271. package/lib/task/confirmRegisterServiceTransaction.d.ts +13 -0
  272. package/lib/task/confirmRegisterServiceTransaction.js +2 -0
  273. package/lib/task/confirmReserveTransaction.d.ts +14 -0
  274. package/lib/task/confirmReserveTransaction.js +2 -0
  275. package/lib/task/createEvent.d.ts +26 -0
  276. package/lib/task/createEvent.js +2 -0
  277. package/lib/task/deleteTransaction.d.ts +48 -0
  278. package/lib/task/deleteTransaction.js +11 -0
  279. package/lib/task/givePointAward.d.ts +13 -0
  280. package/lib/task/givePointAward.js +2 -0
  281. package/lib/{factory/task/importEventsFromCOA.d.ts → task/importEventCapacitiesFromCOA.d.ts} +6 -6
  282. package/lib/task/importEventCapacitiesFromCOA.js +2 -0
  283. package/lib/task/importEventsFromCOA.d.ts +36 -0
  284. package/lib/task/importEventsFromCOA.js +2 -0
  285. package/lib/{factory/task → task}/importOffersFromCOA.d.ts +4 -4
  286. package/lib/task/importOffersFromCOA.js +2 -0
  287. package/lib/task/moneyTransfer.d.ts +13 -0
  288. package/lib/task/moneyTransfer.js +2 -0
  289. package/lib/task/onAssetTransactionStatusChanged.d.ts +35 -0
  290. package/lib/task/onAssetTransactionStatusChanged.js +2 -0
  291. package/lib/task/onAuthorizationCreated.d.ts +24 -0
  292. package/lib/task/onAuthorizationCreated.js +2 -0
  293. package/lib/task/onEventChanged.d.ts +25 -0
  294. package/lib/task/onEventChanged.js +2 -0
  295. package/lib/task/onOrderPaymentCompleted.d.ts +21 -0
  296. package/lib/task/onOrderPaymentCompleted.js +2 -0
  297. package/lib/task/onResourceUpdated.d.ts +76 -0
  298. package/lib/task/onResourceUpdated.js +2 -0
  299. package/lib/task/pay.d.ts +13 -0
  300. package/lib/task/pay.js +2 -0
  301. package/lib/task/placeOrder.d.ts +19 -0
  302. package/lib/task/placeOrder.js +2 -0
  303. package/lib/task/refund.d.ts +13 -0
  304. package/lib/task/refund.js +2 -0
  305. package/lib/task/registerService.d.ts +13 -0
  306. package/lib/task/registerService.js +2 -0
  307. package/lib/{factory/task → task}/reserve.d.ts +2 -2
  308. package/lib/task/reserve.js +2 -0
  309. package/lib/task/returnMoneyTransfer.d.ts +13 -0
  310. package/lib/task/returnMoneyTransfer.js +2 -0
  311. package/lib/task/returnOrder.d.ts +13 -0
  312. package/lib/task/returnOrder.js +2 -0
  313. package/lib/task/returnPayTransaction.d.ts +13 -0
  314. package/lib/task/returnPayTransaction.js +2 -0
  315. package/lib/task/returnPointAward.d.ts +13 -0
  316. package/lib/task/returnPointAward.js +2 -0
  317. package/lib/task/returnReserveTransaction.d.ts +14 -0
  318. package/lib/task/returnReserveTransaction.js +2 -0
  319. package/lib/task/sendEmailMessage.d.ts +18 -0
  320. package/lib/task/sendEmailMessage.js +2 -0
  321. package/lib/task/sendOrder.d.ts +20 -0
  322. package/lib/task/sendOrder.js +2 -0
  323. package/lib/task/syncScreeningRooms.d.ts +22 -0
  324. package/lib/task/syncScreeningRooms.js +2 -0
  325. package/lib/{factory/task → task}/triggerWebhook.d.ts +3 -3
  326. package/lib/task/triggerWebhook.js +2 -0
  327. package/lib/task/useReservation.d.ts +20 -0
  328. package/lib/task/useReservation.js +2 -0
  329. package/lib/task/voidMoneyTransferTransaction.d.ts +24 -0
  330. package/lib/task/voidMoneyTransferTransaction.js +2 -0
  331. package/lib/task/voidPayTransaction.d.ts +29 -0
  332. package/lib/task/voidPayTransaction.js +2 -0
  333. package/lib/task/voidPayment.d.ts +16 -0
  334. package/lib/task/voidPayment.js +2 -0
  335. package/lib/task/voidRegisterServiceTransaction.d.ts +24 -0
  336. package/lib/task/voidRegisterServiceTransaction.js +2 -0
  337. package/lib/task/voidReserveTransaction.d.ts +29 -0
  338. package/lib/task/voidReserveTransaction.js +2 -0
  339. package/lib/task.d.ts +125 -0
  340. package/lib/task.js +2 -0
  341. package/lib/taskName.d.ts +118 -0
  342. package/lib/taskName.js +124 -0
  343. package/lib/{factory/taskStatus.d.ts → taskStatus.d.ts} +1 -2
  344. package/lib/{factory/taskStatus.js → taskStatus.js} +2 -2
  345. package/lib/{factory/thing.d.ts → thing.d.ts} +8 -3
  346. package/lib/thing.js +2 -0
  347. package/lib/transaction/moneyTransfer.d.ts +138 -0
  348. package/lib/transaction/moneyTransfer.js +2 -0
  349. package/lib/transaction/placeOrder.d.ts +208 -0
  350. package/lib/transaction/placeOrder.js +2 -0
  351. package/lib/transaction/returnOrder.d.ts +183 -0
  352. package/lib/transaction/returnOrder.js +17 -0
  353. package/lib/transaction.d.ts +184 -0
  354. package/lib/transaction.js +2 -0
  355. package/lib/{factory/transactionStatusType.d.ts → transactionStatusType.d.ts} +1 -2
  356. package/lib/{factory/transactionStatusType.js → transactionStatusType.js} +3 -3
  357. package/lib/{factory/transactionTasksExportationStatus.d.ts → transactionTasksExportationStatus.d.ts} +1 -2
  358. package/lib/{factory/transactionTasksExportationStatus.js → transactionTasksExportationStatus.js} +3 -3
  359. package/lib/transactionType.d.ts +17 -0
  360. package/lib/transactionType.js +21 -0
  361. package/lib/trip/busTrip.d.ts +51 -0
  362. package/lib/trip/busTrip.js +2 -0
  363. package/lib/trip.d.ts +13 -0
  364. package/lib/trip.js +2 -0
  365. package/lib/tripType.d.ts +7 -0
  366. package/lib/tripType.js +11 -0
  367. package/lib/{factory/unitCode.d.ts → unitCode.d.ts} +4 -0
  368. package/lib/{factory/unitCode.js → unitCode.js} +5 -0
  369. package/lib/unitPriceOffer/merchantReturnPolicy.d.ts +39 -0
  370. package/lib/unitPriceOffer/merchantReturnPolicy.js +2 -0
  371. package/lib/unitPriceOffer.d.ts +261 -0
  372. package/lib/unitPriceOffer.js +2 -0
  373. package/package.json +15 -14
  374. package/CHANGELOG.md +0 -126
  375. package/lib/factory/action/cancel/reservation.d.ts +0 -44
  376. package/lib/factory/action/consume/use.d.ts +0 -15
  377. package/lib/factory/action/interact/inform.d.ts +0 -19
  378. package/lib/factory/action/interact/register/programMembership.d.ts +0 -12
  379. package/lib/factory/action/interact/register.d.ts +0 -15
  380. package/lib/factory/action/interact/unRegister/programMembership.d.ts +0 -12
  381. package/lib/factory/action/interact/unRegister.d.ts +0 -15
  382. package/lib/factory/action/reserve.d.ts +0 -44
  383. package/lib/factory/action.d.ts +0 -83
  384. package/lib/factory/actionType.d.ts +0 -15
  385. package/lib/factory/actionType.js +0 -18
  386. package/lib/factory/categoryCode.d.ts +0 -86
  387. package/lib/factory/creativeWork/message/email.d.ts +0 -18
  388. package/lib/factory/creativeWork/movie.d.ts +0 -66
  389. package/lib/factory/creativeWorkType.d.ts +0 -8
  390. package/lib/factory/creativeWorkType.js +0 -11
  391. package/lib/factory/distributor.d.ts +0 -21
  392. package/lib/factory/errors.d.ts +0 -14
  393. package/lib/factory/errors.js +0 -25
  394. package/lib/factory/event/screeningEvent.d.ts +0 -339
  395. package/lib/factory/event/screeningEventSeries.d.ts +0 -162
  396. package/lib/factory/offer/product.d.ts +0 -66
  397. package/lib/factory/offerCatalog.d.ts +0 -61
  398. package/lib/factory/organizationType.d.ts +0 -8
  399. package/lib/factory/organizationType.js +0 -11
  400. package/lib/factory/paymentMethodType.d.ts +0 -29
  401. package/lib/factory/paymentMethodType.js +0 -32
  402. package/lib/factory/place/movieTheater.d.ts +0 -86
  403. package/lib/factory/place/screeningRoom.d.ts +0 -22
  404. package/lib/factory/place/screeningRoomSection.d.ts +0 -20
  405. package/lib/factory/place/seat.d.ts +0 -42
  406. package/lib/factory/priceSpecification/categoryCodeChargeSpecification.d.ts +0 -14
  407. package/lib/factory/priceSpecification/compoundPriceSpecification.d.ts +0 -22
  408. package/lib/factory/priceSpecification/movieTicketTypeChargeSpecification.d.ts +0 -37
  409. package/lib/factory/priceSpecification/unitPriceSpecification.d.ts +0 -24
  410. package/lib/factory/programMembership.d.ts +0 -61
  411. package/lib/factory/project.d.ts +0 -68
  412. package/lib/factory/quantitativeValue.d.ts +0 -23
  413. package/lib/factory/reservation/event.d.ts +0 -56
  414. package/lib/factory/serviceType.d.ts +0 -9
  415. package/lib/factory/subject.d.ts +0 -52
  416. package/lib/factory/task.d.ts +0 -70
  417. package/lib/factory/taskExecutionResult.d.ts +0 -9
  418. package/lib/factory/taskName.d.ts +0 -16
  419. package/lib/factory/taskName.js +0 -19
  420. package/lib/factory/ticketType.d.ts +0 -84
  421. package/lib/factory/transaction/cancelReservation.d.ts +0 -98
  422. package/lib/factory/transaction/registerProgramMembership.d.ts +0 -85
  423. package/lib/factory/transaction/reserve.d.ts +0 -147
  424. package/lib/factory/transaction.d.ts +0 -120
  425. package/lib/factory/transactionType.d.ts +0 -18
  426. package/lib/factory/transactionType.js +0 -21
  427. package/lib/factory/videoFormatType.d.ts +0 -12
  428. package/lib/factory/videoFormatType.js +0 -15
  429. /package/lib/{factory/accountTitle.js → account/action/moneyTransfer.js} +0 -0
  430. /package/lib/{factory/action.js → account/transaction/deposit.js} +0 -0
  431. /package/lib/{factory/action/authorize.js → account/transaction/transfer.js} +0 -0
  432. /package/lib/{factory/action/cancel/reservation.js → account/transaction/withdraw.js} +0 -0
  433. /package/lib/{factory → account}/transaction.js +0 -0
  434. /package/lib/{factory/action/consume/use.js → accountTitle.js} +0 -0
  435. /package/lib/{factory/action/interact/register/programMembership.js → action/authorize/offer/moneyTransfer.js} +0 -0
  436. /package/lib/{factory → action/authorize}/offer/product.js +0 -0
  437. /package/lib/{factory/action/interact/unRegister.js → action/authorize/offer/seatReservation/coa.js} +0 -0
  438. /package/lib/{factory/action/interact/register.js → action/authorize.js} +0 -0
  439. /package/lib/{factory → action/cancel}/reservation.js +0 -0
  440. /package/lib/{factory/action/reserve.js → action/check/paymentMethod/movieTicket.js} +0 -0
  441. /package/lib/{factory/action/interact/unRegister/programMembership.js → action/check.js} +0 -0
  442. /package/lib/{factory/creativeWork.js → action/consume/use/reservation.js} +0 -0
  443. /package/lib/{factory/autoGenerated.js → action/consume/use.js} +0 -0
  444. /package/lib/{factory/creativeWork/movie.js → action/interact/confirm/moneyTransfer.js} +0 -0
  445. /package/lib/{factory/distributor.js → action/interact/confirm/pay.js} +0 -0
  446. /package/lib/{factory/event.js → action/interact/confirm/registerService.js} +0 -0
  447. /package/lib/{factory/event/screeningEvent.js → action/interact/confirm/reservation.js} +0 -0
  448. /package/lib/{factory/creativeWork/message/email.js → action/interact/confirm.js} +0 -0
  449. /package/lib/{factory/event/screeningEventSeries.js → action/interact/inform.js} +0 -0
  450. /package/lib/{factory/monetaryAmount.js → action/interact/register/service.js} +0 -0
  451. /package/lib/{factory/language.js → action/interact/register.js} +0 -0
  452. /package/lib/{factory/task → action}/reserve.js +0 -0
  453. /package/lib/{factory/multilingualString.js → action/trade/order.js} +0 -0
  454. /package/lib/{factory/offer.js → action/trade/pay.js} +0 -0
  455. /package/lib/{factory/offerCatalog.js → action/trade/refund.js} +0 -0
  456. /package/lib/{factory/place.js → action/transfer/give.js} +0 -0
  457. /package/lib/{factory/place/movieTheater.js → action/transfer/moneyTransfer.js} +0 -0
  458. /package/lib/{factory/place/screeningRoomSection.js → action/transfer/return/moneyTransfer.js} +0 -0
  459. /package/lib/{factory/place/seat.js → action/transfer/return/order.js} +0 -0
  460. /package/lib/{factory/priceSpecification.js → action/transfer/return/paymentMethod.js} +0 -0
  461. /package/lib/{factory/priceSpecification/categoryCodeChargeSpecification.js → action/transfer/return/pointAward.js} +0 -0
  462. /package/lib/{factory/priceSpecification/compoundPriceSpecification.js → action/transfer/return/reserveTransaction.js} +0 -0
  463. /package/lib/{factory/place/screeningRoom.js → action/transfer/return.js} +0 -0
  464. /package/lib/{factory/priceSpecification/unitPriceSpecification.js → action/transfer/send/message/email.js} +0 -0
  465. /package/lib/{factory/project.js → action/transfer/send/order.js} +0 -0
  466. /package/lib/{factory/priceSpecification/movieTicketTypeChargeSpecification.js → action/transfer/send.js} +0 -0
  467. /package/lib/{factory/qualitativeValue.js → action/update/delete/member.js} +0 -0
  468. /package/lib/{factory/propertyValue.js → action/update/delete.js} +0 -0
  469. /package/lib/{factory/action/interact/inform.js → action.js} +0 -0
  470. /package/lib/{factory/quantitativeValue.js → additionalProperty.js} +0 -0
  471. /package/lib/{factory/task → assetTransaction}/cancelReservation.js +0 -0
  472. /package/lib/{factory/reservation/reservationPackage.js → assetTransaction/moneyTransfer.js} +0 -0
  473. /package/lib/{factory/serviceType.js → assetTransaction/pay.js} +0 -0
  474. /package/lib/{factory/subject.js → assetTransaction/refund.js} +0 -0
  475. /package/lib/{factory/task.js → assetTransaction/registerService.js} +0 -0
  476. /package/lib/{factory/transaction → assetTransaction}/reserve.js +0 -0
  477. /package/lib/{factory/reservation/event.js → assetTransaction.js} +0 -0
  478. /package/lib/{factory/task/aggregateScreeningEvent.js → authorization.js} +0 -0
  479. /package/lib/{factory/task/cancelPendingReservation.js → autoGenerated.js} +0 -0
  480. /package/lib/{factory/task/importEventsFromCOA.js → businessEntityType.js} +0 -0
  481. /package/lib/{factory/clientUser.d.ts → clientUser.d.ts} +0 -0
  482. /package/lib/{factory/clientUser.js → clientUser.js} +0 -0
  483. /package/lib/{factory/task/importOffersFromCOA.js → cognito.js} +0 -0
  484. /package/lib/{factory/taskExecutionResult.js → creativeWork/comment.js} +0 -0
  485. /package/lib/{factory/thing.js → creativeWork/movie.js} +0 -0
  486. /package/lib/{factory/ticketType.js → creativeWork/softwareApplication/webApplication.js} +0 -0
  487. /package/lib/{factory/task/triggerWebhook.js → creativeWork.js} +0 -0
  488. /package/lib/{factory/transaction/cancelReservation.js → customer.js} +0 -0
  489. /package/lib/{factory/transaction/registerProgramMembership.js → event.js} +0 -0
  490. /package/lib/{factory/language.d.ts → language.d.ts} +0 -0
  491. /package/lib/{factory/qualitativeValue.d.ts → qualitativeValue.d.ts} +0 -0
@@ -0,0 +1,117 @@
1
+ import * as COA from '@motionpicture/coa-service';
2
+ export interface ICOATicketInfo {
3
+ /**
4
+ * チケットコード
5
+ */
6
+ ticketCode: string;
7
+ /**
8
+ * ムビチケ・MG計上単価
9
+ * ムビチケ・MGの場合、計上単価(興収報告単価)をセット
10
+ * (ムビチケ・MG以外は0をセット)
11
+ */
12
+ mvtkAppPrice: number;
13
+ /**
14
+ * 枚数
15
+ */
16
+ ticketCount: number;
17
+ /**
18
+ * メガネ単価
19
+ * メガネ代が別途発生した場合は、メガネ代をセット。それ以外は0をセット(ムビチケの場合も同様)
20
+ */
21
+ addGlasses: number;
22
+ /**
23
+ * ムビチケ・MG映写方式区分
24
+ * ムビチケ・MG連携情報より
25
+ */
26
+ kbnEisyahousiki: string;
27
+ /**
28
+ * ムビチケ・MG購入管理番号
29
+ * ムビチケ・MG連携情報より(ムビチケ・MG以外は"")
30
+ */
31
+ mvtkNum: string;
32
+ /**
33
+ * ムビチケ・MG電子券区分
34
+ * ムビチケ・MG連携情報より(01:電子、02:紙)
35
+ * ※ムビチケ・MG以外は"00"をセット
36
+ * ※MGはチケット媒体区分
37
+ */
38
+ mvtkKbnDenshiken: string;
39
+ /**
40
+ * ムビチケ・MG前売券区分
41
+ * ムビチケ・MG連携情報より(01:全国券、02:劇場券)
42
+ * ※ムビチケ・MG以外は"00"をセット
43
+ * ※MGはスコープ区分
44
+ */
45
+ mvtkKbnMaeuriken: string;
46
+ /**
47
+ * ムビチケ・MG券種区分
48
+ * ムビチケ・MG連携情報より(01:一般2D、02:小人2D、03:一般3D、…)
49
+ * ※ムビチケ・MG以外は"00"をセット
50
+ */
51
+ mvtkKbnKensyu: string;
52
+ /**
53
+ * ムビチケ・MG販売単価
54
+ * ムビチケ・MG連携情報より(ムビチケ・MG以外は0をセット)
55
+ */
56
+ mvtkSalesPrice: number;
57
+ /**
58
+ * MGチケット区分
59
+ * MGチケットの場合は"MG"(MG以外は""をセット)
60
+ */
61
+ kbnMgtk?: string;
62
+ /**
63
+ * ポイント割引の場合の消費ポイント
64
+ */
65
+ usePoint?: number;
66
+ }
67
+ /**
68
+ * COA券種情報
69
+ */
70
+ export type ICOATicketInfoWithDetails = COA.factory.reserve.IUpdReserveTicket & {
71
+ /**
72
+ * チケット名
73
+ */
74
+ ticketName: string;
75
+ /**
76
+ * チケット名(カナ)
77
+ */
78
+ ticketNameKana: string;
79
+ /**
80
+ * チケット名(英)
81
+ */
82
+ ticketNameEng: string;
83
+ /**
84
+ * ポイント割引の場合の消費ポイント
85
+ */
86
+ usePoint: number;
87
+ /**
88
+ * 制限単位(001:n人単位、002:n人以上)
89
+ */
90
+ limitUnit: string;
91
+ /**
92
+ * 人数制限
93
+ */
94
+ limitCount: number;
95
+ /**
96
+ * 販売可能チケットのsalePrice
97
+ * COA予約確定時に指定するsalePriceと異なる
98
+ */
99
+ salesTicketSalePrice: number;
100
+ };
101
+ /**
102
+ * 座席予約供給情報インターフェース
103
+ */
104
+ export interface IOffer {
105
+ /**
106
+ * seat section
107
+ */
108
+ seatSection: string;
109
+ /**
110
+ * seat number
111
+ */
112
+ seatNumber: string;
113
+ /**
114
+ * ticket info
115
+ */
116
+ ticketInfo: ICOATicketInfo;
117
+ }
@@ -0,0 +1,162 @@
1
+ import * as COA from '@motionpicture/coa-service';
2
+ import * as ActionFactory from '../../../action';
3
+ import { ActionType } from '../../../actionType';
4
+ import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
5
+ import { AssetTransactionType } from '../../../assetTransactionType';
6
+ import * as ScreeningEventFactory from '../../../event/screeningEvent';
7
+ import * as OfferFactory from '../../../offer';
8
+ import * as OrderFactory from '../../../order';
9
+ import { PriceCurrency } from '../../../priceCurrency';
10
+ import { ITicketOffer, ITicketPriceSpecification } from '../../../product';
11
+ import * as WebAPIFactory from '../../../service/webAPI';
12
+ import { TransactionType } from '../../../transactionType';
13
+ import * as AuthorizeActionFactory from '../../authorize';
14
+ import * as COAReservationOfferFactory from './seatReservation/coa';
15
+ export type IAgent = ActionFactory.IParticipantAsSeller;
16
+ export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
17
+ export declare enum ObjectType {
18
+ SeatReservation = "SeatReservation"
19
+ }
20
+ export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
21
+ export type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
22
+ export type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
23
+ export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IReservation>;
24
+ /**
25
+ * 承認アクション結果
26
+ */
27
+ export interface IResult<T extends WebAPIFactory.Identifier> {
28
+ /**
29
+ * オファー分の金額
30
+ */
31
+ price: number;
32
+ priceCurrency: PriceCurrency;
33
+ /**
34
+ * オファーに対して必要な金額
35
+ * currencyを口座タイプとして扱う
36
+ */
37
+ amount: OrderFactory.ITotalPaymentDue[];
38
+ /**
39
+ * 外部リクエストエンドポイント
40
+ */
41
+ requestEndpoint?: string;
42
+ /**
43
+ * 外部サービスへのリクエスト
44
+ * COAの場合存在する
45
+ */
46
+ requestBody: IRequestBody<T>;
47
+ /**
48
+ * 外部サービスからのレスポンス
49
+ * COAの場合存在する
50
+ */
51
+ responseBody: IResponseBody<T>;
52
+ acceptedOffers?: IResultAcceptedOffer[];
53
+ }
54
+ export type IAcceptedOfferPriceSpecification = ITicketPriceSpecification & {
55
+ /**
56
+ * 複合価格仕様に、指定された適用決済カード情報を付加できるように
57
+ */
58
+ appliesToMovieTicket?: ReserveTransactionFactory.IAcceptedAppliesToMovieTicket;
59
+ };
60
+ /**
61
+ * 受け入れられたチケットオファー
62
+ */
63
+ export type IAcceptedOffer4chevre = Pick<ITicketOffer, 'acceptedPaymentMethod' | // add(2023-11-15~)
64
+ 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty'> & {
65
+ addOn?: ReserveTransactionFactory.IAcceptedAddOn[];
66
+ itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
67
+ priceSpecification: IAcceptedOfferPriceSpecification;
68
+ };
69
+ export type IAcceptedOfferWithoutDetail4chevre = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail;
70
+ export type IObjectWithoutDetail4chevre = ReserveTransactionFactory.IObjectWithoutDetail;
71
+ export import ICOATicketInfo = COAReservationOfferFactory.ICOATicketInfo;
72
+ export import ICOATicketInfoWithDetails = COAReservationOfferFactory.ICOATicketInfoWithDetails;
73
+ /**
74
+ * 受入COA興行オファー
75
+ */
76
+ export type IAcceptedOffer4COA = Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'itemOffered' | 'additionalProperty'> & Pick<OfferFactory.IOffer, 'typeOf' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'additionalProperty' | 'eligibleMonetaryAmount'> & {
77
+ itemOffered: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
78
+ ticketInfo: ICOATicketInfoWithDetails;
79
+ /**
80
+ * COAイベントでは、priceSpecificationで価格を表現しきれないので、numberとしてのpriceが必要
81
+ */
82
+ price: number;
83
+ priceSpecification: OrderFactory.ITicketPriceSpecification;
84
+ };
85
+ export interface IAppliesToSurfrock {
86
+ /**
87
+ * コード
88
+ */
89
+ identifier?: string;
90
+ serviceOutput?: {
91
+ /**
92
+ * 決済方法区分
93
+ */
94
+ typeOf?: string;
95
+ };
96
+ }
97
+ export interface IPriceSpecification4COA {
98
+ appliesToSurfrock?: IAppliesToSurfrock;
99
+ }
100
+ export type IAcceptedOfferBeforeAuthorize4COA = Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'itemOffered' | 'additionalProperty'> & Pick<OfferFactory.IOffer, 'name' | 'additionalProperty'> & {
101
+ itemOffered: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
102
+ ticketInfo: Omit<ICOATicketInfoWithDetails, 'salePrice' | 'usePoint'>;
103
+ priceSpecification: IPriceSpecification4COA;
104
+ };
105
+ export type IAcceptedOfferWithoutDetail4COA = COAReservationOfferFactory.IOffer & {
106
+ priceSpecification?: IPriceSpecification4COA;
107
+ };
108
+ export interface IObjectWithoutDetail4COA {
109
+ acceptedOffer: IAcceptedOfferWithoutDetail4COA[];
110
+ event: {
111
+ id: string;
112
+ };
113
+ }
114
+ export type IAcceptedOffer<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOffer4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOffer4chevre : never;
115
+ export type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOfferWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOfferWithoutDetail4chevre : never;
116
+ export type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : never;
117
+ export type ICOAPendingTransaction = Pick<COA.factory.reserve.IDelTmpReserveArgs, 'theaterCode' | 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'tmpReserveNum'> & {
118
+ transactionNumber: string;
119
+ typeOf: 'COAReserveTransaction';
120
+ };
121
+ export interface IChevrePendingTransaction {
122
+ transactionNumber: string;
123
+ typeOf: AssetTransactionType.Reserve;
124
+ }
125
+ export type IPendingTransaction<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? ICOAPendingTransaction : T extends WebAPIFactory.Identifier.Chevre ? IChevrePendingTransaction : never;
126
+ export type IEvent = Pick<ScreeningEventFactory.IEvent, 'id' | 'typeOf'> & {
127
+ offers: {
128
+ offeredThrough: ScreeningEventFactory.IOfferedThrough;
129
+ };
130
+ };
131
+ /**
132
+ * 承認アクション対象
133
+ */
134
+ export type IObject<T extends WebAPIFactory.Identifier> = {
135
+ typeOf: ObjectType;
136
+ event?: IEvent;
137
+ acceptedOffer: IAcceptedOffer<T>[];
138
+ /**
139
+ * 進行中取引
140
+ */
141
+ pendingTransaction?: IPendingTransaction<T>;
142
+ } & Omit<IObjectWithoutDetail<T>, 'acceptedOffer' | 'reservationFor'>;
143
+ export interface IPurpose {
144
+ typeOf: TransactionType.PlaceOrder;
145
+ id: string;
146
+ }
147
+ /**
148
+ * authorize action error interface
149
+ */
150
+ export type IError = any;
151
+ export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject<T>, IResult<T>> {
152
+ typeOf: ActionType.AuthorizeAction;
153
+ agent: IAgent;
154
+ recipient: IRecipient;
155
+ object: IObject<T>;
156
+ purpose: IPurpose;
157
+ instrument: IInstrument<T>;
158
+ }
159
+ /**
160
+ * 興行オファー承認アクション
161
+ */
162
+ export type IAction<T extends WebAPIFactory.Identifier> = ActionFactory.IAction<IAttributes<T>>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObjectType = void 0;
4
+ var ObjectType;
5
+ (function (ObjectType) {
6
+ ObjectType["SeatReservation"] = "SeatReservation";
7
+ })(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
@@ -0,0 +1,171 @@
1
+ import * as ActionFactory from '../../../action';
2
+ import * as CheckMovieTicketActionFactory from '../../../action/check/paymentMethod/movieTicket';
3
+ import { AvailablePaymentMethodType, IMovieTicket } from '../../../action/trade/pay';
4
+ import { ActionType } from '../../../actionType';
5
+ import * as PayTransactionFactory from '../../../assetTransaction/pay';
6
+ import { AssetTransactionType } from '../../../assetTransactionType';
7
+ import { IOrderPaymentMethodIssuedThrough, ITotalPaymentDue } from '../../../order';
8
+ import * as CreditCardFactory from '../../../paymentMethod/paymentCard/creditCard';
9
+ import { PaymentStatusType } from '../../../paymentStatusType';
10
+ import { IPropertyValue } from '../../../propertyValue';
11
+ import { TransactionType } from '../../../transactionType';
12
+ import * as AuthorizeActionFactory from '../../authorize';
13
+ export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
14
+ export type IRecipient = ActionFactory.IParticipantAsSeller;
15
+ export declare enum ResultType {
16
+ Payment = "Payment"
17
+ }
18
+ /**
19
+ * 進行中取引
20
+ */
21
+ export interface IObjectPendingTransaction {
22
+ typeOf: AssetTransactionType.MoneyTransfer;
23
+ id?: string;
24
+ transactionNumber?: string;
25
+ }
26
+ export import ITokenizedPaymentCard = PayTransactionFactory.ITokenizedPaymentCard;
27
+ export import IFromLocation = PayTransactionFactory.IFromLocation;
28
+ export import IPurchaseNumberAuthResult = CheckMovieTicketActionFactory.IPurchaseNumberAuthResult;
29
+ export import IUnauthorizedCardOfMember = CreditCardFactory.IUnauthorizedCardOfMember;
30
+ export import IUncheckedCardRaw = CreditCardFactory.IUncheckedCardRaw;
31
+ export import IUncheckedCardTokenized = CreditCardFactory.IUncheckedCardTokenized;
32
+ /**
33
+ * クレジットカード決済承認アクションに必要なクレジットカード情報
34
+ */
35
+ export type ICreditCard = IUncheckedCardRaw | IUncheckedCardTokenized | IUnauthorizedCardOfMember;
36
+ /**
37
+ * 承認対象
38
+ */
39
+ export interface IObject {
40
+ /**
41
+ * The identifier for the account the payment will be applied to.
42
+ */
43
+ accountId?: string;
44
+ /**
45
+ * 追加特性
46
+ */
47
+ additionalProperty?: IPropertyValue<string>[];
48
+ /**
49
+ * The amount of money.
50
+ */
51
+ amount: number;
52
+ /**
53
+ * 説明
54
+ */
55
+ description?: string;
56
+ /**
57
+ * 決済方法名称
58
+ * 未指定であればデフォルト値が使用されます
59
+ */
60
+ name?: string;
61
+ /**
62
+ * 決済方法
63
+ */
64
+ paymentMethod: AvailablePaymentMethodType;
65
+ /**
66
+ * 決済ID
67
+ */
68
+ paymentMethodId?: string;
69
+ typeOf: ResultType;
70
+ issuedThrough: {
71
+ /**
72
+ * 発行決済サービスID
73
+ */
74
+ id: string;
75
+ };
76
+ /**
77
+ * 進行中取引(ペイメントカード決済)
78
+ */
79
+ pendingTransaction?: IObjectPendingTransaction;
80
+ /**
81
+ * 転送元(PaymentCard決済)
82
+ */
83
+ fromLocation?: IFromLocation;
84
+ /**
85
+ * 支払い方法(CreditCard決済)
86
+ */
87
+ method?: string;
88
+ /**
89
+ * クレジットカード情報(CreditCard決済)
90
+ */
91
+ creditCard?: ICreditCard;
92
+ /**
93
+ * (MovieTicket決済)
94
+ */
95
+ movieTickets?: IMovieTicket[];
96
+ }
97
+ export interface IResultPaymentMethod {
98
+ /**
99
+ * 決済方法区分
100
+ */
101
+ typeOf: AvailablePaymentMethodType;
102
+ amount?: {
103
+ /**
104
+ * 決済カード通貨区分
105
+ */
106
+ currency?: string;
107
+ };
108
+ }
109
+ export interface IResultAsInvoice {
110
+ /**
111
+ * The identifier for the account the payment will be applied to.
112
+ */
113
+ accountId: string;
114
+ /**
115
+ * 決済方法
116
+ * amount.currencyに対応するために追加(2023-08-13~)
117
+ * startDate>=2022-08-16T00:00:00Zのアクションの関しては互換性維持済
118
+ */
119
+ paymentMethodAsObject: IResultPaymentMethod;
120
+ /**
121
+ * 決済ID
122
+ */
123
+ paymentMethodId: string;
124
+ /**
125
+ * 決済ステータス
126
+ * 注文に連携(2023-08-23~)
127
+ */
128
+ paymentStatus: PaymentStatusType.PaymentAutomaticallyApplied | PaymentStatusType.PaymentDue;
129
+ /**
130
+ * 決済方法名称
131
+ */
132
+ name: string;
133
+ /**
134
+ * The total amount due.
135
+ */
136
+ totalPaymentDue?: ITotalPaymentDue;
137
+ /**
138
+ * 追加特性
139
+ */
140
+ additionalProperty?: IPropertyValue<string>[];
141
+ typeOf: ResultType;
142
+ issuedThrough: IOrderPaymentMethodIssuedThrough;
143
+ }
144
+ export type IResult = IResultAsInvoice | IResultAsInvoice[];
145
+ export interface IPurpose {
146
+ typeOf: TransactionType;
147
+ id: string;
148
+ }
149
+ export declare enum ServiceIdentifier {
150
+ Chevre = "Chevre"
151
+ }
152
+ export interface IService {
153
+ typeOf: 'WebAPI';
154
+ identifier: ServiceIdentifier;
155
+ }
156
+ export type IInstrument = IService;
157
+ /**
158
+ * 決済承認アクション属性
159
+ */
160
+ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
161
+ typeOf: ActionType.AuthorizeAction;
162
+ object: IObject;
163
+ agent: IAgent;
164
+ instrument: IInstrument;
165
+ recipient: IRecipient;
166
+ purpose: IPurpose;
167
+ }
168
+ /**
169
+ * 決済承認アクション
170
+ */
171
+ export type IAction = ActionFactory.IAction<IAttributes>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceIdentifier = exports.ResultType = void 0;
4
+ var ResultType;
5
+ (function (ResultType) {
6
+ ResultType["Payment"] = "Payment";
7
+ })(ResultType = exports.ResultType || (exports.ResultType = {}));
8
+ var ServiceIdentifier;
9
+ (function (ServiceIdentifier) {
10
+ // 現時点で決済取引はChevreのみ対応
11
+ ServiceIdentifier["Chevre"] = "Chevre";
12
+ })(ServiceIdentifier = exports.ServiceIdentifier || (exports.ServiceIdentifier = {}));
@@ -1,17 +1,17 @@
1
1
  import * as ActionFactory from '../action';
2
- import ActionType from '../actionType';
2
+ import { ActionType } from '../actionType';
3
3
  /**
4
4
  * 承認対象インターフェース
5
5
  */
6
- export declare type IObject = any;
6
+ export type IObject = any;
7
7
  /**
8
8
  * 承認結果インターフェース
9
9
  */
10
- export declare type IResult = any;
10
+ export type IResult = any;
11
11
  /**
12
12
  * 承認目的インターフェース
13
13
  */
14
- export declare type IPurpose = any;
14
+ export type IPurpose = any;
15
15
  /**
16
16
  * アクション属性インターフェース
17
17
  */
@@ -22,4 +22,4 @@ export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes
22
22
  /**
23
23
  * 承認アクションインターフェース
24
24
  */
25
- export declare type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
25
+ export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
@@ -0,0 +1,85 @@
1
+ import * as ActionFactory from '../../action';
2
+ import { ActionType } from '../../actionType';
3
+ import { AssetTransactionType } from '../../assetTransactionType';
4
+ import { EventType } from '../../eventType';
5
+ import { ProductType } from '../../product';
6
+ import { IAvailableReservationStatusType } from '../../reservation';
7
+ import { ReservationType } from '../../reservationType';
8
+ import { TripType } from '../../tripType';
9
+ export type IAgent = ActionFactory.IParticipantAsProject;
10
+ export interface IReservationPackageAsObject {
11
+ reservationFor: {
12
+ typeOf: EventType.ScreeningEvent | TripType.BusTrip;
13
+ id: string;
14
+ };
15
+ reservationNumber: string;
16
+ /**
17
+ * previousReservationStatusを変更時に指定するために必要
18
+ */
19
+ reservationStatus: IAvailableReservationStatusType;
20
+ typeOf: ReservationType.ReservationPackage;
21
+ }
22
+ export interface IBusReservationAsObject {
23
+ id: string;
24
+ issuedThrough?: {
25
+ typeOf?: ProductType.Transportation;
26
+ };
27
+ reservationFor: {
28
+ typeOf: TripType.BusTrip;
29
+ id: string;
30
+ };
31
+ reservationNumber: string;
32
+ /**
33
+ * previousReservationStatusを変更時に指定するために必要
34
+ */
35
+ reservationStatus: IAvailableReservationStatusType;
36
+ typeOf: ReservationType.BusReservation;
37
+ }
38
+ /**
39
+ * 予約取消対象
40
+ */
41
+ export interface IEventReservationAsObject {
42
+ id: string;
43
+ issuedThrough?: {
44
+ typeOf?: ProductType.EventService;
45
+ };
46
+ reservationFor: {
47
+ typeOf: EventType.ScreeningEvent;
48
+ id: string;
49
+ };
50
+ reservationNumber: string;
51
+ /**
52
+ * previousReservationStatusを変更時に指定するために必要
53
+ */
54
+ reservationStatus: IAvailableReservationStatusType;
55
+ typeOf: ReservationType.EventReservation;
56
+ }
57
+ export type IObject = IBusReservationAsObject | IEventReservationAsObject | IReservationPackageAsObject;
58
+ /**
59
+ * 予約取消結果
60
+ */
61
+ export type IResult = any;
62
+ /**
63
+ * 予約取消目的
64
+ */
65
+ export interface IPurpose {
66
+ /**
67
+ * 取引タイプ
68
+ */
69
+ typeOf: AssetTransactionType;
70
+ /**
71
+ * 取引ID
72
+ */
73
+ id: string;
74
+ }
75
+ /**
76
+ * アクション属性
77
+ */
78
+ export interface IAttributes extends ActionFactory.IAttributes<ActionType.CancelAction, IObject, IResult> {
79
+ agent: IAgent;
80
+ purpose: IPurpose;
81
+ }
82
+ /**
83
+ * 予約取消アクション
84
+ */
85
+ export type IAction = ActionFactory.IAction<IAttributes>;
@@ -0,0 +1,42 @@
1
+ import * as surfrock from '@surfrock/sdk';
2
+ import * as ActionFactory from '../../../action';
3
+ import { OrganizationType } from '../../../organizationType';
4
+ import { IMovieTicket as IMovieTicketPaymentCard, IServiceOutput as IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
5
+ import { TransactionType } from '../../../transactionType';
6
+ import * as CheckActionFactory from '../../check';
7
+ import * as PayActionFactory from '../../trade/pay';
8
+ export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
9
+ export type IPurchaseNumberAuthIn = surfrock.service.auth.factory.IPurchaseNumberAuthIn;
10
+ export type IPurchaseNumberAuthResult = surfrock.service.auth.factory.IPurchaseNumberAuthResult;
11
+ export type IMovieTicket = Omit<IMovieTicketPaymentCard, 'project' | 'serviceOutput'> & {
12
+ serviceOutput: Pick<IMovieTicketServiceOutput, 'reservationFor'>;
13
+ };
14
+ export interface IPaymentService extends Pick<PayActionFactory.IPaymentService, 'id' | 'typeOf' | 'paymentMethod'> {
15
+ /**
16
+ * 販売者
17
+ */
18
+ seller: {
19
+ typeOf: OrganizationType.Corporation;
20
+ id: string;
21
+ };
22
+ movieTickets?: IMovieTicket[];
23
+ }
24
+ export type IObject = IPaymentService[];
25
+ export interface IResult {
26
+ purchaseNumberAuthIn: IPurchaseNumberAuthIn;
27
+ purchaseNumberAuthResult: IPurchaseNumberAuthResult;
28
+ }
29
+ export type IError = any;
30
+ export interface IPurpose {
31
+ typeOf: TransactionType;
32
+ id: string;
33
+ }
34
+ export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IResult> {
35
+ agent: IAgent;
36
+ object: IObject;
37
+ purpose?: IPurpose;
38
+ }
39
+ /**
40
+ * MovieTicket認証アクション
41
+ */
42
+ export type IAction = ActionFactory.IAction<IAttributes>;
@@ -0,0 +1,23 @@
1
+ import * as ActionFactory from '../../action';
2
+ import * as CheckActionFactory from '../check';
3
+ export declare enum ObjectType {
4
+ Ticket = "Ticket"
5
+ }
6
+ export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsProject;
7
+ export interface IObject {
8
+ token: string;
9
+ typeOf: ObjectType;
10
+ }
11
+ export type IResult = any;
12
+ export type IError = any;
13
+ /**
14
+ * トークン検証アクション属性
15
+ */
16
+ export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IResult> {
17
+ agent: IAgent;
18
+ object: IObject;
19
+ }
20
+ /**
21
+ * トークン検証アクション
22
+ */
23
+ export type IAction = ActionFactory.IAction<IAttributes>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObjectType = void 0;
4
+ var ObjectType;
5
+ (function (ObjectType) {
6
+ ObjectType["Ticket"] = "Ticket";
7
+ })(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
@@ -0,0 +1,10 @@
1
+ import * as ActionFactory from '../action';
2
+ import { ActionType } from '../actionType';
3
+ export type IObject = any;
4
+ export type IResult = any;
5
+ export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.CheckAction, TObject, TResult> {
6
+ }
7
+ /**
8
+ * 確認アクション
9
+ */
10
+ export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;