@lcdp/api-react-rest-client 1.3.17-react-codegen.2748 → 1.3.17-react-codegen.2749
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/auth/dist/apis/AuthApi.js +113 -213
- package/auth/dist/apis/ManageApiKeyApi.js +127 -227
- package/auth/dist/apis/SearchApiKeyApi.js +124 -207
- package/auth/dist/models/AnonymousUser.js +3 -14
- package/auth/dist/models/AnonymousUserAllOf.js +1 -1
- package/auth/dist/models/AnyAuthenticationCredential.js +10 -21
- package/auth/dist/models/AnyUser.js +6 -17
- package/auth/dist/models/ApiKey.js +2 -2
- package/auth/dist/models/ApiKeyCredential.js +3 -14
- package/auth/dist/models/DisposableCredential.js +3 -14
- package/auth/dist/models/DisposableTokenCreationParameters.js +1 -1
- package/auth/dist/models/IdentifiedUser.js +3 -14
- package/auth/dist/models/IdentifiedUserAllOf.js +1 -1
- package/auth/dist/models/LoginCredential.js +3 -14
- package/auth/dist/models/PaginatedApiKeys.js +4 -15
- package/auth/dist/models/PaginatedApiKeysAllOf.js +1 -1
- package/auth/dist/models/PaginatedObject.js +1 -1
- package/auth/dist/models/RefreshCredential.js +3 -14
- package/auth/dist/models/RevealedApiKey.js +4 -15
- package/auth/dist/models/RevealedApiKeyAllOf.js +1 -1
- package/auth/dist/models/UserLink.js +5 -16
- package/auth/dist/models/UserLinkAllOf.js +2 -2
- package/auth/dist/models/UserLinkAllOfCompany.js +1 -1
- package/auth/dist/runtime.js +153 -329
- package/banking-operation/dist/apis/ManageLevyApi.js +95 -178
- package/banking-operation/dist/apis/ManageOrderPaymentApi.js +104 -187
- package/banking-operation/dist/apis/SearchLevyApi.js +124 -207
- package/banking-operation/dist/apis/SearchOrderPaymentApi.js +58 -122
- package/banking-operation/dist/models/Levy.js +4 -4
- package/banking-operation/dist/models/LevyCreationParameters.js +2 -2
- package/banking-operation/dist/models/LevyPayment.js +2 -2
- package/banking-operation/dist/models/LevyUpdateParameters.js +2 -2
- package/banking-operation/dist/models/OrderLink.js +4 -15
- package/banking-operation/dist/models/OrderLinkAllOf.js +1 -1
- package/banking-operation/dist/models/OrderPayment.js +5 -5
- package/banking-operation/dist/models/OrderPaymentDeposit.js +2 -2
- package/banking-operation/dist/models/OrderPaymentWallets.js +2 -2
- package/banking-operation/dist/models/OrderPaymentWithdraw.js +2 -2
- package/banking-operation/dist/models/PaginatedLevies.js +4 -15
- package/banking-operation/dist/models/PaginatedLeviesAllOf.js +1 -1
- package/banking-operation/dist/models/PaginatedObject.js +1 -1
- package/banking-operation/dist/models/PaginatedOrderPayments.js +4 -15
- package/banking-operation/dist/models/PaginatedOrderPaymentsAllOf.js +1 -1
- package/banking-operation/dist/models/Transaction.js +2 -2
- package/banking-operation/dist/models/TransactionMangopayTarget.js +4 -15
- package/banking-operation/dist/models/TransactionMangopayTargetAllOf.js +1 -1
- package/banking-operation/dist/models/UserLink.js +5 -16
- package/banking-operation/dist/models/UserLinkAllOf.js +2 -2
- package/banking-operation/dist/models/UserLinkAllOfCompany.js +1 -1
- package/banking-operation/dist/models/Wallet.js +2 -2
- package/banking-operation/dist/models/WalletMangopayTarget.js +4 -15
- package/banking-operation/dist/models/WalletMangopayTargetAllOf.js +1 -1
- package/banking-operation/dist/runtime.js +153 -329
- package/challenge/dist/apis/ManageChallengesApi.js +51 -115
- package/challenge/dist/models/Challenge.js +2 -2
- package/challenge/dist/models/ChallengeAction.js +1 -1
- package/challenge/dist/runtime.js +153 -329
- package/configuration/dist/apis/ManageVariableApi.js +42 -104
- package/configuration/dist/apis/ManageVatApi.js +88 -169
- package/configuration/dist/apis/SearchVariableApi.js +71 -154
- package/configuration/dist/apis/SearchVatApi.js +91 -174
- package/configuration/dist/models/Variable.js +1 -1
- package/configuration/dist/models/Vat.js +1 -1
- package/configuration/dist/runtime.js +153 -329
- package/content/dist/apis/ManageContentApi.js +54 -118
- package/content/dist/apis/SearchContentApi.js +39 -103
- package/content/dist/models/Content.js +1 -1
- package/content/dist/runtime.js +153 -329
- package/factory/dist/apis/ManageAssemblyApi.js +125 -205
- package/factory/dist/apis/ManageAssemblyOperationApi.js +54 -118
- package/factory/dist/apis/SearchAssemblyApi.js +220 -341
- package/factory/dist/apis/SearchAssemblyLineApi.js +91 -174
- package/factory/dist/apis/SearchAssemblyOperationApi.js +97 -180
- package/factory/dist/models/Assembly.js +5 -5
- package/factory/dist/models/AssemblyLine.js +1 -1
- package/factory/dist/models/AssemblyLineLink.js +4 -15
- package/factory/dist/models/AssemblyLineLinkAllOf.js +1 -1
- package/factory/dist/models/AssemblyOperation.js +3 -3
- package/factory/dist/models/PaginatedAssemblies.js +5 -16
- package/factory/dist/models/PaginatedAssembliesAllOf.js +2 -2
- package/factory/dist/models/PaginatedObject.js +1 -1
- package/factory/dist/models/UserLink.js +4 -15
- package/factory/dist/models/UserLinkAllOf.js +1 -1
- package/factory/dist/runtime.js +153 -329
- package/favorite/dist/apis/ManageFavoriteProductApi.js +190 -309
- package/favorite/dist/models/Barcodes.js +1 -1
- package/favorite/dist/models/FavoriteProduct.js +2 -2
- package/favorite/dist/models/PaginatedFavoriteProducts.js +4 -15
- package/favorite/dist/models/PaginatedFavoriteProductsAllOf.js +1 -1
- package/favorite/dist/models/PaginatedObject.js +1 -1
- package/favorite/dist/models/ProductLink.js +6 -17
- package/favorite/dist/models/ProductLinkAllOf.js +3 -3
- package/favorite/dist/models/UserLink.js +3 -14
- package/favorite/dist/runtime.js +153 -329
- package/geo/dist/apis/SearchCountryApi.js +49 -113
- package/geo/dist/runtime.js +153 -329
- package/inventory/dist/apis/ManageInventoryApi.js +166 -279
- package/inventory/dist/apis/SearchInventoryApi.js +571 -806
- package/inventory/dist/models/ActiveProduct.js +2 -2
- package/inventory/dist/models/ActiveProductUpdateParameters.js +1 -1
- package/inventory/dist/models/Barcodes.js +1 -1
- package/inventory/dist/models/MisalignedProduct.js +2 -2
- package/inventory/dist/models/OverstockProduct.js +2 -2
- package/inventory/dist/models/OverstockProductUpdateParameters.js +1 -1
- package/inventory/dist/models/PaginatedActiveProducts.js +4 -15
- package/inventory/dist/models/PaginatedActiveProductsAllOf.js +1 -1
- package/inventory/dist/models/PaginatedMisalignedProducts.js +4 -15
- package/inventory/dist/models/PaginatedMisalignedProductsAllOf.js +1 -1
- package/inventory/dist/models/PaginatedObject.js +1 -1
- package/inventory/dist/models/PaginatedOverstockProducts.js +4 -15
- package/inventory/dist/models/PaginatedOverstockProductsAllOf.js +1 -1
- package/inventory/dist/models/ProductLink.js +5 -16
- package/inventory/dist/models/ProductLinkAllOf.js +2 -2
- package/inventory/dist/models/Statistics.js +4 -4
- package/inventory/dist/models/StatisticsActiveProducts.js +1 -1
- package/inventory/dist/models/StatisticsMisalignedProducts.js +1 -1
- package/inventory/dist/models/StatisticsOverstockProducts.js +1 -1
- package/inventory/dist/models/Synchroneity.js +2 -2
- package/inventory/dist/models/SynchroneityOffisante.js +2 -2
- package/inventory/dist/models/SynchroneitySource.js +1 -1
- package/inventory/dist/runtime.js +153 -329
- package/invoice/dist/apis/ManageInvoiceApi.js +107 -190
- package/invoice/dist/apis/ManageInvoiceLineApi.js +85 -166
- package/invoice/dist/apis/ManageInvoicesSummaryApi.js +40 -102
- package/invoice/dist/apis/SearchInvoiceApi.js +118 -201
- package/invoice/dist/apis/SearchInvoiceLineApi.js +67 -131
- package/invoice/dist/apis/SearchOrderTallyApi.js +121 -204
- package/invoice/dist/models/Invoice.js +3 -3
- package/invoice/dist/models/InvoiceSummaryCreationParameters.js +1 -1
- package/invoice/dist/models/InvoiceUpdateParameters.js +1 -1
- package/invoice/dist/models/OrderLink.js +4 -15
- package/invoice/dist/models/OrderLinkAllOf.js +1 -1
- package/invoice/dist/models/OrderTally.js +4 -4
- package/invoice/dist/models/PaginatedInvoices.js +4 -15
- package/invoice/dist/models/PaginatedInvoicesAllOf.js +1 -1
- package/invoice/dist/models/PaginatedObject.js +1 -1
- package/invoice/dist/models/PaginatedOrderTallies.js +4 -15
- package/invoice/dist/models/PaginatedOrderTalliesAllOf.js +1 -1
- package/invoice/dist/models/PaginatedPlannedInvoiceLine.js +4 -15
- package/invoice/dist/models/PaginatedPlannedInvoiceLineAllOf.js +1 -1
- package/invoice/dist/models/PlannedInvoiceLine.js +1 -1
- package/invoice/dist/models/UserLink.js +5 -16
- package/invoice/dist/models/UserLinkAllOf.js +2 -2
- package/invoice/dist/models/UserLinkAllOfCompany.js +1 -1
- package/invoice/dist/runtime.js +153 -329
- package/laboratory/dist/apis/ManageLaboratoryApi.js +51 -115
- package/laboratory/dist/apis/SearchLaboratoryApi.js +109 -192
- package/laboratory/dist/models/Laboratory.js +1 -1
- package/laboratory/dist/models/PaginatedLaboratories.js +4 -15
- package/laboratory/dist/models/PaginatedLaboratoriesAllOf.js +1 -1
- package/laboratory/dist/models/PaginatedObject.js +1 -1
- package/laboratory/dist/runtime.js +153 -329
- package/laboratory-store/dist/apis/ManageLaboratoryStoreApi.js +95 -178
- package/laboratory-store/dist/apis/ManageLaboratoryStoreImageApi.js +212 -327
- package/laboratory-store/dist/apis/SearchLaboratoryStoreApi.js +112 -195
- package/laboratory-store/dist/models/Image.js +2 -2
- package/laboratory-store/dist/models/ImageVersions.js +1 -1
- package/laboratory-store/dist/models/LaboratoryStore.js +4 -4
- package/laboratory-store/dist/models/LaboratoryStoreUpdateParameters.js +3 -3
- package/laboratory-store/dist/models/OwnerLink.js +4 -15
- package/laboratory-store/dist/models/OwnerLinkAllOf.js +1 -1
- package/laboratory-store/dist/models/PaginatedLaboratoryStores.js +5 -16
- package/laboratory-store/dist/models/PaginatedLaboratoryStoresAllOf.js +2 -2
- package/laboratory-store/dist/models/PaginatedObject.js +1 -1
- package/laboratory-store/dist/runtime.js +153 -329
- package/laboratory-store-log/dist/apis/SearchLaboratoryStoreLogApi.js +70 -134
- package/laboratory-store-log/dist/models/AnyLaboratoryStoreLog.js +4 -15
- package/laboratory-store-log/dist/models/LaboratoryStoreLink.js +3 -14
- package/laboratory-store-log/dist/models/LaboratoryStoreLog.js +4 -15
- package/laboratory-store-log/dist/models/LaboratoryStoreLogAllOf.js +1 -1
- package/laboratory-store-log/dist/models/PaginatedLaboratoryStoreLogs.js +4 -15
- package/laboratory-store-log/dist/models/PaginatedLaboratoryStoreLogsAllOf.js +1 -1
- package/laboratory-store-log/dist/models/PaginatedObject.js +1 -1
- package/laboratory-store-log/dist/runtime.js +153 -329
- package/lexicon/dist/apis/ManageLexiconApi.js +85 -166
- package/lexicon/dist/apis/SearchLexiconApi.js +187 -308
- package/lexicon/dist/models/PaginatedObject.js +1 -1
- package/lexicon/dist/models/PaginatedTags.js +4 -15
- package/lexicon/dist/models/PaginatedTagsAllOf.js +1 -1
- package/lexicon/dist/models/PharmacyGroup.js +1 -1
- package/lexicon/dist/models/PharmacyLocation.js +1 -1
- package/lexicon/dist/models/PharmacySoftware.js +1 -1
- package/lexicon/dist/models/Tag.js +1 -1
- package/lexicon/dist/models/TagCreationParameters.js +1 -1
- package/lexicon/dist/runtime.js +153 -329
- package/litigation/dist/apis/ManageLitigationApi.js +40 -102
- package/litigation/dist/runtime.js +153 -329
- package/magic-cart/dist/apis/ManageExpressOrderApi.js +48 -112
- package/magic-cart/dist/models/AnyIdentifiedDistributionMode.js +8 -19
- package/magic-cart/dist/models/Barcodes.js +1 -1
- package/magic-cart/dist/models/ExpressOrder.js +2 -2
- package/magic-cart/dist/models/ExpressOrderCreationParameters.js +2 -2
- package/magic-cart/dist/models/IdentifiedDistributionRange.js +3 -14
- package/magic-cart/dist/models/IdentifiedRangeDistributionMode.js +4 -15
- package/magic-cart/dist/models/IdentifiedRangeDistributionModeAllOf.js +1 -1
- package/magic-cart/dist/models/ProductLink.js +4 -15
- package/magic-cart/dist/models/ProductLinkAllOf.js +1 -1
- package/magic-cart/dist/models/SaleOfferLink.js +6 -17
- package/magic-cart/dist/models/SaleOfferLinkAllOf.js +3 -3
- package/magic-cart/dist/models/SaleOfferProposal.js +2 -2
- package/magic-cart/dist/models/SellerProposal.js +2 -2
- package/magic-cart/dist/models/Stock.js +1 -1
- package/magic-cart/dist/models/UnitaryDistributionMode.js +3 -14
- package/magic-cart/dist/models/UserLink.js +3 -14
- package/magic-cart/dist/runtime.js +153 -329
- package/mandate/dist/apis/ManageMandatesApi.js +171 -290
- package/mandate/dist/models/Challenge.js +2 -2
- package/mandate/dist/models/ChallengeAction.js +1 -1
- package/mandate/dist/models/Mandate.js +1 -1
- package/mandate/dist/models/MandateChallenge.js +3 -14
- package/mandate/dist/models/MandateCreationParameters.js +1 -1
- package/mandate/dist/runtime.js +153 -329
- package/mangopay-hook/dist/apis/MangopayHookApi.js +40 -102
- package/mangopay-hook/dist/runtime.js +153 -329
- package/message/dist/apis/ManageMessageApi.js +211 -345
- package/message/dist/apis/SearchMessageApi.js +157 -259
- package/message/dist/models/Message.js +1 -1
- package/message/dist/models/MessageUpdateParameters.js +1 -1
- package/message/dist/models/MessageViewerCreationParameters.js +1 -1
- package/message/dist/models/PaginatedMessages.js +4 -15
- package/message/dist/models/PaginatedMessagesAllOf.js +1 -1
- package/message/dist/models/PaginatedObject.js +1 -1
- package/message/dist/models/ViewerLink.js +3 -14
- package/message/dist/runtime.js +153 -329
- package/notification/dist/apis/ManageNotificationApi.js +96 -177
- package/notification/dist/apis/ManageNotificationTypeApi.js +158 -257
- package/notification/dist/apis/SearchNotificationApi.js +112 -195
- package/notification/dist/apis/SearchNotificationTypeApi.js +109 -192
- package/notification/dist/models/Notification.js +3 -3
- package/notification/dist/models/NotificationType.js +3 -3
- package/notification/dist/models/NotificationTypeAttachment.js +1 -1
- package/notification/dist/models/NotificationTypeAttachmentCreationParameters.js +1 -1
- package/notification/dist/models/NotificationTypeUpdateParameters.js +1 -1
- package/notification/dist/models/NotificationUpdateParameters.js +1 -1
- package/notification/dist/models/PaginatedNotificationTypes.js +5 -16
- package/notification/dist/models/PaginatedNotificationTypesAllOf.js +2 -2
- package/notification/dist/models/PaginatedNotifications.js +5 -16
- package/notification/dist/models/PaginatedNotificationsAllOf.js +2 -2
- package/notification/dist/models/PaginatedObject.js +1 -1
- package/notification/dist/runtime.js +153 -329
- package/order/dist/apis/ManageMetaOrderApi.js +90 -171
- package/order/dist/apis/ManageOrderApi.js +397 -603
- package/order/dist/apis/ManageOrderItemApi.js +234 -370
- package/order/dist/apis/SearchOrderApi.js +241 -362
- package/order/dist/apis/SearchOrderItemApi.js +241 -381
- package/order/dist/models/Address.js +1 -1
- package/order/dist/models/Anomalies.js +1 -1
- package/order/dist/models/Barcodes.js +1 -1
- package/order/dist/models/MetaOrder.js +4 -4
- package/order/dist/models/MetaOrderCreationParameters.js +1 -1
- package/order/dist/models/MetaOrderPrices.js +1 -1
- package/order/dist/models/MetaOrderWarning.js +1 -1
- package/order/dist/models/MetaOrderWithWarnings.js +3 -3
- package/order/dist/models/Order.js +8 -8
- package/order/dist/models/OrderItem.js +4 -4
- package/order/dist/models/OrderItemPrices.js +1 -1
- package/order/dist/models/OrderPrices.js +1 -1
- package/order/dist/models/OrderThreads.js +2 -2
- package/order/dist/models/OrderUpdateParameters.js +1 -1
- package/order/dist/models/PaginatedObject.js +1 -1
- package/order/dist/models/PaginatedOrders.js +4 -15
- package/order/dist/models/PaginatedOrdersAllOf.js +1 -1
- package/order/dist/models/ProductLink.js +6 -17
- package/order/dist/models/ProductLinkAllOf.js +3 -3
- package/order/dist/models/Reservation.js +3 -3
- package/order/dist/models/ReservationUpdateParameters.js +1 -1
- package/order/dist/models/SaleOfferLink.js +3 -14
- package/order/dist/models/ShoppedOffer.js +1 -1
- package/order/dist/models/ThreadLink.js +3 -14
- package/order/dist/models/UserLink.js +5 -16
- package/order/dist/models/UserLinkAllOf.js +2 -2
- package/order/dist/models/UserLinkAllOfCompany.js +1 -1
- package/order/dist/models/Vat.js +1 -1
- package/order/dist/runtime.js +153 -329
- package/order-log/dist/apis/SearchOrderLogApi.js +70 -134
- package/order-log/dist/models/AnyOrderLog.js +4 -15
- package/order-log/dist/models/OrderLink.js +3 -14
- package/order-log/dist/models/OrderLog.js +4 -15
- package/order-log/dist/models/OrderLogAllOf.js +1 -1
- package/order-log/dist/models/PaginatedObject.js +1 -1
- package/order-log/dist/models/PaginatedOrderLogs.js +4 -15
- package/order-log/dist/models/PaginatedOrderLogsAllOf.js +1 -1
- package/order-log/dist/runtime.js +153 -329
- package/outrage-message/dist/apis/ManageOutrageMessageApi.js +135 -235
- package/outrage-message/dist/apis/SearchOutrageMessageApi.js +106 -189
- package/outrage-message/dist/models/OutrageMessage.js +1 -1
- package/outrage-message/dist/models/OutrageMessageUpdateParameters.js +1 -1
- package/outrage-message/dist/models/PaginatedObject.js +1 -1
- package/outrage-message/dist/models/PaginatedOutrageMessages.js +5 -16
- package/outrage-message/dist/models/PaginatedOutrageMessagesAllOf.js +2 -2
- package/outrage-message/dist/runtime.js +153 -329
- package/package.json +1 -1
- package/product/dist/apis/ManageProductApi.js +101 -184
- package/product/dist/apis/ManageProductImageApi.js +98 -176
- package/product/dist/apis/ManageProductProscriptionApi.js +88 -169
- package/product/dist/apis/SearchProductApi.js +127 -210
- package/product/dist/apis/SearchProductImageApi.js +97 -180
- package/product/dist/apis/SearchProductMetadataApi.js +88 -171
- package/product/dist/apis/SearchProductProscriptionApi.js +58 -122
- package/product/dist/models/Barcodes.js +1 -1
- package/product/dist/models/Image.js +2 -2
- package/product/dist/models/ImageCreationParameters.js +1 -1
- package/product/dist/models/ImageVersions.js +1 -1
- package/product/dist/models/LaboratoryLink.js +4 -15
- package/product/dist/models/LaboratoryLinkAllOf.js +1 -1
- package/product/dist/models/PaginatedObject.js +1 -1
- package/product/dist/models/PaginatedProductProscriptions.js +4 -15
- package/product/dist/models/PaginatedProductProscriptionsAllOf.js +1 -1
- package/product/dist/models/PaginatedProducts.js +4 -15
- package/product/dist/models/PaginatedProductsAllOf.js +1 -1
- package/product/dist/models/Product.js +12 -12
- package/product/dist/models/ProductCreationOrUpdateParameters.js +5 -5
- package/product/dist/models/ProductProscription.js +1 -1
- package/product/dist/models/ProductProscriptionCreationParameters.js +1 -1
- package/product/dist/models/ProductSecondaryType.js +1 -1
- package/product/dist/models/ProductType.js +1 -1
- package/product/dist/models/Statistics.js +1 -1
- package/product/dist/models/Vat.js +1 -1
- package/product/dist/runtime.js +153 -329
- package/pub/dist/apis/ManagePubApi.js +168 -285
- package/pub/dist/apis/ManagePubImageApi.js +71 -134
- package/pub/dist/apis/SearchPubApi.js +178 -280
- package/pub/dist/models/Image.js +2 -2
- package/pub/dist/models/ImageVersions.js +1 -1
- package/pub/dist/models/PaginatedObject.js +1 -1
- package/pub/dist/models/PaginatedPubStatistics.js +4 -15
- package/pub/dist/models/PaginatedPubStatisticsAllOf.js +1 -1
- package/pub/dist/models/PaginatedPubs.js +4 -15
- package/pub/dist/models/PaginatedPubsAllOf.js +1 -1
- package/pub/dist/models/Pub.js +5 -5
- package/pub/dist/models/PubCreationParameters.js +4 -4
- package/pub/dist/models/PubImageParameters.js +1 -1
- package/pub/dist/models/PubSchedule.js +1 -1
- package/pub/dist/models/PubStatistics.js +2 -2
- package/pub/dist/models/PubTimecard.js +1 -1
- package/pub/dist/models/PubUpdateParameters.js +4 -4
- package/pub/dist/models/UserLink.js +5 -16
- package/pub/dist/models/UserLinkAllOf.js +2 -2
- package/pub/dist/models/UserLinkAllOfCompany.js +1 -1
- package/pub/dist/runtime.js +153 -329
- package/recommendation/dist/apis/ManageProductRecommendationFeedbackApi.js +51 -115
- package/recommendation/dist/apis/SearchProductPriceRecommendationApi.js +58 -122
- package/recommendation/dist/apis/SearchProductRecommendationApi.js +67 -131
- package/recommendation/dist/models/PaginatedObject.js +1 -1
- package/recommendation/dist/models/PaginatedProductPriceRecommendations.js +4 -15
- package/recommendation/dist/models/PaginatedProductPriceRecommendationsAllOf.js +1 -1
- package/recommendation/dist/models/PaginatedProductRecommendations.js +4 -15
- package/recommendation/dist/models/PaginatedProductRecommendationsAllOf.js +1 -1
- package/recommendation/dist/models/ProductLink.js +4 -15
- package/recommendation/dist/models/ProductLinkAllOf.js +1 -1
- package/recommendation/dist/models/ProductPriceRecommendation.js +2 -2
- package/recommendation/dist/models/ProductRecommendation.js +3 -3
- package/recommendation/dist/models/ProductRecommendationFeedback.js +3 -3
- package/recommendation/dist/models/UserLink.js +4 -15
- package/recommendation/dist/models/UserLinkAllOf.js +1 -1
- package/recommendation/dist/runtime.js +153 -329
- package/rfx/dist/apis/ManageRfiApi.js +43 -105
- package/rfx/dist/apis/ManageRfilApi.js +37 -99
- package/rfx/dist/apis/ManageRfoApi.js +37 -99
- package/rfx/dist/apis/ManageRfoiApi.js +101 -184
- package/rfx/dist/apis/SearchRfoiApi.js +67 -131
- package/rfx/dist/models/OrderLink.js +4 -15
- package/rfx/dist/models/OrderLinkAllOf.js +1 -1
- package/rfx/dist/models/PaginatedObject.js +1 -1
- package/rfx/dist/models/PaginatedRfois.js +4 -15
- package/rfx/dist/models/PaginatedRfoisAllOf.js +1 -1
- package/rfx/dist/models/RfiCreationParameters.js +1 -1
- package/rfx/dist/models/Rfoi.js +3 -3
- package/rfx/dist/models/RfoiUpdateParameters.js +1 -1
- package/rfx/dist/models/UserLink.js +5 -16
- package/rfx/dist/models/UserLinkAllOf.js +2 -2
- package/rfx/dist/models/UserLinkAllOfCompany.js +1 -1
- package/rfx/dist/runtime.js +153 -329
- package/sale-offer/dist/apis/ManageSaleOfferApi.js +181 -298
- package/sale-offer/dist/apis/ManageSaleOfferStatusApi.js +54 -118
- package/sale-offer/dist/apis/SearchSaleOfferApi.js +154 -237
- package/sale-offer/dist/models/AnyDistributionMode.js +8 -19
- package/sale-offer/dist/models/AnyIdentifiedDistributionMode.js +8 -19
- package/sale-offer/dist/models/Barcodes.js +1 -1
- package/sale-offer/dist/models/IdentifiedDistributionRange.js +3 -14
- package/sale-offer/dist/models/IdentifiedRangeDistributionMode.js +4 -15
- package/sale-offer/dist/models/IdentifiedRangeDistributionModeAllOf.js +1 -1
- package/sale-offer/dist/models/ImageVersions.js +1 -1
- package/sale-offer/dist/models/Images.js +2 -2
- package/sale-offer/dist/models/OwnerLink.js +5 -16
- package/sale-offer/dist/models/OwnerLinkAllOf.js +2 -2
- package/sale-offer/dist/models/OwnerLinkAllOfCompany.js +1 -1
- package/sale-offer/dist/models/PaginatedObject.js +1 -1
- package/sale-offer/dist/models/PaginatedSaleOffers.js +4 -15
- package/sale-offer/dist/models/PaginatedSaleOffersAllOf.js +1 -1
- package/sale-offer/dist/models/ProductImageLink.js +5 -16
- package/sale-offer/dist/models/ProductImageLinkAllOf.js +2 -2
- package/sale-offer/dist/models/ProductLink.js +5 -16
- package/sale-offer/dist/models/ProductLinkAllOf.js +2 -2
- package/sale-offer/dist/models/RangeDistributionMode.js +4 -15
- package/sale-offer/dist/models/RangeDistributionModeAllOf.js +1 -1
- package/sale-offer/dist/models/SaleOffer.js +9 -9
- package/sale-offer/dist/models/SaleOfferCreationImagesParameters.js +1 -1
- package/sale-offer/dist/models/SaleOfferCreationParameters.js +4 -4
- package/sale-offer/dist/models/SaleOfferJournal.js +1 -1
- package/sale-offer/dist/models/SaleOfferNewVersionParameters.js +4 -4
- package/sale-offer/dist/models/SaleOfferStatisticLink.js +4 -15
- package/sale-offer/dist/models/SaleOfferStatisticLinkAllOf.js +1 -1
- package/sale-offer/dist/models/Stock.js +1 -1
- package/sale-offer/dist/models/UnitaryDistributionMode.js +3 -14
- package/sale-offer/dist/runtime.js +153 -329
- package/sale-offer-log/dist/apis/SearchSaleOfferLogApi.js +70 -134
- package/sale-offer-log/dist/models/AnySaleOfferLog.js +4 -15
- package/sale-offer-log/dist/models/PaginatedObject.js +1 -1
- package/sale-offer-log/dist/models/PaginatedSaleOfferLogs.js +4 -15
- package/sale-offer-log/dist/models/PaginatedSaleOfferLogsAllOf.js +1 -1
- package/sale-offer-log/dist/models/SaleOfferLink.js +3 -14
- package/sale-offer-log/dist/models/SaleOfferLog.js +4 -15
- package/sale-offer-log/dist/models/SaleOfferLogAllOf.js +1 -1
- package/sale-offer-log/dist/runtime.js +153 -329
- package/servant/dist/apis/ManageServantApi.js +25 -87
- package/servant/dist/apis/ManageTaskApi.js +37 -99
- package/servant/dist/apis/SearchServantApi.js +46 -110
- package/servant/dist/models/Servant.js +2 -2
- package/servant/dist/models/Task.js +1 -1
- package/servant/dist/runtime.js +153 -329
- package/shipment/dist/apis/ManageOrderCarriageApi.js +54 -118
- package/shipment/dist/apis/ManageShipmentApi.js +96 -179
- package/shipment/dist/apis/SearchOrderCarriageApi.js +103 -186
- package/shipment/dist/models/CancelParcelResponse.js +1 -1
- package/shipment/dist/models/DeliveryStatus.js +1 -1
- package/shipment/dist/models/OrderCarriage.js +3 -3
- package/shipment/dist/models/OrderCarriageShipmentCreationParameters.js +1 -1
- package/shipment/dist/models/OrderLink.js +4 -15
- package/shipment/dist/models/OrderLinkAllOf.js +1 -1
- package/shipment/dist/models/PaginatedObject.js +1 -1
- package/shipment/dist/models/PaginatedOrderCarriages.js +4 -15
- package/shipment/dist/models/PaginatedOrderCarriagesAllOf.js +1 -1
- package/shipment/dist/models/Shipment.js +3 -3
- package/shipment/dist/models/ShipmentCreationParameters.js +1 -1
- package/shipment/dist/models/ShipmentError.js +1 -1
- package/shipment/dist/models/ShipmentParcel.js +4 -4
- package/shipment/dist/models/SkybillLink.js +4 -15
- package/shipment/dist/models/SkybillLinkAllOf.js +1 -1
- package/shipment/dist/runtime.js +153 -329
- package/shopping-cart/dist/apis/ManageCartApi.js +88 -171
- package/shopping-cart/dist/apis/ManageCartSubCartApi.js +125 -225
- package/shopping-cart/dist/apis/ManageCartSubCartLineApi.js +226 -362
- package/shopping-cart/dist/models/AnyIdentifiedDistributionMode.js +8 -19
- package/shopping-cart/dist/models/Barcodes.js +1 -1
- package/shopping-cart/dist/models/Cart.js +2 -2
- package/shopping-cart/dist/models/CartSubCart.js +4 -4
- package/shopping-cart/dist/models/CartSubCartLine.js +3 -3
- package/shopping-cart/dist/models/CartSubCartLineUpdateParameters.js +1 -1
- package/shopping-cart/dist/models/CartSubCartTransport.js +1 -1
- package/shopping-cart/dist/models/IdentifiedDistributionRange.js +3 -14
- package/shopping-cart/dist/models/IdentifiedRangeDistributionMode.js +4 -15
- package/shopping-cart/dist/models/IdentifiedRangeDistributionModeAllOf.js +1 -1
- package/shopping-cart/dist/models/ProductLink.js +5 -16
- package/shopping-cart/dist/models/ProductLinkAllOf.js +2 -2
- package/shopping-cart/dist/models/SaleOfferLink.js +7 -18
- package/shopping-cart/dist/models/SaleOfferLinkAllOf.js +4 -4
- package/shopping-cart/dist/models/SellerLink.js +5 -16
- package/shopping-cart/dist/models/SellerLinkAllOf.js +2 -2
- package/shopping-cart/dist/models/ShoppedOffer.js +1 -1
- package/shopping-cart/dist/models/Stock.js +1 -1
- package/shopping-cart/dist/models/UnitaryDistributionMode.js +3 -14
- package/shopping-cart/dist/runtime.js +153 -329
- package/statistic/dist/apis/SearchSaleOfferStatisticsApi.js +61 -125
- package/statistic/dist/models/PaginatedObject.js +1 -1
- package/statistic/dist/models/PaginatedSaleOfferStatistics.js +4 -15
- package/statistic/dist/models/PaginatedSaleOfferStatisticsAllOf.js +1 -1
- package/statistic/dist/models/SaleOfferStatistic.js +2 -2
- package/statistic/dist/models/UserLink.js +4 -15
- package/statistic/dist/models/UserLinkAllOf.js +1 -1
- package/statistic/dist/runtime.js +153 -329
- package/subscription/dist/apis/ManageSubscriptionApi.js +135 -235
- package/subscription/dist/apis/ManageSubscriptionPlanApi.js +54 -118
- package/subscription/dist/apis/SearchSubscriptionApi.js +82 -146
- package/subscription/dist/apis/SearchSubscriptionPlanApi.js +97 -180
- package/subscription/dist/apis/SearchSubscriptionPlanFeatureApi.js +46 -110
- package/subscription/dist/models/PaginatedObject.js +1 -1
- package/subscription/dist/models/PaginatedSubscriptions.js +5 -16
- package/subscription/dist/models/PaginatedSubscriptionsAllOf.js +2 -2
- package/subscription/dist/models/SubscriberLink.js +4 -15
- package/subscription/dist/models/SubscriberLinkAllOf.js +1 -1
- package/subscription/dist/models/Subscription.js +3 -3
- package/subscription/dist/models/SubscriptionCreationParameters.js +1 -1
- package/subscription/dist/models/SubscriptionPlan.js +3 -3
- package/subscription/dist/models/SubscriptionPlanFeature.js +2 -2
- package/subscription/dist/models/SubscriptionPlanLink.js +5 -16
- package/subscription/dist/models/SubscriptionPlanLinkAllOf.js +2 -2
- package/subscription/dist/models/SubscriptionPlanUpdateParameters.js +2 -2
- package/subscription/dist/models/SubscriptionUpdateParameters.js +2 -2
- package/subscription/dist/runtime.js +153 -329
- package/thread/dist/apis/ManageThreadCommentApi.js +107 -190
- package/thread/dist/apis/SearchThreadApi.js +49 -113
- package/thread/dist/apis/SearchThreadCommentApi.js +58 -122
- package/thread/dist/models/AuthorLink.js +3 -14
- package/thread/dist/models/Comment.js +2 -2
- package/thread/dist/models/CommentCreationParameters.js +3 -14
- package/thread/dist/models/PaginatedComments.js +4 -15
- package/thread/dist/models/PaginatedCommentsAllOf.js +1 -1
- package/thread/dist/models/PaginatedObject.js +1 -1
- package/thread/dist/models/Thread.js +1 -1
- package/thread/dist/models/ThreadLink.js +3 -14
- package/thread/dist/runtime.js +153 -329
- package/ubo/dist/apis/ManageUboDeclarationApi.js +51 -115
- package/ubo/dist/apis/SearchUboDeclarationApi.js +49 -113
- package/ubo/dist/models/Address.js +2 -2
- package/ubo/dist/models/Ubo.js +3 -3
- package/ubo/dist/models/UboDeclaration.js +2 -2
- package/ubo/dist/models/UboDeclarationCreationOrUpdateParameters.js +2 -2
- package/ubo/dist/runtime.js +153 -329
- package/user/dist/apis/ManagePasswordApi.js +73 -152
- package/user/dist/apis/ManageUserApi.js +374 -595
- package/user/dist/apis/ManageUserBankAccountApi.js +101 -184
- package/user/dist/apis/ManageUserDocumentApi.js +198 -298
- package/user/dist/apis/ManageUserFavoriteLaboratoryStoreApi.js +150 -263
- package/user/dist/apis/ManageUserRestrictionApi.js +296 -477
- package/user/dist/apis/ManageUserRoleApi.js +54 -118
- package/user/dist/apis/ManageUserRuleApi.js +91 -172
- package/user/dist/apis/ManageUserSocialNetworksApi.js +101 -184
- package/user/dist/apis/ManageUserTransportApi.js +54 -118
- package/user/dist/apis/SearchUserApi.js +310 -469
- package/user/dist/apis/SearchUserDocumentApi.js +255 -410
- package/user/dist/apis/SearchUserFavoriteLaboratoryStoreApi.js +91 -174
- package/user/dist/apis/SearchUserFeatureApi.js +46 -110
- package/user/dist/apis/SearchUserRestrictionApi.js +181 -302
- package/user/dist/apis/SearchUserRuleApi.js +49 -113
- package/user/dist/apis/SearchUserSocialNetworksApi.js +91 -174
- package/user/dist/apis/SearchUserTransportApi.js +91 -174
- package/user/dist/models/Address.js +1 -1
- package/user/dist/models/MyPasswordUpdateParameters.js +1 -1
- package/user/dist/models/NotificationTypeLink.js +5 -16
- package/user/dist/models/NotificationTypeLinkAllOf.js +2 -2
- package/user/dist/models/PaginatedObject.js +1 -1
- package/user/dist/models/PaginatedUsers.js +5 -16
- package/user/dist/models/PaginatedUsersAllOf.js +2 -2
- package/user/dist/models/ProductTypeLink.js +4 -15
- package/user/dist/models/ProductTypeLinkAllOf.js +1 -1
- package/user/dist/models/SomeonePasswordUpdateParameters.js +1 -1
- package/user/dist/models/ThreadLink.js +3 -14
- package/user/dist/models/User.js +13 -13
- package/user/dist/models/UserBankAccountCreationParameters.js +1 -1
- package/user/dist/models/UserBankAccountLink.js +4 -15
- package/user/dist/models/UserBankAccountLinkAllOf.js +1 -1
- package/user/dist/models/UserCompany.js +3 -3
- package/user/dist/models/UserCreationParameters.js +2 -2
- package/user/dist/models/UserCustomCommissions.js +1 -1
- package/user/dist/models/UserCustomCommissionsUpdateParameters.js +1 -1
- package/user/dist/models/UserDelegatedServices.js +1 -1
- package/user/dist/models/UserDocument.js +2 -2
- package/user/dist/models/UserDocumentCreationParameters.js +1 -1
- package/user/dist/models/UserFavoriteLaboratoryStoreLink.js +4 -15
- package/user/dist/models/UserFavoriteLaboratoryStoreLinkAllOf.js +1 -1
- package/user/dist/models/UserFeature.js +1 -1
- package/user/dist/models/UserForbiddenSellerLink.js +4 -15
- package/user/dist/models/UserForbiddenSellerLinkAllOf.js +1 -1
- package/user/dist/models/UserJournal.js +1 -1
- package/user/dist/models/UserMangopayTarget.js +4 -15
- package/user/dist/models/UserMangopayTargetAllOf.js +1 -1
- package/user/dist/models/UserRestrictedNotificationTypeCreationParameter.js +1 -1
- package/user/dist/models/UserRule.js +4 -4
- package/user/dist/models/UserRuleCreationParameters.js +3 -3
- package/user/dist/models/UserSocialNetwork.js +1 -1
- package/user/dist/models/UserThreads.js +2 -2
- package/user/dist/models/UserUpdateParameters.js +6 -6
- package/user/dist/models/UserWalletLink.js +4 -15
- package/user/dist/models/UserWalletLinkAllOf.js +1 -1
- package/user/dist/models/UserWallets.js +2 -2
- package/user/dist/runtime.js +153 -329
- package/wish/dist/apis/ManageWishApi.js +113 -209
- package/wish/dist/apis/SearchProductEnthusiasmApi.js +61 -125
- package/wish/dist/apis/SearchWishApi.js +118 -201
- package/wish/dist/models/Barcodes.js +1 -1
- package/wish/dist/models/DesiredSellerLink.js +5 -16
- package/wish/dist/models/DesiredSellerLinkAllOf.js +2 -2
- package/wish/dist/models/OwnerLink.js +5 -16
- package/wish/dist/models/OwnerLinkAllOf.js +2 -2
- package/wish/dist/models/OwnerLinkAllOfCompany.js +1 -1
- package/wish/dist/models/PaginatedObject.js +1 -1
- package/wish/dist/models/PaginatedProductEnthusiasms.js +4 -15
- package/wish/dist/models/PaginatedProductEnthusiasmsAllOf.js +1 -1
- package/wish/dist/models/PaginatedWishes.js +4 -15
- package/wish/dist/models/PaginatedWishesAllOf.js +1 -1
- package/wish/dist/models/ProductEnthusiasm.js +2 -2
- package/wish/dist/models/ProductLink.js +5 -16
- package/wish/dist/models/ProductLinkAllOf.js +2 -2
- package/wish/dist/models/Wish.js +4 -4
- package/wish/dist/models/WishCreationParameters.js +1 -1
- package/wish/dist/models/WishUpdateParameters.js +2 -2
- package/wish/dist/runtime.js +153 -329
|
@@ -12,19 +12,6 @@
|
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
extendStatics(d, b);
|
|
24
|
-
function __() { this.constructor = d; }
|
|
25
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26
|
-
};
|
|
27
|
-
})();
|
|
28
15
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
16
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
17
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -34,694 +21,501 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
21
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
22
|
});
|
|
36
23
|
};
|
|
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;
|
|
39
|
-
return g = { next: verb(0), "throw": verb(1), "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 (_) 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
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
25
|
exports.ManageOrderApi = void 0;
|
|
66
|
-
|
|
67
|
-
|
|
26
|
+
const runtime_1 = require("../runtime");
|
|
27
|
+
const models_1 = require("../models");
|
|
68
28
|
/**
|
|
69
29
|
* no description
|
|
70
30
|
*/
|
|
71
|
-
|
|
72
|
-
__extends(ManageOrderApi, _super);
|
|
73
|
-
function ManageOrderApi() {
|
|
74
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
75
|
-
}
|
|
31
|
+
class ManageOrderApi extends runtime_1.BaseAPI {
|
|
76
32
|
/**
|
|
77
33
|
* Create a new order. *IMPORTANT NOTE : As for the moment, this route can only create order from another one (clone). In order to create new order from shopping cart, please use \"meta-order\" creation.
|
|
78
34
|
* Create a new order
|
|
79
35
|
*/
|
|
80
|
-
|
|
81
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
token = this.configuration.accessToken;
|
|
99
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
100
|
-
if (tokenString) {
|
|
101
|
-
headerParameters["Authorization"] = "Bearer " + tokenString;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
_a.label = 1;
|
|
105
|
-
case 1:
|
|
106
|
-
_a.trys.push([1, 3, , 4]);
|
|
107
|
-
return [4 /*yield*/, this.request({
|
|
108
|
-
path: "/orders",
|
|
109
|
-
method: 'POST',
|
|
110
|
-
headers: headerParameters,
|
|
111
|
-
query: queryParameters,
|
|
112
|
-
})];
|
|
113
|
-
case 2:
|
|
114
|
-
response = _a.sent();
|
|
115
|
-
contentType = response.headers.get("content-type");
|
|
116
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
117
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.OrderFromJSON(jsonValue); })];
|
|
118
|
-
}
|
|
119
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
120
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
// TODO : Better handling of others application types
|
|
124
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
125
|
-
}
|
|
126
|
-
return [3 /*break*/, 4];
|
|
127
|
-
case 3:
|
|
128
|
-
response_1 = _a.sent();
|
|
129
|
-
console.debug(response_1);
|
|
130
|
-
throw response_1;
|
|
131
|
-
case 4: return [2 /*return*/];
|
|
36
|
+
createOrderRaw(requestParameters) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters.from === null || requestParameters.from === undefined) {
|
|
39
|
+
throw new runtime_1.RequiredError('from', 'Required parameter requestParameters.from was null or undefined when calling createOrder.');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
if (requestParameters.from !== undefined) {
|
|
43
|
+
queryParameters['from'] = requestParameters.from;
|
|
44
|
+
}
|
|
45
|
+
const headerParameters = {};
|
|
46
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
47
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
48
|
+
}
|
|
49
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
50
|
+
const token = this.configuration.accessToken;
|
|
51
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
52
|
+
if (tokenString) {
|
|
53
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
132
54
|
}
|
|
133
|
-
}
|
|
55
|
+
}
|
|
56
|
+
try {
|
|
57
|
+
const response = yield this.request({
|
|
58
|
+
path: `/orders`,
|
|
59
|
+
method: 'POST',
|
|
60
|
+
headers: headerParameters,
|
|
61
|
+
query: queryParameters,
|
|
62
|
+
});
|
|
63
|
+
const contentType = response.headers.get("content-type");
|
|
64
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
65
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.OrderFromJSON(jsonValue));
|
|
66
|
+
}
|
|
67
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
68
|
+
return new runtime_1.TextApiResponse(response);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
// TODO : Better handling of others application types
|
|
72
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch (response) {
|
|
76
|
+
console.debug(response);
|
|
77
|
+
throw response;
|
|
78
|
+
}
|
|
134
79
|
});
|
|
135
|
-
}
|
|
80
|
+
}
|
|
136
81
|
/**
|
|
137
82
|
* Create a new order. *IMPORTANT NOTE : As for the moment, this route can only create order from another one (clone). In order to create new order from shopping cart, please use \"meta-order\" creation.
|
|
138
83
|
* Create a new order
|
|
139
84
|
*/
|
|
140
|
-
|
|
141
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
142
|
-
|
|
143
|
-
return
|
|
144
|
-
switch (_a.label) {
|
|
145
|
-
case 0: return [4 /*yield*/, this.createOrderRaw(requestParameters)];
|
|
146
|
-
case 1:
|
|
147
|
-
response = _a.sent();
|
|
148
|
-
return [4 /*yield*/, response.value()];
|
|
149
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
150
|
-
}
|
|
151
|
-
});
|
|
85
|
+
createOrder(requestParameters) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
const response = yield this.createOrderRaw(requestParameters);
|
|
88
|
+
return yield response.value();
|
|
152
89
|
});
|
|
153
|
-
}
|
|
90
|
+
}
|
|
154
91
|
/**
|
|
155
92
|
* Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (WAITING_FOR_ACCEPTANCE, ACCEPTANCE_DELAY) - \'accepted\' property is false (Limitation that may be removed in the future) - You are the SELLER
|
|
156
93
|
* Set order accepted flag
|
|
157
94
|
*/
|
|
158
|
-
|
|
159
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
token = this.configuration.accessToken;
|
|
178
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
179
|
-
if (tokenString) {
|
|
180
|
-
headerParameters["Authorization"] = "Bearer " + tokenString;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
_a.label = 1;
|
|
184
|
-
case 1:
|
|
185
|
-
_a.trys.push([1, 3, , 4]);
|
|
186
|
-
return [4 /*yield*/, this.request({
|
|
187
|
-
path: "/orders/{orderReference}/accepted".replace("{" + "orderReference" + "}", encodeURIComponent(String(requestParameters.orderReference))),
|
|
188
|
-
method: 'PUT',
|
|
189
|
-
headers: headerParameters,
|
|
190
|
-
query: queryParameters,
|
|
191
|
-
body: requestParameters.body,
|
|
192
|
-
})];
|
|
193
|
-
case 2:
|
|
194
|
-
response = _a.sent();
|
|
195
|
-
return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
|
|
196
|
-
case 3:
|
|
197
|
-
response_2 = _a.sent();
|
|
198
|
-
console.debug(response_2);
|
|
199
|
-
throw response_2;
|
|
200
|
-
case 4: return [2 /*return*/];
|
|
95
|
+
setOrderAcceptedRaw(requestParameters) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
|
|
98
|
+
throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling setOrderAccepted.');
|
|
99
|
+
}
|
|
100
|
+
if (requestParameters.body === null || requestParameters.body === undefined) {
|
|
101
|
+
throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling setOrderAccepted.');
|
|
102
|
+
}
|
|
103
|
+
const queryParameters = {};
|
|
104
|
+
const headerParameters = {};
|
|
105
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
106
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
107
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
108
|
+
}
|
|
109
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
110
|
+
const token = this.configuration.accessToken;
|
|
111
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
112
|
+
if (tokenString) {
|
|
113
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
201
114
|
}
|
|
202
|
-
}
|
|
115
|
+
}
|
|
116
|
+
try {
|
|
117
|
+
const response = yield this.request({
|
|
118
|
+
path: `/orders/{orderReference}/accepted`.replace(`{${"orderReference"}}`, encodeURIComponent(String(requestParameters.orderReference))),
|
|
119
|
+
method: 'PUT',
|
|
120
|
+
headers: headerParameters,
|
|
121
|
+
query: queryParameters,
|
|
122
|
+
body: requestParameters.body,
|
|
123
|
+
});
|
|
124
|
+
return new runtime_1.VoidApiResponse(response);
|
|
125
|
+
}
|
|
126
|
+
catch (response) {
|
|
127
|
+
console.debug(response);
|
|
128
|
+
throw response;
|
|
129
|
+
}
|
|
203
130
|
});
|
|
204
|
-
}
|
|
131
|
+
}
|
|
205
132
|
/**
|
|
206
133
|
* Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (WAITING_FOR_ACCEPTANCE, ACCEPTANCE_DELAY) - \'accepted\' property is false (Limitation that may be removed in the future) - You are the SELLER
|
|
207
134
|
* Set order accepted flag
|
|
208
135
|
*/
|
|
209
|
-
|
|
210
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
211
|
-
|
|
212
|
-
switch (_a.label) {
|
|
213
|
-
case 0: return [4 /*yield*/, this.setOrderAcceptedRaw(requestParameters)];
|
|
214
|
-
case 1:
|
|
215
|
-
_a.sent();
|
|
216
|
-
return [2 /*return*/];
|
|
217
|
-
}
|
|
218
|
-
});
|
|
136
|
+
setOrderAccepted(requestParameters) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
yield this.setOrderAcceptedRaw(requestParameters);
|
|
219
139
|
});
|
|
220
|
-
}
|
|
140
|
+
}
|
|
221
141
|
/**
|
|
222
142
|
* Set the deliveryConfirmed flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (DELIVERY_ONGOING, DELIVERY_LATE, WAITING_FOR_VALIDATION, WAITING_FOR_ADMIN_VALIDATION) - \'deliveryConfirmed\' property is false (Limitation that may be removed in the future) - You are the BUYER
|
|
223
143
|
* Set order deliveryConfirmed flag
|
|
224
144
|
*/
|
|
225
|
-
|
|
226
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
token = this.configuration.accessToken;
|
|
245
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
246
|
-
if (tokenString) {
|
|
247
|
-
headerParameters["Authorization"] = "Bearer " + tokenString;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
_a.label = 1;
|
|
251
|
-
case 1:
|
|
252
|
-
_a.trys.push([1, 3, , 4]);
|
|
253
|
-
return [4 /*yield*/, this.request({
|
|
254
|
-
path: "/orders/{orderReference}/delivery-confirmed".replace("{" + "orderReference" + "}", encodeURIComponent(String(requestParameters.orderReference))),
|
|
255
|
-
method: 'PUT',
|
|
256
|
-
headers: headerParameters,
|
|
257
|
-
query: queryParameters,
|
|
258
|
-
body: requestParameters.body,
|
|
259
|
-
})];
|
|
260
|
-
case 2:
|
|
261
|
-
response = _a.sent();
|
|
262
|
-
return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
|
|
263
|
-
case 3:
|
|
264
|
-
response_3 = _a.sent();
|
|
265
|
-
console.debug(response_3);
|
|
266
|
-
throw response_3;
|
|
267
|
-
case 4: return [2 /*return*/];
|
|
145
|
+
setOrderDeliveryConfirmedRaw(requestParameters) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
|
|
148
|
+
throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling setOrderDeliveryConfirmed.');
|
|
149
|
+
}
|
|
150
|
+
if (requestParameters.body === null || requestParameters.body === undefined) {
|
|
151
|
+
throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling setOrderDeliveryConfirmed.');
|
|
152
|
+
}
|
|
153
|
+
const queryParameters = {};
|
|
154
|
+
const headerParameters = {};
|
|
155
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
156
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
157
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
158
|
+
}
|
|
159
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
160
|
+
const token = this.configuration.accessToken;
|
|
161
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
162
|
+
if (tokenString) {
|
|
163
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
268
164
|
}
|
|
269
|
-
}
|
|
165
|
+
}
|
|
166
|
+
try {
|
|
167
|
+
const response = yield this.request({
|
|
168
|
+
path: `/orders/{orderReference}/delivery-confirmed`.replace(`{${"orderReference"}}`, encodeURIComponent(String(requestParameters.orderReference))),
|
|
169
|
+
method: 'PUT',
|
|
170
|
+
headers: headerParameters,
|
|
171
|
+
query: queryParameters,
|
|
172
|
+
body: requestParameters.body,
|
|
173
|
+
});
|
|
174
|
+
return new runtime_1.VoidApiResponse(response);
|
|
175
|
+
}
|
|
176
|
+
catch (response) {
|
|
177
|
+
console.debug(response);
|
|
178
|
+
throw response;
|
|
179
|
+
}
|
|
270
180
|
});
|
|
271
|
-
}
|
|
181
|
+
}
|
|
272
182
|
/**
|
|
273
183
|
* Set the deliveryConfirmed flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (DELIVERY_ONGOING, DELIVERY_LATE, WAITING_FOR_VALIDATION, WAITING_FOR_ADMIN_VALIDATION) - \'deliveryConfirmed\' property is false (Limitation that may be removed in the future) - You are the BUYER
|
|
274
184
|
* Set order deliveryConfirmed flag
|
|
275
185
|
*/
|
|
276
|
-
|
|
277
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
278
|
-
|
|
279
|
-
switch (_a.label) {
|
|
280
|
-
case 0: return [4 /*yield*/, this.setOrderDeliveryConfirmedRaw(requestParameters)];
|
|
281
|
-
case 1:
|
|
282
|
-
_a.sent();
|
|
283
|
-
return [2 /*return*/];
|
|
284
|
-
}
|
|
285
|
-
});
|
|
186
|
+
setOrderDeliveryConfirmed(requestParameters) {
|
|
187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
188
|
+
yield this.setOrderDeliveryConfirmedRaw(requestParameters);
|
|
286
189
|
});
|
|
287
|
-
}
|
|
190
|
+
}
|
|
288
191
|
/**
|
|
289
192
|
* Set the litigation flag for order identified by orderReference. # Preconditions : - You are an Admin
|
|
290
193
|
* Set order litigation flag
|
|
291
194
|
*/
|
|
292
|
-
|
|
293
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
token = this.configuration.accessToken;
|
|
312
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
313
|
-
if (tokenString) {
|
|
314
|
-
headerParameters["Authorization"] = "Bearer " + tokenString;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
_a.label = 1;
|
|
318
|
-
case 1:
|
|
319
|
-
_a.trys.push([1, 3, , 4]);
|
|
320
|
-
return [4 /*yield*/, this.request({
|
|
321
|
-
path: "/orders/{orderReference}/in-litigation".replace("{" + "orderReference" + "}", encodeURIComponent(String(requestParameters.orderReference))),
|
|
322
|
-
method: 'PUT',
|
|
323
|
-
headers: headerParameters,
|
|
324
|
-
query: queryParameters,
|
|
325
|
-
body: requestParameters.body,
|
|
326
|
-
})];
|
|
327
|
-
case 2:
|
|
328
|
-
response = _a.sent();
|
|
329
|
-
return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
|
|
330
|
-
case 3:
|
|
331
|
-
response_4 = _a.sent();
|
|
332
|
-
console.debug(response_4);
|
|
333
|
-
throw response_4;
|
|
334
|
-
case 4: return [2 /*return*/];
|
|
195
|
+
setOrderInLitigationRaw(requestParameters) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
|
|
198
|
+
throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling setOrderInLitigation.');
|
|
199
|
+
}
|
|
200
|
+
if (requestParameters.body === null || requestParameters.body === undefined) {
|
|
201
|
+
throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling setOrderInLitigation.');
|
|
202
|
+
}
|
|
203
|
+
const queryParameters = {};
|
|
204
|
+
const headerParameters = {};
|
|
205
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
206
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
207
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
208
|
+
}
|
|
209
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
210
|
+
const token = this.configuration.accessToken;
|
|
211
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
212
|
+
if (tokenString) {
|
|
213
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
335
214
|
}
|
|
336
|
-
}
|
|
215
|
+
}
|
|
216
|
+
try {
|
|
217
|
+
const response = yield this.request({
|
|
218
|
+
path: `/orders/{orderReference}/in-litigation`.replace(`{${"orderReference"}}`, encodeURIComponent(String(requestParameters.orderReference))),
|
|
219
|
+
method: 'PUT',
|
|
220
|
+
headers: headerParameters,
|
|
221
|
+
query: queryParameters,
|
|
222
|
+
body: requestParameters.body,
|
|
223
|
+
});
|
|
224
|
+
return new runtime_1.VoidApiResponse(response);
|
|
225
|
+
}
|
|
226
|
+
catch (response) {
|
|
227
|
+
console.debug(response);
|
|
228
|
+
throw response;
|
|
229
|
+
}
|
|
337
230
|
});
|
|
338
|
-
}
|
|
231
|
+
}
|
|
339
232
|
/**
|
|
340
233
|
* Set the litigation flag for order identified by orderReference. # Preconditions : - You are an Admin
|
|
341
234
|
* Set order litigation flag
|
|
342
235
|
*/
|
|
343
|
-
|
|
344
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
345
|
-
|
|
346
|
-
switch (_a.label) {
|
|
347
|
-
case 0: return [4 /*yield*/, this.setOrderInLitigationRaw(requestParameters)];
|
|
348
|
-
case 1:
|
|
349
|
-
_a.sent();
|
|
350
|
-
return [2 /*return*/];
|
|
351
|
-
}
|
|
352
|
-
});
|
|
236
|
+
setOrderInLitigation(requestParameters) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
yield this.setOrderInLitigationRaw(requestParameters);
|
|
353
239
|
});
|
|
354
|
-
}
|
|
240
|
+
}
|
|
355
241
|
/**
|
|
356
242
|
* Set the paused flag for order identified by orderReference. # Preconditions : - You are an admin
|
|
357
243
|
* Set order paused flag
|
|
358
244
|
*/
|
|
359
|
-
|
|
360
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
token = this.configuration.accessToken;
|
|
379
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
380
|
-
if (tokenString) {
|
|
381
|
-
headerParameters["Authorization"] = "Bearer " + tokenString;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
_a.label = 1;
|
|
385
|
-
case 1:
|
|
386
|
-
_a.trys.push([1, 3, , 4]);
|
|
387
|
-
return [4 /*yield*/, this.request({
|
|
388
|
-
path: "/orders/{orderReference}/paused".replace("{" + "orderReference" + "}", encodeURIComponent(String(requestParameters.orderReference))),
|
|
389
|
-
method: 'PUT',
|
|
390
|
-
headers: headerParameters,
|
|
391
|
-
query: queryParameters,
|
|
392
|
-
body: requestParameters.body,
|
|
393
|
-
})];
|
|
394
|
-
case 2:
|
|
395
|
-
response = _a.sent();
|
|
396
|
-
return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
|
|
397
|
-
case 3:
|
|
398
|
-
response_5 = _a.sent();
|
|
399
|
-
console.debug(response_5);
|
|
400
|
-
throw response_5;
|
|
401
|
-
case 4: return [2 /*return*/];
|
|
245
|
+
setOrderPausedRaw(requestParameters) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
|
|
248
|
+
throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling setOrderPaused.');
|
|
249
|
+
}
|
|
250
|
+
if (requestParameters.body === null || requestParameters.body === undefined) {
|
|
251
|
+
throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling setOrderPaused.');
|
|
252
|
+
}
|
|
253
|
+
const queryParameters = {};
|
|
254
|
+
const headerParameters = {};
|
|
255
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
256
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
257
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
258
|
+
}
|
|
259
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
260
|
+
const token = this.configuration.accessToken;
|
|
261
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
262
|
+
if (tokenString) {
|
|
263
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
402
264
|
}
|
|
403
|
-
}
|
|
265
|
+
}
|
|
266
|
+
try {
|
|
267
|
+
const response = yield this.request({
|
|
268
|
+
path: `/orders/{orderReference}/paused`.replace(`{${"orderReference"}}`, encodeURIComponent(String(requestParameters.orderReference))),
|
|
269
|
+
method: 'PUT',
|
|
270
|
+
headers: headerParameters,
|
|
271
|
+
query: queryParameters,
|
|
272
|
+
body: requestParameters.body,
|
|
273
|
+
});
|
|
274
|
+
return new runtime_1.VoidApiResponse(response);
|
|
275
|
+
}
|
|
276
|
+
catch (response) {
|
|
277
|
+
console.debug(response);
|
|
278
|
+
throw response;
|
|
279
|
+
}
|
|
404
280
|
});
|
|
405
|
-
}
|
|
281
|
+
}
|
|
406
282
|
/**
|
|
407
283
|
* Set the paused flag for order identified by orderReference. # Preconditions : - You are an admin
|
|
408
284
|
* Set order paused flag
|
|
409
285
|
*/
|
|
410
|
-
|
|
411
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
412
|
-
|
|
413
|
-
switch (_a.label) {
|
|
414
|
-
case 0: return [4 /*yield*/, this.setOrderPausedRaw(requestParameters)];
|
|
415
|
-
case 1:
|
|
416
|
-
_a.sent();
|
|
417
|
-
return [2 /*return*/];
|
|
418
|
-
}
|
|
419
|
-
});
|
|
286
|
+
setOrderPaused(requestParameters) {
|
|
287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
+
yield this.setOrderPausedRaw(requestParameters);
|
|
420
289
|
});
|
|
421
|
-
}
|
|
290
|
+
}
|
|
422
291
|
/**
|
|
423
292
|
* Update an order
|
|
424
293
|
*/
|
|
425
|
-
|
|
426
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.OrderFromJSON(jsonValue); })];
|
|
462
|
-
}
|
|
463
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
464
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
465
|
-
}
|
|
466
|
-
else {
|
|
467
|
-
// TODO : Better handling of others application types
|
|
468
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
469
|
-
}
|
|
470
|
-
return [3 /*break*/, 4];
|
|
471
|
-
case 3:
|
|
472
|
-
response_6 = _a.sent();
|
|
473
|
-
console.debug(response_6);
|
|
474
|
-
throw response_6;
|
|
475
|
-
case 4: return [2 /*return*/];
|
|
294
|
+
updateOrderRaw(requestParameters) {
|
|
295
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
+
if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
|
|
297
|
+
throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling updateOrder.');
|
|
298
|
+
}
|
|
299
|
+
const queryParameters = {};
|
|
300
|
+
const headerParameters = {};
|
|
301
|
+
headerParameters['Content-Type'] = 'application/merge-patch+json';
|
|
302
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
303
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
304
|
+
}
|
|
305
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
306
|
+
const token = this.configuration.accessToken;
|
|
307
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
308
|
+
if (tokenString) {
|
|
309
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
try {
|
|
313
|
+
const response = yield this.request({
|
|
314
|
+
path: `/orders/{orderReference}`.replace(`{${"orderReference"}}`, encodeURIComponent(String(requestParameters.orderReference))),
|
|
315
|
+
method: 'PATCH',
|
|
316
|
+
headers: headerParameters,
|
|
317
|
+
query: queryParameters,
|
|
318
|
+
body: models_1.OrderUpdateParametersToJSON(requestParameters.orderUpdateParameters),
|
|
319
|
+
});
|
|
320
|
+
const contentType = response.headers.get("content-type");
|
|
321
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
322
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.OrderFromJSON(jsonValue));
|
|
323
|
+
}
|
|
324
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
325
|
+
return new runtime_1.TextApiResponse(response);
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
// TODO : Better handling of others application types
|
|
329
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
476
330
|
}
|
|
477
|
-
}
|
|
331
|
+
}
|
|
332
|
+
catch (response) {
|
|
333
|
+
console.debug(response);
|
|
334
|
+
throw response;
|
|
335
|
+
}
|
|
478
336
|
});
|
|
479
|
-
}
|
|
337
|
+
}
|
|
480
338
|
/**
|
|
481
339
|
* Update an order
|
|
482
340
|
*/
|
|
483
|
-
|
|
484
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
485
|
-
|
|
486
|
-
return
|
|
487
|
-
switch (_a.label) {
|
|
488
|
-
case 0: return [4 /*yield*/, this.updateOrderRaw(requestParameters)];
|
|
489
|
-
case 1:
|
|
490
|
-
response = _a.sent();
|
|
491
|
-
return [4 /*yield*/, response.value()];
|
|
492
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
493
|
-
}
|
|
494
|
-
});
|
|
341
|
+
updateOrder(requestParameters) {
|
|
342
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
343
|
+
const response = yield this.updateOrderRaw(requestParameters);
|
|
344
|
+
return yield response.value();
|
|
495
345
|
});
|
|
496
|
-
}
|
|
346
|
+
}
|
|
497
347
|
/**
|
|
498
348
|
* Update anomaly flag
|
|
499
349
|
*/
|
|
500
|
-
|
|
501
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
token = this.configuration.accessToken;
|
|
520
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
521
|
-
if (tokenString) {
|
|
522
|
-
headerParameters["Authorization"] = "Bearer " + tokenString;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
_a.label = 1;
|
|
526
|
-
case 1:
|
|
527
|
-
_a.trys.push([1, 3, , 4]);
|
|
528
|
-
return [4 /*yield*/, this.request({
|
|
529
|
-
path: "/orders/{orderReference}/anomalies".replace("{" + "orderReference" + "}", encodeURIComponent(String(requestParameters.orderReference))),
|
|
530
|
-
method: 'PATCH',
|
|
531
|
-
headers: headerParameters,
|
|
532
|
-
query: queryParameters,
|
|
533
|
-
body: models_1.AnomaliesUpdateParametersToJSON(requestParameters.anomaliesUpdateParameters),
|
|
534
|
-
})];
|
|
535
|
-
case 2:
|
|
536
|
-
response = _a.sent();
|
|
537
|
-
return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
|
|
538
|
-
case 3:
|
|
539
|
-
response_7 = _a.sent();
|
|
540
|
-
console.debug(response_7);
|
|
541
|
-
throw response_7;
|
|
542
|
-
case 4: return [2 /*return*/];
|
|
350
|
+
updateOrderAnomaliesRaw(requestParameters) {
|
|
351
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
352
|
+
if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
|
|
353
|
+
throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling updateOrderAnomalies.');
|
|
354
|
+
}
|
|
355
|
+
if (requestParameters.anomaliesUpdateParameters === null || requestParameters.anomaliesUpdateParameters === undefined) {
|
|
356
|
+
throw new runtime_1.RequiredError('anomaliesUpdateParameters', 'Required parameter requestParameters.anomaliesUpdateParameters was null or undefined when calling updateOrderAnomalies.');
|
|
357
|
+
}
|
|
358
|
+
const queryParameters = {};
|
|
359
|
+
const headerParameters = {};
|
|
360
|
+
headerParameters['Content-Type'] = 'application/merge-patch+json';
|
|
361
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
362
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
363
|
+
}
|
|
364
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
365
|
+
const token = this.configuration.accessToken;
|
|
366
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
367
|
+
if (tokenString) {
|
|
368
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
543
369
|
}
|
|
544
|
-
}
|
|
370
|
+
}
|
|
371
|
+
try {
|
|
372
|
+
const response = yield this.request({
|
|
373
|
+
path: `/orders/{orderReference}/anomalies`.replace(`{${"orderReference"}}`, encodeURIComponent(String(requestParameters.orderReference))),
|
|
374
|
+
method: 'PATCH',
|
|
375
|
+
headers: headerParameters,
|
|
376
|
+
query: queryParameters,
|
|
377
|
+
body: models_1.AnomaliesUpdateParametersToJSON(requestParameters.anomaliesUpdateParameters),
|
|
378
|
+
});
|
|
379
|
+
return new runtime_1.VoidApiResponse(response);
|
|
380
|
+
}
|
|
381
|
+
catch (response) {
|
|
382
|
+
console.debug(response);
|
|
383
|
+
throw response;
|
|
384
|
+
}
|
|
545
385
|
});
|
|
546
|
-
}
|
|
386
|
+
}
|
|
547
387
|
/**
|
|
548
388
|
* Update anomaly flag
|
|
549
389
|
*/
|
|
550
|
-
|
|
551
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
552
|
-
|
|
553
|
-
switch (_a.label) {
|
|
554
|
-
case 0: return [4 /*yield*/, this.updateOrderAnomaliesRaw(requestParameters)];
|
|
555
|
-
case 1:
|
|
556
|
-
_a.sent();
|
|
557
|
-
return [2 /*return*/];
|
|
558
|
-
}
|
|
559
|
-
});
|
|
390
|
+
updateOrderAnomalies(requestParameters) {
|
|
391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
392
|
+
yield this.updateOrderAnomaliesRaw(requestParameters);
|
|
560
393
|
});
|
|
561
|
-
}
|
|
394
|
+
}
|
|
562
395
|
/**
|
|
563
396
|
* # Preconditions : - \'released\' can not be greater than \'claimed\'
|
|
564
397
|
* Update order reservations
|
|
565
398
|
*/
|
|
566
|
-
|
|
567
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
case 2:
|
|
605
|
-
response = _a.sent();
|
|
606
|
-
contentType = response.headers.get("content-type");
|
|
607
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
608
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.ReservationFromJSON(jsonValue); })];
|
|
609
|
-
}
|
|
610
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
611
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
612
|
-
}
|
|
613
|
-
else {
|
|
614
|
-
// TODO : Better handling of others application types
|
|
615
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
616
|
-
}
|
|
617
|
-
return [3 /*break*/, 4];
|
|
618
|
-
case 3:
|
|
619
|
-
response_8 = _a.sent();
|
|
620
|
-
console.debug(response_8);
|
|
621
|
-
throw response_8;
|
|
622
|
-
case 4: return [2 /*return*/];
|
|
399
|
+
updateOrderReservationRaw(requestParameters) {
|
|
400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
401
|
+
if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
|
|
402
|
+
throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling updateOrderReservation.');
|
|
403
|
+
}
|
|
404
|
+
if (requestParameters.reservationId === null || requestParameters.reservationId === undefined) {
|
|
405
|
+
throw new runtime_1.RequiredError('reservationId', 'Required parameter requestParameters.reservationId was null or undefined when calling updateOrderReservation.');
|
|
406
|
+
}
|
|
407
|
+
if (requestParameters.reservationUpdateParameters === null || requestParameters.reservationUpdateParameters === undefined) {
|
|
408
|
+
throw new runtime_1.RequiredError('reservationUpdateParameters', 'Required parameter requestParameters.reservationUpdateParameters was null or undefined when calling updateOrderReservation.');
|
|
409
|
+
}
|
|
410
|
+
const queryParameters = {};
|
|
411
|
+
const headerParameters = {};
|
|
412
|
+
headerParameters['Content-Type'] = 'application/merge-patch+json';
|
|
413
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
414
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
415
|
+
}
|
|
416
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
417
|
+
const token = this.configuration.accessToken;
|
|
418
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
419
|
+
if (tokenString) {
|
|
420
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
try {
|
|
424
|
+
const response = yield this.request({
|
|
425
|
+
path: `/orders/{orderReference}/reservations/{reservationId}`.replace(`{${"orderReference"}}`, encodeURIComponent(String(requestParameters.orderReference))).replace(`{${"reservationId"}}`, encodeURIComponent(String(requestParameters.reservationId))),
|
|
426
|
+
method: 'PATCH',
|
|
427
|
+
headers: headerParameters,
|
|
428
|
+
query: queryParameters,
|
|
429
|
+
body: models_1.ReservationUpdateParametersToJSON(requestParameters.reservationUpdateParameters),
|
|
430
|
+
});
|
|
431
|
+
const contentType = response.headers.get("content-type");
|
|
432
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
433
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.ReservationFromJSON(jsonValue));
|
|
434
|
+
}
|
|
435
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
436
|
+
return new runtime_1.TextApiResponse(response);
|
|
623
437
|
}
|
|
624
|
-
|
|
438
|
+
else {
|
|
439
|
+
// TODO : Better handling of others application types
|
|
440
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
catch (response) {
|
|
444
|
+
console.debug(response);
|
|
445
|
+
throw response;
|
|
446
|
+
}
|
|
625
447
|
});
|
|
626
|
-
}
|
|
448
|
+
}
|
|
627
449
|
/**
|
|
628
450
|
* # Preconditions : - \'released\' can not be greater than \'claimed\'
|
|
629
451
|
* Update order reservations
|
|
630
452
|
*/
|
|
631
|
-
|
|
632
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
633
|
-
|
|
634
|
-
return
|
|
635
|
-
switch (_a.label) {
|
|
636
|
-
case 0: return [4 /*yield*/, this.updateOrderReservationRaw(requestParameters)];
|
|
637
|
-
case 1:
|
|
638
|
-
response = _a.sent();
|
|
639
|
-
return [4 /*yield*/, response.value()];
|
|
640
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
641
|
-
}
|
|
642
|
-
});
|
|
453
|
+
updateOrderReservation(requestParameters) {
|
|
454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
+
const response = yield this.updateOrderReservationRaw(requestParameters);
|
|
456
|
+
return yield response.value();
|
|
643
457
|
});
|
|
644
|
-
}
|
|
458
|
+
}
|
|
645
459
|
/**
|
|
646
460
|
* Allow to update order status directly.
|
|
647
461
|
* Update order status
|
|
648
462
|
*/
|
|
649
|
-
|
|
650
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
case 2:
|
|
685
|
-
response = _a.sent();
|
|
686
|
-
contentType = response.headers.get("content-type");
|
|
687
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
688
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.OrderStatusFromJSON(jsonValue); })];
|
|
689
|
-
}
|
|
690
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
691
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
692
|
-
}
|
|
693
|
-
else {
|
|
694
|
-
// TODO : Better handling of others application types
|
|
695
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
696
|
-
}
|
|
697
|
-
return [3 /*break*/, 4];
|
|
698
|
-
case 3:
|
|
699
|
-
response_9 = _a.sent();
|
|
700
|
-
console.debug(response_9);
|
|
701
|
-
throw response_9;
|
|
702
|
-
case 4: return [2 /*return*/];
|
|
463
|
+
updateOrderStatusRaw(requestParameters) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
|
|
466
|
+
throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling updateOrderStatus.');
|
|
467
|
+
}
|
|
468
|
+
if (requestParameters.body === null || requestParameters.body === undefined) {
|
|
469
|
+
throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling updateOrderStatus.');
|
|
470
|
+
}
|
|
471
|
+
const queryParameters = {};
|
|
472
|
+
const headerParameters = {};
|
|
473
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
474
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
475
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
476
|
+
}
|
|
477
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
478
|
+
const token = this.configuration.accessToken;
|
|
479
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
480
|
+
if (tokenString) {
|
|
481
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
try {
|
|
485
|
+
const response = yield this.request({
|
|
486
|
+
path: `/orders/{orderReference}/status`.replace(`{${"orderReference"}}`, encodeURIComponent(String(requestParameters.orderReference))),
|
|
487
|
+
method: 'PUT',
|
|
488
|
+
headers: headerParameters,
|
|
489
|
+
query: queryParameters,
|
|
490
|
+
body: requestParameters.body,
|
|
491
|
+
});
|
|
492
|
+
const contentType = response.headers.get("content-type");
|
|
493
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
494
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.OrderStatusFromJSON(jsonValue));
|
|
495
|
+
}
|
|
496
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
497
|
+
return new runtime_1.TextApiResponse(response);
|
|
703
498
|
}
|
|
704
|
-
|
|
499
|
+
else {
|
|
500
|
+
// TODO : Better handling of others application types
|
|
501
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
catch (response) {
|
|
505
|
+
console.debug(response);
|
|
506
|
+
throw response;
|
|
507
|
+
}
|
|
705
508
|
});
|
|
706
|
-
}
|
|
509
|
+
}
|
|
707
510
|
/**
|
|
708
511
|
* Allow to update order status directly.
|
|
709
512
|
* Update order status
|
|
710
513
|
*/
|
|
711
|
-
|
|
712
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
713
|
-
|
|
714
|
-
return
|
|
715
|
-
switch (_a.label) {
|
|
716
|
-
case 0: return [4 /*yield*/, this.updateOrderStatusRaw(requestParameters)];
|
|
717
|
-
case 1:
|
|
718
|
-
response = _a.sent();
|
|
719
|
-
return [4 /*yield*/, response.value()];
|
|
720
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
721
|
-
}
|
|
722
|
-
});
|
|
514
|
+
updateOrderStatus(requestParameters) {
|
|
515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
516
|
+
const response = yield this.updateOrderStatusRaw(requestParameters);
|
|
517
|
+
return yield response.value();
|
|
723
518
|
});
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
}(runtime_1.BaseAPI));
|
|
519
|
+
}
|
|
520
|
+
}
|
|
727
521
|
exports.ManageOrderApi = ManageOrderApi;
|