@cinerino/sdk 14.0.0-alpha.8 → 14.0.0
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 -3
- package/lib/abstract/auth/authClient.js +10 -60
- package/lib/abstract/chevre/categoryCode.d.ts +1 -1
- package/lib/abstract/chevre/categoryCode.js +16 -84
- package/lib/abstract/chevre/creativeWork.d.ts +1 -1
- package/lib/abstract/chevre/creativeWork.js +16 -84
- package/lib/abstract/chevre/emailMessage.d.ts +1 -1
- package/lib/abstract/chevre/emailMessage.js +16 -84
- package/lib/abstract/chevre/event/factory.d.ts +1 -1
- package/lib/abstract/chevre/event.d.ts +1 -1
- package/lib/abstract/chevre/event.js +102 -270
- package/lib/abstract/chevre/eventOffer.d.ts +1 -1
- package/lib/abstract/chevre/eventOffer.js +13 -76
- package/lib/abstract/chevre/eventSeries.d.ts +1 -1
- package/lib/abstract/chevre/eventSeries.js +12 -75
- package/lib/abstract/chevre/note.d.ts +1 -1
- package/lib/abstract/chevre/note.js +14 -77
- package/lib/abstract/chevre/paymentService.d.ts +1 -1
- package/lib/abstract/chevre/paymentService.js +14 -78
- package/lib/abstract/chevre/place/hasPOS.d.ts +1 -1
- package/lib/abstract/chevre/place/hasPOS.js +13 -99
- package/lib/abstract/chevre/place.d.ts +1 -1
- package/lib/abstract/chevre/place.js +82 -232
- package/lib/abstract/chevre/product.d.ts +1 -1
- package/lib/abstract/chevre/product.js +34 -124
- package/lib/abstract/chevre/productOffer.d.ts +1 -1
- package/lib/abstract/chevre/productOffer.js +13 -76
- package/lib/abstract/chevre/seatOffer.d.ts +1 -1
- package/lib/abstract/chevre/seatOffer.js +15 -79
- package/lib/abstract/chevre/seller/factory.d.ts +1 -1
- package/lib/abstract/chevre/seller.d.ts +1 -1
- package/lib/abstract/chevre/seller.js +42 -128
- package/lib/abstract/chevre/trip.d.ts +1 -1
- package/lib/abstract/chevre/trip.js +16 -84
- package/lib/abstract/chevre.js +127 -329
- package/lib/abstract/chevreAdmic/sync.js +24 -94
- package/lib/abstract/chevreAdmic.js +28 -76
- package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.d.ts +1 -1
- package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.js +11 -76
- package/lib/abstract/chevreAdmin/authorization.d.ts +1 -1
- package/lib/abstract/chevreAdmin/authorization.js +13 -76
- package/lib/abstract/chevreAdmin/customer.d.ts +1 -1
- package/lib/abstract/chevreAdmin/customer.js +13 -76
- package/lib/abstract/chevreAdmin/event.d.ts +1 -1
- package/lib/abstract/chevreAdmin/event.js +56 -162
- package/lib/abstract/chevreAdmin/eventOffer.d.ts +1 -1
- package/lib/abstract/chevreAdmin/eventOffer.js +41 -134
- package/lib/abstract/chevreAdmin/eventSeries.d.ts +1 -1
- package/lib/abstract/chevreAdmin/eventSeries.js +30 -104
- package/lib/abstract/chevreAdmin/me.d.ts +1 -1
- package/lib/abstract/chevreAdmin/me.js +25 -104
- package/lib/abstract/chevreAdmin/member.d.ts +1 -1
- package/lib/abstract/chevreAdmin/member.js +14 -100
- package/lib/abstract/chevreAdmin/movie.d.ts +1 -1
- package/lib/abstract/chevreAdmin/movie.js +21 -93
- package/lib/abstract/chevreAdmin/movieTheater.d.ts +1 -1
- package/lib/abstract/chevreAdmin/movieTheater.js +56 -162
- package/lib/abstract/chevreAdmin/note.d.ts +1 -1
- package/lib/abstract/chevreAdmin/note.js +32 -117
- package/lib/abstract/chevreAdmin/noteAboutOrder.d.ts +1 -1
- package/lib/abstract/chevreAdmin/noteAboutOrder.js +29 -112
- package/lib/abstract/chevreAdmin/offer.d.ts +1 -1
- package/lib/abstract/chevreAdmin/offer.js +24 -98
- package/lib/abstract/chevreAdmin/offerCatalog.d.ts +1 -1
- package/lib/abstract/chevreAdmin/offerCatalog.js +18 -85
- package/lib/abstract/chevreAdmin/offerCatalogItem.d.ts +1 -1
- package/lib/abstract/chevreAdmin/offerCatalogItem.js +25 -99
- package/lib/abstract/chevreAdmin/order.d.ts +1 -1
- package/lib/abstract/chevreAdmin/order.js +50 -161
- package/lib/abstract/chevreAdmin/paymentMethod.d.ts +1 -1
- package/lib/abstract/chevreAdmin/paymentMethod.js +15 -78
- package/lib/abstract/chevreAdmin/product.d.ts +1 -1
- package/lib/abstract/chevreAdmin/product.js +31 -110
- package/lib/abstract/chevreAdmin/productOffer.d.ts +1 -1
- package/lib/abstract/chevreAdmin/productOffer.js +41 -134
- package/lib/abstract/chevreAdmin/reservation.d.ts +1 -1
- package/lib/abstract/chevreAdmin/reservation.js +31 -125
- package/lib/abstract/chevreAdmin/room.d.ts +1 -1
- package/lib/abstract/chevreAdmin/room.js +25 -99
- package/lib/abstract/chevreAdmin/seat.d.ts +1 -1
- package/lib/abstract/chevreAdmin/seat.js +38 -129
- package/lib/abstract/chevreAdmin/seatSection.d.ts +1 -1
- package/lib/abstract/chevreAdmin/seatSection.js +25 -99
- package/lib/abstract/chevreAdmin/seller.d.ts +1 -1
- package/lib/abstract/chevreAdmin/seller.js +13 -76
- package/lib/abstract/chevreAdmin.js +191 -492
- package/lib/abstract/chevreAsset/order/factory.d.ts +1 -1
- package/lib/abstract/chevreAsset/order.js +77 -231
- package/lib/abstract/chevreAsset/permit.d.ts +1 -1
- package/lib/abstract/chevreAsset/permit.js +22 -92
- package/lib/abstract/chevreAsset/reservation/factory.d.ts +1 -1
- package/lib/abstract/chevreAsset/reservation.d.ts +1 -1
- package/lib/abstract/chevreAsset/reservation.js +23 -93
- package/lib/abstract/chevreAsset/token.js +4 -24
- package/lib/abstract/chevreAsset.js +65 -135
- package/lib/abstract/chevreConsole/account.d.ts +1 -1
- package/lib/abstract/chevreConsole/account.js +32 -116
- package/lib/abstract/chevreConsole/accountTitle.d.ts +1 -1
- package/lib/abstract/chevreConsole/accountTitle.js +113 -303
- package/lib/abstract/chevreConsole/accountTransaction.d.ts +3 -3
- package/lib/abstract/chevreConsole/accountTransaction.js +16 -84
- package/lib/abstract/chevreConsole/accountingReport.d.ts +1 -1
- package/lib/abstract/chevreConsole/accountingReport.js +16 -84
- package/lib/abstract/chevreConsole/action.d.ts +1 -1
- package/lib/abstract/chevreConsole/action.js +33 -115
- package/lib/abstract/chevreConsole/additionalProperty.d.ts +1 -1
- package/lib/abstract/chevreConsole/additionalProperty.js +46 -146
- package/lib/abstract/chevreConsole/advanceBookingRequirement.d.ts +1 -1
- package/lib/abstract/chevreConsole/advanceBookingRequirement.js +36 -139
- package/lib/abstract/chevreConsole/aggregateOffer.d.ts +1 -1
- package/lib/abstract/chevreConsole/aggregateOffer.js +22 -99
- package/lib/abstract/chevreConsole/aggregateReservation.d.ts +1 -1
- package/lib/abstract/chevreConsole/aggregateReservation.js +12 -75
- package/lib/abstract/chevreConsole/aggregation.d.ts +1 -1
- package/lib/abstract/chevreConsole/aggregation.js +15 -86
- package/lib/abstract/chevreConsole/assetTransaction/moneyTransfer.d.ts +1 -1
- package/lib/abstract/chevreConsole/assetTransaction/moneyTransfer.js +33 -139
- package/lib/abstract/chevreConsole/assetTransaction/pay.d.ts +1 -1
- package/lib/abstract/chevreConsole/assetTransaction/pay.js +44 -168
- package/lib/abstract/chevreConsole/assetTransaction/registerService.d.ts +1 -1
- package/lib/abstract/chevreConsole/assetTransaction/registerService.js +33 -150
- package/lib/abstract/chevreConsole/assetTransaction/reserve.d.ts +1 -1
- package/lib/abstract/chevreConsole/assetTransaction/reserve.js +40 -143
- package/lib/abstract/chevreConsole/assetTransaction.d.ts +1 -1
- package/lib/abstract/chevreConsole/assetTransaction.js +16 -84
- package/lib/abstract/chevreConsole/authorization.d.ts +1 -1
- package/lib/abstract/chevreConsole/authorization.js +13 -76
- package/lib/abstract/chevreConsole/categoryCode.d.ts +1 -1
- package/lib/abstract/chevreConsole/categoryCode.js +40 -137
- package/lib/abstract/chevreConsole/comment.d.ts +1 -1
- package/lib/abstract/chevreConsole/comment.js +25 -100
- package/lib/abstract/chevreConsole/creativeWork.js +15 -80
- package/lib/abstract/chevreConsole/customer.d.ts +1 -1
- package/lib/abstract/chevreConsole/customer.js +26 -107
- package/lib/abstract/chevreConsole/customerType.d.ts +1 -1
- package/lib/abstract/chevreConsole/customerType.js +13 -76
- package/lib/abstract/chevreConsole/emailMessage.d.ts +1 -1
- package/lib/abstract/chevreConsole/emailMessage.js +47 -147
- package/lib/abstract/chevreConsole/event/factory.d.ts +1 -1
- package/lib/abstract/chevreConsole/event.d.ts +1 -1
- package/lib/abstract/chevreConsole/event.js +60 -184
- package/lib/abstract/chevreConsole/eventSeries.js +23 -118
- package/lib/abstract/chevreConsole/hasMerchantReturnPolicy.d.ts +1 -1
- package/lib/abstract/chevreConsole/hasMerchantReturnPolicy.js +11 -74
- package/lib/abstract/chevreConsole/iam.d.ts +1 -1
- package/lib/abstract/chevreConsole/iam.js +116 -301
- package/lib/abstract/chevreConsole/identity.d.ts +1 -1
- package/lib/abstract/chevreConsole/identity.js +36 -139
- package/lib/abstract/chevreConsole/identityProvider.d.ts +1 -1
- package/lib/abstract/chevreConsole/identityProvider.js +36 -139
- package/lib/abstract/chevreConsole/issuer.d.ts +1 -1
- package/lib/abstract/chevreConsole/issuer.js +44 -152
- package/lib/abstract/chevreConsole/me.d.ts +1 -1
- package/lib/abstract/chevreConsole/me.js +26 -109
- package/lib/abstract/chevreConsole/member.d.ts +1 -1
- package/lib/abstract/chevreConsole/member.js +63 -210
- package/lib/abstract/chevreConsole/memberProgram.js +47 -156
- package/lib/abstract/chevreConsole/merchantReturnPolicy.d.ts +1 -1
- package/lib/abstract/chevreConsole/merchantReturnPolicy.js +45 -145
- package/lib/abstract/chevreConsole/message.d.ts +1 -1
- package/lib/abstract/chevreConsole/message.js +12 -75
- package/lib/abstract/chevreConsole/movieTicketType.d.ts +1 -1
- package/lib/abstract/chevreConsole/movieTicketType.js +36 -124
- package/lib/abstract/chevreConsole/offer.d.ts +1 -1
- package/lib/abstract/chevreConsole/offer.js +29 -108
- package/lib/abstract/chevreConsole/offerCatalog.d.ts +1 -1
- package/lib/abstract/chevreConsole/offerCatalog.js +38 -138
- package/lib/abstract/chevreConsole/offerCatalogItem.d.ts +1 -1
- package/lib/abstract/chevreConsole/offerCatalogItem.js +51 -167
- package/lib/abstract/chevreConsole/offerItemCondition.d.ts +1 -1
- package/lib/abstract/chevreConsole/offerItemCondition.js +38 -131
- package/lib/abstract/chevreConsole/order/factory.d.ts +1 -1
- package/lib/abstract/chevreConsole/order.d.ts +1 -1
- package/lib/abstract/chevreConsole/order.js +45 -144
- package/lib/abstract/chevreConsole/ownershipInfo.d.ts +1 -1
- package/lib/abstract/chevreConsole/ownershipInfo.js +16 -84
- package/lib/abstract/chevreConsole/paymentService.d.ts +1 -1
- package/lib/abstract/chevreConsole/paymentService.js +55 -169
- package/lib/abstract/chevreConsole/paymentServiceChannel.d.ts +1 -1
- package/lib/abstract/chevreConsole/paymentServiceChannel.js +36 -139
- package/lib/abstract/chevreConsole/pendingReservation.d.ts +1 -1
- package/lib/abstract/chevreConsole/pendingReservation.js +23 -94
- package/lib/abstract/chevreConsole/permission.js +22 -93
- package/lib/abstract/chevreConsole/permit.d.ts +1 -1
- package/lib/abstract/chevreConsole/permit.js +34 -116
- package/lib/abstract/chevreConsole/person.d.ts +1 -1
- package/lib/abstract/chevreConsole/person.js +67 -186
- package/lib/abstract/chevreConsole/place/hasPOS.d.ts +1 -1
- package/lib/abstract/chevreConsole/place/hasPOS.js +33 -146
- package/lib/abstract/chevreConsole/place.d.ts +1 -1
- package/lib/abstract/chevreConsole/place.js +97 -260
- package/lib/abstract/chevreConsole/priceSpecification.d.ts +1 -1
- package/lib/abstract/chevreConsole/priceSpecification.js +37 -130
- package/lib/abstract/chevreConsole/product.d.ts +1 -1
- package/lib/abstract/chevreConsole/product.js +48 -155
- package/lib/abstract/chevreConsole/productModel.d.ts +1 -1
- package/lib/abstract/chevreConsole/productModel.js +34 -122
- package/lib/abstract/chevreConsole/project.d.ts +1 -1
- package/lib/abstract/chevreConsole/project.js +38 -147
- package/lib/abstract/chevreConsole/projectMakesOffer.d.ts +1 -1
- package/lib/abstract/chevreConsole/projectMakesOffer.js +32 -122
- package/lib/abstract/chevreConsole/reservation/factory.d.ts +1 -1
- package/lib/abstract/chevreConsole/reservation.js +11 -76
- package/lib/abstract/chevreConsole/seller/factory.d.ts +1 -1
- package/lib/abstract/chevreConsole/seller.d.ts +1 -1
- package/lib/abstract/chevreConsole/seller.js +139 -362
- package/lib/abstract/chevreConsole/sellerMakesOffer.d.ts +1 -1
- package/lib/abstract/chevreConsole/sellerMakesOffer.js +26 -107
- package/lib/abstract/chevreConsole/sellerReturnPolicy.d.ts +1 -1
- package/lib/abstract/chevreConsole/sellerReturnPolicy.js +45 -156
- package/lib/abstract/chevreConsole/task.d.ts +1 -1
- package/lib/abstract/chevreConsole/task.js +29 -108
- package/lib/abstract/chevreConsole/ticket.d.ts +1 -1
- package/lib/abstract/chevreConsole/ticket.js +12 -75
- package/lib/abstract/chevreConsole/token.js +4 -24
- package/lib/abstract/chevreConsole/transaction/placeOrder.d.ts +2 -3
- package/lib/abstract/chevreConsole/transaction/placeOrder.js +28 -139
- package/lib/abstract/chevreConsole/transaction/returnOrder.d.ts +2 -3
- package/lib/abstract/chevreConsole/transaction/returnOrder.js +18 -110
- package/lib/abstract/chevreConsole/transactionNumber.js +13 -76
- package/lib/abstract/chevreConsole/trip.d.ts +1 -1
- package/lib/abstract/chevreConsole/trip.js +46 -146
- package/lib/abstract/chevreConsole/userPool.d.ts +1 -1
- package/lib/abstract/chevreConsole/userPool.js +32 -114
- package/lib/abstract/chevreConsole/webSite.d.ts +1 -1
- package/lib/abstract/chevreConsole/webSite.js +36 -128
- package/lib/abstract/chevreConsole.js +496 -1270
- package/lib/abstract/chevrePay/payment/factory.d.ts +1 -1
- package/lib/abstract/chevrePay/payment.d.ts +1 -1
- package/lib/abstract/chevrePay/payment.js +300 -498
- package/lib/abstract/chevrePay.js +33 -84
- package/lib/abstract/chevreTxc/offer/factory.d.ts +1 -1
- package/lib/abstract/chevreTxc/offer.d.ts +1 -1
- package/lib/abstract/chevreTxc/offer.js +69 -195
- package/lib/abstract/chevreTxc.js +33 -84
- package/lib/abstract/chevreTxn/offer.d.ts +1 -1
- package/lib/abstract/chevreTxn/offer.js +57 -183
- package/lib/abstract/chevreTxn/transaction/placeOrder/factory.d.ts +1 -1
- package/lib/abstract/chevreTxn/transaction/placeOrder.d.ts +3 -3
- package/lib/abstract/chevreTxn/transaction/placeOrder.js +53 -197
- package/lib/abstract/chevreTxn/transaction/returnOrder/factory.d.ts +1 -1
- package/lib/abstract/chevreTxn/transaction/returnOrder.d.ts +3 -3
- package/lib/abstract/chevreTxn/transaction/returnOrder.js +38 -165
- package/lib/abstract/chevreTxn/transaction.d.ts +1 -11
- package/lib/abstract/chevreTxn/transaction.js +0 -10
- package/lib/abstract/chevreTxn.js +58 -119
- package/lib/abstract/cinerino/default.d.ts +0 -12
- package/lib/abstract/cinerino/default.js +19 -103
- package/lib/abstract/cinerino/service/categoryCode.d.ts +1 -1
- package/lib/abstract/cinerino/service/categoryCode.js +18 -94
- package/lib/abstract/cinerino/service/emailMessage.d.ts +1 -1
- package/lib/abstract/cinerino/service/emailMessage.js +18 -94
- package/lib/abstract/cinerino/service/event.d.ts +1 -1
- package/lib/abstract/cinerino/service/event.js +165 -351
- package/lib/abstract/cinerino/service/place/hasPOS.d.ts +1 -1
- package/lib/abstract/cinerino/service/place/hasPOS.js +16 -110
- package/lib/abstract/cinerino/service/place.d.ts +1 -1
- package/lib/abstract/cinerino/service/place.js +31 -142
- package/lib/abstract/cinerino/service/seller.d.ts +1 -1
- package/lib/abstract/cinerino/service/seller.js +54 -165
- package/lib/abstract/cloud/admin/creativeWork.d.ts +1 -1
- package/lib/abstract/cloud/admin/creativeWork.js +12 -83
- package/lib/abstract/cloud/admin/customer.d.ts +1 -1
- package/lib/abstract/cloud/admin/customer.js +20 -81
- package/lib/abstract/cloud/admin/event.d.ts +1 -1
- package/lib/abstract/cloud/admin/event.js +66 -210
- package/lib/abstract/cloud/admin/eventOffer.js +24 -119
- package/lib/abstract/cloud/admin/eventSeries.d.ts +1 -1
- package/lib/abstract/cloud/admin/eventSeries.js +12 -94
- package/lib/abstract/cloud/admin/me.js +18 -106
- package/lib/abstract/cloud/admin/noteAboutOrder.d.ts +1 -1
- package/lib/abstract/cloud/admin/noteAboutOrder.js +33 -138
- package/lib/abstract/cloud/admin/offer.d.ts +1 -1
- package/lib/abstract/cloud/admin/offer.js +88 -186
- package/lib/abstract/cloud/admin/offerCatalog.d.ts +1 -1
- package/lib/abstract/cloud/admin/offerCatalog.js +20 -126
- package/lib/abstract/cloud/admin/offerCatalogItem.d.ts +1 -1
- package/lib/abstract/cloud/admin/offerCatalogItem.js +25 -117
- package/lib/abstract/cloud/admin/order.d.ts +1 -1
- package/lib/abstract/cloud/admin/order.js +108 -219
- package/lib/abstract/cloud/admin/paymentMethod.js +12 -80
- package/lib/abstract/cloud/admin/product.d.ts +1 -1
- package/lib/abstract/cloud/admin/product.js +25 -114
- package/lib/abstract/cloud/admin/productOffer.d.ts +1 -1
- package/lib/abstract/cloud/admin/productOffer.js +28 -126
- package/lib/abstract/cloud/admin/reservation.d.ts +41 -8
- package/lib/abstract/cloud/admin/reservation.js +89 -226
- package/lib/abstract/cloud/admin/seller.d.ts +1 -1
- package/lib/abstract/cloud/admin/seller.js +12 -79
- package/lib/abstract/cloud/admin.js +135 -348
- package/lib/abstract/cloud/asset/delivery.js +23 -94
- package/lib/abstract/cloud/asset/order.js +180 -251
- package/lib/abstract/cloud/asset/reservation.d.ts +1 -1
- package/lib/abstract/cloud/asset/reservation.js +28 -113
- package/lib/abstract/cloud/asset/token.js +3 -23
- package/lib/abstract/cloud/asset.d.ts +0 -4
- package/lib/abstract/cloud/asset.js +60 -134
- package/lib/abstract/cloud/pay/payment.d.ts +1 -1
- package/lib/abstract/cloud/pay/payment.js +387 -689
- package/lib/abstract/cloud/pay.d.ts +0 -4
- package/lib/abstract/cloud/pay.js +33 -83
- package/lib/abstract/cloud/search/creativeWork.js +13 -76
- package/lib/abstract/cloud/search/eventOffer.js +15 -79
- package/lib/abstract/cloud/search/paymentService.js +14 -78
- package/lib/abstract/cloud/search/place.d.ts +1 -1
- package/lib/abstract/cloud/search/place.js +24 -96
- package/lib/abstract/cloud/search/product.d.ts +1 -1
- package/lib/abstract/cloud/search/product.js +34 -114
- package/lib/abstract/cloud/search/productOffer.js +15 -79
- package/lib/abstract/cloud/search/seatOffer.js +15 -79
- package/lib/abstract/cloud/search.js +86 -179
- package/lib/abstract/cloud/txc/transaction/forceAsync.d.ts +1 -1
- package/lib/abstract/cloud/txc/transaction/forceAsync.js +113 -206
- package/lib/abstract/cloud/txc/transaction/placeOrder.d.ts +1 -1
- package/lib/abstract/cloud/txc/transaction/placeOrder.js +146 -242
- package/lib/abstract/cloud/txc.js +34 -79
- package/lib/abstract/cloud/txn/offer.d.ts +1 -1
- package/lib/abstract/cloud/txn/offer.js +72 -172
- package/lib/abstract/cloud/txn/transaction/placeOrder.d.ts +1 -1
- package/lib/abstract/cloud/txn/transaction/placeOrder.js +145 -234
- package/lib/abstract/cloud/txn/transaction/returnOrder.d.ts +1 -1
- package/lib/abstract/cloud/txn/transaction/returnOrder.js +60 -141
- package/lib/abstract/cloud/txn.d.ts +0 -4
- package/lib/abstract/cloud/txn.js +52 -118
- package/lib/abstract/factory.d.ts +1 -1
- package/lib/abstract/factory.js +3 -15
- package/lib/abstract/index.d.ts +1 -1
- package/lib/abstract/index.js +107 -355
- package/lib/abstract/pecorino/accountTransaction.d.ts +3 -3
- package/lib/abstract/pecorino/accountTransaction.js +45 -146
- package/lib/abstract/pecorino/permit.d.ts +1 -1
- package/lib/abstract/pecorino/permit.js +24 -102
- package/lib/abstract/pecorino.d.ts +1 -1
- package/lib/abstract/pecorino.js +8 -56
- package/lib/abstract/service.d.ts +0 -1
- package/lib/abstract/service.js +65 -137
- package/lib/abstract/transporters.d.ts +2 -2
- package/lib/abstract/transporters.js +67 -143
- package/lib/abstract/waiterAdmin/rule.d.ts +1 -1
- package/lib/abstract/waiterAdmin/rule.js +13 -76
- package/lib/abstract/waiterAdmin/ruleSet.d.ts +1 -1
- package/lib/abstract/waiterAdmin/ruleSet.js +20 -92
- package/lib/abstract/waiterAdmin.js +35 -94
- package/lib/auth/clientCredentialsClient.d.ts +2 -4
- package/lib/auth/clientCredentialsClient.js +77 -158
- package/lib/auth/implicitGrantClient/credentials.d.ts +1 -2
- package/lib/auth/implicitGrantClient/error.d.ts +3 -3
- package/lib/auth/implicitGrantClient/error.js +5 -22
- package/lib/auth/implicitGrantClient/iframeHandler.d.ts +1 -1
- package/lib/auth/implicitGrantClient/iframeHandler.js +37 -27
- package/lib/auth/implicitGrantClient/popupAuthenticationHandler.d.ts +1 -1
- package/lib/auth/implicitGrantClient/popupAuthenticationHandler.js +35 -99
- package/lib/auth/implicitGrantClient/popupHandler.d.ts +1 -1
- package/lib/auth/implicitGrantClient/popupHandler.js +37 -27
- package/lib/auth/implicitGrantClient/silentAuthenticationHandler.d.ts +1 -1
- package/lib/auth/implicitGrantClient/silentAuthenticationHandler.js +35 -99
- package/lib/auth/implicitGrantClient/silentLogoutHandler.d.ts +1 -1
- package/lib/auth/implicitGrantClient/silentLogoutHandler.js +35 -99
- package/lib/auth/implicitGrantClient.d.ts +2 -2
- package/lib/auth/implicitGrantClient.js +153 -304
- package/lib/auth/loginTicket.js +7 -6
- package/lib/auth/oAuth2client.d.ts +2 -2
- package/lib/auth/oAuth2client.js +314 -390
- package/lib/browser.js +2 -2
- package/lib/bundle.js +6 -41699
- package/lib/bundle.js.map +7 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js +36 -106
- package/package.json +18 -21
- package/lib/abstract/chevreConsole/transaction.d.ts +0 -7
- package/lib/abstract/chevreConsole/transaction.js +0 -12
|
@@ -1,76 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
28
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
-
function step(op) {
|
|
31
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
-
switch (op[0]) {
|
|
36
|
-
case 0: case 1: t = op; break;
|
|
37
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
-
default:
|
|
41
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
-
if (t[2]) _.ops.pop();
|
|
46
|
-
_.trys.pop(); continue;
|
|
47
|
-
}
|
|
48
|
-
op = body.call(thisArg, _);
|
|
49
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
54
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
55
|
-
if (ar || !(i in from)) {
|
|
56
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
57
|
-
ar[i] = from[i];
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
61
|
-
};
|
|
62
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
3
|
exports.DeliveryService = void 0;
|
|
64
|
-
|
|
65
|
-
|
|
4
|
+
const index_1 = require("../../index");
|
|
5
|
+
const service_1 = require("../../service");
|
|
66
6
|
/**
|
|
67
7
|
* 配送サービス
|
|
68
8
|
*/
|
|
69
|
-
|
|
70
|
-
__extends(DeliveryService, _super);
|
|
71
|
-
function DeliveryService() {
|
|
72
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
73
|
-
}
|
|
9
|
+
class DeliveryService extends service_1.Service {
|
|
74
10
|
// constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>) {
|
|
75
11
|
// super({ ...options, retryableStatusCodes: [BAD_GATEWAY, FORBIDDEN, UNAUTHORIZED] });
|
|
76
12
|
// }
|
|
@@ -78,32 +14,25 @@ var DeliveryService = /** @class */ (function (_super) {
|
|
|
78
14
|
* OrderPaymentDueであれば同期的にOrderProcessingへの処理を実行する
|
|
79
15
|
* OrderPaymentDueでなければ何もしない
|
|
80
16
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
orderService = _c.sent();
|
|
99
|
-
return [4 /*yield*/, orderService.deliverOrder({ confirmationNumber: confirmationNumber, orderNumber: orderNumber })];
|
|
100
|
-
case 3:
|
|
101
|
-
_c.sent();
|
|
102
|
-
return [2 /*return*/];
|
|
103
|
-
}
|
|
104
|
-
});
|
|
17
|
+
async sendOrder(params) {
|
|
18
|
+
// const { confirmationNumber, orderNumber } = params.object;
|
|
19
|
+
// await this.fetch({
|
|
20
|
+
// uri: `/orders/${orderNumber}/deliver`,
|
|
21
|
+
// method: 'POST',
|
|
22
|
+
// body: { confirmationNumber },
|
|
23
|
+
// expectedStatusCodes: [status.NO_CONTENT]
|
|
24
|
+
// });
|
|
25
|
+
const { auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes } = this.options;
|
|
26
|
+
const chevreAsset = await (0, index_1.loadChevreAsset)({ auth, endpoint, disableAutoRetry });
|
|
27
|
+
const { confirmationNumber, orderNumber } = params.object;
|
|
28
|
+
const orderService = await chevreAsset.createOrderInstance({
|
|
29
|
+
project,
|
|
30
|
+
seller: { id: (typeof seller?.id === 'string') ? seller.id : '' },
|
|
31
|
+
retryableStatusCodes: [
|
|
32
|
+
...(Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : []
|
|
33
|
+
]
|
|
105
34
|
});
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
35
|
+
await orderService.deliverOrder({ confirmationNumber, orderNumber });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
109
38
|
exports.DeliveryService = DeliveryService;
|
|
@@ -1,79 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
38
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
39
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
40
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
41
|
-
function step(op) {
|
|
42
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
43
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
44
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
45
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
46
|
-
switch (op[0]) {
|
|
47
|
-
case 0: case 1: t = op; break;
|
|
48
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
49
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
50
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
51
|
-
default:
|
|
52
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
53
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
54
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
55
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
56
|
-
if (t[2]) _.ops.pop();
|
|
57
|
-
_.trys.pop(); continue;
|
|
58
|
-
}
|
|
59
|
-
op = body.call(thisArg, _);
|
|
60
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
61
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
65
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
66
|
-
if (ar || !(i in from)) {
|
|
67
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
68
|
-
ar[i] = from[i];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
72
|
-
};
|
|
73
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
3
|
exports.OrderService = void 0;
|
|
75
|
-
|
|
76
|
-
|
|
4
|
+
const index_1 = require("../../index");
|
|
5
|
+
const service_1 = require("../../service");
|
|
77
6
|
// export const DEFAULT_PROJECTION: { [key: string]: 0 } = {
|
|
78
7
|
// // _id: 0, // IDを使用(2023-02-14~)
|
|
79
8
|
// acceptedOffers: 0,
|
|
@@ -90,11 +19,7 @@ var service_1 = require("../../service");
|
|
|
90
19
|
/**
|
|
91
20
|
* 注文サービス
|
|
92
21
|
*/
|
|
93
|
-
|
|
94
|
-
__extends(OrderService, _super);
|
|
95
|
-
function OrderService() {
|
|
96
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
97
|
-
}
|
|
22
|
+
class OrderService extends service_1.Service {
|
|
98
23
|
// constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>) {
|
|
99
24
|
// super({ ...options, retryableStatusCodes: [BAD_GATEWAY, FORBIDDEN, UNAUTHORIZED] });
|
|
100
25
|
// }
|
|
@@ -103,204 +28,208 @@ var OrderService = /** @class */ (function (_super) {
|
|
|
103
28
|
* 確定した注文取引に対して、同期的に注文データを作成
|
|
104
29
|
* すでに注文が作成済の場合、何もしない
|
|
105
30
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
orderService = _b.sent();
|
|
125
|
-
return [4 /*yield*/, orderService.createIfNotExist({ confirmationNumber: confirmationNumber, orderNumber: orderNumber })];
|
|
126
|
-
case 3:
|
|
127
|
-
_b.sent();
|
|
128
|
-
return [2 /*return*/];
|
|
129
|
-
}
|
|
130
|
-
});
|
|
31
|
+
async placeOrder(params) {
|
|
32
|
+
// await this.fetch({
|
|
33
|
+
// uri: '/orders',
|
|
34
|
+
// method: 'POST',
|
|
35
|
+
// body: { object },
|
|
36
|
+
// expectedStatusCodes: [NO_CONTENT, OK]
|
|
37
|
+
// });
|
|
38
|
+
const { auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes } = this.options;
|
|
39
|
+
const chevreAsset = await (0, index_1.loadChevreAsset)({ auth, endpoint, disableAutoRetry });
|
|
40
|
+
const { object } = params;
|
|
41
|
+
// const { object } = req.body;
|
|
42
|
+
const { confirmationNumber, orderNumber } = object;
|
|
43
|
+
const orderService = await chevreAsset.createOrderInstance({
|
|
44
|
+
project,
|
|
45
|
+
seller: { id: (typeof seller?.id === 'string') ? seller.id : '' },
|
|
46
|
+
retryableStatusCodes: [
|
|
47
|
+
...(Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : []
|
|
48
|
+
]
|
|
131
49
|
});
|
|
132
|
-
|
|
50
|
+
await orderService.createIfNotExist({ confirmationNumber, orderNumber });
|
|
51
|
+
}
|
|
133
52
|
/**
|
|
134
53
|
* 確認番号で検索
|
|
135
54
|
* 確認番号と購入者情報で注文を検索します
|
|
136
55
|
*/
|
|
137
|
-
|
|
138
|
-
return
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
orderService = _b.sent();
|
|
155
|
-
return [2 /*return*/, orderService.findByConfirmationNumber(__assign(__assign(__assign(__assign({ confirmationNumber: confirmationNumber }, (customer !== undefined) ? { customer: customer } : undefined), (orderDateFrom !== undefined) ? { orderDateFrom: orderDateFrom } : undefined), (orderDateThrough !== undefined) ? { orderDateThrough: orderDateThrough } : undefined), (typeof orderNumber === 'string') ? { orderNumber: orderNumber } : undefined))];
|
|
156
|
-
}
|
|
157
|
-
});
|
|
56
|
+
async findByConfirmationNumber(params) {
|
|
57
|
+
// return this.fetch({
|
|
58
|
+
// uri: '/orders/findByConfirmationNumber',
|
|
59
|
+
// method: 'POST',
|
|
60
|
+
// body: params,
|
|
61
|
+
// expectedStatusCodes: [status.OK]
|
|
62
|
+
// })
|
|
63
|
+
// .then(async (response) => response.json());
|
|
64
|
+
const { auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes } = this.options;
|
|
65
|
+
const chevreAsset = await (0, index_1.loadChevreAsset)({ auth, endpoint, disableAutoRetry });
|
|
66
|
+
const { confirmationNumber, customer, orderDateFrom, orderDateThrough, orderNumber } = params;
|
|
67
|
+
const orderService = await chevreAsset.createOrderInstance({
|
|
68
|
+
project,
|
|
69
|
+
seller: { id: (typeof seller?.id === 'string') ? seller.id : '' },
|
|
70
|
+
retryableStatusCodes: [
|
|
71
|
+
...(Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : []
|
|
72
|
+
]
|
|
158
73
|
});
|
|
159
|
-
|
|
74
|
+
return orderService.findByConfirmationNumber({
|
|
75
|
+
confirmationNumber,
|
|
76
|
+
// $projection: DEFAULT_PROJECTION, // fixed on server side(2024-07-22~)
|
|
77
|
+
...(customer !== undefined) ? { customer } : undefined,
|
|
78
|
+
...(orderDateFrom !== undefined) ? { orderDateFrom } : undefined,
|
|
79
|
+
...(orderDateThrough !== undefined) ? { orderDateThrough } : undefined,
|
|
80
|
+
...(typeof orderNumber === 'string') ? { orderNumber } : undefined
|
|
81
|
+
});
|
|
82
|
+
}
|
|
160
83
|
/**
|
|
161
84
|
* イベントIDと確認番号で検索
|
|
162
85
|
*/
|
|
163
|
-
|
|
164
|
-
return
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
orderService = _b.sent();
|
|
181
|
-
return [2 /*return*/, orderService.findByEventAndConfirmationNumber(__assign({ confirmationNumber: confirmationNumber, event: event }, (typeof (customer === null || customer === void 0 ? void 0 : customer.telephone) === 'string') ? { customer: customer } : undefined))];
|
|
182
|
-
}
|
|
183
|
-
});
|
|
86
|
+
async findByEventAndConfirmationNumber(params) {
|
|
87
|
+
// return this.fetch({
|
|
88
|
+
// uri: '/orders/findByEventAndConfirmationNumber',
|
|
89
|
+
// method: 'POST',
|
|
90
|
+
// body: params,
|
|
91
|
+
// expectedStatusCodes: [status.OK]
|
|
92
|
+
// })
|
|
93
|
+
// .then(async (response) => response.json());
|
|
94
|
+
const { auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes } = this.options;
|
|
95
|
+
const chevreAsset = await (0, index_1.loadChevreAsset)({ auth, endpoint, disableAutoRetry });
|
|
96
|
+
const { confirmationNumber, customer, event } = params;
|
|
97
|
+
const orderService = await chevreAsset.createOrderInstance({
|
|
98
|
+
project,
|
|
99
|
+
seller: { id: (typeof seller?.id === 'string') ? seller.id : '' },
|
|
100
|
+
retryableStatusCodes: [
|
|
101
|
+
...(Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : []
|
|
102
|
+
]
|
|
184
103
|
});
|
|
185
|
-
|
|
104
|
+
return orderService.findByEventAndConfirmationNumber({
|
|
105
|
+
confirmationNumber, event,
|
|
106
|
+
// $projection: DEFAULT_PROJECTION, // fixed on server side(2024-07-22~)
|
|
107
|
+
...(typeof customer?.telephone === 'string') ? { customer } : undefined
|
|
108
|
+
});
|
|
109
|
+
}
|
|
186
110
|
/**
|
|
187
111
|
* 予約番号と電話番号で注文情報を取得する(sskts専用)
|
|
188
112
|
*/
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
return [2 /*return*/, orderService.findByOrderInquiryKey4sskts({
|
|
208
|
-
confirmationNumber: confirmationNumber,
|
|
209
|
-
telephone: telephone,
|
|
210
|
-
theaterCode: theaterCode
|
|
211
|
-
// $projection: DEFAULT_PROJECTION // fixed on server side(2024-07-22~)
|
|
212
|
-
})];
|
|
213
|
-
}
|
|
214
|
-
});
|
|
113
|
+
async findByOrderInquiryKey4sskts(params) {
|
|
114
|
+
// const { confirmationNumber, telephone, theaterCode } = params;
|
|
115
|
+
// return this.fetch({
|
|
116
|
+
// uri: '/orders/findByOrderInquiryKey',
|
|
117
|
+
// method: 'POST',
|
|
118
|
+
// body: { confirmationNumber, telephone, theaterCode },
|
|
119
|
+
// expectedStatusCodes: [status.OK]
|
|
120
|
+
// })
|
|
121
|
+
// .then(async (response) => response.json());
|
|
122
|
+
const { auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes } = this.options;
|
|
123
|
+
const chevreAsset = await (0, index_1.loadChevreAsset)({ auth, endpoint, disableAutoRetry });
|
|
124
|
+
const { confirmationNumber, telephone, theaterCode } = params;
|
|
125
|
+
const orderService = await chevreAsset.createOrderInstance({
|
|
126
|
+
project,
|
|
127
|
+
seller: { id: (typeof seller?.id === 'string') ? seller.id : '' },
|
|
128
|
+
retryableStatusCodes: [
|
|
129
|
+
...(Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : []
|
|
130
|
+
]
|
|
215
131
|
});
|
|
216
|
-
|
|
132
|
+
return orderService.findByOrderInquiryKey4sskts({
|
|
133
|
+
confirmationNumber, telephone, theaterCode
|
|
134
|
+
// $projection: DEFAULT_PROJECTION // fixed on server side(2024-07-22~)
|
|
135
|
+
});
|
|
136
|
+
}
|
|
217
137
|
/**
|
|
218
138
|
* 注文番号と何かしらで注文照会
|
|
219
139
|
*/
|
|
220
|
-
|
|
221
|
-
return
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
orderService = _b.sent();
|
|
238
|
-
return [2 /*return*/, orderService.findOneByOrderNumberAndSomething(__assign({ orderNumber: orderNumber }, (typeof (customer === null || customer === void 0 ? void 0 : customer.telephone) === 'string') ? { customer: customer } : undefined))];
|
|
239
|
-
}
|
|
240
|
-
});
|
|
140
|
+
async findOneByOrderNumberAndSomething(params) {
|
|
141
|
+
// return this.fetch({
|
|
142
|
+
// uri: '/orders/findOneByOrderNumberAndSomething',
|
|
143
|
+
// method: 'POST',
|
|
144
|
+
// body: params,
|
|
145
|
+
// expectedStatusCodes: [status.OK]
|
|
146
|
+
// })
|
|
147
|
+
// .then(async (response) => response.json());
|
|
148
|
+
const { auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes } = this.options;
|
|
149
|
+
const chevreAsset = await (0, index_1.loadChevreAsset)({ auth, endpoint, disableAutoRetry });
|
|
150
|
+
const { customer, orderNumber } = params;
|
|
151
|
+
const orderService = await chevreAsset.createOrderInstance({
|
|
152
|
+
project,
|
|
153
|
+
seller: { id: (typeof seller?.id === 'string') ? seller.id : '' },
|
|
154
|
+
retryableStatusCodes: [
|
|
155
|
+
...(Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : []
|
|
156
|
+
]
|
|
241
157
|
});
|
|
242
|
-
|
|
158
|
+
return orderService.findOneByOrderNumberAndSomething({
|
|
159
|
+
orderNumber,
|
|
160
|
+
// $projection: DEFAULT_PROJECTION, // fixed on server side(2024-07-22~)
|
|
161
|
+
...(typeof customer?.telephone === 'string') ? { customer } : undefined
|
|
162
|
+
});
|
|
163
|
+
}
|
|
243
164
|
/**
|
|
244
165
|
* 注文承認
|
|
245
166
|
* 注文コードを発行する
|
|
246
167
|
*/
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
case 3:
|
|
271
|
-
code = (_b.sent()).code;
|
|
272
|
-
return [2 /*return*/, { code: code }];
|
|
273
|
-
}
|
|
274
|
-
});
|
|
168
|
+
async authorize(params) {
|
|
169
|
+
// const { customer, orderNumber } = params.object;
|
|
170
|
+
// const { result } = params;
|
|
171
|
+
// return this.fetch({
|
|
172
|
+
// uri: `/orders/${orderNumber}/authorize`,
|
|
173
|
+
// method: 'POST',
|
|
174
|
+
// body: {
|
|
175
|
+
// object: { customer },
|
|
176
|
+
// ...(typeof result?.expiresInSeconds === 'number') ? { result } : undefined
|
|
177
|
+
// },
|
|
178
|
+
// expectedStatusCodes: [status.OK]
|
|
179
|
+
// })
|
|
180
|
+
// .then(async (response) => response.json());
|
|
181
|
+
const { auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes } = this.options;
|
|
182
|
+
const chevreAsset = await (0, index_1.loadChevreAsset)({ auth, endpoint, disableAutoRetry });
|
|
183
|
+
const { orderNumber } = params.object;
|
|
184
|
+
const { object, result } = params;
|
|
185
|
+
const orderService = await chevreAsset.createOrderInstance({
|
|
186
|
+
project,
|
|
187
|
+
seller: { id: (typeof seller?.id === 'string') ? seller.id : '' },
|
|
188
|
+
retryableStatusCodes: [
|
|
189
|
+
...(Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : []
|
|
190
|
+
]
|
|
275
191
|
});
|
|
276
|
-
|
|
192
|
+
const { code } = await orderService.authorize({
|
|
193
|
+
object: {
|
|
194
|
+
customer: object.customer,
|
|
195
|
+
orderNumber
|
|
196
|
+
},
|
|
197
|
+
...(result?.expiresInSeconds !== undefined) ? { result } : undefined
|
|
198
|
+
});
|
|
199
|
+
return { code };
|
|
200
|
+
}
|
|
277
201
|
/**
|
|
278
202
|
* 確認番号で注文オファー検索
|
|
279
203
|
*/
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
204
|
+
async searchAcceptedOffersByConfirmationNumber(params) {
|
|
205
|
+
// const { limit, page, confirmationNumber, orderNumber } = params;
|
|
206
|
+
// return this.fetch({
|
|
207
|
+
// uri: `/orders/${orderNumber}/acceptedOffersByConfirmationNumber`,
|
|
208
|
+
// method: 'POST',
|
|
209
|
+
// body: {
|
|
210
|
+
// confirmationNumber,
|
|
211
|
+
// ...(typeof limit === 'number') ? { limit } : undefined,
|
|
212
|
+
// ...(typeof page === 'number') ? { page } : undefined
|
|
213
|
+
// },
|
|
214
|
+
// expectedStatusCodes: [status.OK]
|
|
215
|
+
// })
|
|
216
|
+
// .then(async (response) => response.json());
|
|
217
|
+
const { auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes } = this.options;
|
|
218
|
+
const chevreAsset = await (0, index_1.loadChevreAsset)({ auth, endpoint, disableAutoRetry });
|
|
219
|
+
const { orderNumber } = params;
|
|
220
|
+
const { limit, page, confirmationNumber } = params;
|
|
221
|
+
const orderService = await chevreAsset.createOrderInstance({
|
|
222
|
+
project,
|
|
223
|
+
seller: { id: (typeof seller?.id === 'string') ? seller.id : '' },
|
|
224
|
+
retryableStatusCodes: [
|
|
225
|
+
...(Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : []
|
|
226
|
+
]
|
|
302
227
|
});
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
228
|
+
return orderService.searchAcceptedOffersByConfirmationNumber({
|
|
229
|
+
confirmationNumber, orderNumber,
|
|
230
|
+
...(typeof limit === 'number') ? { limit } : undefined,
|
|
231
|
+
...(typeof page === 'number') ? { page } : undefined
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}
|
|
306
235
|
exports.OrderService = OrderService;
|